/u-boot/scripts/coccinelle/api/alloc/ |
A D | alloc_cast.cocci | 3 /// like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc. 6 //# malloc, calloc, kmalloc, kmalloc_array, kmalloc_node and removes 33 \(malloc\|calloc\|kmalloc\|kmalloc_array\|kmalloc_node\)(...) 51 \(malloc\|calloc\|kmalloc\|kmalloc_array\|kmalloc_node\)(...) 69 \(malloc\|calloc\|kmalloc\|kmalloc_array\|kmalloc_node\)(...) 81 \(malloc\|calloc\|kmalloc\|kmalloc_array\|kmalloc_node\)(...)
|
/u-boot/lib/ |
A D | linux_compat.c | 20 void *kmalloc(size_t size, int flags) in kmalloc() function 59 p = kmalloc(len, gfp); in kmemdup()
|
A D | list_sort.c | 225 elts = kmalloc(sizeof(void *) * TEST_LIST_LEN, GFP_KERNEL); in list_sort_test() 233 el = kmalloc(sizeof(*el), GFP_KERNEL); in list_sort_test()
|
/u-boot/include/linux/ |
A D | compat.h | 34 void *kmalloc(size_t size, int flags); 38 return kmalloc(size, flags | __GFP_ZERO); in kzalloc() 45 return kmalloc(n * size, flags | __GFP_ZERO); in kmalloc_array() 53 #define vmalloc(size) kmalloc(size, 0) 54 #define __vmalloc(size, flags, pgsz) kmalloc(size, flags)
|
/u-boot/fs/yaffs2/ |
A D | yaffs_allocator.c | 116 new_tnodes = kmalloc(n_tnodes * dev->tnode_size, GFP_NOFS); in yaffs_create_tnodes() 143 tnl = kmalloc(sizeof(struct yaffs_tnode_list), GFP_NOFS); in yaffs_create_tnodes() 259 new_objs = kmalloc(n_obj * sizeof(struct yaffs_obj), GFP_NOFS); in yaffs_create_free_objs() 260 list = kmalloc(sizeof(struct yaffs_obj_list), GFP_NOFS); in yaffs_create_free_objs() 351 allocator = kmalloc(sizeof(struct yaffs_allocator), GFP_NOFS); in yaffs_init_raw_tnodes_and_objs()
|
A D | yaffs_summary.c | 90 dev->sum_tags = kmalloc(sum_tags_bytes, GFP_NOFS); in yaffs_summary_init() 91 dev->gc_sum_tags = kmalloc(sum_tags_bytes, GFP_NOFS); in yaffs_summary_init()
|
A D | yaffs_checkptrw.c | 156 kmalloc(dev->param.total_bytes_per_chunk, GFP_NOFS); in yaffs2_checkpt_open() 183 kmalloc(sizeof(int) * dev->checkpt_max_blocks, GFP_NOFS); in yaffs2_checkpt_open()
|
A D | yaffs_yaffs1.c | 212 kmalloc(sizeof in yaffs1_scan()
|
/u-boot/include/dm/ |
A D | devres.h | 258 return kmalloc(size, gfp); in devm_kmalloc() 272 return kmalloc(n * size, flags); in devm_kmalloc_array() 279 return kmalloc(n * size, flags | __GFP_ZERO); in devm_kcalloc()
|
/u-boot/drivers/mtd/nand/raw/ |
A D | nand_bch.c | 193 nbc->eccmask = kmalloc(eccbytes, GFP_KERNEL); in nand_bch_init() 194 nbc->errloc = kmalloc(t*sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init() 200 erased_page = kmalloc(eccsize, GFP_KERNEL); in nand_bch_init()
|
/u-boot/lib/crypto/ |
A D | x509_public_key.c | 107 sig->digest = kmalloc(sig->digest_size, GFP_KERNEL); in x509_get_sig_params() 248 desc = kmalloc(sulen + 2 + srlen * 2 + 1, GFP_KERNEL); in x509_key_preparse() 258 kids = kmalloc(sizeof(struct asymmetric_key_ids), GFP_KERNEL); in x509_key_preparse()
|
A D | public_key.c | 220 key = kmalloc(pkey->keylen + sizeof(u32) * 2 + pkey->paramlen, in software_key_query() 289 key = kmalloc(pkey->keylen + sizeof(u32) * 2 + pkey->paramlen, in software_key_eds_op() 380 key = kmalloc(pkey->keylen + sizeof(u32) * 2 + pkey->paramlen, in public_key_verify_signature()
|
A D | asymmetric_type.c | 85 p = req = kmalloc(2 + 1 + len * 2 + 1, GFP_KERNEL); in find_asymmetric_key() 160 kid = kmalloc(sizeof(struct asymmetric_key_id) + len_1 + len_2, in asymmetric_key_generate_id() 251 match_id = kmalloc(sizeof(struct asymmetric_key_id) + asciihexlen / 2, in asymmetric_key_hex_to_key_id()
|
A D | x509_cert_parser.c | 352 buffer = kmalloc(1, GFP_KERNEL); in x509_fabricate_name() 374 buffer = kmalloc(ctx->o_size + 2 + ctx->cn_size + 1, in x509_fabricate_name() 400 buffer = kmalloc(namesize + 1, GFP_KERNEL); in x509_fabricate_name()
|
/u-boot/drivers/misc/ |
A D | k3_esm.c | 56 pins = kmalloc(num_pins * sizeof(u32), __GFP_ZERO); in k3_esm_probe()
|
/u-boot/drivers/mtd/ubi/ |
A D | eba.c | 135 le = kmalloc(sizeof(struct ubi_ltree_entry), GFP_NOFS); in ltree_add_entry() 1305 scan_eba = kmalloc(sizeof(*scan_eba) * num_volumes, GFP_KERNEL); in self_check_eba() 1309 fm_eba = kmalloc(sizeof(*fm_eba) * num_volumes, GFP_KERNEL); in self_check_eba() 1320 scan_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**scan_eba), in self_check_eba() 1327 fm_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**fm_eba), in self_check_eba() 1411 vol->eba_tbl = kmalloc(vol->reserved_pebs * sizeof(int), in ubi_eba_init()
|
A D | fastmap-wl.c | 301 wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS); in ubi_ensure_anchor_pebs()
|
/u-boot/fs/ubifs/ |
A D | super.c | 286 ino = kmalloc(UBIFS_MAX_INO_NODE_SZ, GFP_NOFS); in ubifs_iget() 333 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget() 359 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget() 374 ui->data = kmalloc(sizeof(union ubifs_dev_desc), GFP_NOFS); in ubifs_iget() 413 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget() 1293 c->bu.buf = kmalloc(c->max_bu_buf_len, GFP_KERNEL | __GFP_NOWARN); in bu_init() 1391 c->bottom_up_buf = kmalloc(BOTTOM_UP_HEIGHT * sizeof(int), GFP_KERNEL); in mount_ubifs() 1412 c->write_reserve_buf = kmalloc(COMPRESSED_DATA_NODE_BUF_SZ, in mount_ubifs() 1444 c->cbuf = kmalloc(sz, GFP_NOFS); in mount_ubifs() 1854 c->write_reserve_buf = kmalloc(COMPRESSED_DATA_NODE_BUF_SZ, GFP_KERNEL); in ubifs_remount_rw()
|
A D | lpt.c | 628 lsave = kmalloc(sizeof(int) * c->lsave_cnt, GFP_KERNEL); in ubifs_create_dflt_lpt() 1502 n = kmalloc(sizeof(struct ubifs_nnode), GFP_NOFS); in dirty_cow_nnode() 1553 p = kmalloc(sizeof(struct ubifs_pnode), GFP_NOFS); in dirty_cow_pnode() 1637 c->lpt_nod_buf = kmalloc(i, GFP_KERNEL); in lpt_init_rd() 1642 c->lpt_heap[i].arr = kmalloc(sizeof(void *) * LPT_HEAP_SZ, in lpt_init_rd() 1650 c->dirty_idx.arr = kmalloc(sizeof(void *) * LPT_HEAP_SZ, GFP_KERNEL); in lpt_init_rd() 1704 c->lsave = kmalloc(sizeof(int) * c->lsave_cnt, GFP_NOFS); in lpt_init_wr() 1951 path = kmalloc(sizeof(struct lpt_scan_node) * (c->lpt_hght + 1), in ubifs_lpt_scan_nolock()
|
A D | replay.c | 414 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent() 748 bud = kmalloc(sizeof(struct ubifs_bud), GFP_KERNEL); in add_replay_bud() 752 b = kmalloc(sizeof(struct bud_entry), GFP_KERNEL); in add_replay_bud()
|
A D | scan.c | 195 snod = kmalloc(sizeof(struct ubifs_scan_node), GFP_NOFS); in ubifs_add_snod()
|
A D | log.c | 175 bud = kmalloc(sizeof(struct ubifs_bud), GFP_NOFS); in ubifs_add_bud_to_log() 365 buf = cs = kmalloc(max_len, GFP_NOFS); in ubifs_log_start_commit()
|
A D | gc.c | 532 idx_gc = kmalloc(sizeof(struct ubifs_gced_idx_leb), GFP_NOFS); in ubifs_garbage_collect_leb() 878 idx_gc = kmalloc(sizeof(struct ubifs_gced_idx_leb), GFP_NOFS); in ubifs_gc_start_commit()
|
A D | tnc_misc.c | 272 idx = kmalloc(c->max_idx_node_sz, GFP_NOFS); in read_znode()
|
/u-boot/drivers/core/ |
A D | devres.c | 83 dr = kmalloc(tot_size, gfp); in __devres_alloc()
|