Home
last modified time | relevance | path

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

12345678910>>...269

/linux/scripts/coccinelle/api/
H A 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/samples/kmemleak/
H A 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/tools/testing/radix-tree/
H A 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/Documentation/translations/zh_CN/core-api/
H A 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/net/handshake/
H A 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/lib/
H A 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 …]
H A 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 …]
H A Dslub_kunit.c33 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_zone()
51 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_next_pointer()
96 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_first_word()
111 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_50th_byte()
127 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_redzone_free()
144 u8 *p = alloc_hooks(__kmalloc_cache_noprof(s, GFP_KERNEL, 18)); in test_kmalloc_redzone_access()
176 p = kmem_cache_alloc(s, GFP_KERNEL); in test_kfree_rcu()
188 kmem_cache_alloc(s, GFP_KERNEL); in test_leak_destroy()
202 p = alloc_hooks(__kmalloc_cache_noprof(s, GFP_KERNEL, 48)); in test_krealloc_redzone_zeroing()
209 p = krealloc(p, 40, GFP_KERNEL | __GFP_ZERO); in test_krealloc_redzone_zeroing()
[all …]
/linux/drivers/misc/lkdtm/
H A Dheap.c56 u32 *data = kmalloc(len, GFP_KERNEL); in lkdtm_SLAB_LINEAR_OVERFLOW()
77 base = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE()
86 again = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE()
104 base = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE()
110 val = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE()
161 base = kmalloc(len, GFP_KERNEL); in lkdtm_KFENCE_READ_AFTER_FREE()
196 unsigned long p = __get_free_page(GFP_KERNEL); in lkdtm_WRITE_BUDDY_AFTER_FREE()
209 p = __get_free_page(GFP_KERNEL); in lkdtm_WRITE_BUDDY_AFTER_FREE()
216 unsigned long p = __get_free_page(GFP_KERNEL); in lkdtm_READ_BUDDY_AFTER_FREE()
225 val = kmalloc(1024, GFP_KERNEL); in lkdtm_READ_BUDDY_AFTER_FREE()
[all …]
/linux/drivers/net/wireless/ti/wl1251/
H A 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/drivers/usb/misc/
H A 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/mm/kasan/
H A Dkasan_test_c.c168 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right()
197 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left()
210 ptr = kmalloc_node(size, GFP_KERNEL, 0); in kmalloc_node_oob_right()
227 ptr = kmalloc_track_caller(size, GFP_KERNEL); in kmalloc_track_caller_oob_right()
239 ptr = kmalloc_node_track_caller(size, GFP_KERNEL, 0); in kmalloc_track_caller_oob_right()
257 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_big_oob_right()
276 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_oob_right()
290 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_uaf()
302 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_invalid_free()
322 pages = alloc_pages(GFP_KERNEL, order); in page_alloc_oob_right()
[all …]
/linux/drivers/gpu/drm/arm/display/komeda/
H A 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/sound/soc/amd/acp/
H A Dacp-sdw-legacy-mach.c130 name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink()
136 name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink()
144 cpus = devm_kcalloc(dev, num_cpus, sizeof(*cpus), GFP_KERNEL); in create_sdw_dailink()
148 codecs = devm_kcalloc(dev, num_codecs, sizeof(*codecs), GFP_KERNEL); in create_sdw_dailink()
152 codec_maps = devm_kcalloc(dev, num_codecs, sizeof(*codec_maps), GFP_KERNEL); in create_sdw_dailink()
162 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink()
218 GFP_KERNEL); in create_sdw_dailinks()
259 pdm_cpu = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link_component), GFP_KERNEL); in create_dmic_dailinks()
263 pdm_platform = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link_component), GFP_KERNEL); in create_dmic_dailinks()
314 soc_dais = kcalloc(num_ends, sizeof(*soc_dais), GFP_KERNEL); in soc_card_dai_links_create()
[all …]
H A Dacp-sdw-sof-mach.c136 name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink()
142 name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink()
150 cpus = devm_kcalloc(dev, num_cpus, sizeof(*cpus), GFP_KERNEL); in create_sdw_dailink()
154 codecs = devm_kcalloc(dev, num_codecs, sizeof(*codecs), GFP_KERNEL); in create_sdw_dailink()
158 codec_maps = devm_kcalloc(dev, num_codecs, sizeof(*codec_maps), GFP_KERNEL); in create_sdw_dailink()
168 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink()
283 sof_dais = kcalloc(num_ends, sizeof(*sof_dais), GFP_KERNEL); in sof_card_dai_links_create()
288 sof_ends = kcalloc(num_ends, sizeof(*sof_ends), GFP_KERNEL); in sof_card_dai_links_create()
304 codec_conf = devm_kcalloc(dev, num_devs, sizeof(*codec_conf), GFP_KERNEL); in sof_card_dai_links_create()
310 dai_links = devm_kcalloc(dev, num_links, sizeof(*dai_links), GFP_KERNEL); in sof_card_dai_links_create()
[all …]
/linux/sound/soc/intel/boards/
H A Dsof_board_helpers.c188 link->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_codec); in set_ssp_codec_link()
194 GFP_KERNEL); in set_ssp_codec_link()
200 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "ssp%d-port", in set_ssp_codec_link()
203 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", in set_ssp_codec_link()
231 GFP_KERNEL); in set_dmic_link()
283 link->name = devm_kasprintf(dev, GFP_KERNEL, "iDisp%d", hdmi_id); in set_idisp_hdmi_link()
289 GFP_KERNEL); in set_idisp_hdmi_link()
293 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "iDisp%d Pin", hdmi_id); in set_idisp_hdmi_link()
304 GFP_KERNEL); in set_idisp_hdmi_link()
309 codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, in set_idisp_hdmi_link()
[all …]
/linux/drivers/net/wireless/ti/wlcore/
H A 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/sound/soc/intel/avs/boards/
H A Dda7219.c116 pins = devm_kmemdup(card->dev, card_headset_pins, sizeof(*pins) * num_pins, GFP_KERNEL); in avs_da7219_codec_init()
173 dl = devm_kzalloc(dev, sizeof(*dl), GFP_KERNEL); in avs_create_dai_link()
174 platform = devm_kzalloc(dev, sizeof(*platform), GFP_KERNEL); in avs_create_dai_link()
180 dl->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_port); in avs_create_dai_link()
181 dl->name = devm_kasprintf(dev, GFP_KERNEL, in avs_create_dai_link()
183 dl->cpus = devm_kzalloc(dev, sizeof(*dl->cpus), GFP_KERNEL); in avs_create_dai_link()
184 dl->codecs = devm_kzalloc(dev, sizeof(*dl->codecs), GFP_KERNEL); in avs_create_dai_link()
188 dl->cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in avs_create_dai_link()
190 dl->codecs->name = devm_kasprintf(dev, GFP_KERNEL, "i2c-DLGS7219:00"); in avs_create_dai_link()
191 dl->codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, DA7219_DAI_NAME); in avs_create_dai_link()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/
H A Dclk_mgr.c154 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
167 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
177 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
187 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
211 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
225 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
253 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
280 struct clk_mgr_vgh *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
292 struct clk_mgr_dcn31 *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
304 struct clk_mgr_dcn315 *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
[all …]
/linux/drivers/gpu/drm/i915/selftests/
H A 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/drivers/soc/ux500/
H A Dux500-soc-id.c128 return kasprintf(GFP_KERNEL, "DB%4x", dbx500_id.partnumber); in ux500_get_machine()
133 return kasprintf(GFP_KERNEL, "ux500"); in ux500_get_family()
141 return kasprintf(GFP_KERNEL, "%s", "ED"); in ux500_get_revision()
143 return kasprintf(GFP_KERNEL, "%d.%d", in ux500_get_revision()
146 return kasprintf(GFP_KERNEL, "%s", "Unknown"); in ux500_get_revision()
180 retstr = kasprintf(GFP_KERNEL, "%08x%08x%08x%08x%08x", in db8500_read_soc_id()
208 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init()
/linux/drivers/net/wireless/ti/wl18xx/
H A Dacx.c26 bitmap_conf = kzalloc(sizeof(*bitmap_conf), GFP_KERNEL); in wl18xx_acx_host_if_cfg_bitmap()
57 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_set_checksum_state()
83 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_clear_statistics()
108 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_peer_ht_operation_mode()
149 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_set_peer_cap()
195 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_interrupt_notify_config()
222 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_rx_ba_filter()
250 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_ap_sleep()
280 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_dynamic_fw_traces()
308 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl18xx_acx_time_sync_cfg()
/linux/lib/kunit/
H A Dassert_test.c60 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_test_assert_prologue()
103 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_test_assert_print_msg()
147 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_test_unary_assert_format()
168 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_test_ptr_not_err_assert_format()
199 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_test_binary_assert_format()
241 addr_var_a = kunit_kzalloc(test, TEST_PTR_EXPECTED_BUF_SIZE, GFP_KERNEL); in kunit_test_binary_ptr_assert_format()
243 addr_var_b = kunit_kzalloc(test, TEST_PTR_EXPECTED_BUF_SIZE, GFP_KERNEL); in kunit_test_binary_ptr_assert_format()
253 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_test_binary_ptr_assert_format()
277 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_test_binary_str_assert_format()
309 stream = kunit_alloc_string_stream(test, GFP_KERNEL); in kunit_test_assert_hexdump()
[all …]
/linux/drivers/hwmon/
H A Diio_hwmon.c100 st = devm_kzalloc(dev, sizeof(*st), GFP_KERNEL); in iio_hwmon_probe()
101 buf = (void *)devm_get_free_pages(dev, GFP_KERNEL, 0); in iio_hwmon_probe()
113 GFP_KERNEL); in iio_hwmon_probe()
121 a = devm_kzalloc(dev, sizeof(*a), GFP_KERNEL); in iio_hwmon_probe()
155 a->dev_attr.attr.name = devm_kasprintf(dev, GFP_KERNEL, in iio_hwmon_probe()
170 a = devm_kzalloc(dev, sizeof(*a), GFP_KERNEL); in iio_hwmon_probe()
175 a->dev_attr.attr.name = devm_kasprintf(dev, GFP_KERNEL, in iio_hwmon_probe()
193 sname = devm_kasprintf(dev, GFP_KERNEL, "%pfwP", dev_fwnode(dev)); in iio_hwmon_probe()
/linux/scripts/coccinelle/locks/
H A Dcall_kern.cocci2 /// Find functions that refer to GFP_KERNEL but are called with locks held.
3 //# The proposed change of converting the GFP_KERNEL is not necessarily the
35 GFP_KERNEL@p
78 - GFP_KERNEL@p
85 * GFP_KERNEL@p
96 cocci.print_secs("GFP_KERNEL",p)
105 msg = "ERROR: function %s called on line %s inside lock on line %s but uses GFP_KERNEL" % (fn,p2[0]…

12345678910>>...269