Home
last modified time | relevance | path

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

12345678910>>...94

/linux-3.4.99/mm/
Dkmemleak-test.c53 pr_info("kmemleak: kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init()
54 pr_info("kmemleak: kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init()
55 pr_info("kmemleak: kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init()
56 pr_info("kmemleak: kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init()
57 pr_info("kmemleak: kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init()
58 pr_info("kmemleak: kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init()
59 pr_info("kmemleak: kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init()
60 pr_info("kmemleak: kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init()
87 per_cpu(kmemleak_test_pointer, i) = kmalloc(129, GFP_KERNEL); in kmemleak_test_init()
/linux-3.4.99/scripts/coccinelle/api/alloc/
Ddrop_kmalloc_cast.cocci2 /// Casting (void *) value returned by kmalloc is useless
10 // Keywords: kmalloc, kzalloc, kcalloc
11 // Version min: < 2.6.12 kmalloc
30 \(kmalloc\|kzalloc\|kcalloc\)(...)
41 \(kmalloc\|kzalloc\|kcalloc\)(...)
52 (T@p *)\(kmalloc\|kzalloc\|kcalloc\)(...)
Dkzalloc-simple.cocci2 /// Use kzalloc rather than kmalloc followed by memset with 0
14 // Keywords: kmalloc, kzalloc
15 // Version min: < 2.6.12 kmalloc
35 * x = (T)kmalloc(E1,E2);
50 - x = (T)kmalloc(E1,E2);
67 x = (T)kmalloc@p(E1,E2);
85 msg="WARNING: kzalloc should be used for %s, instead of kmalloc/memset" % (x)
/linux-3.4.99/net/batman-adv/
Dhash.c49 hash = kmalloc(sizeof(*hash), GFP_ATOMIC); in hash_new()
53 hash->table = kmalloc(sizeof(*hash->table) * size, GFP_ATOMIC); in hash_new()
57 hash->list_locks = kmalloc(sizeof(*hash->list_locks) * size, in hash_new()
/linux-3.4.99/scripts/coccinelle/api/
Dmemdup.cocci22 to = \(kmalloc@p\|kzalloc@p\)(strlen(from) + 1,flag);
32 to = \(kmalloc@p\|kzalloc@p\)(x,flag);
40 - to = \(kmalloc@p\|kzalloc@p\)(size,flag);
51 * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
Dkstrdup.cocci22 - to = kmalloc(strlen(from) + 1,flag);
37 - to = \(kmalloc\|kzalloc\)(x,flag);
53 * to = kmalloc@p1(strlen(from) + 1,flag);
68 * to = \(kmalloc@p1\|kzalloc@p2\)(x,flag);
/linux-3.4.99/scripts/coccinelle/null/
Dkmerr.cocci1 /// This semantic patch looks for kmalloc etc that are not followed by a
4 /// in determining what the error handling code for the call to kmalloc etc
37 *x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
53 x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
/linux-3.4.99/drivers/xen/
Dsys-hypervisor.c80 extra = kmalloc(XEN_EXTRAVERSION_LEN, GFP_KERNEL); in extra_show()
157 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compiler_show()
175 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compiled_by_show()
193 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compile_date_show()
235 caps = kmalloc(XEN_CAPABILITIES_INFO_LEN, GFP_KERNEL); in capabilities_show()
253 cset = kmalloc(XEN_CHANGESET_INFO_LEN, GFP_KERNEL); in changeset_show()
271 parms = kmalloc(sizeof(struct xen_platform_parameters), GFP_KERNEL); in virtual_start_show()
/linux-3.4.99/drivers/usb/misc/
Dcytherm.c104 buffer = kmalloc(8, GFP_KERNEL); in set_brightness()
151 buffer = kmalloc(8, GFP_KERNEL); in show_temp()
195 buffer = kmalloc(8, GFP_KERNEL); in show_button()
233 buffer = kmalloc(8, GFP_KERNEL); in show_port0()
260 buffer = kmalloc(8, GFP_KERNEL); in set_port0()
293 buffer = kmalloc(8, GFP_KERNEL); in show_port1()
320 buffer = kmalloc(8, GFP_KERNEL); in set_port1()
/linux-3.4.99/drivers/infiniband/core/
Dcache.c220 tprops = kmalloc(sizeof *tprops, GFP_KERNEL); in ib_cache_update()
231 pkey_cache = kmalloc(sizeof *pkey_cache + tprops->pkey_tbl_len * in ib_cache_update()
238 gid_cache = kmalloc(sizeof *gid_cache + tprops->gid_tbl_len * in ib_cache_update()
307 work = kmalloc(sizeof *work, GFP_ATOMIC); in ib_cache_event()
324 kmalloc(sizeof *device->cache.pkey_cache * in ib_cache_setup_one()
327 kmalloc(sizeof *device->cache.gid_cache * in ib_cache_setup_one()
330 device->cache.lmc_cache = kmalloc(sizeof *device->cache.lmc_cache * in ib_cache_setup_one()
/linux-3.4.99/drivers/infiniband/hw/cxgb4/
Dresource.c189 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
200 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
206 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid()
224 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_cqid()
253 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
264 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
270 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid()
288 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_qpid()
/linux-3.4.99/include/linux/
Dslob_def.h27 static __always_inline void *kmalloc(size_t size, gfp_t flags) in kmalloc() function
34 return kmalloc(size, flags); in __kmalloc()
/linux-3.4.99/drivers/infiniband/hw/cxgb3/
Dcxio_dbg.c47 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_tpt()
84 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_pbl()
146 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_rqt()
179 m = kmalloc(sizeof(*m) + size, GFP_ATOMIC); in cxio_dump_tcb()
/linux-3.4.99/drivers/infiniband/hw/mlx4/
Dmr.c52 mr = kmalloc(sizeof *mr, GFP_KERNEL); in mlx4_ib_get_dma_mr()
134 mr = kmalloc(sizeof *mr, GFP_KERNEL); in mlx4_ib_reg_user_mr()
196 mr = kmalloc(sizeof *mr, GFP_KERNEL); in mlx4_ib_alloc_fast_reg_mr()
232 mfrpl = kmalloc(sizeof *mfrpl, GFP_KERNEL); in mlx4_ib_alloc_fast_reg_page_list()
236 mfrpl->ibfrpl.page_list = kmalloc(size, GFP_KERNEL); in mlx4_ib_alloc_fast_reg_page_list()
275 fmr = kmalloc(sizeof *fmr, GFP_KERNEL); in mlx4_ib_fmr_alloc()
/linux-3.4.99/lib/zlib_inflate/
Dinfutil.c17 strm = kmalloc(sizeof(*strm), GFP_KERNEL); in zlib_inflate_blob()
20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
/linux-3.4.99/drivers/clk/
Dclk-fixed-rate.c61 parent_names = kmalloc(sizeof(char *), GFP_KERNEL); in clk_register_fixed_rate()
68 parent_names[0] = kmalloc(len, GFP_KERNEL); in clk_register_fixed_rate()
/linux-3.4.99/arch/cris/arch-v32/mm/
Dintmem.c37 alloc = kmalloc(sizeof *alloc, GFP_KERNEL); in crisv32_intmem_init()
66 alloc = kmalloc(sizeof *alloc, GFP_ATOMIC); in crisv32_intmem_alloc()
76 tmp = kmalloc(sizeof *tmp, GFP_ATOMIC); in crisv32_intmem_alloc()
/linux-3.4.99/drivers/infiniband/hw/mthca/
Dmthca_allocator.c93 alloc->table = kmalloc(BITS_TO_LONGS(num) * sizeof (long), in mthca_alloc_init()
165 array->page_list = kmalloc(npage * sizeof *array->page_list, GFP_KERNEL); in mthca_array_init()
223 dma_list = kmalloc(npages * sizeof *dma_list, GFP_KERNEL); in mthca_buf_alloc()
234 dma_list = kmalloc(npages * sizeof *dma_list, GFP_KERNEL); in mthca_buf_alloc()
238 buf->page_list = kmalloc(npages * sizeof *buf->page_list, in mthca_buf_alloc()
Dmthca_provider.c69 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_device()
141 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_port()
236 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_pkey()
265 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_gid()
315 context = kmalloc(sizeof *context, GFP_KERNEL); in mthca_alloc_ucontext()
378 pd = kmalloc(sizeof *pd, GFP_KERNEL); in mthca_alloc_pd()
413 ah = kmalloc(sizeof *ah, GFP_ATOMIC); in mthca_ah_create()
446 srq = kmalloc(sizeof *srq, GFP_KERNEL); in mthca_create_srq()
528 qp = kmalloc(sizeof *qp, GFP_KERNEL); in mthca_create_qp()
594 qp = kmalloc(sizeof (struct mthca_sqp), GFP_KERNEL); in mthca_create_qp()
[all …]
/linux-3.4.99/drivers/pci/hotplug/
Dcpqphp_pci.c164 fakedev = kmalloc(sizeof(*fakedev), GFP_KERNEL); in cpqhp_set_irq()
165 fakebus = kmalloc(sizeof(*fakebus), GFP_KERNEL); in cpqhp_set_irq()
729 bus_node = kmalloc(sizeof(*bus_node), GFP_KERNEL); in cpqhp_save_used_resources()
744 io_node = kmalloc(sizeof(*io_node), GFP_KERNEL); in cpqhp_save_used_resources()
760 mem_node = kmalloc(sizeof(*mem_node), GFP_KERNEL); in cpqhp_save_used_resources()
776 p_mem_node = kmalloc(sizeof(*p_mem_node), GFP_KERNEL); in cpqhp_save_used_resources()
807 io_node = kmalloc(sizeof(*io_node), in cpqhp_save_used_resources()
825 p_mem_node = kmalloc(sizeof(*p_mem_node), in cpqhp_save_used_resources()
842 mem_node = kmalloc(sizeof(*mem_node), in cpqhp_save_used_resources()
879 io_node = kmalloc(sizeof(*io_node), in cpqhp_save_used_resources()
[all …]
/linux-3.4.99/drivers/mtd/maps/
Dvmu-flash.c78 vblock = kmalloc(sizeof(struct vmu_block), GFP_KERNEL); in ofs_to_block()
131 pcache->buffer = kmalloc(card->blocklen, GFP_KERNEL); in maple_vmu_read_block()
161 blockread = kmalloc(card->blocklen/card->readcnt, GFP_KERNEL); in maple_vmu_read_block()
244 sendbuf = kmalloc(phaselen + 4, GFP_KERNEL); in maple_vmu_write_block()
320 buf = kmalloc(card->blocklen, GFP_KERNEL); in vmu_flash_read_char()
448 buffer = kmalloc(card->blocklen, GFP_KERNEL); in vmu_flash_write()
527 part_cur->name = kmalloc(12, GFP_KERNEL); in vmu_queryblocks()
544 mpart = kmalloc(sizeof(struct mdev_part), GFP_KERNEL); in vmu_queryblocks()
614 card = kmalloc(sizeof(struct memcard), GFP_KERNEL); in vmu_connect()
632 card->parts = kmalloc(sizeof(struct vmupart) * card->partitions, in vmu_connect()
[all …]
/linux-3.4.99/lib/reed_solomon/
Dreed_solomon.c73 rs = kmalloc(sizeof (struct rs_control), GFP_KERNEL); in rs_init()
88 rs->alpha_to = kmalloc(sizeof(uint16_t) * (rs->nn + 1), GFP_KERNEL); in rs_init()
92 rs->index_of = kmalloc(sizeof(uint16_t) * (rs->nn + 1), GFP_KERNEL); in rs_init()
96 rs->genpoly = kmalloc(sizeof(uint16_t) * (rs->nroots + 1), GFP_KERNEL); in rs_init()
/linux-3.4.99/fs/9p/
Dxattr_user.c37 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_user_get()
64 full_name = kmalloc(prefix_len + name_len + 1 , GFP_KERNEL); in v9fs_xattr_user_set()
/linux-3.4.99/net/ceph/
Dbuffer.c14 b = kmalloc(sizeof(*b), gfp); in ceph_buffer_new()
18 b->vec.iov_base = kmalloc(len, gfp | __GFP_NOWARN); in ceph_buffer_new()
/linux-3.4.99/drivers/mtd/nand/
Dnand_bch.c200 nbc->eccmask = kmalloc(eccbytes, GFP_KERNEL); in nand_bch_init()
201 nbc->errloc = kmalloc(t*sizeof(*nbc->errloc), GFP_KERNEL); in nand_bch_init()
207 erased_page = kmalloc(eccsize, GFP_KERNEL); in nand_bch_init()

12345678910>>...94