| /linux/scripts/coccinelle/api/ |
| H A D | kvmalloc.cocci | 37 * (..., 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/tools/testing/radix-tree/ |
| H A D | idr-test.c | 38 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() 65 id = idr_alloc(&idr, idr_alloc2_test, 0, 1, GFP_KERNEL); in idr_alloc2_test() 68 id = idr_alloc(&idr, idr_alloc2_test, 1, 2, GFP_KERNEL); in idr_alloc2_test() 71 id = idr_alloc(&idr, idr_alloc2_test, 0, 1, GFP_KERNEL); in idr_alloc2_test() 74 id = idr_alloc(&idr, idr_alloc2_test, 0, 2, GFP_KERNEL); in idr_alloc2_test() 84 idr_alloc(&idr, (void *)-1, 10, 11, GFP_KERNEL); in idr_replace_test() 103 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test() 108 assert(idr_alloc(&idr, NULL, 0, 0, GFP_KERNEL) == 0); in idr_null_test() [all …]
|
| /linux/Documentation/translations/zh_CN/core-api/ |
| H 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/net/handshake/ |
| H A D | handshake-test.c | 75 .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 D | test_xarray.c | 48 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 …]
|
| /linux/drivers/usb/misc/ |
| H A D | ehset.c | 49 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/drivers/net/wireless/ti/wl1251/ |
| H 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() 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/lib/tests/ |
| H A D | slub_kunit.c | 34 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_zone() 52 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_next_pointer() 97 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_first_word() 112 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_50th_byte() 128 u8 *p = kmem_cache_alloc(s, GFP_KERNEL); in test_clobber_redzone_free() 145 u8 *p = alloc_hooks(__kmalloc_cache_noprof(s, GFP_KERNEL, 18)); in test_kmalloc_redzone_access() 177 p = kmem_cache_alloc(s, GFP_KERNEL); in test_kfree_rcu() 228 p = kmem_cache_alloc(s, GFP_KERNEL); in test_kfree_rcu_wq_destroy() 246 kmem_cache_alloc(s, GFP_KERNEL); in test_leak_destroy() 260 p = alloc_hooks(__kmalloc_cache_noprof(s, GFP_KERNEL, 48)); in test_krealloc_redzone_zeroing() [all …]
|
| /linux/mm/kasan/ |
| H A D | kasan_test_c.c | 203 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right() 232 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left() 245 ptr = kmalloc_node(size, GFP_KERNEL, 0); in kmalloc_node_oob_right() 262 ptr = kmalloc_track_caller(size, GFP_KERNEL); in kmalloc_track_caller_oob_right() 274 ptr = kmalloc_node_track_caller(size, GFP_KERNEL, 0); in kmalloc_track_caller_oob_right() 292 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_big_oob_right() 311 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_oob_right() 325 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_uaf() 337 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_invalid_free() 357 pages = alloc_pages(GFP_KERNEL, order); in page_alloc_oob_right() [all …]
|
| /linux/drivers/gpu/drm/arm/display/komeda/ |
| H 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() 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/drivers/gpu/drm/amd/display/amdgpu_dm/ |
| H A D | amdgpu_dm_colorop.c | 69 ops[i] = kzalloc(sizeof(*ops[0]), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline() 86 ops[i] = kzalloc(sizeof(struct drm_colorop), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline() 101 ops[i] = kzalloc(sizeof(struct drm_colorop), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline() 117 ops[i] = kzalloc(sizeof(*ops[0]), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline() 134 ops[i] = kzalloc(sizeof(*ops[0]), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline() 151 ops[i] = kzalloc(sizeof(*ops[0]), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline() 169 ops[i] = kzalloc(sizeof(*ops[0]), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline() 186 ops[i] = kzalloc(sizeof(struct drm_colorop), GFP_KERNEL); in amdgpu_dm_initialize_default_pipeline() 200 list->name = kasprintf(GFP_KERNEL, "Color Pipeline %d", ops[0]->base.id); in amdgpu_dm_initialize_default_pipeline()
|
| /linux/sound/soc/intel/boards/ |
| H A D | sof_board_helpers.c | 190 link->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_codec); in set_ssp_codec_link() 196 GFP_KERNEL); in set_ssp_codec_link() 202 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "ssp%d-port", in set_ssp_codec_link() 205 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d Pin", in set_ssp_codec_link() 233 GFP_KERNEL); in set_dmic_link() 285 link->name = devm_kasprintf(dev, GFP_KERNEL, "iDisp%d", hdmi_id); in set_idisp_hdmi_link() 291 GFP_KERNEL); in set_idisp_hdmi_link() 295 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, "iDisp%d Pin", hdmi_id); in set_idisp_hdmi_link() 306 GFP_KERNEL); in set_idisp_hdmi_link() 311 codecs->dai_name = devm_kasprintf(dev, GFP_KERNEL, in set_idisp_hdmi_link() [all...] |
| H A D | sof_pcm512x.c | 77 pcm = devm_kzalloc(rtd->card->dev, sizeof(*pcm), GFP_KERNEL); in sof_hdmi_init() 231 sizeof(struct snd_soc_dai_link), GFP_KERNEL); in sof_card_dai_links_create() 233 sizeof(struct snd_soc_dai_link_component), GFP_KERNEL); in sof_card_dai_links_create() 238 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 259 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 265 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 306 GFP_KERNEL); in sof_card_dai_links_create() 311 links[id].name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 319 links[id].cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() 331 devm_kasprintf(dev, GFP_KERNEL, in sof_card_dai_links_create() [all...] |
| /linux/drivers/net/wireless/ti/wlcore/ |
| H A D | acx.c | 31 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/amd/acp/ |
| H A D | acp-sdw-legacy-mach.c | 188 name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink() 194 name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink() 202 cpus = devm_kcalloc(dev, num_cpus, sizeof(*cpus), GFP_KERNEL); in create_sdw_dailink() 206 codecs = devm_kcalloc(dev, num_codecs, sizeof(*codecs), GFP_KERNEL); in create_sdw_dailink() 210 codec_maps = devm_kcalloc(dev, num_codecs, sizeof(*codec_maps), GFP_KERNEL); in create_sdw_dailink() 220 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink() 276 GFP_KERNEL); in create_sdw_dailinks() 320 pdm_cpu = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link_component), GFP_KERNEL); in create_dmic_dailinks() 324 pdm_platform = devm_kzalloc(dev, sizeof(struct snd_soc_dai_link_component), GFP_KERNEL); in create_dmic_dailinks() 383 soc_dais = kcalloc(num_ends, sizeof(*soc_dais), GFP_KERNEL); in soc_card_dai_links_create() [all...] |
| H A D | acp-sdw-sof-mach.c | 144 name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink() 150 name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink() 158 cpus = devm_kcalloc(dev, num_cpus, sizeof(*cpus), GFP_KERNEL); in create_sdw_dailink() 162 codecs = devm_kcalloc(dev, num_codecs, sizeof(*codecs), GFP_KERNEL); in create_sdw_dailink() 166 codec_maps = devm_kcalloc(dev, num_codecs, sizeof(*codec_maps), GFP_KERNEL); in create_sdw_dailink() 176 cpus->dai_name = devm_kasprintf(dev, GFP_KERNEL, in create_sdw_dailink() 292 sof_dais = kcalloc(num_ends, sizeof(*sof_dais), GFP_KERNEL); in sof_card_dai_links_create() 297 sof_ends = kcalloc(num_ends, sizeof(*sof_ends), GFP_KERNEL); in sof_card_dai_links_create() 301 sof_aux = devm_kcalloc(dev, num_aux, sizeof(*sof_aux), GFP_KERNEL); in sof_card_dai_links_create() 317 codec_conf = devm_kcalloc(dev, num_devs, sizeof(*codec_conf), GFP_KERNEL); in sof_card_dai_links_create() [all …]
|
| /linux/drivers/gpu/drm/i915/selftests/ |
| H A D | i915_sw_fence.c | 50 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 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() 208 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in ux500_soc_device_init()
|
| /linux/drivers/net/wireless/ti/wl18xx/ |
| H 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/hwmon/ |
| H A D | iio_hwmon.c | 100 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 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/lib/kunit/ |
| H A D | assert_test.c | 60 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/soc/fsl/ |
| H A D | guts.c | 216 soc_dev_attr = kzalloc(sizeof(*soc_dev_attr), GFP_KERNEL); in fsl_guts_init() 223 soc_dev_attr->machine = kstrdup(machine, GFP_KERNEL); in fsl_guts_init() 230 soc_dev_attr->family = kasprintf(GFP_KERNEL, "QorIQ %s", in fsl_guts_init() 233 soc_dev_attr->family = kasprintf(GFP_KERNEL, "QorIQ"); in fsl_guts_init() 238 soc_dev_attr->soc_id = kasprintf(GFP_KERNEL, "svr:0x%08x", svr); in fsl_guts_init() 242 soc_dev_attr->revision = kasprintf(GFP_KERNEL, "%d.%d", in fsl_guts_init() 251 soc_dev_attr->serial_number = kasprintf(GFP_KERNEL, "%016llX", in fsl_guts_init()
|
| /linux/drivers/soc/loongson/ |
| H A D | loongson2_guts.c | 102 guts = devm_kzalloc(dev, sizeof(*guts), GFP_KERNEL); in loongson2_guts_probe() 118 soc_dev_attr.machine = devm_kstrdup(dev, machine, GFP_KERNEL); in loongson2_guts_probe() 126 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, in loongson2_guts_probe() 129 soc_dev_attr.family = devm_kasprintf(dev, GFP_KERNEL, "Loongson"); in loongson2_guts_probe() 133 soc_dev_attr.soc_id = devm_kasprintf(dev, GFP_KERNEL, in loongson2_guts_probe() 137 soc_dev_attr.revision = devm_kasprintf(dev, GFP_KERNEL, "%d.%d", in loongson2_guts_probe()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/esw/ |
| H A D | ipsec.c | 23 query_cap = kvzalloc(query_sz, GFP_KERNEL); in esw_ipsec_vf_query_generic() 63 query_cap = kvzalloc(query_sz, GFP_KERNEL); in mlx5_esw_ipsec_vf_offload_get() 91 query_cap = kvzalloc(query_sz, GFP_KERNEL); in esw_ipsec_vf_set_generic() 92 hca_cap = kvzalloc(set_sz, GFP_KERNEL); in esw_ipsec_vf_set_generic() 131 query_cap = kvzalloc(query_sz, GFP_KERNEL); in esw_ipsec_vf_set_bytype() 132 hca_cap = kvzalloc(set_sz, GFP_KERNEL); in esw_ipsec_vf_set_bytype() 179 query_cap = kvzalloc(query_sz, GFP_KERNEL); in esw_ipsec_vf_crypto_aux_caps_set() 180 hca_cap = kvzalloc(set_sz, GFP_KERNEL); in esw_ipsec_vf_crypto_aux_caps_set() 267 query_cap = kvzalloc(query_sz, GFP_KERNEL); in esw_ipsec_offload_supported() 307 query_cap = kvzalloc(query_sz, GFP_KERNEL); in mlx5_esw_ipsec_vf_crypto_offload_supported() [all …]
|