/linux-4.4.14/mm/ |
D | kmemleak-test.c | 55 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init() 56 pr_info("kmalloc(32) = %p\n", kmalloc(32, GFP_KERNEL)); in kmemleak_test_init() 57 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init() 58 pr_info("kmalloc(1024) = %p\n", kmalloc(1024, GFP_KERNEL)); in kmemleak_test_init() 59 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init() 60 pr_info("kmalloc(2048) = %p\n", kmalloc(2048, GFP_KERNEL)); in kmemleak_test_init() 61 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init() 62 pr_info("kmalloc(4096) = %p\n", kmalloc(4096, GFP_KERNEL)); in kmemleak_test_init() 89 per_cpu(kmemleak_test_pointer, i) = kmalloc(129, GFP_KERNEL); in kmemleak_test_init()
|
/linux-4.4.14/lib/ |
D | test_kasan.c | 26 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_right() 42 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_left() 74 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_large_oob_right() 91 ptr1 = kmalloc(size1, GFP_KERNEL); in kmalloc_oob_krealloc_more() 110 ptr1 = kmalloc(size1, GFP_KERNEL); in kmalloc_oob_krealloc_less() 128 ptr1 = kmalloc(sizeof(*ptr1) - 3, GFP_KERNEL); in kmalloc_oob_16() 129 ptr2 = kmalloc(sizeof(*ptr2), GFP_KERNEL); in kmalloc_oob_16() 147 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_memset_2() 163 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_memset_4() 180 ptr = kmalloc(size, GFP_KERNEL); in kmalloc_oob_memset_8() [all …]
|
D | test-string_helpers.c | 67 char *in = kmalloc(q_real, GFP_KERNEL); in test_string_unescape() 68 char *out_test = kmalloc(q_real, GFP_KERNEL); in test_string_unescape() 69 char *out_real = kmalloc(q_real, GFP_KERNEL); in test_string_unescape() 280 char *out_test = kmalloc(out_size, GFP_KERNEL); in test_string_escape() 281 char *out_real = kmalloc(out_size, GFP_KERNEL); in test_string_escape() 282 char *in = kmalloc(256, GFP_KERNEL); in test_string_escape()
|
D | parser.c | 136 buf = kmalloc(len + 1, GFP_KERNEL); in match_number() 284 char *p = kmalloc(sz, GFP_KERNEL); in match_strdup()
|
D | decompress_unxz.c | 153 #undef kmalloc 157 #define kmalloc(size, flags) malloc(size) macro
|
D | argv_split.c | 71 argv = kmalloc(sizeof(*argv) * (argc + 2), gfp); in argv_split()
|
D | once.c | 25 w = kmalloc(sizeof(*w), GFP_ATOMIC); in once_disable_jump()
|
/linux-4.4.14/drivers/staging/rtl8712/ |
D | rtl871x_cmd.c | 67 pcmdpriv->cmd_allocated_buf = kmalloc(MAX_CMDSZ + CMDBUFF_ALIGN_SZ, in _init_cmd_priv() 74 pcmdpriv->rsp_allocated_buf = kmalloc(MAX_RSPSZ + 4, GFP_ATOMIC); in _init_cmd_priv() 89 pevtpriv->evt_allocated_buf = kmalloc(MAX_EVTSZ + 4, GFP_ATOMIC); in _init_evt_priv() 230 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); in r8712_sitesurvey_cmd() 233 psurveyPara = kmalloc(sizeof(*psurveyPara), GFP_ATOMIC); in r8712_sitesurvey_cmd() 263 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); in r8712_setdatarate_cmd() 266 pbsetdataratepara = kmalloc(sizeof(*pbsetdataratepara), GFP_ATOMIC); in r8712_setdatarate_cmd() 285 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); in r8712_set_chplan_cmd() 288 psetchplanpara = kmalloc(sizeof(*psetchplanpara), GFP_ATOMIC); in r8712_set_chplan_cmd() 306 ph2c = kmalloc(sizeof(*ph2c), GFP_ATOMIC); in r8712_setbasicrate_cmd() [all …]
|
D | rtl871x_io.c | 63 pintf_priv = pintf_hdl->pintfpriv = kmalloc(sizeof(struct intf_priv), in _init_intf_hdl() 115 pio_queue = kmalloc(sizeof(*pio_queue), GFP_ATOMIC); in r8712_alloc_io_queue() 122 pio_queue->pallocated_free_ioreqs_buf = kmalloc(NUM_IOREQ * in r8712_alloc_io_queue()
|
/linux-4.4.14/scripts/coccinelle/api/alloc/ |
D | kzalloc-simple.cocci | 2 /// 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)
|
D | alloc_cast.cocci | 2 /// like kmalloc, kzalloc, kmem_cache_alloc, kmem_cache_zalloc etc. 5 //# kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc, 30 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 42 (\(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 54 (T@p *)\(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
|
/linux-4.4.14/scripts/coccinelle/api/ |
D | memdup.cocci | 22 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);
|
D | kstrdup.cocci | 22 - 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);
|
D | memdup_user.cocci | 22 - to = \(kmalloc\|kzalloc\)(size,flag); 45 * to = \(kmalloc@p\|kzalloc@p\)(size,flag);
|
/linux-4.4.14/drivers/infiniband/hw/mlx5/ |
D | mad.c | 128 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_ext_port_caps() 175 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_system_image_guid() 197 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_max_pkeys() 219 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_vendor_id() 242 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_desc() 267 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_node_guid() 293 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_pkey() 322 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_gids() 370 out_mad = kmalloc(sizeof(*out_mad), GFP_KERNEL); in mlx5_query_mad_ifc_port()
|
/linux-4.4.14/scripts/coccinelle/null/ |
D | kmerr.cocci | 1 /// 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\)(...);
|
D | eno.cocci | 20 x = \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmallo… 30 *x = \(kmalloc@p1\|kzalloc@p1\|kcalloc@p1\|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_al…
|
/linux-4.4.14/lib/mpi/ |
D | mpiutil.c | 34 a = kmalloc(sizeof *a, GFP_KERNEL); in mpi_alloc() 64 return kmalloc(len, GFP_KERNEL); in mpi_alloc_limb_space() 94 p = kmalloc(nlimbs * sizeof(mpi_limb_t), GFP_KERNEL); in mpi_resize()
|
/linux-4.4.14/drivers/usb/misc/ |
D | cytherm.c | 103 buffer = kmalloc(8, GFP_KERNEL); in set_brightness() 150 buffer = kmalloc(8, GFP_KERNEL); in show_temp() 194 buffer = kmalloc(8, GFP_KERNEL); in show_button() 232 buffer = kmalloc(8, GFP_KERNEL); in show_port0() 259 buffer = kmalloc(8, GFP_KERNEL); in set_port0() 292 buffer = kmalloc(8, GFP_KERNEL); in show_port1() 319 buffer = kmalloc(8, GFP_KERNEL); in set_port1()
|
/linux-4.4.14/drivers/infiniband/hw/cxgb3/ |
D | cxio_dbg.c | 47 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-4.4.14/lib/zlib_inflate/ |
D | infutil.c | 17 strm = kmalloc(sizeof(*strm), GFP_KERNEL); in zlib_inflate_blob() 20 strm->workspace = kmalloc(zlib_inflate_workspacesize(), GFP_KERNEL); in zlib_inflate_blob()
|
/linux-4.4.14/drivers/mtd/maps/ |
D | vmu-flash.c | 78 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 …]
|
D | pmcmsp-flash.c | 78 msp_flash = kmalloc(fcnt * sizeof(struct map_info *), GFP_KERNEL); in init_msp_flash() 82 msp_parts = kmalloc(fcnt * sizeof(struct mtd_partition *), GFP_KERNEL); in init_msp_flash() 142 msp_maps[i].name = kmalloc(7, GFP_KERNEL); in init_msp_flash()
|
/linux-4.4.14/arch/cris/arch-v32/mm/ |
D | intmem.c | 37 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-4.4.14/Documentation/trace/ |
D | events.txt | 383 For example, the following trigger causes kmalloc events to be 387 # echo 'enable_event:kmem:kmalloc:1' > \ 390 The following trigger causes kmalloc events to stop being traced 394 # echo 'disable_event:kmem:kmalloc' > \ 404 # echo '!enable_event:kmem:kmalloc:1' > \ 407 # echo '!disable_event:kmem:kmalloc' > \ 413 kmem:kmalloc and sched:sched_switch, but can't have two kmem:kmalloc 414 versions such as kmem:kmalloc and kmem:kmalloc:1 or 'kmem:kmalloc if 415 bytes_req == 256' and 'kmem:kmalloc if bytes_alloc == 256' (they 416 could be combined into a single filter on kmem:kmalloc though). [all …]
|
D | events-kmem.txt | 6 o Slab allocation of small objects of unknown type (kmalloc) 17 kmalloc call_site=%lx ptr=%p bytes_req=%zu bytes_alloc=%zu gfp_flags=%s 22 justified, particularly if kmalloc slab pages are getting significantly 24 kmalloc with kfree, it may be possible to identify memory leaks and where 34 These events are similar in usage to the kmalloc-related events except that
|
/linux-4.4.14/drivers/infiniband/hw/cxgb4/ |
D | resource.c | 118 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid() 129 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid() 135 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_cqid() 157 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_cqid() 192 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid() 203 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid() 209 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_get_qpid() 231 entry = kmalloc(sizeof *entry, GFP_KERNEL); in c4iw_put_qpid()
|
/linux-4.4.14/drivers/infiniband/hw/mthca/ |
D | mthca_allocator.c | 93 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()
|
D | mthca_provider.c | 72 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_device() 145 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_port() 240 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_pkey() 269 out_mad = kmalloc(sizeof *out_mad, GFP_KERNEL); in mthca_query_gid() 319 context = kmalloc(sizeof *context, GFP_KERNEL); in mthca_alloc_ucontext() 382 pd = kmalloc(sizeof *pd, GFP_KERNEL); in mthca_alloc_pd() 417 ah = kmalloc(sizeof *ah, GFP_ATOMIC); in mthca_ah_create() 450 srq = kmalloc(sizeof *srq, GFP_KERNEL); in mthca_create_srq() 532 qp = kmalloc(sizeof *qp, GFP_KERNEL); in mthca_create_qp() 598 qp = kmalloc(sizeof (struct mthca_sqp), GFP_KERNEL); in mthca_create_qp() [all …]
|
D | mthca_reset.c | 96 hca_header = kmalloc(256, GFP_KERNEL); in mthca_reset() 119 bridge_header = kmalloc(256, GFP_KERNEL); in mthca_reset()
|
D | mthca_memfree.c | 148 icm = kmalloc(sizeof *icm, gfp_mask & ~(__GFP_HIGHMEM | __GFP_NOWARN)); in mthca_alloc_icm() 159 chunk = kmalloc(sizeof *chunk, in mthca_alloc_icm() 370 table = kmalloc(sizeof *table + num_icm * sizeof *table->icm, GFP_KERNEL); in mthca_alloc_icm_table() 533 db_tab = kmalloc(sizeof *db_tab + npages * sizeof *db_tab->page, GFP_KERNEL); in mthca_init_user_db_tab() 707 dev->db_tab = kmalloc(sizeof *dev->db_tab, GFP_KERNEL); in mthca_init_db_tab() 717 dev->db_tab->page = kmalloc(dev->db_tab->npages * in mthca_init_db_tab()
|
/linux-4.4.14/drivers/xen/ |
D | sys-hypervisor.c | 84 extra = kmalloc(XEN_EXTRAVERSION_LEN, GFP_KERNEL); in extra_show() 172 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compiler_show() 190 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compiled_by_show() 208 info = kmalloc(sizeof(struct xen_compile_info), GFP_KERNEL); in compile_date_show() 250 caps = kmalloc(XEN_CAPABILITIES_INFO_LEN, GFP_KERNEL); in capabilities_show() 268 cset = kmalloc(XEN_CHANGESET_INFO_LEN, GFP_KERNEL); in changeset_show() 286 parms = kmalloc(sizeof(struct xen_platform_parameters), GFP_KERNEL); in virtual_start_show()
|
/linux-4.4.14/drivers/pci/hotplug/ |
D | cpqphp_pci.c | 170 fakedev = kmalloc(sizeof(*fakedev), GFP_KERNEL); in cpqhp_set_irq() 171 fakebus = kmalloc(sizeof(*fakebus), GFP_KERNEL); in cpqhp_set_irq() 735 bus_node = kmalloc(sizeof(*bus_node), GFP_KERNEL); in cpqhp_save_used_resources() 750 io_node = kmalloc(sizeof(*io_node), GFP_KERNEL); in cpqhp_save_used_resources() 766 mem_node = kmalloc(sizeof(*mem_node), GFP_KERNEL); in cpqhp_save_used_resources() 782 p_mem_node = kmalloc(sizeof(*p_mem_node), GFP_KERNEL); in cpqhp_save_used_resources() 813 io_node = kmalloc(sizeof(*io_node), in cpqhp_save_used_resources() 831 p_mem_node = kmalloc(sizeof(*p_mem_node), in cpqhp_save_used_resources() 848 mem_node = kmalloc(sizeof(*mem_node), in cpqhp_save_used_resources() 885 io_node = kmalloc(sizeof(*io_node), in cpqhp_save_used_resources() [all …]
|
D | cpqphp_nvram.c | 524 mem_node = kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in compaq_nvram_load() 552 p_mem_node = kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in compaq_nvram_load() 580 io_node = kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in compaq_nvram_load() 608 bus_node = kmalloc(sizeof(struct pci_resource), GFP_KERNEL); in compaq_nvram_load()
|
D | cpqphp_sysfs.c | 152 dbg = kmalloc(sizeof(*dbg), GFP_KERNEL); in open() 155 dbg->data = kmalloc(MAX_OUTPUT, GFP_KERNEL); in open()
|
/linux-4.4.14/drivers/acpi/ |
D | processor_pdc.c | 77 obj_list = kmalloc(sizeof(struct acpi_object_list), GFP_KERNEL); in acpi_processor_alloc_pdc() 81 obj = kmalloc(sizeof(union acpi_object), GFP_KERNEL); in acpi_processor_alloc_pdc() 87 buf = kmalloc(12, GFP_KERNEL); in acpi_processor_alloc_pdc()
|
/linux-4.4.14/lib/reed_solomon/ |
D | reed_solomon.c | 73 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-4.4.14/drivers/mtd/nand/ |
D | nand_bch.c | 200 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()
|
/linux-4.4.14/drivers/mtd/tests/ |
D | mtd_nandecctest.c | 251 error_data = kmalloc(size, GFP_KERNEL); in nand_ecc_test_run() 252 error_ecc = kmalloc(3, GFP_KERNEL); in nand_ecc_test_run() 253 correct_data = kmalloc(size, GFP_KERNEL); in nand_ecc_test_run() 254 correct_ecc = kmalloc(3, GFP_KERNEL); in nand_ecc_test_run()
|
D | torturetest.c | 225 patt_5A5 = kmalloc(mtd->erasesize, GFP_KERNEL); in tort_init() 229 patt_A5A = kmalloc(mtd->erasesize, GFP_KERNEL); in tort_init() 233 patt_FF = kmalloc(mtd->erasesize, GFP_KERNEL); in tort_init() 237 check_buf = kmalloc(mtd->erasesize, GFP_KERNEL); in tort_init()
|
D | pagetest.c | 130 pp1 = kmalloc(pgsize * 4, GFP_KERNEL); in crosstest() 375 writebuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_pagetest_init() 378 twopages = kmalloc(bufsize, GFP_KERNEL); in mtd_pagetest_init() 381 boundary = kmalloc(bufsize, GFP_KERNEL); in mtd_pagetest_init()
|
D | readtest.c | 166 iobuf = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_readtest_init() 169 iobuf1 = kmalloc(mtd->erasesize, GFP_KERNEL); in mtd_readtest_init()
|
/linux-4.4.14/drivers/block/ |
D | z2ram.c | 200 kmalloc((size/Z2RAM_CHUNKSIZE)*sizeof(z2ram_map[0]), in z2_open() 226 z2ram_map = kmalloc( max_z2_map + max_chip_map, GFP_KERNEL ); in z2_open() 247 z2ram_map = kmalloc( max_z2_map, GFP_KERNEL ); in z2_open() 265 z2ram_map = kmalloc( max_chip_map, GFP_KERNEL ); in z2_open()
|
/linux-4.4.14/arch/um/drivers/ |
D | hostaudio_kern.c | 81 kbuf = kmalloc(count, GFP_KERNEL); in hostaudio_read() 108 kbuf = kmalloc(count, GFP_KERNEL); in hostaudio_write() 193 state = kmalloc(sizeof(struct hostaudio_state), GFP_KERNEL); in hostaudio_open() 254 state = kmalloc(sizeof(struct hostmixer_state), GFP_KERNEL); in hostmixer_open_mixdev()
|
D | port_kern.c | 89 conn = kmalloc(sizeof(*conn), GFP_ATOMIC); in port_accept() 172 port = kmalloc(sizeof(struct port_list), GFP_KERNEL); in port_data() 204 dev = kmalloc(sizeof(struct port_dev), GFP_KERNEL); in port_data()
|
D | xterm_kern.c | 40 data = kmalloc(sizeof(*data), GFP_KERNEL); in xterm_fd()
|
/linux-4.4.14/fs/squashfs/ |
D | page_actor.c | 46 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); in squashfs_page_actor_init() 86 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); in squashfs_page_actor_init_special()
|
D | decompressor_multi.c | 86 decomp_strm = kmalloc(sizeof(*decomp_strm), GFP_KERNEL); in squashfs_decompressor_create() 154 decomp_strm = kmalloc(sizeof(*decomp_strm), GFP_KERNEL); in get_decomp_stream()
|
D | xz_wrapper.c | 58 opts = kmalloc(sizeof(*opts), GFP_KERNEL); in squashfs_xz_comp_opts() 100 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_xz_init()
|
D | namei.c | 89 index = kmalloc(sizeof(*index) + SQUASHFS_NAME_LEN * 2 + 2, GFP_KERNEL); in get_dir_index_using_name() 155 dire = kmalloc(sizeof(*dire) + SQUASHFS_NAME_LEN + 1, GFP_KERNEL); in squashfs_lookup()
|
D | page_actor.h | 22 struct squashfs_page_actor *actor = kmalloc(sizeof(*actor), GFP_KERNEL); in squashfs_page_actor_init()
|
D | decompressor_single.c | 35 stream = kmalloc(sizeof(*stream), GFP_KERNEL); in squashfs_decompressor_create()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | shadowpci.c | 68 (priv = kmalloc(sizeof(*priv), GFP_KERNEL))) { in pcirom_init() 104 if ((priv = kmalloc(sizeof(*priv), GFP_KERNEL))) { in platform_init()
|
/linux-4.4.14/net/dns_resolver/ |
D | dns_query.c | 101 desc = kmalloc(desclen, GFP_KERNEL); in dns_query() 148 *_result = kmalloc(len + 1, GFP_KERNEL); in dns_query()
|
/linux-4.4.14/kernel/bpf/ |
D | syscall.c | 241 key = kmalloc(map->key_size, GFP_USER); in map_lookup_elem() 250 value = kmalloc(map->value_size, GFP_USER | __GFP_NOWARN); in map_lookup_elem() 300 key = kmalloc(map->key_size, GFP_USER); in map_update_elem() 309 value = kmalloc(map->value_size, GFP_USER | __GFP_NOWARN); in map_update_elem() 353 key = kmalloc(map->key_size, GFP_USER); in map_delete_elem() 394 key = kmalloc(map->key_size, GFP_USER); in map_get_next_key() 403 next_key = kmalloc(map->key_size, GFP_USER); in map_get_next_key()
|
/linux-4.4.14/arch/powerpc/kernel/ |
D | nvram_64.c | 513 buff = kmalloc(part->size, GFP_KERNEL); in nvram_pstore_read() 619 oops_buf = kmalloc(oops_log_partition.size, GFP_KERNEL); in nvram_init_oops_partition() 639 big_oops_buf = kmalloc(big_oops_buf_sz, GFP_KERNEL); in nvram_init_oops_partition() 641 stream.workspace = kmalloc(zlib_deflate_workspacesize( in nvram_init_oops_partition() 783 tmp = kmalloc(count, GFP_KERNEL); in dev_nvram_read() 822 tmp = kmalloc(count, GFP_KERNEL); in dev_nvram_write() 1066 new_part = kmalloc(sizeof(*new_part), GFP_KERNEL); in nvram_create_partition() 1171 header = kmalloc(NVRAM_HEADER_LEN, GFP_KERNEL); in nvram_scan_partitions() 1206 tmp_part = kmalloc(sizeof(struct nvram_partition), GFP_KERNEL); in nvram_scan_partitions()
|
/linux-4.4.14/drivers/staging/gdm72xx/ |
D | sdio_boot.c | 74 buf = kmalloc(DOWNLOAD_SIZE + TYPE_A_HEADER_SIZE, GFP_KERNEL); in download_image() 141 tx_buf = kmalloc(YMEM0_SIZE, GFP_KERNEL); in sdio_boot()
|
/linux-4.4.14/arch/s390/pci/ |
D | pci_mmio.c | 49 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3() 89 buf = kmalloc(length, GFP_KERNEL); in SYSCALL_DEFINE3()
|
/linux-4.4.14/drivers/usb/host/ |
D | fhci-mem.c | 49 td = kmalloc(sizeof(*td), GFP_ATOMIC); in get_empty_td() 73 ed = kmalloc(sizeof(*ed), GFP_ATOMIC); in fhci_get_empty_ed()
|
/linux-4.4.14/tools/virtio/linux/ |
D | kernel.h | 45 static inline void *kmalloc(size_t s, gfp_t gfp) in kmalloc() function 53 void *p = kmalloc(s, gfp); in kzalloc()
|
/linux-4.4.14/drivers/base/regmap/ |
D | regcache-lzo.c | 40 lzo_ctx->wmem = kmalloc(LZO1X_MEM_COMPRESS, GFP_KERNEL); in regcache_lzo_prepare() 78 lzo_ctx->dst = kmalloc(lzo_ctx->dst_len, GFP_KERNEL); in regcache_lzo_compress_cache_block() 96 lzo_ctx->dst = kmalloc(lzo_ctx->dst_len, GFP_KERNEL); in regcache_lzo_decompress_cache_block() 155 sync_bmp = kmalloc(BITS_TO_LONGS(bmp_size) * sizeof(long), in regcache_lzo_init()
|
D | regmap-debugfs.c | 46 buf = kmalloc(PAGE_SIZE, GFP_KERNEL); in regmap_name_read_file() 197 buf = kmalloc(count, GFP_KERNEL); in regmap_read_debugfs() 345 buf = kmalloc(count, GFP_KERNEL); in regmap_reg_ranges_read_file() 349 entry = kmalloc(PAGE_SIZE, GFP_KERNEL); in regmap_reg_ranges_read_file() 415 buf = kmalloc(count, GFP_KERNEL); in regmap_access_read_file()
|
/linux-4.4.14/drivers/video/fbdev/core/ |
D | fbcmap.c | 102 cmap->red = kmalloc(size, flags); in fb_alloc_cmap_gfp() 105 cmap->green = kmalloc(size, flags); in fb_alloc_cmap_gfp() 108 cmap->blue = kmalloc(size, flags); in fb_alloc_cmap_gfp() 112 cmap->transp = kmalloc(size, flags); in fb_alloc_cmap_gfp()
|
/linux-4.4.14/fs/cifs/ |
D | cifsencrypt.c | 56 server->secmech.sdescmd5 = kmalloc(size, GFP_KERNEL); in cifs_crypto_shash_md5_allocate() 274 ses->auth_key.response = kmalloc(temp_len, GFP_KERNEL); in setup_ntlm_response() 432 kmalloc(attrsize + 1, GFP_KERNEL); in find_domain_name() 522 user = kmalloc(2 + (len * 2), GFP_KERNEL); in calc_ntlmv2_hash() 547 domain = kmalloc(2 + (len * 2), GFP_KERNEL); in calc_ntlmv2_hash() 567 server = kmalloc(2 + (len * 2), GFP_KERNEL); in calc_ntlmv2_hash() 665 server->secmech.sdeschmacmd5 = kmalloc(size, GFP_KERNEL); in crypto_hmacmd5_alloc() 715 ses->auth_key.response = kmalloc(baselen + tilen, GFP_KERNEL); in setup_ntlmv2_rsp()
|
D | cifs_unicode.c | 360 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_from_utf16() 368 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_from_utf16() 602 dst = kmalloc(len, GFP_KERNEL); in cifs_strndup_to_utf16()
|
D | dns_resolve.c | 90 name = kmalloc(len + 1, GFP_KERNEL); in dns_resolve_server_name_to_ip()
|
/linux-4.4.14/drivers/iio/common/st_sensors/ |
D | st_sensors_buffer.c | 34 addr = kmalloc(num_data_channels, GFP_KERNEL); in st_sensors_get_buffer_element() 58 rx_array = kmalloc(byte_for_channel * num_data_channels, in st_sensors_get_buffer_element()
|
/linux-4.4.14/drivers/gpu/drm/udl/ |
D | udl_connector.c | 28 block = kmalloc(EDID_LENGTH, GFP_KERNEL); in udl_get_edid() 32 rbuf = kmalloc(2, GFP_KERNEL); in udl_get_edid()
|
/linux-4.4.14/fs/ |
D | dcookies.c | 175 kbuf = kmalloc(PAGE_SIZE, GFP_KERNEL); in SYSCALL_DEFINE3() 230 dcookie_hashtable = kmalloc(PAGE_SIZE, GFP_KERNEL); in dcookie_init() 316 user = kmalloc(sizeof(struct dcookie_user), GFP_KERNEL); in dcookie_register()
|
D | fhandle.c | 38 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in do_sys_name_to_handle() 191 handle = kmalloc(sizeof(struct file_handle) + f_handle.handle_bytes, in handle_to_path()
|
D | binfmt_elf.c | 423 elf_phdata = kmalloc(size, GFP_KERNEL); in load_elf_phdrs() 687 loc = kmalloc(sizeof(*loc), GFP_KERNEL); in load_elf_binary() 733 elf_interpreter = kmalloc(elf_ppnt->p_filesz, in load_elf_binary() 1135 elf_phdata = kmalloc(j, GFP_KERNEL); in load_elf_library() 1670 void *data = kmalloc(size, GFP_KERNEL); in fill_thread_core_info() 1709 psinfo = kmalloc(sizeof(*psinfo), GFP_KERNEL); in fill_note_info() 1924 info->notes = kmalloc(8 * sizeof(struct memelfnote), GFP_KERNEL); in elf_note_info_init() 1927 info->psinfo = kmalloc(sizeof(*info->psinfo), GFP_KERNEL); in elf_note_info_init() 1930 info->prstatus = kmalloc(sizeof(*info->prstatus), GFP_KERNEL); in elf_note_info_init() 1933 info->fpu = kmalloc(sizeof(*info->fpu), GFP_KERNEL); in elf_note_info_init() [all …]
|
/linux-4.4.14/fs/ceph/ |
D | acl.c | 118 value = kmalloc(size, GFP_NOFS); in ceph_set_acl() 190 tmp_buf = kmalloc(max(val_size1, val_size2), GFP_KERNEL); in ceph_pre_init_acls() 193 pagelist = kmalloc(sizeof(struct ceph_pagelist), GFP_KERNEL); in ceph_pre_init_acls()
|
/linux-4.4.14/drivers/isdn/capi/ |
D | capiutil.c | 587 nb = kmalloc(ns, GFP_ATOMIC); in bufprint() 725 cdb = kmalloc(sizeof(_cdebbuf), GFP_ATOMIC); in cdebbuf_alloc() 728 cdb->buf = kmalloc(CDEBUG_SIZE, GFP_ATOMIC); in cdebbuf_alloc() 779 cmsg = kmalloc(sizeof(_cmsg), GFP_ATOMIC); in capi_message2str() 836 g_cmsg = kmalloc(sizeof(_cmsg), GFP_KERNEL); in cdebug_init() 839 g_debbuf = kmalloc(sizeof(_cdebbuf), GFP_KERNEL); in cdebug_init() 844 g_debbuf->buf = kmalloc(CDEBUG_GSIZE, GFP_KERNEL); in cdebug_init()
|
/linux-4.4.14/drivers/ntb/test/ |
D | ntb_tool.c | 170 buf = kmalloc(buf_size, GFP_KERNEL); in tool_dbfn_read() 195 buf = kmalloc(size + 1, GFP_KERNEL); in tool_dbfn_write() 244 buf = kmalloc(buf_size, GFP_KERNEL); in tool_spadfn_read() 280 buf = kmalloc(size + 1, GFP_KERNEL); in tool_spadfn_write() 488 tc = kmalloc(sizeof(*tc), GFP_KERNEL); in tool_probe()
|
/linux-4.4.14/drivers/staging/rdma/ipath/ |
D | ipath_mr.c | 89 mr = kmalloc(sizeof *mr + m * sizeof mr->mr.map[0], GFP_KERNEL); in alloc_mr() 95 mr->mr.map[i] = kmalloc(sizeof *mr->mr.map[0], GFP_KERNEL); in alloc_mr() 291 fmr = kmalloc(sizeof *fmr + m * sizeof fmr->mr.map[0], GFP_KERNEL); in ipath_alloc_fmr() 297 fmr->mr.map[i] = kmalloc(sizeof *fmr->mr.map[0], in ipath_alloc_fmr()
|
/linux-4.4.14/drivers/net/wireless/rsi/ |
D | rsi_91x_usb.c | 160 buf = kmalloc(0x04, GFP_KERNEL); in rsi_usb_reg_read() 202 usb_reg_buf = kmalloc(0x04, GFP_KERNEL); in rsi_usb_reg_write() 394 common->rx_data_pkt = kmalloc(2048, GFP_KERNEL); in rsi_init_usb_interface() 401 rsi_dev->tx_buffer = kmalloc(2048, GFP_KERNEL); in rsi_init_usb_interface()
|
/linux-4.4.14/net/sunrpc/auth_gss/ |
D | gss_krb5_keys.c | 170 inblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key() 174 outblockdata = kmalloc(blocksize, gfp_mask); in krb5_derive_key() 178 rawkey = kmalloc(keybytes, gfp_mask); in krb5_derive_key()
|
/linux-4.4.14/tools/perf/scripts/perl/bin/ |
D | check-perf-trace-record | 2 perf record -a -e kmem:kmalloc -e irq:softirq_entry -e kmem:kfree
|
/linux-4.4.14/fs/ncpfs/ |
D | symlink.c | 50 rawlink = kmalloc(NCP_MAX_SYMLINK_SIZE, GFP_KERNEL); in ncp_symlink_readpage() 128 rawlink = kmalloc(NCP_MAX_SYMLINK_SIZE, GFP_KERNEL); in ncp_symlink()
|
/linux-4.4.14/fs/jfs/ |
D | acl.c | 55 value = kmalloc(size, GFP_KERNEL); in jfs_get_acl() 105 value = kmalloc(size, GFP_KERNEL); in __jfs_set_acl()
|
/linux-4.4.14/drivers/platform/chrome/ |
D | cros_ec_vbc.c | 42 msg = kmalloc(sizeof(*msg) + payload, GFP_KERNEL); in vboot_context_read() 86 msg = kmalloc(sizeof(*msg) + para_sz, GFP_KERNEL); in vboot_context_write()
|
D | cros_ec_sysfs.c | 78 msg = kmalloc(sizeof(*msg) + sizeof(*param), GFP_KERNEL); in store_ec_reboot() 146 msg = kmalloc(sizeof(*msg) + EC_HOST_PARAM_SIZE, GFP_KERNEL); in show_ec_version() 251 msg = kmalloc(sizeof(*msg) + sizeof(*resp), GFP_KERNEL); in show_ec_flashinfo()
|
/linux-4.4.14/drivers/net/irda/ |
D | ks959-sir.c | 723 kingsun->rx_buf = kmalloc(KINGSUN_RCV_FIFO_SIZE, GFP_KERNEL); in ks959_probe() 729 kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL); in ks959_probe() 740 kingsun->tx_buf_clear = kmalloc(KINGSUN_SND_FIFO_SIZE, GFP_KERNEL); in ks959_probe() 743 kingsun->tx_buf_xored = kmalloc(KINGSUN_SND_PACKET_SIZE, GFP_KERNEL); in ks959_probe() 749 kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL); in ks959_probe() 761 kmalloc(sizeof(struct usb_ctrlrequest), GFP_KERNEL); in ks959_probe()
|
/linux-4.4.14/fs/jffs2/ |
D | summary.c | 37 c->summary->sum_buf = kmalloc(sum_size, GFP_KERNEL); in jffs2_sum_init() 118 struct jffs2_sum_inode_mem *temp = kmalloc(sizeof(struct jffs2_sum_inode_mem), GFP_KERNEL); in jffs2_sum_add_inode_mem() 137 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + rd->nsize, GFP_KERNEL); in jffs2_sum_add_dirent_mem() 162 temp = kmalloc(sizeof(struct jffs2_sum_xattr_mem), GFP_KERNEL); in jffs2_sum_add_xattr_mem() 180 temp = kmalloc(sizeof(struct jffs2_sum_xref_mem), GFP_KERNEL); in jffs2_sum_add_xref_mem() 266 kmalloc(sizeof(struct jffs2_sum_inode_mem), GFP_KERNEL); in jffs2_sum_add_kvec() 283 kmalloc(sizeof(struct jffs2_sum_dirent_mem) + node->d.nsize, GFP_KERNEL); in jffs2_sum_add_kvec() 317 temp = kmalloc(sizeof(struct jffs2_sum_xattr_mem), GFP_KERNEL); in jffs2_sum_add_kvec() 332 temp = kmalloc(sizeof(struct jffs2_sum_xref_mem), GFP_KERNEL); in jffs2_sum_add_kvec()
|
D | wbuf.c | 95 new = kmalloc(sizeof(*new), GFP_KERNEL); in jffs2_wbuf_dirties_inode() 340 buf = kmalloc(end - start, GFP_KERNEL); in jffs2_wbuf_recover() 1209 c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); in jffs2_nand_flash_setup() 1213 c->oobbuf = kmalloc(NR_OOB_SCAN_PAGES * c->oobavail, GFP_KERNEL); in jffs2_nand_flash_setup() 1220 c->wbuf_verify = kmalloc(c->wbuf_pagesize, GFP_KERNEL); in jffs2_nand_flash_setup() 1270 c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); in jffs2_dataflash_setup() 1275 c->wbuf_verify = kmalloc(c->wbuf_pagesize, GFP_KERNEL); in jffs2_dataflash_setup() 1307 c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); in jffs2_nor_wbuf_flash_setup() 1312 c->wbuf_verify = kmalloc(c->wbuf_pagesize, GFP_KERNEL); in jffs2_nor_wbuf_flash_setup() 1340 c->wbuf = kmalloc(c->wbuf_pagesize, GFP_KERNEL); in jffs2_ubivol_setup()
|
/linux-4.4.14/drivers/vme/ |
D | vme.c | 306 resource = kmalloc(sizeof(struct vme_resource), GFP_KERNEL); in vme_slave_request() 465 resource = kmalloc(sizeof(struct vme_resource), GFP_KERNEL); in vme_master_request() 747 resource = kmalloc(sizeof(struct vme_resource), GFP_KERNEL); in vme_dma_request() 783 dma_list = kmalloc(sizeof(struct vme_dma_list), GFP_KERNEL); in vme_new_dma_list() 804 attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL); in vme_dma_pattern_attribute() 810 pattern_attr = kmalloc(sizeof(struct vme_dma_pattern), GFP_KERNEL); in vme_dma_pattern_attribute() 841 attributes = kmalloc(sizeof(struct vme_dma_attr), GFP_KERNEL); in vme_dma_pci_attribute() 847 pci_attr = kmalloc(sizeof(struct vme_dma_pci), GFP_KERNEL); in vme_dma_pci_attribute() 878 attributes = kmalloc( in vme_dma_vme_attribute() 885 vme_attr = kmalloc(sizeof(struct vme_dma_vme), GFP_KERNEL); in vme_dma_vme_attribute() [all …]
|
/linux-4.4.14/drivers/scsi/ |
D | sr_ioctl.c | 47 buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); in sr_read_tochdr() 77 buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); in sr_read_tocentry() 195 sense = kmalloc(SCSI_SENSE_BUFFERSIZE, GFP_KERNEL); in sr_do_ioctl() 397 char *buffer = kmalloc(32, GFP_KERNEL | SR_GFP_DMA(cd)); in sr_get_mcn() 578 raw_sector = kmalloc(2048, GFP_KERNEL | SR_GFP_DMA(cd)); in sr_is_xa()
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | radeon_mem.c | 47 struct mem_block *newblock = kmalloc(sizeof(*newblock), in split_block() 64 struct mem_block *newblock = kmalloc(sizeof(*newblock), in split_block() 138 struct mem_block *blocks = kmalloc(sizeof(*blocks), GFP_KERNEL); in init_heap()
|
/linux-4.4.14/sound/oss/ |
D | sb_midi.c | 177 midi_devs[dev] = kmalloc(sizeof(struct midi_operations), GFP_KERNEL); in sb_dsp_midi_init() 193 midi_devs[dev]->converter = kmalloc(sizeof(struct synth_operations), GFP_KERNEL); in sb_dsp_midi_init()
|
/linux-4.4.14/drivers/misc/mic/cosm/ |
D | cosm_sysfs.c | 214 cdev->cmdline = kmalloc(count + 1, GFP_KERNEL); in cmdline_store() 260 cdev->firmware = kmalloc(count + 1, GFP_KERNEL); in firmware_store() 305 cdev->ramdisk = kmalloc(count + 1, GFP_KERNEL); in ramdisk_store() 354 cdev->bootmode = kmalloc(count + 1, GFP_KERNEL); in bootmode_store()
|
/linux-4.4.14/net/ipv4/netfilter/ |
D | nf_nat_snmp_basic.c | 403 *octets = kmalloc(eoc - ctx->pointer, GFP_ATOMIC); in asn1_octets_decode() 451 *oid = kmalloc(size * sizeof(unsigned long), GFP_ATOMIC); in asn1_oid_decode() 723 *obj = kmalloc(sizeof(struct snmp_object) + len, GFP_ATOMIC); in snmp_object_decode() 736 *obj = kmalloc(sizeof(struct snmp_object) + len, GFP_ATOMIC); in snmp_object_decode() 750 *obj = kmalloc(sizeof(struct snmp_object), GFP_ATOMIC); in snmp_object_decode() 768 *obj = kmalloc(sizeof(struct snmp_object) + len, GFP_ATOMIC); in snmp_object_decode() 787 *obj = kmalloc(sizeof(struct snmp_object) + len, GFP_ATOMIC); in snmp_object_decode() 804 *obj = kmalloc(sizeof(struct snmp_object) + len, GFP_ATOMIC); in snmp_object_decode()
|
/linux-4.4.14/security/keys/ |
D | user_defined.c | 71 upayload = kmalloc(sizeof(*upayload) + datalen, GFP_KERNEL); in user_preparse() 109 upayload = kmalloc(sizeof(*upayload) + datalen, GFP_KERNEL); in user_update()
|
D | request_key_auth.c | 159 rka = kmalloc(sizeof(*rka), GFP_KERNEL); in request_key_auth_new() 164 rka->callout_info = kmalloc(callout_len, GFP_KERNEL); in request_key_auth_new()
|
/linux-4.4.14/drivers/usb/serial/ |
D | visor.c | 262 transfer_buffer = kmalloc(0x12, GFP_KERNEL); in visor_close() 325 transfer_buffer = kmalloc(sizeof(*connection_info), GFP_KERNEL); in palm_os_3_probe() 417 transfer_buffer = kmalloc(sizeof(*connection_info), GFP_KERNEL); in palm_os_4_probe() 485 data = kmalloc(1, GFP_KERNEL); in clie_3_5_startup() 579 swap_port = kmalloc(sizeof(*swap_port), GFP_KERNEL); in treo_attach()
|
D | io_ti.c | 421 temp = kmalloc(1, GFP_KERNEL); in write_boot_mem() 536 oedb = kmalloc(sizeof(*oedb), GFP_KERNEL); in tx_active() 544 lsr = kmalloc(1, GFP_KERNEL); in tx_active() 688 rom_desc = kmalloc(sizeof(*rom_desc), GFP_KERNEL); in check_i2c_image() 692 buffer = kmalloc(TI_MAX_I2C_SIZE, GFP_KERNEL); in check_i2c_image() 767 rom_desc = kmalloc(sizeof(*rom_desc), GFP_KERNEL); in get_manuf_info() 830 buffer = kmalloc(buffer_size, GFP_KERNEL); in build_i2c_fw_hdr() 876 data = kmalloc(1, GFP_KERNEL); in i2c_type_bootmode() 1097 ti_manuf_desc = kmalloc(sizeof(*ti_manuf_desc), GFP_KERNEL); in do_download_mode() 1115 rom_desc = kmalloc(sizeof(*rom_desc), GFP_KERNEL); in do_download_mode() [all …]
|
D | kl5kusb105.c | 180 status_buf = kmalloc(KLSI_STATUSBUF_LEN, GFP_KERNEL); in klsi_105_get_line_state() 220 priv = kmalloc(sizeof(*priv), GFP_KERNEL); in klsi_105_port_probe() 269 cfg = kmalloc(sizeof(*cfg), GFP_KERNEL); in klsi_105_open() 411 cfg = kmalloc(sizeof(*cfg), GFP_KERNEL); in klsi_105_set_termios()
|
D | keyspan_pda.c | 359 data = kmalloc(1, GFP_KERNEL); in keyspan_pda_get_modem_info() 479 room = kmalloc(1, GFP_KERNEL); in keyspan_pda_write() 614 room = kmalloc(1, GFP_KERNEL); in keyspan_pda_open() 707 priv = kmalloc(sizeof(struct keyspan_pda_private), GFP_KERNEL); in keyspan_pda_port_probe()
|
/linux-4.4.14/drivers/gpu/drm/i915/ |
D | i915_gem_userptr.c | 160 mn = kmalloc(sizeof(*mn), GFP_KERNEL); in i915_mmu_notifier_create() 406 mm = kmalloc(sizeof(*mm), GFP_KERNEL); in i915_gem_userptr_init__mm_struct() 484 *st = kmalloc(sizeof(**st), GFP_KERNEL); in st_set_pages() 578 pvec = kmalloc(npages*sizeof(struct page *), in __i915_gem_userptr_get_pages_worker() 656 work = kmalloc(sizeof(*work), GFP_KERNEL); in __i915_gem_userptr_get_pages_schedule() 718 pvec = kmalloc(num_pages*sizeof(struct page *), in i915_gem_userptr_get_pages()
|
/linux-4.4.14/drivers/staging/wilc1000/ |
D | host_interface.c | 441 wid.val = kmalloc(IP_ALEN, GFP_KERNEL); in Handle_get_IPAddress() 473 u8 *mac_buf = kmalloc(ETH_ALEN, GFP_KERNEL); in Handle_SetMacAddress() 851 pu8HdnNtwrksWidVal = kmalloc(valuesize + 1, GFP_KERNEL); in Handle_Scan() 1007 hif_drv->usr_conn_req.pu8bssid = kmalloc(6, GFP_KERNEL); in Handle_Connect() 1013 hif_drv->usr_conn_req.pu8ssid = kmalloc(pstrHostIFconnectAttr->ssid_len + 1, GFP_KERNEL); in Handle_Connect() 1022 hif_drv->usr_conn_req.pu8ConnReqIEs = kmalloc(pstrHostIFconnectAttr->ies_len, GFP_KERNEL); in Handle_Connect() 1060 info_element = kmalloc(info_element_size, GFP_KERNEL); in Handle_Connect() 1092 strWIDList[u32WidsCount].val = kmalloc(strWIDList[u32WidsCount].size, GFP_KERNEL); in Handle_Connect() 1096 join_req = kmalloc(join_req_size, GFP_KERNEL); in Handle_Connect() 1236 strConnectInfo.pu8ReqIEs = kmalloc(pstrHostIFconnectAttr->ies_len, GFP_KERNEL); in Handle_Connect() [all …]
|
/linux-4.4.14/drivers/usb/storage/ |
D | sierra_ms.c | 102 swocInfo = kmalloc(sizeof(struct swoc_info), GFP_KERNEL); in show_truinst() 157 swocInfo = kmalloc(sizeof(struct swoc_info), in sierra_ms_init()
|
D | sddr55.c | 221 buffer = kmalloc(len, GFP_NOIO); in sddr55_read_data() 348 buffer = kmalloc(len, GFP_NOIO); in sddr55_write_data() 664 buffer = kmalloc( numblocks * 2, GFP_NOIO ); in sddr55_read_map() 697 info->lba_to_pba = kmalloc(numblocks*sizeof(int), GFP_NOIO); in sddr55_read_map() 698 info->pba_to_lba = kmalloc(numblocks*sizeof(int), GFP_NOIO); in sddr55_read_map()
|
D | datafab.c | 180 buffer = kmalloc(alloclen, GFP_NOIO); in datafab_read_data() 264 buffer = kmalloc(alloclen, GFP_NOIO); in datafab_write_data() 343 buf = kmalloc(512, GFP_NOIO); in datafab_determine_lun() 414 reply = kmalloc(512, GFP_NOIO); in datafab_id_device()
|
/linux-4.4.14/drivers/md/ |
D | dm-round-robin.c | 53 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); in alloc_selector() 131 pi = kmalloc(sizeof(*pi), GFP_KERNEL); in rr_add_path()
|
D | dm-queue-length.c | 43 struct selector *s = kmalloc(sizeof(*s), GFP_KERNEL); in alloc_selector() 133 pi = kmalloc(sizeof(*pi), GFP_KERNEL); in ql_add_path()
|
/linux-4.4.14/Documentation/s390/ |
D | 3270.ChangeLog | 17 Sep 2002: Fix tubfs kmalloc()s 19 and fs3270_write(), whilst never asking kmalloc()
|
/linux-4.4.14/drivers/acpi/apei/ |
D | erst-dbg.c | 138 p = kmalloc(len, GFP_KERNEL); in erst_dbg_read() 179 p = kmalloc(usize, GFP_KERNEL); in erst_dbg_write()
|
/linux-4.4.14/drivers/video/fbdev/omap2/dss/ |
D | omapdss-boot-init.c | 113 new_compat = kmalloc(new_len, GFP_KERNEL); in omapdss_omapify_node() 122 struct dss_conv_node *n = kmalloc(sizeof(struct dss_conv_node), in omapdss_add_to_list()
|
/linux-4.4.14/drivers/usb/gadget/ |
D | u_f.c | 24 req->buf = kmalloc(req->length, GFP_ATOMIC); in alloc_ep_req()
|
/linux-4.4.14/drivers/bluetooth/ |
D | ath3k.c | 216 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_firmware() 264 buf = kmalloc(sizeof(*buf), GFP_KERNEL); in ath3k_get_state() 286 buf = kmalloc(size, GFP_KERNEL); in ath3k_get_version() 310 send_buf = kmalloc(BULK_SIZE, GFP_KERNEL); in ath3k_load_fwfile()
|
D | bpa10x.c | 150 buf = kmalloc(size, GFP_KERNEL); in bpa10x_submit_intr_urb() 191 buf = kmalloc(size, GFP_KERNEL); in bpa10x_submit_bulk_urb() 302 dr = kmalloc(sizeof(*dr), GFP_ATOMIC); in bpa10x_send_frame()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/ |
D | nouveau_usif.c | 142 if (!(ntfy = kmalloc(sizeof(*ntfy), GFP_KERNEL))) in usif_notify_new() 208 ntfy->p = kmalloc(sizeof(*ntfy->p) + ntfy->reply, GFP_KERNEL); in usif_notify_get() 275 if (!(object = kmalloc(sizeof(*object), GFP_KERNEL))) in usif_object_new() 299 void *data = kmalloc(argc, GFP_KERNEL); in usif_ioctl()
|
/linux-4.4.14/drivers/infiniband/core/ |
D | fmr_pool.c | 231 attr = kmalloc(sizeof *attr, GFP_KERNEL); in ib_create_fmr_pool() 251 pool = kmalloc(sizeof *pool, GFP_KERNEL); in ib_create_fmr_pool() 267 kmalloc(IB_FMR_HASH_SIZE * sizeof *pool->cache_bucket, in ib_create_fmr_pool() 312 fmr = kmalloc(bytes_per_fmr, GFP_KERNEL); in ib_create_fmr_pool()
|
/linux-4.4.14/drivers/scsi/aacraid/ |
D | commctrl.c | 174 fibctx = kmalloc(sizeof(struct aac_fib_context), GFP_KERNEL); in open_getadapter_fib() 520 user_srbcmd = kmalloc(fibsize, GFP_KERNEL); in aac_send_raw_srb() 609 p = kmalloc(upsg->sg[i].count,GFP_KERNEL|__GFP_DMA); in aac_send_raw_srb() 638 usg = kmalloc(actual_fibsize - sizeof(struct aac_srb) in aac_send_raw_srb() 662 p = kmalloc(usg->sg[i].count,GFP_KERNEL|__GFP_DMA); in aac_send_raw_srb() 715 p = kmalloc(usg->sg[i].count,GFP_KERNEL|__GFP_DMA); in aac_send_raw_srb() 753 p = kmalloc(upsg->sg[i].count, GFP_KERNEL); in aac_send_raw_srb()
|
/linux-4.4.14/drivers/block/zram/ |
D | zcomp.c | 79 struct zcomp_strm *zstrm = kmalloc(sizeof(*zstrm), GFP_NOIO); in zcomp_strm_alloc() 201 zs = kmalloc(sizeof(struct zcomp_strm_multi), GFP_KERNEL); in zcomp_strm_multi_create() 256 zs = kmalloc(sizeof(struct zcomp_strm_single), GFP_KERNEL); in zcomp_strm_single_create()
|
/linux-4.4.14/drivers/gpu/drm/nouveau/nvif/ |
D | object.c | 70 if (!(args = kmalloc(size, GFP_KERNEL))) in nvif_object_sclass_get() 150 if (!(args = kmalloc(sizeof(*args) + size, GFP_KERNEL))) in nvif_object_mthd() 248 if (!(args = kmalloc(sizeof(*args) + size, GFP_KERNEL))) { in nvif_object_init()
|
D | notify.c | 187 notify->data = kmalloc(notify->size, GFP_KERNEL); in nvif_notify_init() 192 if (!(args = kmalloc(sizeof(*args) + size, GFP_KERNEL))) in nvif_notify_init()
|
/linux-4.4.14/drivers/usb/class/ |
D | usbtmc.c | 166 buffer = kmalloc(USBTMC_SIZE_IOBUFFER, GFP_KERNEL); in usbtmc_ioctl_abort_bulk_in() 309 buffer = kmalloc(8, GFP_KERNEL); in usbtmc_ioctl_abort_bulk_out() 390 buffer = kmalloc(USBTMC_HEADER_SIZE, GFP_KERNEL); in send_request_dev_dep_msg_in() 450 buffer = kmalloc(USBTMC_SIZE_IOBUFFER, GFP_KERNEL); in usbtmc_read() 631 buffer = kmalloc(USBTMC_SIZE_IOBUFFER, GFP_KERNEL); in usbtmc_write() 726 buffer = kmalloc(USBTMC_SIZE_IOBUFFER, GFP_KERNEL); in usbtmc_ioctl_clear() 870 buffer = kmalloc(0x18, GFP_KERNEL); in get_capabilities() 1007 buffer = kmalloc(2, GFP_KERNEL); in usbtmc_ioctl_indicator_pulse()
|
/linux-4.4.14/drivers/isdn/gigaset/ |
D | i4l.c | 254 commands[AT_DIAL] = kmalloc(l, GFP_ATOMIC); in command_from_LL() 276 commands[AT_MSN] = kmalloc(l, GFP_ATOMIC); in command_from_LL() 299 commands[AT_PROTO] = kmalloc(9, GFP_ATOMIC); in command_from_LL() 304 commands[AT_ISO] = kmalloc(9, GFP_ATOMIC); in command_from_LL() 627 iif = kmalloc(sizeof *iif, GFP_KERNEL); in gigaset_isdn_regdev()
|
/linux-4.4.14/arch/s390/kvm/ |
D | guestdbg.c | 190 wp_info->old_data = kmalloc(bp_data->len, GFP_KERNEL); in __import_wp_info() 220 bp_data = kmalloc(size, GFP_KERNEL); in kvm_s390_import_bp_data() 246 wp_info = kmalloc(size, GFP_KERNEL); in kvm_s390_import_bp_data() 254 bp_info = kmalloc(size, GFP_KERNEL); in kvm_s390_import_bp_data() 360 temp = kmalloc(wp_info->len, GFP_KERNEL); in any_wp_changed()
|
/linux-4.4.14/init/ |
D | initramfs.c | 85 q = kmalloc(sizeof(struct hash), GFP_KERNEL); in find_link() 131 struct dir_entry *de = kmalloc(sizeof(struct dir_entry), GFP_KERNEL); in dir_add() 456 header_buf = kmalloc(110, GFP_KERNEL); in unpack_to_rootfs() 457 symlink_buf = kmalloc(PATH_MAX + N_ALIGN(PATH_MAX) + 1, GFP_KERNEL); in unpack_to_rootfs() 458 name_buf = kmalloc(N_ALIGN(PATH_MAX), GFP_KERNEL); in unpack_to_rootfs()
|
/linux-4.4.14/fs/ntfs/ |
D | malloc.h | 47 return kmalloc(PAGE_SIZE, gfp_mask & ~__GFP_HIGHMEM); in __ntfs_malloc()
|
/linux-4.4.14/drivers/s390/char/ |
D | vmcp.c | 36 session = kmalloc(sizeof(*session), GFP_KERNEL); in vmcp_open() 91 cmd = kmalloc(count + 1, GFP_KERNEL); in vmcp_write()
|
D | tape_3590.c | 209 int_kekls = kmalloc(sizeof(*int_kekls), GFP_KERNEL|GFP_DMA); in tape_3592_kekl_query() 252 ext_kekls = kmalloc(sizeof(*ext_kekls), GFP_KERNEL); in tape_3592_ioctl_kekl_query() 315 ext_kekls = kmalloc(sizeof(*ext_kekls), GFP_KERNEL); in tape_3592_ioctl_kekl_set() 965 exception = kmalloc(BUFSIZE, GFP_ATOMIC); in tape_3590_print_mim_msg_f0() 966 service = kmalloc(BUFSIZE, GFP_ATOMIC); in tape_3590_print_mim_msg_f0() 1029 exception = kmalloc(BUFSIZE, GFP_ATOMIC); in tape_3590_print_io_sim_msg_f1() 1030 service = kmalloc(BUFSIZE, GFP_ATOMIC); in tape_3590_print_io_sim_msg_f1() 1140 exception = kmalloc(BUFSIZE, GFP_ATOMIC); in tape_3590_print_dev_sim_msg_f2() 1141 service = kmalloc(BUFSIZE, GFP_ATOMIC); in tape_3590_print_dev_sim_msg_f2() 1535 rdc_data = kmalloc(sizeof(*rdc_data), GFP_KERNEL | GFP_DMA); in tape_3590_setup_device()
|
/linux-4.4.14/arch/arm/mach-u300/ |
D | dummyspichip.c | 60 bigtxbuf_virtual = kmalloc(DMA_TEST_SIZE, GFP_KERNEL); in dummy_looptest() 65 bigrxbuf_virtual = kmalloc(DMA_TEST_SIZE, GFP_KERNEL); in dummy_looptest()
|
/linux-4.4.14/fs/btrfs/ |
D | ulist.c | 94 struct ulist *ulist = kmalloc(sizeof(*ulist), gfp_mask); in ulist_alloc() 203 node = kmalloc(sizeof(*node), gfp_mask); in ulist_add_merge()
|
/linux-4.4.14/ipc/ |
D | msgutil.c | 58 msg = kmalloc(sizeof(*msg) + alen, GFP_KERNEL); in alloc_msg() 70 seg = kmalloc(sizeof(*seg) + alen, GFP_KERNEL); in alloc_msg()
|
/linux-4.4.14/net/ipx/ |
D | pe2.c | 22 struct datalink_proto *proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in make_EII_client()
|
/linux-4.4.14/net/802/ |
D | p8023.c | 44 struct datalink_proto *proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in make_8023_client()
|
D | p8022.c | 43 proto = kmalloc(sizeof(*proto), GFP_ATOMIC); in register_8022_client()
|
/linux-4.4.14/crypto/asymmetric_keys/ |
D | x509_public_key.c | 97 p = req = kmalloc(2 + 1 + len * 2 + 1, GFP_KERNEL); in x509_request_asymmetric_key() 339 desc = kmalloc(sulen + 2 + srlen * 2 + 1, GFP_KERNEL); in x509_key_preparse() 349 kids = kmalloc(sizeof(struct asymmetric_key_ids), GFP_KERNEL); in x509_key_preparse()
|
/linux-4.4.14/sound/firewire/dice/ |
D | dice-transaction.c | 242 buffer = kmalloc(2 * 8, GFP_KERNEL); in register_notification_address() 292 buffer = kmalloc(2 * 8, GFP_KERNEL); in unregister_notification_address() 341 pointers = kmalloc(sizeof(__be32) * 10, GFP_KERNEL); in snd_dice_transaction_init()
|
/linux-4.4.14/block/partitions/ |
D | ibm.c | 308 info = kmalloc(sizeof(dasd_information2_t), GFP_KERNEL); in ibm_partition() 311 geo = kmalloc(sizeof(struct hd_geometry), GFP_KERNEL); in ibm_partition() 314 label = kmalloc(sizeof(union label_t), GFP_KERNEL); in ibm_partition()
|
/linux-4.4.14/drivers/parport/ |
D | daisy.c | 59 newdev = kmalloc(sizeof(struct daisydev), GFP_KERNEL); in add_dev() 148 deviceid = kmalloc(1024, GFP_KERNEL); in parport_daisy_init() 474 deviceid = kmalloc(1024, GFP_KERNEL); in assign_addrs()
|
/linux-4.4.14/drivers/misc/vmw_vmci/ |
D | vmci_datagram.c | 82 entry = kmalloc(sizeof(*entry), GFP_KERNEL); in dg_create_handle() 235 dg_info = kmalloc(sizeof(*dg_info) + in dg_dispatch_as_host() 379 dg_info = kmalloc(sizeof(*dg_info) + (size_t)dg->payload_size, in vmci_datagram_invoke_guest_handler()
|
/linux-4.4.14/drivers/s390/crypto/ |
D | zcrypt_msgtype50.c | 433 ap_msg.message = kmalloc(MSGTYPE50_CRB2_MAX_MSG_SIZE, in zcrypt_cex2a_modexpo() 436 ap_msg.message = kmalloc(MSGTYPE50_CRB3_MAX_MSG_SIZE, in zcrypt_cex2a_modexpo() 479 ap_msg.message = kmalloc(MSGTYPE50_CRB2_MAX_MSG_SIZE, in zcrypt_cex2a_modexpo_crt() 482 ap_msg.message = kmalloc(MSGTYPE50_CRB3_MAX_MSG_SIZE, in zcrypt_cex2a_modexpo_crt()
|
/linux-4.4.14/drivers/net/wireless/mwifiex/ |
D | ie.c | 427 gen_ie = kmalloc(sizeof(*gen_ie), GFP_KERNEL); in mwifiex_del_mgmt_ies() 445 beacon_ie = kmalloc(sizeof(struct mwifiex_ie), GFP_KERNEL); in mwifiex_del_mgmt_ies() 455 pr_ie = kmalloc(sizeof(struct mwifiex_ie), GFP_KERNEL); in mwifiex_del_mgmt_ies() 465 ar_ie = kmalloc(sizeof(struct mwifiex_ie), GFP_KERNEL); in mwifiex_del_mgmt_ies()
|
/linux-4.4.14/arch/mips/kernel/ |
D | crash_dump.c | 58 kdump_buf_page = kmalloc(PAGE_SIZE, GFP_KERNEL); in kdump_buf_page_init()
|
/linux-4.4.14/drivers/staging/goldfish/ |
D | README | 9 - Use dma coherent memory not kmalloc/__pa for the memory (this is just
|
/linux-4.4.14/drivers/net/wireless/ |
D | at76c50x-usb.c | 386 dfu_stat_buf = kmalloc(sizeof(struct dfu_status), GFP_KERNEL); in at76_usbdfu_download() 392 block = kmalloc(FW_BLOCK_SIZE, GFP_KERNEL); in at76_usbdfu_download() 398 dfu_state = kmalloc(sizeof(u8), GFP_KERNEL); in at76_usbdfu_download() 562 op_mode = kmalloc(1, GFP_NOIO); in at76_get_op_mode() 615 union at76_hwcfg *hwcfg = kmalloc(sizeof(*hwcfg), GFP_KERNEL); in at76_get_hw_config() 693 stat_buf = kmalloc(40, GFP_NOIO); in at76_get_cmd_status() 729 struct at76_command *cmd_buf = kmalloc(sizeof(struct at76_command) + in at76_set_card_command() 939 struct mib_mac_addr *m = kmalloc(sizeof(struct mib_mac_addr), in at76_dump_mib_mac_addr() 969 struct mib_mac_wep *m = kmalloc(sizeof(struct mib_mac_wep), GFP_KERNEL); in at76_dump_mib_mac_wep() 1005 struct mib_mac_mgmt *m = kmalloc(sizeof(struct mib_mac_mgmt), in at76_dump_mib_mac_mgmt() [all …]
|
/linux-4.4.14/include/drm/ |
D | drm_mem_util.h | 51 return kmalloc(nmemb * size, GFP_KERNEL); in drm_malloc_ab()
|
/linux-4.4.14/arch/powerpc/sysdev/ |
D | of_rtc.c | 38 res = kmalloc(sizeof(*res), GFP_KERNEL); in of_instantiate_rtc()
|
/linux-4.4.14/drivers/scsi/lpfc/ |
D | lpfc_debugfs.c | 142 buffer = kmalloc(LPFC_DEBUG_TRC_ENTRY_SIZE, GFP_KERNEL); in lpfc_debugfs_disc_trc_data() 208 buffer = kmalloc(LPFC_DEBUG_TRC_ENTRY_SIZE, GFP_KERNEL); in lpfc_debugfs_slow_ring_trc_data() 396 buffer = kmalloc(1024, GFP_KERNEL); in lpfc_debugfs_dumpHBASlim_data() 729 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_disc_trc_open() 737 debug->buffer = kmalloc(size, GFP_KERNEL); in lpfc_debugfs_disc_trc_open() 779 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_slow_ring_trc_open() 787 debug->buffer = kmalloc(size, GFP_KERNEL); in lpfc_debugfs_slow_ring_trc_open() 823 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_hbqinfo_open() 828 debug->buffer = kmalloc(LPFC_HBQINFO_SIZE, GFP_KERNEL); in lpfc_debugfs_hbqinfo_open() 865 debug = kmalloc(sizeof(*debug), GFP_KERNEL); in lpfc_debugfs_dumpHBASlim_open() [all …]
|
/linux-4.4.14/drivers/xen/xen-pciback/ |
D | passthrough.c | 53 dev_entry = kmalloc(sizeof(*dev_entry), GFP_KERNEL); in __xen_pcibk_add_pci_dev() 103 dev_data = kmalloc(sizeof(*dev_data), GFP_KERNEL); in __xen_pcibk_init_devices()
|
D | conf_space_header.c | 34 struct pci_cmd_info *cmd = kmalloc(sizeof(*cmd), GFP_KERNEL); in command_init() 240 struct pci_bar_info *bar = kmalloc(sizeof(*bar), GFP_KERNEL); in bar_init() 253 struct pci_bar_info *bar = kmalloc(sizeof(*bar), GFP_KERNEL); in rom_init()
|
/linux-4.4.14/drivers/staging/lustre/lustre/libcfs/linux/ |
D | linux-tracefile.c | 64 kmalloc(sizeof(union cfs_trace_data_union) * in cfs_tracefile_init_arch() 82 kmalloc(CFS_TRACE_CONSOLE_BUFFER_SIZE, in cfs_tracefile_init_arch()
|
D | linux-crypto.c | 133 hdesc = kmalloc(sizeof(*hdesc), 0); in cfs_crypto_hash_init() 255 data = kmalloc(data_len, 0); in cfs_crypto_test_hashes()
|
/linux-4.4.14/net/atm/ |
D | addr.c | 89 this = kmalloc(sizeof(struct atm_dev_addr), GFP_ATOMIC); in atm_add_addr() 148 tmp_buf = tmp_bufp = kmalloc(total, GFP_ATOMIC); in atm_get_addr()
|
/linux-4.4.14/drivers/watchdog/ |
D | diag288_wdt.c | 119 ebc_cmd = kmalloc(MAX_CMDLEN, GFP_KERNEL); in wdt_start() 162 ebc_cmd = kmalloc(MAX_CMDLEN, GFP_KERNEL); in wdt_ping()
|
/linux-4.4.14/drivers/s390/net/ |
D | smsgiucv.c | 76 buffer = kmalloc(msg->length + 1, GFP_ATOMIC | GFP_DMA); in smsg_message_pending() 109 cb = kmalloc(sizeof(struct smsg_callback), GFP_KERNEL); in smsg_register_callback()
|
/linux-4.4.14/net/ceph/ |
D | pagevec.c | 22 pages = kmalloc(sizeof(*pages) * num_pages, GFP_NOFS); in ceph_get_direct_page_vector() 76 pages = kmalloc(sizeof(*pages) * num_pages, flags); in ceph_alloc_page_vector()
|
D | buffer.c | 15 b = kmalloc(sizeof(*b), gfp); in ceph_buffer_new()
|
/linux-4.4.14/arch/s390/include/asm/ |
D | idals.h | 79 idal = kmalloc(nridaws * sizeof(unsigned long), in set_normalized_cda() 124 ib = kmalloc(sizeof(struct idal_buffer) + nr_ptrs*sizeof(void *), in idal_buffer_alloc()
|
/linux-4.4.14/sound/usb/6fire/ |
D | comm.c | 117 buffer = kmalloc(13, GFP_KERNEL); in usb6fire_comm_write8() 135 buffer = kmalloc(13, GFP_KERNEL); in usb6fire_comm_write16()
|
/linux-4.4.14/arch/arm/mach-lpc32xx/ |
D | pm.c | 90 iram_swap_area = kmalloc(lpc32xx_sys_suspend_sz, GFP_KERNEL); in lpc32xx_pm_enter()
|
/linux-4.4.14/arch/x86/kernel/ |
D | crash_dump_32.c | 86 kdump_buf_page = kmalloc(PAGE_SIZE, GFP_KERNEL); in kdump_buf_page_init()
|
D | test_nx.c | 128 heap = kmalloc(64, GFP_KERNEL); in test_NX()
|
/linux-4.4.14/include/linux/decompress/ |
D | mm.h | 80 #define malloc(a) kmalloc(a, GFP_KERNEL)
|
/linux-4.4.14/sound/usb/line6/ |
D | driver.c | 183 msg = kmalloc(sizeof(struct message), GFP_ATOMIC); in line6_send_raw_message_async() 246 char *buffer = kmalloc(size + SYSEX_EXTRA_SIZE, GFP_ATOMIC); in line6_alloc_sysex_buffer() 486 line6->buffer_listen = kmalloc(LINE6_BUFSIZE_LISTEN, GFP_KERNEL); in line6_init_cap_control() 490 line6->buffer_message = kmalloc(LINE6_MESSAGE_MAXLEN, GFP_KERNEL); in line6_init_cap_control()
|
/linux-4.4.14/Documentation/zh_CN/ |
D | CodingStyle | 360 char *buffer = kmalloc(SIZE); 576 内核提供了下面的一般用途的内存分配函数:kmalloc(),kzalloc(),kcalloc()和 581 p = kmalloc(sizeof(*p), ...); 601 优化掉你的函数的大部分代码,那仍然可以给它加上inline关键字。kmalloc()内联函数就
|
/linux-4.4.14/drivers/md/persistent-data/ |
D | dm-transaction-manager.c | 129 si = kmalloc(sizeof(*si), GFP_NOIO); in insert_shadow() 166 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in dm_tm_create() 188 tm = kmalloc(sizeof(*tm), GFP_KERNEL); in dm_tm_create_non_blocking_clone()
|
/linux-4.4.14/drivers/parisc/ |
D | eisa_enumerator.c | 94 if (NULL != (res = kmalloc(sizeof(struct resource), GFP_KERNEL))) { in configure_memory() 186 if (NULL != (res = kmalloc(sizeof(struct resource), GFP_KERNEL))) { in configure_port() 334 if (NULL == (board = kmalloc(8, GFP_KERNEL))) { in parse_slot_config()
|
/linux-4.4.14/drivers/char/tpm/ |
D | tpm_of.c | 56 log->bios_event_log = kmalloc(*sizep, GFP_KERNEL); in read_log()
|
/linux-4.4.14/arch/x86/um/vdso/ |
D | vma.c | 32 vdsop = kmalloc(sizeof(struct page *), GFP_KERNEL); in init_vdso()
|
/linux-4.4.14/fs/ext2/ |
D | acl.c | 98 ext_acl = kmalloc(sizeof(ext2_acl_header) + acl->a_count * in ext2_acl_to_disk() 162 value = kmalloc(retval, GFP_KERNEL); in ext2_get_acl()
|
/linux-4.4.14/fs/lockd/ |
D | clntlock.c | 102 block = kmalloc(sizeof(*block), GFP_KERNEL); in nlmclnt_prepare_block() 236 req = kmalloc(sizeof(*req), GFP_KERNEL); in reclaimer()
|
/linux-4.4.14/drivers/staging/rdma/amso1100/ |
D | c2_provider.c | 134 context = kmalloc(sizeof(*context), GFP_KERNEL); in c2_alloc_ucontext() 163 pd = kmalloc(sizeof(*pd), GFP_KERNEL); in c2_alloc_pd() 304 cq = kmalloc(sizeof(*cq), GFP_KERNEL); in c2_create_cq() 396 mr = kmalloc(sizeof(*mr), GFP_KERNEL); in c2_reg_phys_mr() 450 c2mr = kmalloc(sizeof(*c2mr), GFP_KERNEL); in c2_reg_user_mr() 867 dev->ibdev.iwcm = kmalloc(sizeof(*dev->ibdev.iwcm), GFP_KERNEL); in c2_register_device()
|
/linux-4.4.14/security/apparmor/ |
D | lib.c | 98 buffer = kmalloc(size, flags | GFP_NOIO | __GFP_NOWARN); in __aa_kvmalloc()
|
/linux-4.4.14/drivers/virtio/ |
D | virtio_pci_common.c | 150 vp_dev->msix_entries = kmalloc(nvectors * sizeof *vp_dev->msix_entries, in vp_request_msix_vectors() 154 vp_dev->msix_names = kmalloc(nvectors * sizeof *vp_dev->msix_names, in vp_request_msix_vectors() 231 struct virtio_pci_vq_info *info = kmalloc(sizeof *info, GFP_KERNEL); in vp_setup_vq() 307 vp_dev->vqs = kmalloc(nvqs * sizeof *vp_dev->vqs, GFP_KERNEL); in vp_try_to_find_vqs()
|
/linux-4.4.14/drivers/tty/vt/ |
D | consolemap.c | 196 q = p->inverse_translations[i] = kmalloc(MAX_GLYPH, GFP_KERNEL); in set_inverse_transl() 221 kmalloc(MAX_GLYPH * sizeof(u16), GFP_KERNEL); in set_inverse_trans_unicode() 482 p1 = p->uni_pgdir[n] = kmalloc(32*sizeof(u16 *), GFP_KERNEL); in con_insert_unipair() 490 p2 = p1[n] = kmalloc(64*sizeof(u16), GFP_KERNEL); in con_insert_unipair()
|
/linux-4.4.14/drivers/infiniband/hw/qib/ |
D | qib_fs.c | 230 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL); in qsfp_1_read() 254 tmp = kmalloc(PAGE_SIZE, GFP_KERNEL); in qsfp_2_read() 293 tmp = kmalloc(count, GFP_KERNEL); in flash_read() 341 tmp = kmalloc(count, GFP_KERNEL); in flash_write()
|
/linux-4.4.14/drivers/usb/core/ |
D | message.c | 138 dr = kmalloc(sizeof(struct usb_ctrlrequest), GFP_NOIO); in usb_control_msg() 386 io->urbs = kmalloc(io->entries * sizeof(*io->urbs), mem_flags); in usb_sg_init() 822 tbuf = kmalloc(256, GFP_NOIO); in usb_string() 870 buf = kmalloc(MAX_USB_STRING_SIZE, GFP_NOIO); in usb_cache_string() 874 smallbuf = kmalloc(++len, GFP_NOIO); in usb_cache_string() 909 desc = kmalloc(sizeof(*desc), GFP_NOIO); in usb_get_device_descriptor() 945 __le16 *status = kmalloc(sizeof(*status), GFP_KERNEL); in usb_get_status() 1764 new_interfaces = kmalloc(nintf * sizeof(*new_interfaces), in usb_set_configuration() 2014 req = kmalloc(sizeof(*req), GFP_KERNEL); in usb_driver_set_configuration()
|
/linux-4.4.14/drivers/usb/mon/ |
D | mon_stat.c | 31 sp = kmalloc(sizeof(struct snap), GFP_KERNEL); in mon_stat_open()
|
/linux-4.4.14/fs/nfsd/ |
D | nfs4recover.c | 121 cksum.data = kmalloc(cksum.len, GFP_KERNEL); in nfs4_make_rec_clidname() 257 entry = kmalloc(sizeof(struct name_list), GFP_KERNEL); in nfsd4_build_namelist() 507 nn->reclaim_str_hashtbl = kmalloc(sizeof(struct list_head) * in nfs4_legacy_state_init() 1091 result = kmalloc(len, GFP_KERNEL); in nfsd4_cltrack_legacy_topdir() 1120 result = kmalloc(len, GFP_KERNEL); in nfsd4_cltrack_legacy_recdir() 1151 result = kmalloc(len, GFP_KERNEL); in nfsd4_cltrack_client_has_session() 1176 result = kmalloc(len, GFP_KERNEL); in nfsd4_cltrack_grace_start() 1241 buf = kmalloc((srclen * 2) + 1, GFP_KERNEL); in bin_to_hex_dup()
|
/linux-4.4.14/drivers/iio/magnetometer/ |
D | st_magn_buffer.c | 43 mdata->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_magn_buffer_postenable()
|
/linux-4.4.14/net/batman-adv/ |
D | hash.c | 49 hash = kmalloc(sizeof(*hash), GFP_ATOMIC); in batadv_hash_new()
|
/linux-4.4.14/arch/cris/kernel/ |
D | module.c | 35 return kmalloc(size, GFP_KERNEL); in module_alloc()
|
D | profile.c | 69 sample_buffer = kmalloc(SAMPLE_BUFFER_SIZE, GFP_KERNEL); in init_cris_profile()
|
/linux-4.4.14/include/acpi/platform/ |
D | aclinuxex.h | 86 return kmalloc(size, irqs_disabled()? GFP_ATOMIC : GFP_KERNEL); in acpi_os_allocate()
|
/linux-4.4.14/drivers/video/fbdev/via/ |
D | via_aux.c | 35 bus = kmalloc(sizeof(*bus), GFP_KERNEL); in via_aux_probe()
|
/linux-4.4.14/drivers/iio/pressure/ |
D | st_pressure_buffer.c | 43 press_data->buffer_data = kmalloc(indio_dev->scan_bytes, GFP_KERNEL); in st_press_buffer_postenable()
|
/linux-4.4.14/kernel/trace/ |
D | trace_printk.c | 65 tb_fmt = kmalloc(sizeof(*tb_fmt), GFP_KERNEL); in hold_module_trace_bprintk_format() 67 fmt = kmalloc(strlen(*iter) + 1, GFP_KERNEL); in hold_module_trace_bprintk_format()
|
/linux-4.4.14/fs/cachefiles/ |
D | xattr.c | 171 auxbuf = kmalloc(sizeof(struct cachefiles_xattr) + 512, GFP_KERNEL); in cachefiles_check_auxdata() 209 auxbuf = kmalloc(sizeof(struct cachefiles_xattr) + 512, cachefiles_gfp); in cachefiles_check_object_xattr()
|
/linux-4.4.14/drivers/gpu/drm/qxl/ |
D | qxl_image.c | 41 chunk = kmalloc(sizeof(struct qxl_drm_chunk), GFP_KERNEL); in qxl_allocate_chunk() 64 image = kmalloc(sizeof(struct qxl_drm_image), GFP_KERNEL); in qxl_image_alloc_objects()
|
/linux-4.4.14/net/mac80211/ |
D | rc80211_minstrel_debugfs.c | 81 ms = kmalloc(2048, GFP_KERNEL); in minstrel_stats_open() 154 ms = kmalloc(2048, GFP_KERNEL); in minstrel_stats_csv_open()
|
/linux-4.4.14/drivers/media/usb/ttusb-dec/ |
D | ttusbdecfe.c | 215 state = kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL); in ttusbdecfe_dvbt_attach() 235 state = kmalloc(sizeof(struct ttusbdecfe_state), GFP_KERNEL); in ttusbdecfe_dvbs_attach()
|
/linux-4.4.14/fs/hfsplus/ |
D | wrapper.c | 174 sbi->s_vhdr_buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL); in hfsplus_read_wrapper() 177 sbi->s_backup_vhdr_buf = kmalloc(hfsplus_min_io_size(sb), GFP_KERNEL); in hfsplus_read_wrapper()
|
/linux-4.4.14/include/crypto/ |
D | skcipher.h | 114 req = kmalloc(sizeof(struct skcipher_givcrypt_request) + in skcipher_givcrypt_alloc() 425 req = kmalloc(sizeof(struct skcipher_request) + in skcipher_request_alloc()
|
/linux-4.4.14/drivers/net/wireless/prism54/ |
D | islpci_mgt.c | 124 buf->mem = kmalloc(MGMT_FRAME_SIZE, GFP_ATOMIC); in islpci_mgmt_rx_fill() 189 p = buf.mem = kmalloc(frag_len, GFP_KERNEL); in islpci_mgt_transmit() 355 frame = kmalloc(sizeof(struct islpci_mgmtframe) + size, in islpci_mgt_receive()
|
/linux-4.4.14/drivers/media/usb/dvb-usb/ |
D | friio.c | 155 buf = kmalloc(2, GFP_KERNEL); in friio_ext_ctl() 230 wbuf = kmalloc(3, GFP_KERNEL); in friio_initialize() 234 rbuf = kmalloc(2, GFP_KERNEL); in friio_initialize()
|
D | vp702x.c | 129 buf = kmalloc(buflen, GFP_KERNEL); in vp702x_usb_inout_cmd() 267 key = kmalloc(10, GFP_KERNEL); in vp702x_rc_query() 346 st->buf = kmalloc(st->buf_len, GFP_KERNEL); in vp702x_usb_probe()
|
D | az6027.c | 425 b = kmalloc(12, GFP_KERNEL); in az6027_ci_read_attribute_mem() 498 b = kmalloc(12, GFP_KERNEL); in az6027_ci_read_cam_control() 571 b = kmalloc(12, GFP_KERNEL); in CI_CamReady() 687 b = kmalloc(12, GFP_KERNEL); in az6027_ci_poll_slot_status() 963 data = kmalloc(256, GFP_KERNEL); in az6027_i2c_xfer() 1064 b = kmalloc(16, GFP_KERNEL); in az6027_identify_state()
|
/linux-4.4.14/fs/f2fs/ |
D | crypto_fname.c | 95 alloc_buf = kmalloc(ciphertext_len, GFP_NOFS); in f2fs_fname_encrypt() 285 crypto_str->name = kmalloc(olen + 1, GFP_NOFS); in f2fs_fname_crypto_alloc_buffer() 412 fname->crypto_buf.name = kmalloc(32, GFP_KERNEL); in f2fs_fname_setup_filename()
|
/linux-4.4.14/drivers/char/agp/ |
D | isoch.c | 95 if ((master = kmalloc(ndevs * sizeof(*master), GFP_KERNEL)) == NULL) { in agp_3_5_isochronous_node_enable() 341 if ((dev_list = kmalloc(sizeof(*dev_list), GFP_KERNEL)) == NULL) { in agp_3_5_enable() 370 if ((cur = kmalloc(sizeof(*cur), GFP_KERNEL)) == NULL) { in agp_3_5_enable()
|
/linux-4.4.14/drivers/tty/ |
D | n_r3964.c | 519 pBlock = kmalloc(length + sizeof(struct r3964_block_header), in on_receive_block() 788 pClient = kmalloc(sizeof(struct r3964_client_info), in enable_signals() 848 pMsg = kmalloc(sizeof(struct r3964_message), in add_msg() 950 pInfo = kmalloc(sizeof(struct r3964_info), GFP_KERNEL); in r3964_open() 958 pInfo->rx_buf = kmalloc(RX_BUF_SIZE, GFP_KERNEL); in r3964_open() 968 pInfo->tx_buf = kmalloc(TX_BUF_SIZE, GFP_KERNEL); in r3964_open() 1151 new_data = kmalloc(count + sizeof(struct r3964_block_header), in r3964_write()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_semaphore.c | 39 *semaphore = kmalloc(sizeof(struct amdgpu_semaphore), GFP_KERNEL); in amdgpu_semaphore_create()
|
/linux-4.4.14/drivers/usb/wusbcore/ |
D | wa-hc.c | 50 wa->dti_buf = kmalloc(wa->dti_buf_size, GFP_KERNEL); in wa_create()
|
/linux-4.4.14/net/9p/ |
D | util.c | 57 p = kmalloc(sizeof(struct p9_idpool), GFP_KERNEL); in p9_idpool_create()
|
D | trans_virtio.c | 367 *pages = kmalloc(sizeof(struct page *) * nr_pages, GFP_NOFS); in p9_get_mapped_pages() 557 chan = kmalloc(sizeof(struct virtio_chan), GFP_KERNEL); in p9_virtio_probe() 584 tag = kmalloc(tag_len, GFP_KERNEL); in p9_virtio_probe() 598 chan->vc_wq = kmalloc(sizeof(wait_queue_head_t), GFP_KERNEL); in p9_virtio_probe()
|
/linux-4.4.14/arch/s390/mm/ |
D | extmem.c | 105 char *name = kmalloc(8 * sizeof(char), GFP_KERNEL | GFP_DMA); in dcss_set_subcodes() 250 qin = kmalloc(sizeof(*qin), GFP_KERNEL | GFP_DMA); in query_segment_type() 251 qout = kmalloc(sizeof(*qout), GFP_KERNEL | GFP_DMA); in query_segment_type() 404 seg = kmalloc(sizeof(*seg), GFP_KERNEL | GFP_DMA); in __segment_load()
|
/linux-4.4.14/fs/ubifs/ |
D | xattr.c | 325 xent = kmalloc(UBIFS_MAX_XENT_NODE_SZ, GFP_NOFS); in setxattr() 394 xent = kmalloc(UBIFS_MAX_XENT_NODE_SZ, GFP_NOFS); in ubifs_getxattr() 559 xent = kmalloc(UBIFS_MAX_XENT_NODE_SZ, GFP_NOFS); in ubifs_removexattr() 599 name = kmalloc(XATTR_SECURITY_PREFIX_LEN + in init_xattrs()
|