Home
last modified time | relevance | path

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

1234

/OK3568_Linux_fs/kernel/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\));
/OK3568_Linux_fs/kernel/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)
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/
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_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_params.c967 params->fpn_config.data = kvmalloc(height * width * in sh_css_set_black_frame()
1398 me = kvmalloc(sizeof(*me), GFP_KERNEL); in ia_css_morph_table_allocate()
1410 me->coordinates_x[i] = kvmalloc(height * width * in ia_css_morph_table_allocate()
1413 me->coordinates_y[i] = kvmalloc(height * width * in ia_css_morph_table_allocate()
1547 me = kvmalloc(sizeof(*me), GFP_KERNEL); in ia_css_isp_3a_statistics_map_allocate()
1556 me->data_ptr = kvmalloc(isp_stats->size, GFP_KERNEL); in ia_css_isp_3a_statistics_map_allocate()
2312 md = kvmalloc(sizeof(*md), GFP_KERNEL); in ia_css_metadata_allocate()
2443 kvmalloc(sizeof(struct ia_css_isp_parameters), GFP_KERNEL); in sh_css_create_isp_params()
4360 me->data = kvmalloc(grid_size * sizeof(*me->data), GFP_KERNEL); in ia_css_3a_statistics_allocate()
4365 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()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/fs/btrfs/
H A Dlzo.c84 workspace->mem = kvmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in lzo_alloc_workspace()
85 workspace->buf = kvmalloc(lzo1x_worst_compress(PAGE_SIZE), GFP_KERNEL); in lzo_alloc_workspace()
86 workspace->cbuf = kvmalloc(lzo1x_worst_compress(PAGE_SIZE), GFP_KERNEL); in lzo_alloc_workspace()
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/security/keys/
H A Dbig_key.c84 buf = kvmalloc(enclen, GFP_KERNEL); in big_key_preparse()
245 buf = kvmalloc(enclen, GFP_KERNEL); in big_key_read()
H A Dkeyctl.c116 payload = kvmalloc(plen, GFP_KERNEL); in SYSCALL_DEFINE5()
341 payload = kvmalloc(plen, GFP_KERNEL); in keyctl_update_key()
893 key_data = kvmalloc(key_data_len, GFP_KERNEL); in keyctl_read_key()
1203 payload = kvmalloc(plen, GFP_KERNEL); in keyctl_instantiate_key_common()
/OK3568_Linux_fs/kernel/Documentation/core-api/
H A Dmemory-allocation.rst155 `kmalloc`, it is possible to use kvmalloc() and its derivatives. It will
158 flags can be used with `kvmalloc`; please see kvmalloc_node() reference
159 documentation. Note that `kvmalloc` may return memory that is not
171 `kvmalloc`. The slab caches should be freed with kmem_cache_free(). And
/OK3568_Linux_fs/kernel/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()
/OK3568_Linux_fs/kernel/net/ceph/
H A Dceph_common.c206 p = kvmalloc(size, flags); in ceph_kvmalloc()
209 p = kvmalloc(size, GFP_KERNEL); in ceph_kvmalloc()
213 p = kvmalloc(size, GFP_KERNEL); in ceph_kvmalloc()
/OK3568_Linux_fs/kernel/mm/
H A Dframe_vector.c200 vec = kvmalloc(size, GFP_KERNEL); in frame_vector_create()
H A Dlist_lru.c357 memcg_lrus = kvmalloc(sizeof(*memcg_lrus) + in memcg_init_list_lru_node()
400 new = kvmalloc(sizeof(*new) + new_size * sizeof(void *), GFP_KERNEL); in memcg_update_list_lru_node()
/OK3568_Linux_fs/kernel/crypto/
H A Dlzo.c22 ctx = kvmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in lzo_alloc_ctx()
H A Dlzo-rle.c22 ctx = kvmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in lzorle_alloc_ctx()
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/runtime/rmgr/src/
H A Drmgr_vbuf.c156 pool->handles = kvmalloc(bytes_needed, GFP_KERNEL); in ia_css_rmgr_init_vbuf()
/OK3568_Linux_fs/kernel/drivers/staging/media/atomisp/pci/base/refcount/src/
H A Drefcount.c85 kvmalloc(sizeof(struct ia_css_refcount_entry) * size, GFP_KERNEL); in ia_css_refcount_init()
/OK3568_Linux_fs/kernel/fs/
H A Dxattr.c530 kvalue = kvmalloc(size, GFP_KERNEL); in setxattr()
710 klist = kvmalloc(size, GFP_KERNEL); in listxattr()
917 new_xattr = kvmalloc(len, GFP_KERNEL); in simple_xattr_alloc()
/OK3568_Linux_fs/kernel/drivers/bluetooth/
H A Dbtrtl.c393 buf = kvmalloc(patch_length, GFP_KERNEL); in rtlbt_parse_firmware()
483 *buff = kvmalloc(fw->size, GFP_KERNEL); in rtl_load_file()

1234