Home
last modified time | relevance | path

Searched refs:kvmalloc (Results 1 – 25 of 137) sorted by relevance

123456

/openbmc/linux/scripts/coccinelle/api/
H A Dkvmalloc.cocci4 /// Suggest to use kvmalloc instead. Same for kvfree.
23 @kvmalloc depends on !patch@
98 + E = kvmalloc(size, flags);
104 + E = kvmalloc(size, GFP_KERNEL);
109 + E = kvmalloc(size, flags);
114 + E = kvmalloc(size, GFP_KERNEL);
119 + T x = kvmalloc(size, flags);
124 + T x = kvmalloc(size, GFP_KERNEL);
235 p << kvmalloc.p;
238 coccilib.report.print_report(p[0], "WARNING opportunity for kvmalloc")
[all …]
H A Dkfree_mismatch.cocci3 /// Check that kvmalloc'ed memory is freed by kfree functions,
4 /// vmalloc'ed by vfree functions and kvmalloc'ed by kvfree
57 E = \(kvmalloc\|kvzalloc\|kvcalloc\|kvzalloc_node\|kvmalloc_node\|
123 * E = \(kvmalloc\|kvzalloc\|kvcalloc\|kvzalloc_node\|kvmalloc_node\|
133 E = \(kvmalloc\|kvzalloc\|kvcalloc\|kvzalloc_node\|kvmalloc_node\|
201 msg = "WARNING kvmalloc is used to allocate this memory at line %s" % (a[0].line)
209 msg = "WARNING kvmalloc is used to allocate this memory at line %s" % (a[0].line)
H A Dmemdup_user.cocci56 - to = \(kvmalloc@p\|kvzalloc@p\)(size,\(GFP_KERNEL\|GFP_USER\));
92 * to = \(kvmalloc@p\|kvzalloc@p\)(size,\(GFP_KERNEL\|GFP_USER\));
/openbmc/linux/Documentation/translations/zh_CN/core-api/
H A Dmemory-allocation.rst126 如果你不确定分配的大小对 `kmalloc` 来说是否太大,可以使用kvmalloc()及其派生函数。它将尝
127 试用kmalloc分配内存,如果分配失败,将用 `vmalloc` 重新尝试。对于哪些GFP标志可以与 `kvmalloc`
128 一起使用是有限制的;请看kvmalloc_node()参考文档。注意, `kvmalloc` 可能会返回物理上不连
137 和 `kvmalloc` 分配的内存。slab缓存应该用kmem_cache_free()来释放。不要忘记用
/openbmc/linux/drivers/staging/media/atomisp/pci/
H A Dsh_css_metrics.c71 histogram->run = kvmalloc(length * sizeof(*histogram->run), in make_histogram()
75 histogram->stall = kvmalloc(length * sizeof(*histogram->stall), in make_histogram()
79 histogram->msink = kvmalloc(length * sizeof(*histogram->msink), in make_histogram()
H A Dsh_css_param_dvs.c34 dvs_config = kvmalloc(sizeof(struct ia_css_dvs_6axis_config), in alloc_dvs_6axis_table()
61 dvs_config->xcoords_y = kvmalloc(width_y * height_y * sizeof(uint32_t), in alloc_dvs_6axis_table()
69 dvs_config->ycoords_y = kvmalloc(width_y * height_y * sizeof(uint32_t), in alloc_dvs_6axis_table()
80 dvs_config->xcoords_uv = kvmalloc(width_uv * height_uv * sizeof(uint32_t), in alloc_dvs_6axis_table()
88 dvs_config->ycoords_uv = kvmalloc(width_uv * height_uv * sizeof(uint32_t), in alloc_dvs_6axis_table()
H A Dsh_css_params.c963 params->fpn_config.data = kvmalloc(array3_size(height, width, sizeof(short)), in sh_css_set_black_frame()
1381 me = kvmalloc(sizeof(*me), GFP_KERNEL); in ia_css_morph_table_allocate()
1393 me->coordinates_x[i] = kvmalloc(height * width * in ia_css_morph_table_allocate()
1396 me->coordinates_y[i] = kvmalloc(height * width * in ia_css_morph_table_allocate()
1528 me = kvmalloc(sizeof(*me), GFP_KERNEL); in ia_css_isp_3a_statistics_map_allocate()
1537 me->data_ptr = kvmalloc(isp_stats->size, GFP_KERNEL); in ia_css_isp_3a_statistics_map_allocate()
2212 md = kvmalloc(sizeof(*md), GFP_KERNEL); in ia_css_metadata_allocate()
2342 kvmalloc(sizeof(struct ia_css_isp_parameters), GFP_KERNEL); in sh_css_create_isp_params()
4142 me->data = kvmalloc(grid_size * sizeof(*me->data), GFP_KERNEL); in ia_css_3a_statistics_allocate()
4146 me->rgby_data = kvmalloc(sizeof_hmem(HMEM0_ID), GFP_KERNEL); in ia_css_3a_statistics_allocate()
[all …]
H A Dsh_css_host_data.c28 me->address = kvmalloc(size, GFP_KERNEL); in ia_css_host_data_allocate()
/openbmc/linux/scripts/coccinelle/api/alloc/
H A Dalloc_cast.cocci37 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\|
60 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\|
83 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\|
100 kvmalloc\|kvzalloc\|kvmalloc_node\|kvzalloc_node\|pci_alloc_consistent\|
H A Dzalloc-simple.cocci39 devm_kmalloc(...,E1,...)\|kvmalloc(E1, ...)\|kvmalloc_node(E1,...)\);
109 - x = kvmalloc(E1,E2);
112 - x = (T *)kvmalloc(E1,E2);
115 - x = (T)kvmalloc(E1,E2);
362 x = (T)kvmalloc@p(E1,E2);
380 msg="WARNING: kvzalloc should be used for %s, instead of kvmalloc/memset" % (x)
/openbmc/linux/drivers/net/wireguard/
H A Dpeerlookup.c24 struct pubkey_hashtable *table = kvmalloc(sizeof(*table), GFP_KERNEL); in wg_pubkey_hashtable_alloc()
85 struct index_hashtable *table = kvmalloc(sizeof(*table), GFP_KERNEL); in wg_index_hashtable_alloc()
/openbmc/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dcrdump.c108 crspace_data = kvmalloc(cr_res_size, GFP_KERNEL); in mlx4_crdump_collect_crspace()
144 health_data = kvmalloc(HEALTH_BUFFER_SIZE, GFP_KERNEL); in mlx4_crdump_collect_fw_health()
/openbmc/linux/lib/
H A Dfortify_kunit.c230 kvmalloc((alloc_pages) * PAGE_SIZE, gfp), \
255 orig = kvmalloc(prev_size, gfp); \
262 DEFINE_ALLOC_SIZE_TEST_PAIR(kvmalloc)
/openbmc/linux/fs/btrfs/
H A Dlzo.c91 workspace->mem = kvmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL | __GFP_NOWARN); in lzo_alloc_workspace()
92 workspace->buf = kvmalloc(WORKSPACE_BUF_LENGTH, GFP_KERNEL | __GFP_NOWARN); in lzo_alloc_workspace()
93 workspace->cbuf = kvmalloc(WORKSPACE_CBUF_LENGTH, GFP_KERNEL | __GFP_NOWARN); in lzo_alloc_workspace()
/openbmc/linux/security/keys/
H A Dbig_key.c87 buf = kvmalloc(enclen, GFP_KERNEL); in big_key_preparse()
242 buf = kvmalloc(enclen, GFP_KERNEL); in big_key_read()
/openbmc/linux/include/linux/
H A Dslab.h736 static inline __alloc_size(1) void *kvmalloc(size_t size, gfp_t flags) in kvmalloc() function
746 return kvmalloc(size, flags | __GFP_ZERO); in kvzalloc()
756 return kvmalloc(bytes, flags); in kvmalloc_array()
H A Dbpfptr.h70 void *p = kvmalloc(len, GFP_USER | __GFP_NOWARN); in kvmemdup_bpfptr()
/openbmc/linux/net/ceph/
H A Dbuffer.c20 b->vec.iov_base = kvmalloc(len, gfp); in ceph_buffer_new()
/openbmc/linux/fs/netfs/
H A Diterator.c55 bv = kvmalloc(bv_size, GFP_KERNEL); in netfs_extract_user_iter()
/openbmc/linux/kernel/module/
H A Ddecompress.c103 s.workspace = kvmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in module_gzip_decompress()
244 wksp = kvmalloc(wksp_size, GFP_KERNEL); in module_zstd_decompress()
/openbmc/linux/Documentation/core-api/
H A Dmemory-allocation.rst159 `kmalloc`, it is possible to use kvmalloc() and its derivatives. It will
162 flags can be used with `kvmalloc`; please see kvmalloc_node() reference
163 documentation. Note that `kvmalloc` may return memory that is not
183 Memory allocated by `kvmalloc` can be freed with `kvfree`.
/openbmc/linux/drivers/media/common/videobuf2/
H A Dframe_vector.c176 vec = kvmalloc(size, GFP_KERNEL); in frame_vector_create()
/openbmc/linux/fs/xfs/scrub/
H A Dattr.c88 ab->usedmap = kvmalloc(bmp_sz, XCHK_GFP_FLAGS); in xchk_setup_xattr_buf()
93 ab->freemap = kvmalloc(bmp_sz, XCHK_GFP_FLAGS); in xchk_setup_xattr_buf()
108 new_val = kvmalloc(value_size, XCHK_GFP_FLAGS); in xchk_setup_xattr_buf()
/openbmc/linux/mm/
H A Dutil.c152 p = kvmalloc(len, gfp); in kvmemdup()
223 p = kvmalloc(len, GFP_USER); in vmemdup_user()
691 newp = kvmalloc(newsize, flags); in kvrealloc()
/openbmc/linux/drivers/staging/media/atomisp/pci/isp/kernels/sdis/sdis_1.0/
H A Dia_css_sdis.host.c363 me = kvmalloc(sizeof(*me), GFP_KERNEL); in ia_css_isp_dvs_statistics_map_allocate()
373 me->data_ptr = kvmalloc(isp_stats->size, GFP_KERNEL); in ia_css_isp_dvs_statistics_map_allocate()

123456