/linux/scripts/coccinelle/api/ |
A D | kvmalloc.cocci | 101 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 111 - E = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 121 - T x = kmalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 133 - E = kzalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 143 - E = kzalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 153 - T x = kzalloc(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\)); 165 - E = kmalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node); 175 - E = kmalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node); 185 - T x = kmalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node); 207 - E = kvzalloc_node(size, \(GFP_KERNEL\|GFP_KERNEL|__GFP_NOWARN\), node); [all …]
|
/linux/samples/kmemleak/ |
A D | kmemleak-test.c | 43 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/ |
A D | idr-test.c | 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() 135 idr_preload(GFP_KERNEL); in idr_nowait_test() 160 GFP_KERNEL) == indices[i]); in idr_get_next_test() 309 anchor_id + 1, GFP_KERNEL) != anchor_id); in idr_find_test_1() 465 id = ida_alloc(&ida, GFP_KERNEL); in ida_check_conv_user() [all …]
|
/linux/lib/ |
A D | test_xarray.c | 48 GFP_KERNEL) != 0); in xa_insert_index() 218 GFP_KERNEL); in check_xa_mark_1() 730 GFP_KERNEL) != 0); in check_xa_alloc_1() 734 GFP_KERNEL) != 0); in check_xa_alloc_1() 739 GFP_KERNEL) != -EBUSY); in check_xa_alloc_1() 744 GFP_KERNEL) != -EBUSY); in check_xa_alloc_1() 747 GFP_KERNEL) != -EBUSY); in check_xa_alloc_1() 776 GFP_KERNEL) != 0); in check_xa_alloc_2() 978 GFP_KERNEL); in check_multi_find_2() 1585 GFP_KERNEL) != 0); in check_align_1() [all …]
|
A D | test_kasan.c | 125 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right() 153 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left() 185 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_oob_right() 200 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_uaf() 214 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_pagealloc_invalid_free() 265 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_oob_right() 440 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_memset_2() 453 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_memset_4() 466 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_memset_8() 479 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_memset_16() [all …]
|
A D | test_ida.c | 36 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() 134 GFP_KERNEL) != i + BITS_PER_LONG); in ida_check_conv() 141 IDA_BUG_ON(ida, ida_alloc(ida, GFP_KERNEL) != i); in ida_check_conv() [all …]
|
A D | test_meminit.c | 69 page = alloc_pages(GFP_KERNEL, order); in do_alloc_pages_order() 74 page = alloc_pages(GFP_KERNEL, order); in do_alloc_pages_order() 102 buf = kmalloc(size, GFP_KERNEL); in do_kmalloc_size() 106 buf = kmalloc(size, GFP_KERNEL); in do_kmalloc_size() 202 gfp_t alloc_mask = GFP_KERNEL | (want_zero ? __GFP_ZERO : 0); in do_kmem_cache_size() 281 buf = kmem_cache_alloc(c, GFP_KERNEL); in do_kmem_cache_rcu_persistent() 284 buf_contents = kmalloc(size, GFP_KERNEL); in do_kmem_cache_rcu_persistent() 287 used_objects = kmalloc_array(maxiter, sizeof(void *), GFP_KERNEL); in do_kmem_cache_rcu_persistent() 299 buf = kmem_cache_alloc(c, GFP_KERNEL); in do_kmem_cache_rcu_persistent() 328 num = kmem_cache_alloc_bulk(c, GFP_KERNEL, ARRAY_SIZE(objects), in do_kmem_cache_size_bulk()
|
/linux/drivers/misc/lkdtm/ |
A D | heap.c | 48 u32 *data = kmalloc(len, GFP_KERNEL); in lkdtm_SLAB_LINEAR_OVERFLOW() 68 base = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE() 77 again = kmalloc(len, GFP_KERNEL); in lkdtm_WRITE_AFTER_FREE() 95 base = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE() 101 val = kmalloc(len, GFP_KERNEL); in lkdtm_READ_AFTER_FREE() 142 p = __get_free_page(GFP_KERNEL); in lkdtm_WRITE_BUDDY_AFTER_FREE() 158 val = kmalloc(1024, GFP_KERNEL); in lkdtm_READ_BUDDY_AFTER_FREE() 189 first = kmalloc(512, GFP_KERNEL); in lkdtm_SLAB_INIT_ON_ALLOC() 198 val = kmalloc(512, GFP_KERNEL); in lkdtm_SLAB_INIT_ON_ALLOC() 221 first = (u8 *)__get_free_page(GFP_KERNEL); in lkdtm_BUDDY_INIT_ON_ALLOC() [all …]
|
/linux/Documentation/translations/zh_CN/core-api/ |
A D | memory-allocation.rst | 32 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/drivers/net/wireless/ti/wl1251/ |
A D | acx.c | 20 rates = kzalloc(sizeof(*rates), GFP_KERNEL); in wl1251_acx_frame_rates() 49 mac = kzalloc(sizeof(*mac), GFP_KERNEL); in wl1251_acx_station_id() 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() 289 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_rx_msdu_life_time() 339 pd = kzalloc(sizeof(*pd), GFP_KERNEL); in wl1251_acx_pd_threshold() 389 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_group_address_tbl() 444 rts = kzalloc(sizeof(*rts), GFP_KERNEL); in wl1251_acx_rts_threshold() 523 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1251_acx_conn_monit_params() [all …]
|
/linux/drivers/usb/misc/ |
A D | ehset.c | 36 NULL, 0, 1000, GFP_KERNEL); in ehset_probe() 42 1000, GFP_KERNEL); in ehset_probe() 48 1000, GFP_KERNEL); in ehset_probe() 54 NULL, 0, 1000, GFP_KERNEL); in ehset_probe() 61 portnum, NULL, 0, 1000, GFP_KERNEL); in ehset_probe() 68 portnum, NULL, 0, 1000, GFP_KERNEL); in ehset_probe() 77 USB_CTRL_GET_TIMEOUT, GFP_KERNEL); in ehset_probe() 95 60 * 1000, GFP_KERNEL); in ehset_probe()
|
A D | uss720.c | 262 if (get_1284_register(pp, 6, ®, GFP_KERNEL)) in change_mode() 298 if (get_1284_register(pp, 6, ®, GFP_KERNEL)) in change_mode() 336 set_1284_register(pp, 0, d, GFP_KERNEL); in parport_uss720_write_data() 353 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_write_control() 393 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_disable_irq() 404 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_enable_irq() 415 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_data_forward() 426 if (set_1284_register(pp, 2, d, GFP_KERNEL)) in parport_uss720_data_reverse() 724 set_1284_register(pp, 7, 0x00, GFP_KERNEL); in uss720_probe() 726 set_1284_register(pp, 2, 0x0c, GFP_KERNEL); in uss720_probe() [all …]
|
/linux/mm/kfence/ |
A D | kfence_test.c | 338 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT); in test_out_of_bounds_read() 410 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_invalid_addr_free() 517 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_shrink_memcache() 539 test_alloc(test, size, GFP_KERNEL, ALLOCATE_RIGHT), in test_free_bulk() 540 test_alloc(test, size, GFP_KERNEL, ALLOCATE_NONE), in test_free_bulk() 541 test_alloc(test, size, GFP_KERNEL, ALLOCATE_LEFT), in test_free_bulk() 542 test_alloc(test, size, GFP_KERNEL, ALLOCATE_NONE), in test_free_bulk() 543 test_alloc(test, size, GFP_KERNEL, ALLOCATE_NONE), in test_free_bulk() 593 buf = test_alloc(test, size, GFP_KERNEL, ALLOCATE_ANY); in test_memcache_ctor() 708 buf = krealloc(buf, size * 3, GFP_KERNEL); /* Grow. */ in test_krealloc() [all …]
|
/linux/drivers/gpu/drm/arm/display/komeda/ |
A D | komeda_private_obj.c | 24 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() 181 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_splitter_obj_add() 224 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_merger_obj_add() 268 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_improc_obj_add() 311 st = kzalloc(sizeof(*st), GFP_KERNEL); in komeda_timing_ctrlr_obj_add() [all …]
|
/linux/drivers/net/wireless/ti/wlcore/ |
A D | acx.c | 60 auth = kzalloc(sizeof(*auth), GFP_KERNEL); in wl1271_acx_sleep_auth() 93 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_tx_power() 165 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_rx_msdu_life_time() 221 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_group_address_tbl() 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() 449 acx = kzalloc(sizeof(*acx), GFP_KERNEL); in wl1271_acx_conn_monit_params() 485 pta = kzalloc(sizeof(*pta), GFP_KERNEL); in wl1271_acx_sg_enable() 570 bb = kzalloc(sizeof(*bb), GFP_KERNEL); in wl1271_acx_bcn_dtim_options() 1002 GFP_KERNEL); in wl1271_acx_init_mem_config() [all …]
|
/linux/drivers/clk/qcom/ |
A D | krait-cc.c | 84 div = devm_kzalloc(dev, sizeof(*div), GFP_KERNEL); in krait_add_div() 94 init.name = kasprintf(GFP_KERNEL, "hfpll%s_div", s); in krait_add_div() 99 p_names[0] = kasprintf(GFP_KERNEL, "hfpll%s", s); in krait_add_div() 130 mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL); in krait_add_sec_mux() 142 init.name = kasprintf(GFP_KERNEL, "krait%s_sec_mux", s); in krait_add_sec_mux() 183 mux = devm_kzalloc(dev, sizeof(*mux), GFP_KERNEL); in krait_add_pri_mux() 195 init.name = kasprintf(GFP_KERNEL, "krait%s_pri_mux", s); in krait_add_pri_mux() 199 p_names[0] = kasprintf(GFP_KERNEL, "hfpll%s", s); in krait_add_pri_mux() 205 p_names[1] = kasprintf(GFP_KERNEL, "hfpll%s_div", s); in krait_add_pri_mux() 244 s = p = kasprintf(GFP_KERNEL, "%d", id); in krait_add_clks() [all …]
|
/linux/drivers/gpu/drm/i915/selftests/ |
A D | i915_sw_fence.c | 50 fence = kmalloc(sizeof(*fence), GFP_KERNEL); in alloc_fence() 120 i915_sw_fence_await_sw_fence_gfp(A, B, GFP_KERNEL); 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() 253 ret = i915_sw_fence_await_sw_fence_gfp(B, C, GFP_KERNEL); in test_ABC() 325 ret = i915_sw_fence_await_sw_fence_gfp(A, C, GFP_KERNEL); in test_AB_C() 333 ret = i915_sw_fence_await_sw_fence_gfp(B, C, GFP_KERNEL); in test_AB_C() 402 ret = i915_sw_fence_await_sw_fence_gfp(C, A, GFP_KERNEL); in test_C_AB() 410 ret = i915_sw_fence_await_sw_fence_gfp(C, B, GFP_KERNEL); in test_C_AB() 472 GFP_KERNEL); in test_chain() [all …]
|
/linux/fs/jffs2/ |
A D | malloc.c | 116 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()
|
/linux/drivers/soc/ux500/ |
A D | ux500-soc-id.c | 128 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() 210 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init()
|
/linux/drivers/net/wireless/ti/wl18xx/ |
A D | acx.c | 26 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/drivers/infiniband/hw/mlx5/ |
A D | mad.c | 184 out_cnt = kvzalloc(sz, GFP_KERNEL); in process_pma_cmd() 199 out_cnt = kvzalloc(sz, GFP_KERNEL); in process_pma_cmd() 289 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_ext_port_caps() 290 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_ext_port_caps() 317 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_smp_attr_node_info() 337 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_system_image_guid() 403 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_desc() 428 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_guid() 454 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_pkey() 483 in_mad = kzalloc(sizeof(*in_mad), GFP_KERNEL); in mlx5_query_mad_ifc_gids() [all …]
|
/linux/scripts/coccinelle/locks/ |
A D | call_kern.cocci | 2 /// 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]…
|
/linux/drivers/gpu/drm/amd/display/dc/clk_mgr/ |
A D | clk_mgr.c | 145 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 158 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 168 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 178 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 202 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 216 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 244 struct clk_mgr_internal *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 271 struct clk_mgr_vgh *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create() 282 struct clk_mgr_dcn31 *clk_mgr = kzalloc(sizeof(*clk_mgr), GFP_KERNEL); in dc_clk_mgr_create()
|
/linux/sound/soc/ |
A D | soc-topology-test.c | 250 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_with_null_comp() 294 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_with_null_ops() 358 kunit_comp = kunit_kzalloc(test, sizeof(*kunit_comp), GFP_KERNEL); in snd_soc_tplg_test_load_with_null_fw() 404 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg() 455 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_magic() 511 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_abi() 567 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_size() 623 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_empty_tplg_bad_payload_size() 678 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_pcm_tplg() 729 data = kunit_kzalloc(kunit_comp->kunit, size, GFP_KERNEL); in snd_soc_tplg_test_load_pcm_tplg_reload_comp() [all …]
|
/linux/drivers/clk/ti/ |
A D | clkctrl.c | 268 clock_name = kasprintf(GFP_KERNEL, "%s-clkctrl:%04x:%d", in clkctrl_get_clock_name() 277 return kasprintf(GFP_KERNEL, "%s_cm:clk:%04x:%d", in clkctrl_get_clock_name() 282 return kasprintf(GFP_KERNEL, "%pOFn:clk:%04x:%d", in clkctrl_get_clock_name() 305 clkctrl_clk = kzalloc(sizeof(*clkctrl_clk), GFP_KERNEL); in _ti_clkctrl_clk_register() 345 clk_hw = kzalloc(sizeof(*clk_hw), GFP_KERNEL); in _ti_clkctrl_setup_gate() 368 mux = kzalloc(sizeof(*mux), GFP_KERNEL); in _ti_clkctrl_setup_mux() 403 div = kzalloc(sizeof(*div), GFP_KERNEL); in _ti_clkctrl_setup_div() 590 provider = kzalloc(sizeof(*provider), GFP_KERNEL); in _ti_omap4_clkctrl_setup() 599 provider->clkdm_name = kasprintf(GFP_KERNEL, in _ti_omap4_clkctrl_setup() 657 hw = kzalloc(sizeof(*hw), GFP_KERNEL); in _ti_omap4_clkctrl_setup() [all …]
|