Searched refs:kmalloc_array (Results 1 - 66 of 66) sorted by relevance

/linux-4.1.27/net/batman-adv/
H A Dhash.c49 hash->table = kmalloc_array(size, sizeof(*hash->table), GFP_ATOMIC); batadv_hash_new()
53 hash->list_locks = kmalloc_array(size, sizeof(*hash->list_locks), batadv_hash_new()
H A Dbat_iv_ogm.c116 data_ptr = kmalloc_array(max_if_num, batadv_iv_ogm_orig_add_if()
126 data_ptr = kmalloc_array(max_if_num, sizeof(uint8_t), GFP_ATOMIC); batadv_iv_ogm_orig_add_if()
167 data_ptr = kmalloc_array(max_if_num, chunk_size, GFP_ATOMIC); batadv_iv_ogm_orig_del_if()
186 data_ptr = kmalloc_array(max_if_num, sizeof(uint8_t), GFP_ATOMIC); batadv_iv_ogm_orig_del_if()
H A Ddistributed-arp-table.c541 res = kmalloc_array(BATADV_DAT_CANDIDATES_NUM, sizeof(*res), batadv_dat_select_candidates()
/linux-4.1.27/drivers/base/
H A Dmap.c44 p = kmalloc_array(n, sizeof(struct probe), GFP_KERNEL); kobj_map()
/linux-4.1.27/drivers/clk/shmobile/
H A Dclk-div6.c197 clock->parents = kmalloc_array(num_parents, sizeof(*clock->parents), cpg_div6_clock_init()
199 parent_names = kmalloc_array(num_parents, sizeof(*parent_names), cpg_div6_clock_init()
/linux-4.1.27/fs/squashfs/
H A Dfile_direct.c47 page = kmalloc_array(pages, sizeof(void *), GFP_KERNEL); squashfs_readpage_block()
/linux-4.1.27/security/integrity/ima/
H A Dima_template.c176 *fields = kmalloc_array(i, sizeof(*fields), GFP_KERNEL); template_desc_init_fields()
/linux-4.1.27/fs/nfs/
H A Dcallback_xdr.c316 args->devs = kmalloc_array(n, sizeof(*args->devs), GFP_KERNEL); decode_devicenotify_args()
418 rc_list->rcl_refcalls = kmalloc_array(rc_list->rcl_nrefcalls, decode_rc_list()
459 args->csa_rclists = kmalloc_array(args->csa_nrclists, decode_cb_sequence_args()
/linux-4.1.27/include/linux/
H A Dslab.h520 * kmalloc_array - allocate memory for an array.
525 static inline void *kmalloc_array(size_t n, size_t size, gfp_t flags) kmalloc_array() function
540 return kmalloc_array(n, size, flags | __GFP_ZERO); kcalloc()
/linux-4.1.27/drivers/staging/comedi/drivers/
H A Dserial2002.c355 maxdata_list = kmalloc_array(s->n_chan, sizeof(unsigned int), serial2002_setup_subdevice()
366 range_table_list = kmalloc_array(s->n_chan, sizeof(*range), serial2002_setup_subdevice()
H A Ddas1800.c1353 devpriv->fifo_buf = kmalloc_array(FIFO_SIZE, sizeof(uint16_t), GFP_KERNEL); das1800_attach()
/linux-4.1.27/sound/firewire/dice/
H A Ddice.c35 pointers = kmalloc_array(ARRAY_SIZE(min_values), sizeof(__be32), dice_interface_check()
/linux-4.1.27/drivers/misc/mic/host/
H A Dmic_intr.c206 mdev->irq_info.msix_entries = kmalloc_array(MIC_MIN_MSIX, mic_setup_msix()
254 mdev->irq_info.cb_list = kmalloc_array(MIC_NUM_OFFSETS, mic_setup_callbacks()
H A Dmic_smpt.c369 smpt_info->entry = kmalloc_array(smpt_info->info.num_reg, mic_smpt_init()
/linux-4.1.27/drivers/media/platform/vivid/
H A Dvivid-osd.c346 dev->fb_info.pseudo_palette = kmalloc_array(16, sizeof(u32), GFP_KERNEL); vivid_fb_init_vidmode()
/linux-4.1.27/drivers/gpu/drm/amd/amdkfd/
H A Dkfd_process.c264 process->queues = kmalloc_array(INITIAL_QUEUE_ARRAY_SIZE, create_process()
/linux-4.1.27/drivers/gpu/drm/qxl/
H A Dqxl_ioctl.c171 reloc_info = kmalloc_array(cmd->relocs_num, qxl_process_single_command()
/linux-4.1.27/kernel/bpf/
H A Dhashtab.c73 htab->buckets = kmalloc_array(htab->n_buckets, sizeof(struct hlist_head), htab_map_alloc()
H A Dverifier.c2124 env->prog->aux->used_maps = kmalloc_array(env->used_map_cnt, bpf_check()
/linux-4.1.27/arch/powerpc/perf/
H A Dhv-24x7.c801 events = kmalloc_array(attr_max + 1, sizeof(*events), GFP_KERNEL); create_events_from_catalog()
807 event_descs = kmalloc_array(event_idx + 1, sizeof(*event_descs), create_events_from_catalog()
814 event_long_descs = kmalloc_array(event_idx + 1, create_events_from_catalog()
/linux-4.1.27/fs/pstore/
H A Dram_core.c401 pages = kmalloc_array(page_count, sizeof(struct page *), GFP_KERNEL); persistent_ram_vmap()
/linux-4.1.27/mm/
H A Dmempool.c261 new_elements = kmalloc_array(new_min_nr, sizeof(*new_elements), mempool_resize()
/linux-4.1.27/drivers/gpu/drm/savage/
H A Dsavage_state.c991 kcmd_addr = kmalloc_array(cmdbuf->size, 8, GFP_KERNEL); savage_bci_cmdbuf()
1018 kbox_addr = kmalloc_array(cmdbuf->nbox, sizeof(struct drm_clip_rect), savage_bci_cmdbuf()
/linux-4.1.27/drivers/net/ethernet/ibm/ehea/
H A Dehea_qmr.c67 queue->queue_pages = kmalloc_array(nr_of_pages, sizeof(void *), hw_queue_ctor()
/linux-4.1.27/drivers/net/ethernet/stmicro/stmmac/
H A Dstmmac_main.c1173 priv->rx_skbuff_dma = kmalloc_array(rxsize, sizeof(dma_addr_t), alloc_dma_desc_resources()
1178 priv->rx_skbuff = kmalloc_array(rxsize, sizeof(struct sk_buff *), alloc_dma_desc_resources()
1183 priv->tx_skbuff_dma = kmalloc_array(txsize, alloc_dma_desc_resources()
1189 priv->tx_skbuff = kmalloc_array(txsize, sizeof(struct sk_buff *), alloc_dma_desc_resources()
/linux-4.1.27/drivers/staging/fsl-mc/bus/
H A Dmc-bus.c274 regions = kmalloc_array(obj_desc->region_count, fsl_mc_device_get_mmio_regions()
/linux-4.1.27/drivers/base/regmap/
H A Dregcache.c51 map->reg_defaults = kmalloc_array(count, sizeof(struct reg_default), regcache_hw_init()
/linux-4.1.27/net/dsa/
H A Ddsa.c543 cd->rtable = kmalloc_array(pd->nr_chips, sizeof(s8), dsa_of_setup_routing_table()
/linux-4.1.27/lib/
H A Drhashtable.c86 tbl->locks = kmalloc_array(size, sizeof(spinlock_t), alloc_bucket_locks()
/linux-4.1.27/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c761 local_rqfpr = kmalloc_array(MAX_FILER_IDX + 1, sizeof(unsigned int), gfar_ethflow_to_filer_table()
763 local_rqfcr = kmalloc_array(MAX_FILER_IDX + 1, sizeof(unsigned int), gfar_ethflow_to_filer_table()
H A Dgianfar.c291 kmalloc_array(tx_queue->tx_ring_size, gfar_alloc_skb_resources()
304 kmalloc_array(rx_queue->rx_ring_size, gfar_alloc_skb_resources()
/linux-4.1.27/drivers/net/ethernet/smsc/
H A Dsmsc9420.c1242 pd->tx_buffers = kmalloc_array(TX_RING_SIZE, smsc9420_alloc_tx_ring()
1275 pd->rx_buffers = kmalloc_array(RX_RING_SIZE, smsc9420_alloc_rx_ring()
/linux-4.1.27/fs/btrfs/
H A Ddelayed-inode.c776 keys = kmalloc_array(nitems, sizeof(struct btrfs_key), GFP_NOFS); btrfs_batch_insert_items()
782 data_size = kmalloc_array(nitems, sizeof(u32), GFP_NOFS); btrfs_batch_insert_items()
H A Dfile-item.c188 btrfs_bio->csum_allocated = kmalloc_array(nblocks, __btrfs_lookup_bio_sums()
H A Dsuper.c1689 devices_info = kmalloc_array(nr_devices, sizeof(*devices_info), btrfs_calc_avail_data_space()
H A Dcheck-integrity.c2993 mapped_datav = kmalloc_array(bio->bi_vcnt, __btrfsic_submit_bio()
H A Dfile.c1492 pages = kmalloc_array(nrptrs, sizeof(struct page *), GFP_KERNEL); __btrfs_buffered_write()
H A Dioctl.c1294 pages = kmalloc_array(max_cluster, sizeof(struct page *), btrfs_defrag_file()
/linux-4.1.27/drivers/net/ethernet/samsung/sxgbe/
H A Dsxgbe_main.c494 rx_ring->rx_skbuff_dma = kmalloc_array(rx_rsize, init_rx_ring()
501 rx_ring->rx_skbuff = kmalloc_array(rx_rsize, init_rx_ring()
/linux-4.1.27/drivers/staging/comedi/
H A Dcomedi_fops.c1414 data = kmalloc_array(MAX_SAMPLES, sizeof(unsigned int), GFP_KERNEL); do_insnlist_ioctl()
1495 data = kmalloc_array(MAX_SAMPLES, sizeof(unsigned int), GFP_KERNEL); do_insn_ioctl()
/linux-4.1.27/arch/s390/kvm/
H A Dkvm-s390.c763 keys = kmalloc_array(args->count, sizeof(uint8_t), kvm_s390_get_skeys()
807 keys = kmalloc_array(args->count, sizeof(uint8_t), kvm_s390_set_skeys()
/linux-4.1.27/drivers/net/ethernet/rdc/
H A Dr6040.c1192 lp->mii_bus->irq = kmalloc_array(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); r6040_init_one()
/linux-4.1.27/drivers/misc/genwqe/
H A Dcard_base.c392 kmalloc_array(e, sizeof(struct genwqe_reg), genwqe_ffdc_buffs_alloc()
/linux-4.1.27/drivers/staging/rtl8712/
H A Drtl871x_xmit.c952 pxmitpriv->hwxmits = kmalloc_array(pxmitpriv->hwxmit_entry, alloc_hwxmits()
/linux-4.1.27/drivers/usb/dwc3/
H A Dcore.c265 dwc->scratchbuf = kmalloc_array(dwc->nr_scratch, dwc3_alloc_scratch_buffers()
/linux-4.1.27/drivers/net/ethernet/renesas/
H A Dsh_eth.c1215 mdp->rx_skbuff = kmalloc_array(mdp->num_rx_ring, sh_eth_ring_init()
1222 mdp->tx_skbuff = kmalloc_array(mdp->num_tx_ring, sh_eth_ring_init()
/linux-4.1.27/drivers/media/v4l2-core/
H A Dv4l2-ctrls.c2830 helpers = kmalloc_array(cs->count, sizeof(helper[0]), v4l2_g_ext_ctrls()
3089 helpers = kmalloc_array(cs->count, sizeof(helper[0]), try_set_ext_ctrls()
/linux-4.1.27/drivers/iommu/
H A Darm-smmu.c1018 smrs = kmalloc_array(cfg->num_streamids, sizeof(*smrs), GFP_KERNEL); arm_smmu_master_configure_smrs()
/linux-4.1.27/drivers/staging/iio/adc/
H A Dmxs-lradc.c1275 lradc->buffer = kmalloc_array(len, sizeof(*lradc->buffer), GFP_KERNEL); mxs_lradc_buffer_preenable()
/linux-4.1.27/drivers/net/ethernet/broadcom/
H A Dbgmac.c1493 mii_bus->irq = kmalloc_array(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); bgmac_mii_register()
/linux-4.1.27/drivers/crypto/qat/qat_common/
H A Dqat_hal.c1106 micro_inst_arry = kmalloc_array(alloc_inst_size, sizeof(uint64_t), qat_hal_batch_wr_lm()
/linux-4.1.27/net/core/
H A Dfilter.c628 masks = kmalloc_array(flen, sizeof(*masks), GFP_KERNEL); check_load_and_stores()
/linux-4.1.27/drivers/xen/
H A Dxen-scsiback.c523 pending_req->sgl = kmalloc_array(nr_segments, scsiback_gnttab_data_map()
/linux-4.1.27/scripts/
H A Dcheckpatch.pl5180 # check for k[mz]alloc with multiplies that could be kmalloc_array/kcalloc
5186 my $newfunc = "kmalloc_array";
5213 if ($line =~ /\b(kcalloc|kmalloc_array)\s*\(\s*sizeof\b/) {
/linux-4.1.27/drivers/staging/ozwpan/
H A Dozhcd.c1318 iface = kmalloc_array(num_iface, sizeof(struct oz_interface), oz_build_endpoints_for_config()
/linux-4.1.27/drivers/infiniband/hw/qib/
H A Dqib_verbs.c2059 dev->qp_table = kmalloc_array( qib_register_ib_device()
/linux-4.1.27/fs/
H A Dbinfmt_elf.c2196 vma_filesz = kmalloc_array(segs - 1, sizeof(*vma_filesz), GFP_KERNEL); elf_core_dump()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlge/
H A Dqlge_main.c3010 rx_ring->sbq = kmalloc_array(rx_ring->sbq_len, ql_alloc_rx_resources()
3035 rx_ring->lbq = kmalloc_array(rx_ring->lbq_len, ql_alloc_rx_resources()
/linux-4.1.27/drivers/gpu/drm/
H A Ddrm_crtc.c1166 plane->format_types = kmalloc_array(format_count, sizeof(uint32_t), drm_universal_plane_init()
2856 connector_set = kmalloc_array(crtc_req->count_connectors, drm_mode_setcrtc()
/linux-4.1.27/drivers/net/ethernet/intel/igbvf/
H A Dnetdev.c1421 mta_list = kmalloc_array(netdev_mc_count(netdev), ETH_ALEN, igbvf_set_multi()
/linux-4.1.27/drivers/net/ethernet/qlogic/
H A Dqla3xxx.c2590 qdev->lrg_buf = kmalloc_array(qdev->num_large_buffers, ql_alloc_buffer_queues()
/linux-4.1.27/drivers/net/wireless/
H A Drndis_wlan.c1623 mc_addrs = kmalloc_array(mc_count, ETH_ALEN, GFP_ATOMIC); set_multicast_list()
/linux-4.1.27/drivers/usb/misc/
H A Dusbtest.c504 sg = kmalloc_array(nents, sizeof(*sg), GFP_KERNEL); alloc_sglist()
/linux-4.1.27/drivers/net/ethernet/agere/
H A Det131x.c4039 adapter->mii_bus->irq = kmalloc_array(PHY_MAX_ADDR, sizeof(int), et131x_pci_setup()
/linux-4.1.27/drivers/net/ethernet/rocker/
H A Drocker.c4704 rocker->msix_entries = kmalloc_array(msix_entries, rocker_msix_init()
/linux-4.1.27/drivers/net/wireless/ipw2x00/
H A Dipw2100.c4438 priv->tx_buffers = kmalloc_array(TX_PENDED_QUEUE_LENGTH, ipw2100_tx_allocate()

Completed in 7118 milliseconds