Home
last modified time | relevance | path

Searched refs:kmalloc (Results 1 – 25 of 57) sorted by relevance

123

/rk3399_rockchip-uboot/include/linux/
H A Dcompat.h54 void *kmalloc(size_t size, int flags);
58 return kmalloc(size, flags | __GFP_ZERO); in kzalloc()
65 return kmalloc(n * size, flags | __GFP_ZERO); in kmalloc_array()
73 #define vmalloc(size) kmalloc(size, 0)
74 #define __vmalloc(size, flags, pgsz) kmalloc(size, flags)
/rk3399_rockchip-uboot/fs/yaffs2/
H A Dyaffs_allocator.c115 new_tnodes = kmalloc(n_tnodes * dev->tnode_size, GFP_NOFS); in yaffs_create_tnodes()
142 tnl = kmalloc(sizeof(struct yaffs_tnode_list), GFP_NOFS); in yaffs_create_tnodes()
258 new_objs = kmalloc(n_obj * sizeof(struct yaffs_obj), GFP_NOFS); in yaffs_create_free_objs()
259 list = kmalloc(sizeof(struct yaffs_obj_list), GFP_NOFS); in yaffs_create_free_objs()
350 allocator = kmalloc(sizeof(struct yaffs_allocator), GFP_NOFS); in yaffs_init_raw_tnodes_and_objs()
H A Dyaffs_summary.c89 dev->sum_tags = kmalloc(sum_tags_bytes, GFP_NOFS); in yaffs_summary_init()
90 dev->gc_sum_tags = kmalloc(sum_tags_bytes, GFP_NOFS); in yaffs_summary_init()
H A Dyaffs_checkptrw.c155 kmalloc(dev->param.total_bytes_per_chunk, GFP_NOFS); in yaffs2_checkpt_open()
182 kmalloc(sizeof(int) * dev->checkpt_max_blocks, GFP_NOFS); in yaffs2_checkpt_open()
H A Dyaffs_yaffs1.c211 kmalloc(sizeof in yaffs1_scan()
/rk3399_rockchip-uboot/drivers/mtd/nand/raw/
H A Dnand_bch.c191 nbc->eccmask = kmalloc(eccbytes, GFP_KERNEL); in nand_bch_init()
192 nbc->errloc = kmalloc(t*sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init()
198 erased_page = kmalloc(eccsize, GFP_KERNEL); in nand_bch_init()
/rk3399_rockchip-uboot/lib/
H A Dlinux_compat.c17 void *kmalloc(size_t size, int flags) in kmalloc() function
H A Dlist_sort.c223 elts = kmalloc(sizeof(void *) * TEST_LIST_LEN, GFP_KERNEL); in list_sort_test()
231 el = kmalloc(sizeof(*el), GFP_KERNEL); in list_sort_test()
/rk3399_rockchip-uboot/include/dm/
H A Ddevice.h855 return kmalloc(size, gfp); in devm_kmalloc()
869 return kmalloc(n * size, flags); in devm_kmaloc_array()
876 return kmalloc(n * size, flags | __GFP_ZERO); in devm_kcalloc()
/rk3399_rockchip-uboot/drivers/mtd/ubi/
H A Deba.c133 le = kmalloc(sizeof(struct ubi_ltree_entry), GFP_NOFS); in ltree_add_entry()
1303 scan_eba = kmalloc(sizeof(*scan_eba) * num_volumes, GFP_KERNEL); in self_check_eba()
1307 fm_eba = kmalloc(sizeof(*fm_eba) * num_volumes, GFP_KERNEL); in self_check_eba()
1318 scan_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**scan_eba), in self_check_eba()
1325 fm_eba[i] = kmalloc(vol->reserved_pebs * sizeof(**fm_eba), in self_check_eba()
1409 vol->eba_tbl = kmalloc(vol->reserved_pebs * sizeof(int), in ubi_eba_init()
H A Dfastmap-wl.c302 wrk = kmalloc(sizeof(struct ubi_work), GFP_NOFS); in ubi_ensure_anchor_pebs()
H A Dvmt.c240 vol->eba_tbl = kmalloc(vol->reserved_pebs * sizeof(int), GFP_KERNEL); in ubi_create_volume()
451 new_mapping = kmalloc(reserved_pebs * sizeof(int), GFP_KERNEL); in ubi_resize_volume()
/rk3399_rockchip-uboot/fs/ubifs/
H A Dsuper.c283 ino = kmalloc(UBIFS_MAX_INO_NODE_SZ, GFP_NOFS); in ubifs_iget()
330 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget()
356 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget()
371 ui->data = kmalloc(sizeof(union ubifs_dev_desc), GFP_NOFS); in ubifs_iget()
410 ui->data = kmalloc(ui->data_len + 1, GFP_NOFS); in ubifs_iget()
1290 c->bu.buf = kmalloc(c->max_bu_buf_len, GFP_KERNEL | __GFP_NOWARN); in bu_init()
1385 c->bottom_up_buf = kmalloc(BOTTOM_UP_HEIGHT * sizeof(int), GFP_KERNEL); in mount_ubifs()
1406 c->write_reserve_buf = kmalloc(COMPRESSED_DATA_NODE_BUF_SZ, in mount_ubifs()
1438 c->cbuf = kmalloc(sz, GFP_NOFS); in mount_ubifs()
1848 c->write_reserve_buf = kmalloc(COMPRESSED_DATA_NODE_BUF_SZ, GFP_KERNEL); in ubifs_remount_rw()
H A Dlpt.c627 lsave = kmalloc(sizeof(int) * c->lsave_cnt, GFP_KERNEL); in ubifs_create_dflt_lpt()
1501 n = kmalloc(sizeof(struct ubifs_nnode), GFP_NOFS); in dirty_cow_nnode()
1552 p = kmalloc(sizeof(struct ubifs_pnode), GFP_NOFS); in dirty_cow_pnode()
1636 c->lpt_nod_buf = kmalloc(i, GFP_KERNEL); in lpt_init_rd()
1641 c->lpt_heap[i].arr = kmalloc(sizeof(void *) * LPT_HEAP_SZ, in lpt_init_rd()
1649 c->dirty_idx.arr = kmalloc(sizeof(void *) * LPT_HEAP_SZ, GFP_KERNEL); in lpt_init_rd()
1703 c->lsave = kmalloc(sizeof(int) * c->lsave_cnt, GFP_NOFS); in lpt_init_wr()
1950 path = kmalloc(sizeof(struct lpt_scan_node) * (c->lpt_hght + 1), in ubifs_lpt_scan_nolock()
H A Dreplay.c413 nbuf = kmalloc(nlen + 1, GFP_KERNEL); in insert_dent()
747 bud = kmalloc(sizeof(struct ubifs_bud), GFP_KERNEL); in add_replay_bud()
751 b = kmalloc(sizeof(struct bud_entry), GFP_KERNEL); in add_replay_bud()
H A Dscan.c194 snod = kmalloc(sizeof(struct ubifs_scan_node), GFP_NOFS); in ubifs_add_snod()
H A Dlog.c174 bud = kmalloc(sizeof(struct ubifs_bud), GFP_NOFS); in ubifs_add_bud_to_log()
364 buf = cs = kmalloc(max_len, GFP_NOFS); in ubifs_log_start_commit()
H A Dgc.c531 idx_gc = kmalloc(sizeof(struct ubifs_gced_idx_leb), GFP_NOFS); in ubifs_garbage_collect_leb()
877 idx_gc = kmalloc(sizeof(struct ubifs_gced_idx_leb), GFP_NOFS); in ubifs_gc_start_commit()
H A Dtnc.c82 old_idx = kmalloc(sizeof(struct ubifs_old_idx), GFP_NOFS); in insert_old_idx()
201 zn = kmalloc(c->max_znode_sz, GFP_NOFS); in copy_znode()
542 dent = kmalloc(zbr->len, GFP_NOFS); in matches_name()
830 dent = kmalloc(zbr->len, GFP_NOFS); in fallible_matches_name()
1102 c->bottom_up_buf = kmalloc(c->zroot.znode->level * sizeof(int), in dirty_cow_bottom_up()
2820 dent = kmalloc(zbr->len, GFP_NOFS); in ubifs_tnc_next_ent()
H A Dubifs.c85 p = kmalloc(len, gfp); in kmemdup()
755 dn = kmalloc(UBIFS_MAX_DATA_NODE_SZ, GFP_NOFS); in do_readpage()
H A Dtnc_misc.c271 idx = kmalloc(c->max_idx_node_sz, GFP_NOFS); in read_znode()
/rk3399_rockchip-uboot/drivers/core/
H A Ddevres.c68 dr = kmalloc(tot_size, gfp); in __devres_alloc()
/rk3399_rockchip-uboot/drivers/video/drm/rk628/
H A Dpanel.c32 p = kmalloc(len, gfp); in kmemdup()
/rk3399_rockchip-uboot/drivers/mtd/
H A Dmtdconcat.c437 erase = kmalloc(sizeof (struct erase_info), GFP_KERNEL); in concat_erase()
882 kmalloc(num_erase_region * in mtd_concat_create()
/rk3399_rockchip-uboot/cmd/
H A Dmtd.c318 buf = kmalloc(len + oob_len, GFP_KERNEL); in do_mtd()

123