Home
last modified time | relevance | path

Searched refs:kcalloc (Results 1 – 200 of 653) sorted by relevance

1234

/linux-4.4.14/scripts/coccinelle/api/alloc/
Dalloc_cast.cocci5 //# 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/drivers/misc/echo/
Dfir.h98 fir->history = kcalloc(2 * taps, sizeof(int16_t), GFP_KERNEL); in fir16_create()
100 fir->history = kcalloc(taps, sizeof(int16_t), GFP_KERNEL); in fir16_create()
181 fir->history = kcalloc(taps, sizeof(int16_t), GFP_KERNEL); in fir32_create()
Decho.c243 kcalloc(ec->taps, sizeof(int16_t), GFP_KERNEL); in oslec_create()
248 kcalloc(ec->taps, sizeof(int16_t), GFP_KERNEL); in oslec_create()
265 ec->snapshot = kcalloc(ec->taps, sizeof(int16_t), GFP_KERNEL); in oslec_create()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c137 uuari->uars = kcalloc(uuari->num_uars, sizeof(*uuari->uars), GFP_KERNEL); in mlx5_alloc_uuars()
141 uuari->bfs = kcalloc(tot_uuars, sizeof(*uuari->bfs), GFP_KERNEL); in mlx5_alloc_uuars()
147 uuari->bitmap = kcalloc(BITS_TO_LONGS(tot_uuars), sizeof(*uuari->bitmap), in mlx5_alloc_uuars()
154 uuari->count = kcalloc(tot_uuars, sizeof(*uuari->count), GFP_KERNEL); in mlx5_alloc_uuars()
Dflow_table.c361 gr = kcalloc(num_groups, sizeof(struct mlx5_ftg), GFP_KERNEL); in mlx5_create_flow_table()
362 bm = kcalloc(BITS_TO_LONGS(ft_size), sizeof(uintptr_t), GFP_KERNEL); in mlx5_create_flow_table()
/linux-4.4.14/scripts/coccinelle/null/
Deno.cocci20 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…
Dkmerr.cocci37 *x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
53 x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
/linux-4.4.14/fs/ceph/
Dmdsmap.c79 m->m_info = kcalloc(m->m_max_mds, sizeof(*m->m_info), GFP_NOFS); in ceph_mdsmap_decode()
142 info->export_targets = kcalloc(num_export_targets, in ceph_mdsmap_decode()
157 m->m_data_pg_pools = kcalloc(n, sizeof(u64), GFP_NOFS); in ceph_mdsmap_decode()
/linux-4.4.14/arch/x86/xen/
Dgrant-table.c127 pages = kcalloc(nr_grant_frames, sizeof(pages[0]), GFP_KERNEL); in xlated_setup_gnttab_pages()
131 pfns = kcalloc(nr_grant_frames, sizeof(pfns[0]), GFP_KERNEL); in xlated_setup_gnttab_pages()
/linux-4.4.14/drivers/xen/
Dxen-acpi-processor.c70 dst_cx_states = kcalloc(_pr->power.count, in push_cxx_to_hypervisor()
151 dst_states = kcalloc(_pr->performance->state_count, in xen_copy_pss_data()
398 acpi_id_present = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL); in check_acpi_ids()
402 acpi_id_cst_present = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL); in check_acpi_ids()
518 acpi_ids_done = kcalloc(BITS_TO_LONGS(nr_acpi_bits), sizeof(unsigned long), GFP_KERNEL); in xen_acpi_processor_init()
Dgntdev.c142 add->grants = kcalloc(count, sizeof(add->grants[0]), GFP_KERNEL); in gntdev_alloc_map()
143 add->map_ops = kcalloc(count, sizeof(add->map_ops[0]), GFP_KERNEL); in gntdev_alloc_map()
144 add->unmap_ops = kcalloc(count, sizeof(add->unmap_ops[0]), GFP_KERNEL); in gntdev_alloc_map()
145 add->kmap_ops = kcalloc(count, sizeof(add->kmap_ops[0]), GFP_KERNEL); in gntdev_alloc_map()
146 add->kunmap_ops = kcalloc(count, sizeof(add->kunmap_ops[0]), GFP_KERNEL); in gntdev_alloc_map()
147 add->pages = kcalloc(count, sizeof(add->pages[0]), GFP_KERNEL); in gntdev_alloc_map()
Dmcelog.c371 g_physinfo = kcalloc(ncpus, sizeof(struct mcinfo_logical_cpu), in bind_virq_for_mce()
/linux-4.4.14/drivers/ssb/
Dsprom.c75 sprom = kcalloc(sprom_size_words, sizeof(u16), GFP_KERNEL); in ssb_attr_sprom_show()
108 sprom = kcalloc(bus->sprom_size, sizeof(u16), GFP_KERNEL); in ssb_attr_sprom_store()
/linux-4.4.14/sound/core/
Dsgbuf.c84 table = kcalloc(sgbuf->tblsize, sizeof(*table), GFP_KERNEL); in snd_malloc_sgbuf_pages()
88 pgtable = kcalloc(sgbuf->tblsize, sizeof(*pgtable), GFP_KERNEL); in snd_malloc_sgbuf_pages()
/linux-4.4.14/drivers/gpu/drm/
Ddrm_scatter.c108 entry->pagelist = kcalloc(pages, sizeof(*entry->pagelist), GFP_KERNEL); in drm_legacy_sg_alloc()
114 entry->busaddr = kcalloc(pages, sizeof(*entry->busaddr), GFP_KERNEL); in drm_legacy_sg_alloc()
Ddrm_atomic.c70 state->crtcs = kcalloc(dev->mode_config.num_crtc, in drm_atomic_state_init()
74 state->crtc_states = kcalloc(dev->mode_config.num_crtc, in drm_atomic_state_init()
78 state->planes = kcalloc(dev->mode_config.num_total_plane, in drm_atomic_state_init()
82 state->plane_states = kcalloc(dev->mode_config.num_total_plane, in drm_atomic_state_init()
86 state->connectors = kcalloc(state->num_connector, in drm_atomic_state_init()
91 state->connector_states = kcalloc(state->num_connector, in drm_atomic_state_init()
Ddrm_fb_helper.c692 fb_helper->crtc_info = kcalloc(crtc_count, sizeof(struct drm_fb_helper_crtc), GFP_KERNEL); in drm_fb_helper_init()
697 …fb_helper->connector_info = kcalloc(dev->mode_config.num_connector, sizeof(struct drm_fb_helper_co… in drm_fb_helper_init()
707 kcalloc(max_conn_count, in drm_fb_helper_init()
1991 crtcs = kcalloc(dev->mode_config.num_connector, in drm_setup_crtcs()
1993 modes = kcalloc(dev->mode_config.num_connector, in drm_setup_crtcs()
1995 offsets = kcalloc(dev->mode_config.num_connector, in drm_setup_crtcs()
1997 enabled = kcalloc(dev->mode_config.num_connector, in drm_setup_crtcs()
Ddrm_hashtab.c48 ht->table = kcalloc(size, sizeof(*ht->table), GFP_KERNEL); in drm_ht_create()
/linux-4.4.14/include/drm/
Ddrm_mem_util.h38 return kcalloc(nmemb, size, GFP_KERNEL); in drm_calloc_large()
/linux-4.4.14/drivers/mtd/maps/
Dpmcmsp-flash.c86 msp_maps = kcalloc(fcnt, sizeof(struct mtd_info), GFP_KERNEL); in init_msp_flash()
104 msp_parts[i] = kcalloc(pcnt, sizeof(struct mtd_partition), in init_msp_flash()
/linux-4.4.14/drivers/gpu/drm/amd/amdkfd/
Dkfd_pasid.c35 pasid_bitmap = kcalloc(BITS_TO_LONGS(pasid_limit), sizeof(long), GFP_KERNEL); in kfd_pasid_init()
/linux-4.4.14/fs/squashfs/
Dcache.c247 cache->entry = kcalloc(entries, sizeof(*(cache->entry)), GFP_KERNEL); in squashfs_cache_init()
271 entry->data = kcalloc(cache->pages, sizeof(void *), GFP_KERNEL); in squashfs_cache_init()
427 data = kcalloc(pages, sizeof(void *), GFP_KERNEL); in squashfs_read_table()
Dblock.c99 bh = kcalloc(((output->length + msblk->devblksize - 1) in squashfs_read_data()
/linux-4.4.14/drivers/target/iscsi/
Discsi_target_seq_pdu_list.c142 array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL); in iscsit_randomize_pdu_lists()
162 array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL); in iscsit_randomize_pdu_lists()
194 array = kcalloc(seq_count, sizeof(u32), GFP_KERNEL); in iscsit_randomize_seq_lists()
548 seq = kcalloc(seq_count, sizeof(struct iscsi_seq), GFP_ATOMIC); in iscsit_build_pdu_and_seq_lists()
558 pdu = kcalloc(pdu_count, sizeof(struct iscsi_pdu), GFP_ATOMIC); in iscsit_build_pdu_and_seq_lists()
/linux-4.4.14/drivers/net/wireless/ath/ath5k/
Deeprom.c730 kcalloc(AR5K_EEPROM_N_PD_CURVES, in ath5k_eeprom_convert_pcal_info_5111()
756 pd->pd_step = kcalloc(AR5K_EEPROM_N_PWR_POINTS_5111, in ath5k_eeprom_convert_pcal_info_5111()
761 pd->pd_pwr = kcalloc(AR5K_EEPROM_N_PWR_POINTS_5111, in ath5k_eeprom_convert_pcal_info_5111()
917 kcalloc(AR5K_EEPROM_N_PD_CURVES, in ath5k_eeprom_convert_pcal_info_5112()
937 pd->pd_step = kcalloc(pd->pd_points, in ath5k_eeprom_convert_pcal_info_5112()
943 pd->pd_pwr = kcalloc(pd->pd_points, in ath5k_eeprom_convert_pcal_info_5112()
975 pd->pd_step = kcalloc(pd->pd_points, in ath5k_eeprom_convert_pcal_info_5112()
981 pd->pd_pwr = kcalloc(pd->pd_points, in ath5k_eeprom_convert_pcal_info_5112()
1209 kcalloc(AR5K_EEPROM_N_PD_CURVES, in ath5k_eeprom_convert_pcal_info_2413()
1231 pd->pd_step = kcalloc(pd->pd_points, in ath5k_eeprom_convert_pcal_info_2413()
[all …]
/linux-4.4.14/arch/arm64/kernel/
Dsuspend.c141 ctx_ptr = kcalloc(mpidr_hash_size(), sizeof(phys_addr_t), GFP_KERNEL); in cpu_suspend_init()
Dpsci.c62 psci_states = kcalloc(count, sizeof(*psci_states), GFP_KERNEL); in cpu_psci_cpu_init_idle()
Dvdso.c128 vdso_pagelist = kcalloc(vdso_pages + 1, sizeof(struct page *), in vdso_init()
/linux-4.4.14/drivers/oprofile/
Doprofile_perf.c288 counter_config = kcalloc(num_counters, in oprofile_perf_init()
300 per_cpu(perf_events, cpu) = kcalloc(num_counters, in oprofile_perf_init()
/linux-4.4.14/drivers/thermal/
Dcpu_cooling.c296 power_table = kcalloc(num_opps, sizeof(*power_table), GFP_KERNEL); in build_dyn_power_table()
596 load_cpu = kcalloc(ncpus, sizeof(*load_cpu), GFP_KERNEL); in cpufreq_get_requested_power()
808 cpufreq_dev->time_in_idle = kcalloc(num_cpus, in __cpufreq_cooling_register()
817 kcalloc(num_cpus, sizeof(*cpufreq_dev->time_in_idle_timestamp), in __cpufreq_cooling_register()
Ddevfreq_cooling.c397 power_table = kcalloc(num_opps, sizeof(*power_table), in devfreq_cooling_gen_tables()
403 freq_table = kcalloc(num_opps, sizeof(*freq_table), in devfreq_cooling_gen_tables()
/linux-4.4.14/arch/arm/kernel/
Dsuspend.c93 ctx_ptr = kcalloc(mpidr_hash_size(), sizeof(u32), GFP_KERNEL); in cpu_suspend_alloc_sp()
Dtopology.c99 __cpu_capacity = kcalloc(nr_cpu_ids, sizeof(*__cpu_capacity), in parse_dt_topology()
Dvdso.c190 vdso_text_pagelist = kcalloc(text_pages, sizeof(struct page *), in vdso_init()
/linux-4.4.14/net/ceph/
Dosdmap.c71 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_list_bucket()
74 b->sum_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_list_bucket()
93 b->node_weights = kcalloc(b->num_nodes, sizeof(u32), GFP_NOFS); in crush_decode_tree_bucket()
109 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_straw_bucket()
112 b->straws = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_straw_bucket()
130 b->item_weights = kcalloc(b->h.size, sizeof(u32), GFP_NOFS); in crush_decode_straw2_bucket()
189 c->buckets = kcalloc(c->max_buckets, sizeof(*c->buckets), GFP_NOFS); in crush_decode()
192 c->rules = kcalloc(c->max_rules, sizeof(*c->rules), GFP_NOFS); in crush_decode()
246 b->items = kcalloc(b->size, sizeof(__s32), GFP_NOFS); in crush_decode()
249 b->perm = kcalloc(b->size, sizeof(u32), GFP_NOFS); in crush_decode()
/linux-4.4.14/fs/nfs/blocklayout/
Ddev.c243 d->children = kcalloc(v->concat.volumes_count, in bl_parse_concat()
272 d->children = kcalloc(v->stripe.volumes_count, in bl_parse_stripe()
337 volumes = kcalloc(nr_volumes, sizeof(struct pnfs_block_volume), in bl_alloc_deviceid_node()
/linux-4.4.14/net/netlabel/
Dnetlabel_cipso_v4.c206 doi_def->map.std->lvl.local = kcalloc(doi_def->map.std->lvl.local_size, in netlbl_cipsov4_add_std()
213 doi_def->map.std->lvl.cipso = kcalloc(doi_def->map.std->lvl.cipso_size, in netlbl_cipsov4_add_std()
279 doi_def->map.std->cat.local = kcalloc( in netlbl_cipsov4_add_std()
287 doi_def->map.std->cat.cipso = kcalloc( in netlbl_cipsov4_add_std()
/linux-4.4.14/fs/cifs/
Dsmb2file.c133 buf = kcalloc(max_num, sizeof(struct smb2_lock_element), GFP_KERNEL); in smb2_unlock_range()
269 buf = kcalloc(max_num, sizeof(struct smb2_lock_element), GFP_KERNEL); in smb2_push_mandatory_locks()
/linux-4.4.14/drivers/clk/mvebu/
Dclk-corediv.c256 clks = kcalloc(clk_data.clk_num, sizeof(struct clk *), in mvebu_corediv_clk_init()
261 corediv = kcalloc(clk_data.clk_num, sizeof(struct clk_corediv), in mvebu_corediv_clk_init()
Dkirkwood.c302 ctrl->muxes = kcalloc(ctrl->num_muxes, sizeof(struct clk *), in kirkwood_clk_muxing_setup()
/linux-4.4.14/drivers/clk/bcm/
Dclk-iproc-asiu.c201 asiu->clk_data.clks = kcalloc(num_clks, sizeof(*asiu->clk_data.clks), in iproc_asiu_setup()
206 asiu->clks = kcalloc(num_clks, sizeof(*asiu->clks), GFP_KERNEL); in iproc_asiu_setup()
Dclk-iproc-pll.c611 pll->clk_data.clks = kcalloc(num_clks, sizeof(*pll->clk_data.clks), in iproc_pll_clk_setup()
616 pll->clks = kcalloc(num_clks, sizeof(*pll->clks), GFP_KERNEL); in iproc_pll_clk_setup()
/linux-4.4.14/drivers/irqchip/
Dirq-crossbar.c228 cb->irq_map = kcalloc(max, sizeof(int), GFP_KERNEL); in crossbar_of_init()
274 cb->register_offsets = kcalloc(max, sizeof(int), GFP_KERNEL); in crossbar_of_init()
Dirq-atmel-aic-common.c233 aic = kcalloc(nchips, sizeof(*aic), GFP_KERNEL); in aic_common_of_init()
Dexynos-combiner.c184 combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL); in combiner_init()
Dirq-bcm7120-l2.c243 data->l1_data = kcalloc(data->num_parent_irqs, sizeof(*data->l1_data), in bcm7120_l2_intc_probe()
/linux-4.4.14/arch/mips/kernel/
Dsmp-cps.c149 mips_cps_core_bootcfg = kcalloc(ncores, sizeof(*mips_cps_core_bootcfg), in cps_prepare_cpus()
159 mips_cps_core_bootcfg[c].vpe_config = kcalloc(core_vpes, in cps_prepare_cpus()
/linux-4.4.14/drivers/staging/comedi/drivers/
Dserial2002.c402 di_cfg = kcalloc(32, sizeof(*cfg), GFP_KERNEL); in serial2002_setup_subdevs()
403 do_cfg = kcalloc(32, sizeof(*cfg), GFP_KERNEL); in serial2002_setup_subdevs()
404 ai_cfg = kcalloc(32, sizeof(*cfg), GFP_KERNEL); in serial2002_setup_subdevs()
405 ao_cfg = kcalloc(32, sizeof(*cfg), GFP_KERNEL); in serial2002_setup_subdevs()
Dcomedi_isadma.c180 desc = kcalloc(n_desc, sizeof(*desc), GFP_KERNEL); in comedi_isadma_alloc()
/linux-4.4.14/drivers/staging/rtl8188eu/hal/
Drtl8188eu_recv.c45 kcalloc(NR_RECVBUFF, sizeof(struct recv_buf), GFP_KERNEL); in rtl8188eu_init_recv_priv()
/linux-4.4.14/drivers/gpio/
Dgpio-it87.c364 labels = kcalloc(it87_gpio->chip.ngpio, sizeof("it87_gpXY"), in it87_gpio_init()
366 labels_table = kcalloc(it87_gpio->chip.ngpio, sizeof(const char *), in it87_gpio_init()
/linux-4.4.14/drivers/cpufreq/
Dqoriq-cpufreq.c229 data->pclk = kcalloc(count, sizeof(struct clk *), GFP_KERNEL); in qoriq_cpufreq_cpu_init()
235 table = kcalloc(count + 1, sizeof(*table), GFP_KERNEL); in qoriq_cpufreq_cpu_init()
/linux-4.4.14/drivers/staging/android/ion/
Dion_dummy_driver.c71 heaps = kcalloc(dummy_ion_pdata.nr, sizeof(struct ion_heap *), in ion_dummy_init()
/linux-4.4.14/drivers/clk/shmobile/
Dclk-r8a7778.c94 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a7778_cpg_clocks_init()
Dclk-sh73a0.c178 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in sh73a0_cpg_clocks_init()
Dclk-r8a73a4.c206 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a73a4_cpg_clocks_init()
/linux-4.4.14/drivers/staging/iio/accel/
Dlis3l02dq_ring.c64 xfers = kcalloc(bitmap_weight(indio_dev->active_scan_mask, in lis3l02dq_read_all()
121 rx_array = kcalloc(4, scan_count, GFP_KERNEL); in lis3l02dq_get_buffer_element()
/linux-4.4.14/sound/synth/emux/
Demux_seq.c151 p->chset.channels = kcalloc(max_channels, sizeof(struct snd_midi_channel), GFP_KERNEL); in snd_emux_create_port()
373 emu->vmidi = kcalloc(emu->midi_ports, sizeof(struct snd_rawmidi *), GFP_KERNEL); in snd_emux_init_virmidi()
Demux.c102 emu->voices = kcalloc(emu->max_voices, sizeof(struct snd_emux_voice), in snd_emux_register()
Demux_effect.c283 p->effect = kcalloc(p->chset.max_channels, in snd_emux_create_effect()
/linux-4.4.14/drivers/clk/st/
Dclk-flexgen.c253 parents = kcalloc(nparents, sizeof(const char *), GFP_KERNEL); in flexgen_get_parents()
297 clk_data->clks = kcalloc(clk_data->clk_num, sizeof(struct clk *), in st_of_flexgen_setup()
Dclkgen-mux.c35 parents = kcalloc(nparents, sizeof(const char *), GFP_KERNEL); in clkgen_mux_get_parents()
414 clk_data->clks = kcalloc(clk_data->clk_num, sizeof(struct clk *), in st_of_clkgena_divmux_setup()
736 clk_data->clks = kcalloc(clk_data->clk_num, sizeof(struct clk *), in st_of_clkgen_vcc_setup()
/linux-4.4.14/kernel/gcov/
Dfs.c375 node->links = kcalloc(num, sizeof(struct dentry *), GFP_KERNEL); in add_links()
440 node->loaded_info = kcalloc(1, sizeof(struct gcov_info *), in new_node()
631 loaded_info = kcalloc(num + 1, sizeof(struct gcov_info *), GFP_KERNEL); in add_info()
Dgcc_4_7.c275 dup->functions = kcalloc(info->n_functions, in gcov_info_dup()
/linux-4.4.14/kernel/sched/
Dcpupri.c222 cp->cpu_to_pri = kcalloc(nr_cpu_ids, sizeof(int), GFP_KERNEL); in cpupri_init()
Dcpudeadline.c216 cp->elements = kcalloc(nr_cpu_ids, in cpudl_init()
/linux-4.4.14/drivers/iio/imu/
Dadis16400_buffer.c35 adis->xfer = kcalloc(2, sizeof(*adis->xfer), GFP_KERNEL); in adis16400_update_scan_mode()
Dadis_buffer.c37 adis->xfer = kcalloc(scan_count + 1, sizeof(*adis->xfer), GFP_KERNEL); in adis_update_scan_mode()
/linux-4.4.14/drivers/iio/buffer/
Dindustrialio-buffer-cb.c77 = kcalloc(BITS_TO_LONGS(indio_dev->masklength), sizeof(long), in iio_channel_get_all_cb()
/linux-4.4.14/net/bridge/
Dbr_ioctl.c171 indices = kcalloc(num, sizeof(int), GFP_KERNEL); in old_dev_ioctl()
314 indices = kcalloc(args[2], sizeof(int), GFP_KERNEL); in old_deviceless()
/linux-4.4.14/drivers/clk/sunxi/
Dclk-simple-gates.c54 clk_data->clks = kcalloc(number + 1, sizeof(struct clk *), GFP_KERNEL); in sunxi_simple_gates_setup()
Dclk-a10-pll2.c65 clks = kcalloc(SUN4I_PLL2_OUTPUTS, sizeof(struct clk *), GFP_KERNEL); in sun4i_pll2_setup()
Dclk-mod0.c326 clk_data->clks = kcalloc(3, sizeof(*clk_data->clks), GFP_KERNEL); in sunxi_mmc_setup()
/linux-4.4.14/drivers/acpi/
Dacpi_lpat.c115 lpat = kcalloc(obj_p->package.count, sizeof(int), GFP_KERNEL); in acpi_lpat_get_conversion_table()
/linux-4.4.14/drivers/staging/rtl8192e/
Drtllib_module.c62 ieee->networks = kcalloc(MAX_NETWORK_COUNT, in rtllib_networks_allocate()
/linux-4.4.14/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ioctl.c275 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl()
358 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_readback_ioctl()
/linux-4.4.14/drivers/clk/samsung/
Dclk.c48 rd = kcalloc(nr_rdump, sizeof(*rd), GFP_KERNEL); in samsung_clk_alloc_reg_dump()
70 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in samsung_clk_init()
/linux-4.4.14/drivers/net/ethernet/mellanox/mlx4/
Dqp.c822 dev->caps.qp0_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
823 dev->caps.qp0_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
824 dev->caps.qp1_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
825 dev->caps.qp1_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
Dmr.c109 buddy->bits = kcalloc(buddy->max_order + 1, sizeof (long *), in mlx4_buddy_init()
111 buddy->num_free = kcalloc((buddy->max_order + 1), sizeof *buddy->num_free, in mlx4_buddy_init()
118 buddy->bits[i] = kcalloc(s, sizeof (long), GFP_KERNEL | __GFP_NOWARN); in mlx4_buddy_init()
Dprofile.c88 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile()
/linux-4.4.14/sound/core/seq/oss/
Dseq_oss_readq.c54 q->q = kcalloc(maxlen, sizeof(union evrec), GFP_KERNEL); in snd_seq_oss_readq_new()
/linux-4.4.14/drivers/clk/hisilicon/
Dclkdivider-hi6220.c122 table = kcalloc(max_div + 1, sizeof(*table), GFP_KERNEL); in hi6220_register_clkdiv()
/linux-4.4.14/drivers/clk/pistachio/
Dclk.c27 p->clk_data.clks = kcalloc(num_clks, sizeof(struct clk *), GFP_KERNEL); in pistachio_clk_alloc_provider()
/linux-4.4.14/fs/nfsd/
Dblocklayoutxdr.c111 iomaps = kcalloc(nr_iomaps, sizeof(*iomaps), GFP_KERNEL); in nfsd4_block_decode_layoutupdate()
/linux-4.4.14/drivers/base/power/opp/
Dcpu.c68 freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_ATOMIC); in dev_pm_opp_init_cpufreq_table()
/linux-4.4.14/drivers/misc/genwqe/
Dcard_debugfs.c77 regs = kcalloc(entries, sizeof(*regs), GFP_KERNEL); in curr_dbg_uidn_show()
146 regs = kcalloc(GENWQE_FFDC_REGS, sizeof(*regs), GFP_KERNEL); in genwqe_curr_regs_show()
/linux-4.4.14/drivers/clk/tegra/
Dclk-emc.c442 tegra->timings = kcalloc(child_count, sizeof(struct emc_timing), in load_timings_from_dt()
482 tegra = kcalloc(1, sizeof(*tegra), GFP_KERNEL); in tegra_clk_register_emc()
/linux-4.4.14/drivers/usb/gadget/legacy/
Dg_ffs.c197 f_ffs[0] = kcalloc(func_num * N_CONF, sizeof(*f_ffs), GFP_KERNEL); in gfs_init()
205 fi_ffs = kcalloc(func_num, sizeof(*fi_ffs), GFP_KERNEL); in gfs_init()
/linux-4.4.14/drivers/gpu/drm/i915/
Di915_gpu_error.c1063 kcalloc(count, sizeof(*error->ring[i].requests), in i915_gem_record_rings()
1108 active_bo = kcalloc(i, sizeof(*active_bo), GFP_ATOMIC); in i915_gem_capture_vm()
1137 error->active_bo = kcalloc(cnt, sizeof(*error->active_bo), GFP_ATOMIC); in i915_gem_capture_buffers()
1138 error->pinned_bo = kcalloc(cnt, sizeof(*error->pinned_bo), GFP_ATOMIC); in i915_gem_capture_buffers()
1139 error->active_bo_count = kcalloc(cnt, sizeof(*error->active_bo_count), in i915_gem_capture_buffers()
1141 error->pinned_bo_count = kcalloc(cnt, sizeof(*error->pinned_bo_count), in i915_gem_capture_buffers()
Di915_gem_tiling.c260 obj->bit_17 = kcalloc(BITS_TO_LONGS(obj->base.size >> PAGE_SHIFT), in i915_gem_set_tiling()
/linux-4.4.14/arch/powerpc/platforms/powernv/
Dopal-irqchip.c218 opal_irqs = kcalloc(opal_irq_count, sizeof(*opal_irqs), GFP_KERNEL); in opal_event_init()
/linux-4.4.14/drivers/block/aoe/
Daoedev.c456 d = kcalloc(1, sizeof *d, GFP_ATOMIC); in aoedev_by_aoeaddr()
459 d->targets = kcalloc(NTARGETS, sizeof(*d->targets), GFP_ATOMIC); in aoedev_by_aoeaddr()
Daoecmd.c215 f = kcalloc(1, sizeof(*f), GFP_ATOMIC); in newtframe()
1492 tt = kcalloc(newn, sizeof(*d->targets), GFP_ATOMIC); in grow_targets()
1760 iocq = kcalloc(ncpus, sizeof(struct iocq_ktio), GFP_KERNEL); in aoecmd_init()
1764 kts = kcalloc(ncpus, sizeof(struct ktstate), GFP_KERNEL); in aoecmd_init()
1770 ktiowq = kcalloc(ncpus, sizeof(wait_queue_head_t), GFP_KERNEL); in aoecmd_init()
/linux-4.4.14/drivers/staging/lustre/lustre/lov/
Dlov_dev.c326 emerg = kcalloc(nr, sizeof(emerg[0]), GFP_NOFS); in lov_emerg_alloc()
372 newd = kcalloc(tgt_size, sz, GFP_NOFS); in lov_expand_targets()
Dlov_pool.c307 op->op_array = kcalloc(op->op_size, sizeof(op->op_array[0]), GFP_NOFS); in lov_ost_pool_init()
327 new = kcalloc(new_size, sizeof(op->op_array[0]), GFP_NOFS); in lov_ost_pool_extend()
/linux-4.4.14/fs/afs/
Dcmservice.c220 call->request = kcalloc(call->count, in afs_deliver_cb_callback()
548 ifs = kcalloc(32, sizeof(*ifs), GFP_KERNEL); in SRXAFSCB_TellMeAboutYourself()
/linux-4.4.14/drivers/base/
Dcacheinfo.c192 per_cpu_cacheinfo(cpu) = kcalloc(cache_leaves(cpu), in detect_cache_attributes()
454 per_cpu_index_dev(cpu) = kcalloc(cache_leaves(cpu), in cpu_cache_sysfs_init()
Dproperty.c528 values = kcalloc(nval, sizeof(*values), GFP_KERNEL); in fwnode_property_match_string()
/linux-4.4.14/fs/dlm/
Dconfig.c349 gps = kcalloc(3, sizeof(struct config_group *), GFP_NOFS); in make_cluster()
424 gps = kcalloc(2, sizeof(struct config_group *), GFP_NOFS); in make_space()
818 nodes = kcalloc(count, sizeof(struct dlm_config_node), GFP_NOFS); in dlm_config_nodes()
/linux-4.4.14/net/rds/
Drdma.c207 pages = kcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL); in __rds_rdma_map()
246 sg = kcalloc(nents, sizeof(*sg), GFP_KERNEL); in __rds_rdma_map()
597 pages = kcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL); in rds_cmsg_rdma_args()
/linux-4.4.14/drivers/vfio/pci/
Dvfio_pci.c655 devices = kcalloc(fill.max, sizeof(*devices), GFP_KERNEL); in vfio_pci_ioctl()
724 group_fds = kcalloc(hdr.count, sizeof(*group_fds), GFP_KERNEL); in vfio_pci_ioctl()
725 groups = kcalloc(hdr.count, sizeof(*groups), GFP_KERNEL); in vfio_pci_ioctl()
1109 devs.devices = kcalloc(i, sizeof(struct vfio_device *), GFP_KERNEL); in vfio_pci_try_bus_reset()
/linux-4.4.14/drivers/usb/storage/
Dalauda.c451 MEDIA_INFO(us).pba_to_lba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media()
452 MEDIA_INFO(us).lba_to_pba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media()
580 u16 *lba_to_pba = kcalloc(zonesize, sizeof(u16), GFP_NOIO); in alauda_read_map()
581 u16 *pba_to_lba = kcalloc(zonesize, sizeof(u16), GFP_NOIO); in alauda_read_map()
/linux-4.4.14/drivers/usb/wusbcore/
Dmmc.c48 wusbhc->mmcie = kcalloc(mmcies, sizeof(wusbhc->mmcie[0]), GFP_KERNEL); in wusbhc_mmcie_create()
/linux-4.4.14/fs/ramfs/
Dfile-nommu.c231 pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL); in ramfs_nommu_get_unmapped_area()
/linux-4.4.14/drivers/net/phy/
Dmdio-bcm-unimac.c203 bus->irq = kcalloc(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); in unimac_mdio_probe()
/linux-4.4.14/lib/
Dsg_split.c159 splitters = kcalloc(nb_splits, sizeof(*splitters), gfp_mask); in sg_split()
Dlist_sort.c221 elts = kcalloc(TEST_LIST_LEN, sizeof(*elts), GFP_KERNEL); in list_sort_test()
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/
Dtt.c626 tt->restriction = kcalloc(IWL_TI_STATE_MAX, in iwl_tt_initialize()
629 tt->transaction = kcalloc(IWL_TI_STATE_MAX * in iwl_tt_initialize()
/linux-4.4.14/drivers/net/wireless/ath/wil6210/
Drx_reorder.c243 kcalloc(size, sizeof(struct sk_buff *), GFP_KERNEL); in wil_tid_ampdu_rx_alloc()
245 kcalloc(size, sizeof(unsigned long), GFP_KERNEL); in wil_tid_ampdu_rx_alloc()
Dpmc.c73 pmc->descriptors = kcalloc(num_descriptors, in wil_pmc_alloc()
/linux-4.4.14/drivers/net/ethernet/sfc/
Dmcdi_mon.c356 hwmon->attrs = kcalloc(n_attrs, sizeof(*hwmon->attrs), GFP_KERNEL); in efx_mcdi_mon_probe()
361 hwmon->group.attrs = kcalloc(n_attrs + 1, sizeof(struct attribute *), in efx_mcdi_mon_probe()
/linux-4.4.14/net/mac80211/
Dagg-rx.c312 kcalloc(buf_size, sizeof(struct sk_buff_head), GFP_KERNEL); in __ieee80211_start_rx_ba_session()
314 kcalloc(buf_size, sizeof(unsigned long), GFP_KERNEL); in __ieee80211_start_rx_ba_session()
/linux-4.4.14/drivers/staging/most/hdm-usb/
Dhdm_usb.c1264 mdev->conf = kcalloc(num_endpoints, sizeof(*mdev->conf), GFP_KERNEL); in hdm_probe()
1268 mdev->cap = kcalloc(num_endpoints, sizeof(*mdev->cap), GFP_KERNEL); in hdm_probe()
1276 kcalloc(num_endpoints, sizeof(*mdev->ep_address), GFP_KERNEL); in hdm_probe()
1281 kcalloc(num_endpoints, sizeof(*mdev->anchor_list), GFP_KERNEL); in hdm_probe()
/linux-4.4.14/drivers/iio/
Dindustrialio-buffer.c672 compound_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in iio_verify_update()
1027 attr = kcalloc(attrcount + ARRAY_SIZE(iio_buffer_attrs) + 1, in iio_buffer_alloc_sysfs_and_mask()
1071 buffer->scan_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in iio_buffer_alloc_sysfs_and_mask()
1083 buffer->scan_el_group.attrs = kcalloc(attrcount + 1, in iio_buffer_alloc_sysfs_and_mask()
/linux-4.4.14/arch/powerpc/sysdev/
Dmpic_msgr.c187 mpic_msgrs = kcalloc(mpic_msgr_count, sizeof(*mpic_msgrs), in mpic_msgr_probe()
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/
Dieee80211_module.c67 ieee->networks = kcalloc( in ieee80211_networks_allocate()
/linux-4.4.14/drivers/staging/iio/adc/
Dad7280a.c489 st->channels = kcalloc((st->slave_num + 1) * 12 + 2, in ad7280_channel_init()
550 st->iio_attr = kcalloc(2, sizeof(*st->iio_attr) * in ad7280_attr_init()
689 channels = kcalloc(st->scan_cnt, sizeof(*channels), GFP_KERNEL); in ad7280_event_handler()
/linux-4.4.14/drivers/scsi/mvsas/
Dmv_init.c446 arr_phy = kcalloc(phy_nr, sizeof(void *), GFP_KERNEL); in mvs_prep_sas_ha_init()
447 arr_port = kcalloc(port_nr, sizeof(void *), GFP_KERNEL); in mvs_prep_sas_ha_init()
556 kcalloc(1, sizeof(struct sas_ha_struct), GFP_KERNEL); in mvs_pci_init()
/linux-4.4.14/drivers/staging/media/davinci_vpfe/
Dvpfe_mc_capture.c229 vpfe_dev->clks = kcalloc(vpfe_cfg->num_clocks, in vpfe_enable_clock()
349 kcalloc(num_subdevs, sizeof(struct v4l2_subdev *), in register_i2c_devices()
/linux-4.4.14/drivers/hwtracing/coresight/
Dcoresight.c654 refcnts = kcalloc(nr_refcnts, sizeof(*refcnts), GFP_KERNEL); in coresight_register()
664 conns = kcalloc(csdev->nr_outport, sizeof(*conns), GFP_KERNEL); in coresight_register()
/linux-4.4.14/drivers/clk/nxp/
Dclk-lpc18xx-ccu.c286 clk_data->name = kcalloc(clk_data->num, sizeof(char *), GFP_KERNEL); in lpc18xx_ccu_init()
/linux-4.4.14/drivers/clk/mmp/
Dclk.c14 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in mmp_clk_init()
Dclk-of-pxa1928.c191 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa1928_clk_reset_init()
Dclk-of-pxa168.c235 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa168_clk_reset_init()
Dclk-of-pxa910.c243 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa910_clk_reset_init()
Dclk-of-mmp2.c286 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in mmp2_clk_reset_init()
/linux-4.4.14/drivers/usb/host/
Dehci-mem.c238 ehci->pshadow = kcalloc(ehci->periodic_size, sizeof(void *), flags); in ehci_mem_init()
/linux-4.4.14/drivers/crypto/qat/qat_common/
Dadf_sriov.c272 accel_dev->pf.vf_info = kcalloc(totalvfs, in adf_sriov_configure()
/linux-4.4.14/drivers/clk/mediatek/
Dclk-mtk.c36 clk_data->clks = kcalloc(clk_num, sizeof(*clk_data->clks), GFP_KERNEL); in mtk_alloc_clk_data()
/linux-4.4.14/drivers/s390/net/
Dfsm.c46 m = kcalloc(nr_states*nr_events, sizeof(fsm_function_t), order); in init_fsm()
/linux-4.4.14/drivers/dma/sh/
Dshdma-base.c230 schan->desc = kcalloc(NR_DESCS_PER_CHANNEL, in shdma_alloc_chan_resources()
734 sgl = kcalloc(sg_len, sizeof(*sgl), GFP_KERNEL); in shdma_prep_dma_cyclic()
1014 sdev->schan = kcalloc(chan_num, sizeof(*sdev->schan), GFP_KERNEL); in shdma_init()
/linux-4.4.14/drivers/net/ethernet/amd/
Dpcnet32.c495 new_dma_addr_list = kcalloc(entries, sizeof(dma_addr_t), GFP_ATOMIC); in pcnet32_realloc_tx_ring()
499 new_skb_list = kcalloc(entries, sizeof(struct sk_buff *), GFP_ATOMIC); in pcnet32_realloc_tx_ring()
555 new_dma_addr_list = kcalloc(entries, sizeof(dma_addr_t), GFP_ATOMIC); in pcnet32_realloc_rx_ring()
559 new_skb_list = kcalloc(entries, sizeof(struct sk_buff *), GFP_ATOMIC); in pcnet32_realloc_rx_ring()
1979 lp->tx_dma_addr = kcalloc(lp->tx_ring_size, sizeof(dma_addr_t), in pcnet32_alloc_ring()
1984 lp->rx_dma_addr = kcalloc(lp->rx_ring_size, sizeof(dma_addr_t), in pcnet32_alloc_ring()
1989 lp->tx_skbuff = kcalloc(lp->tx_ring_size, sizeof(struct sk_buff *), in pcnet32_alloc_ring()
1994 lp->rx_skbuff = kcalloc(lp->rx_ring_size, sizeof(struct sk_buff *), in pcnet32_alloc_ring()
/linux-4.4.14/security/selinux/ss/
Dservices.c129 out_map = kcalloc(++i, size, GFP_ATOMIC); in selinux_set_mapping()
2391 mysids = kcalloc(maxnel, sizeof(*mysids), GFP_ATOMIC); in security_get_user_sids()
2412 mysids2 = kcalloc(maxnel, sizeof(*mysids2), GFP_ATOMIC); in security_get_user_sids()
2431 mysids2 = kcalloc(mynel, sizeof(*mysids2), GFP_KERNEL); in security_get_user_sids()
2599 *names = kcalloc(*len, sizeof(char *), GFP_ATOMIC); in security_get_bools()
2604 *values = kcalloc(*len, sizeof(int), GFP_ATOMIC); in security_get_bools()
2900 *classes = kcalloc(*nclasses, sizeof(**classes), GFP_ATOMIC); in security_get_classes()
2948 *perms = kcalloc(*nperms, sizeof(**perms), GFP_ATOMIC); in security_get_permissions()
/linux-4.4.14/Documentation/filesystems/cifs/
DAUTHORS34 Adrian Bunk (kcalloc cleanups)
/linux-4.4.14/drivers/input/
Dsparse-keymap.c183 map = kcalloc(map_size, sizeof(struct key_entry), GFP_KERNEL); in sparse_keymap_setup()
Dff-core.c335 ff->effects = kcalloc(max_effects, sizeof(struct ff_effect), in input_ff_create()
/linux-4.4.14/drivers/clk/meson/
Dclkc.c32 clks = kcalloc(nr_clks, sizeof(*clks), GFP_KERNEL); in meson_clk_init()
/linux-4.4.14/fs/nfs/filelayout/
Dfilelayoutdev.c102 stripe_indices = kcalloc(cnt, sizeof(u8), gfp_flags); in nfs4_fl_alloc_deviceid_node()
/linux-4.4.14/block/partitions/
Daix.c218 lvip = kcalloc(state->limit, sizeof(struct lv_info), GFP_KERNEL); in aix_partition()
/linux-4.4.14/drivers/platform/x86/
Ddell-wmi.c305 keymap = kcalloc(hotkey_num + 1, sizeof(struct key_entry), GFP_KERNEL); in dell_wmi_prepare_new_keymap()
/linux-4.4.14/drivers/media/v4l2-core/
Dvideobuf-dma-sg.c217 dma->vaddr_pages = kcalloc(nr_pages, sizeof(*dma->vaddr_pages), in videobuf_dma_init_kernel()
222 dma->dma_addr = kcalloc(nr_pages, sizeof(*dma->dma_addr), GFP_KERNEL); in videobuf_dma_init_kernel()
/linux-4.4.14/net/sched/
Dcls_tcindex.c343 cp->perfect = kcalloc(cp->hash, sizeof(*r), GFP_KERNEL); in tcindex_set_parms()
354 hash = kcalloc(cp->hash, in tcindex_set_parms()
Dsch_mq.c53 priv->qdiscs = kcalloc(dev->num_tx_queues, sizeof(priv->qdiscs[0]), in mq_init()
Dsch_multiq.c266 q->queues = kcalloc(q->max_bands, sizeof(struct Qdisc *), GFP_KERNEL); in multiq_init()
/linux-4.4.14/fs/overlayfs/
Dsuper.c474 stack = kcalloc(poe->numlower, sizeof(struct path), GFP_KERNEL); in ovl_lookup()
999 stack = kcalloc(stacklen, sizeof(struct path), GFP_KERNEL); in ovl_fill_super()
1040 ufs->lower_mnt = kcalloc(numlower, sizeof(struct vfsmount *), GFP_KERNEL); in ovl_fill_super()
/linux-4.4.14/drivers/edac/
Dedac_mc.c353 mci->csrows = kcalloc(tot_csrows, sizeof(*mci->csrows), GFP_KERNEL); in edac_mc_alloc()
364 csr->channels = kcalloc(tot_channels, sizeof(*csr->channels), in edac_mc_alloc()
382 mci->dimms = kcalloc(tot_dimms, sizeof(*mci->dimms), GFP_KERNEL); in edac_mc_alloc()
/linux-4.4.14/drivers/staging/rdma/hfi1/
Dinit.c136 dd->rcd = kcalloc(dd->num_rcv_contexts, sizeof(*dd->rcd), GFP_KERNEL); in hfi1_create_ctxts()
293 rcd->egrbufs.buffers = kcalloc(rcd->egrbufs.count, in hfi1_create_ctxtdata()
298 rcd->egrbufs.rcvtids = kcalloc(rcd->egrbufs.count, in hfi1_create_ctxtdata()
1049 hfi1_cpulist = kcalloc(BITS_TO_LONGS(count), sizeof(long), in hfi1_alloc_devdata()
/linux-4.4.14/drivers/thunderbolt/
Dpath.c40 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc()
Dswitch.c382 sw->ports = kcalloc(sw->config.max_port_number + 1, sizeof(*sw->ports), in tb_switch_alloc()
/linux-4.4.14/drivers/clk/
Dclk-gpio.c296 parent_names = kcalloc(num_parents, sizeof(char *), GFP_KERNEL); in of_gpio_clk_setup()
/linux-4.4.14/arch/alpha/kernel/
Dmodule.c108 chains = kcalloc(nsyms, sizeof(struct got_entry), GFP_KERNEL); in module_frob_arch_sections()
/linux-4.4.14/fs/adfs/
Ddir_fplus.c61 kcalloc(size, sizeof(struct buffer_head *), in adfs_fplus_read()
/linux-4.4.14/drivers/iommu/
Domap-iommu-debug.c150 cr = kcalloc(num, sizeof(*cr), GFP_KERNEL); in omap_dump_tlb_entries()
Dtegra-smmu.c279 as->count = kcalloc(SMMU_NUM_PDE, sizeof(u32), GFP_KERNEL); in tegra_smmu_domain_alloc()
286 as->pts = kcalloc(SMMU_NUM_PDE, sizeof(*as->pts), GFP_KERNEL); in tegra_smmu_domain_alloc()
/linux-4.4.14/arch/ia64/sn/kernel/
Dio_init.c252 res = kcalloc(2, sizeof(struct resource), GFP_KERNEL); in sn_pci_controller_fixup()
/linux-4.4.14/drivers/nvdimm/
Dnamespace_devs.c1425 devs = kcalloc(2, sizeof(struct device *), GFP_KERNEL); in create_namespace_io()
1670 devs = kcalloc(2, sizeof(struct device *), GFP_KERNEL); in create_namespace_pmem()
1796 __devs = kcalloc(count + 2, sizeof(dev), GFP_KERNEL); in create_namespace_blk()
1841 devs = kcalloc(2, sizeof(dev), GFP_KERNEL); in create_namespace_blk()
1893 nd_mapping->labels = kcalloc(count + 1, sizeof(void *), in init_active_labels()
Dbtt.c450 arena->freelist = kcalloc(arena->nfree, sizeof(struct free_entry), in btt_freelist_init()
497 arena->rtt = kcalloc(arena->nfree, sizeof(u32), GFP_KERNEL); in btt_rtt_init()
508 arena->map_locks = kcalloc(arena->nfree, sizeof(struct aligned_lock), in btt_maplocks_init()
/linux-4.4.14/drivers/vfio/platform/
Dvfio_platform_irq.c297 vdev->irqs = kcalloc(cnt, sizeof(struct vfio_platform_irq), GFP_KERNEL); in vfio_platform_irq_init()
/linux-4.4.14/drivers/gpu/drm/virtio/
Dvirtgpu_kms.c103 vgdev->capsets = kcalloc(num_capsets, in virtio_gpu_get_capsets()
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/
Damdgpu_irq.c306 types = kcalloc(source->num_types, sizeof(atomic_t), in amdgpu_irq_add_id()
/linux-4.4.14/net/sunrpc/
Dstats.c122 stats = kcalloc(clnt->cl_maxproc, sizeof(*stats), GFP_KERNEL); in rpc_alloc_iostats()
Dsvc.c144 m->to_pool = kcalloc(maxpools, sizeof(unsigned int), GFP_KERNEL); in svc_pool_map_alloc_arrays()
147 m->pool_to = kcalloc(maxpools, sizeof(unsigned int), GFP_KERNEL); in svc_pool_map_alloc_arrays()
448 kcalloc(serv->sv_nrpools, sizeof(struct svc_pool), in __svc_create()
/linux-4.4.14/net/ipv4/
Dtcp_probe.c272 tcp_probe.log = kcalloc(bufsize, sizeof(struct tcp_log), GFP_KERNEL); in tcpprobe_init()
Dtcp_cdg.c387 ca->gradients = kcalloc(window, sizeof(ca->gradients[0]), in tcp_cdg_init()
/linux-4.4.14/drivers/crypto/qat/qat_dh895xcc/
Dadf_isr.c246 names = kcalloc(msix_num_entries, sizeof(char *), GFP_KERNEL); in adf_isr_alloc_msix_entry_table()
/linux-4.4.14/drivers/hwmon/
Dapplesmc.c518 s->index = kcalloc(s->temp_count, sizeof(s->index[0]), GFP_KERNEL); in applesmc_init_index()
561 s->cache = kcalloc(s->key_count, sizeof(*s->cache), GFP_KERNEL); in applesmc_init_smcreg_try()
1112 grp->nodes = kcalloc(num + 1, sizeof(*node), GFP_KERNEL); in applesmc_create_nodes()
/linux-4.4.14/drivers/target/
Dtarget_core_file.c260 bvec = kcalloc(sgl_nents, sizeof(struct bio_vec), GFP_KERNEL); in fd_do_rw()
388 bvec = kcalloc(nolb, sizeof(struct bio_vec), GFP_KERNEL); in fd_execute_write_same()
/linux-4.4.14/drivers/input/keyboard/
Dgpio_keys.c177 bits = kcalloc(BITS_TO_LONGS(n_events), sizeof(*bits), GFP_KERNEL); in gpio_keys_attr_show_helper()
220 bits = kcalloc(BITS_TO_LONGS(n_events), sizeof(*bits), GFP_KERNEL); in gpio_keys_attr_store_helper()
/linux-4.4.14/drivers/staging/comedi/
Ddrivers.c114 s = kcalloc(num_subdevices, sizeof(*s), GFP_KERNEL); in comedi_alloc_subdevices()
155 s->readback = kcalloc(s->n_chan, sizeof(*s->readback), GFP_KERNEL); in comedi_alloc_subdev_readback()
/linux-4.4.14/drivers/staging/lustre/lustre/llite/
Dlloop.c799 loop_dev = kcalloc(max_loop, sizeof(*loop_dev), GFP_KERNEL); in lloop_init()
803 disks = kcalloc(max_loop, sizeof(*disks), GFP_KERNEL); in lloop_init()
/linux-4.4.14/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c914 pci_info = kcalloc(size, sizeof(*pci_info), GFP_KERNEL); in qlcnic_sysfs_read_pci_config()
960 p_read_buf = kcalloc(size, sizeof(unsigned char), GFP_KERNEL); in qlcnic_83xx_sysfs_flash_read_handler()
992 p_cache = kcalloc(size, sizeof(unsigned char), GFP_KERNEL); in qlcnic_83xx_sysfs_flash_bulk_write()
1060 p_cache = kcalloc(size, sizeof(unsigned char), GFP_KERNEL); in qlcnic_83xx_sysfs_flash_write()
/linux-4.4.14/drivers/pinctrl/
Dpinconf-generic.c241 cfg = kcalloc(max_cfg, sizeof(*cfg), GFP_KERNEL); in pinconf_generic_parse_dt_config()
/linux-4.4.14/fs/nfs/
Dpnfs_dev.c123 pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); in nfs4_get_device_info()
/linux-4.4.14/include/linux/
Dslab.h557 static inline void *kcalloc(size_t n, size_t size, gfp_t flags) in kcalloc() function
/linux-4.4.14/drivers/of/
Doverlay.c276 ovinfo = kcalloc(cnt, sizeof(*ovinfo), GFP_KERNEL); in of_build_overlay_info()
/linux-4.4.14/drivers/misc/mic/scif/
Dscif_main.c121 scif_dev = kcalloc(num_nodes, sizeof(*scif_dev), GFP_KERNEL); in scif_setup_scifdev()
/linux-4.4.14/drivers/dma-buf/
Dfence.c448 cb = kcalloc(count, sizeof(struct default_wait_cb), GFP_KERNEL); in fence_wait_any_timeout()
/linux-4.4.14/drivers/usb/usbip/
Dstub_tx.c182 iov = kcalloc(iovnum, sizeof(struct kvec), GFP_KERNEL); in stub_send_ret_submit()
/linux-4.4.14/drivers/mfd/
Dmfd-core.c275 cnts = kcalloc(n_devs, sizeof(*cnts), GFP_KERNEL); in mfd_add_devices()
/linux-4.4.14/drivers/uwb/
Dest.c187 uwb_est = kcalloc(uwb_est_size, sizeof(uwb_est[0]), GFP_KERNEL); in uwb_est_create()
/linux-4.4.14/drivers/net/
Difb.c170 txp = kcalloc(dev->num_tx_queues, sizeof(*txp), GFP_KERNEL); in ifb_dev_init()
/linux-4.4.14/virt/kvm/arm/
Dvgic-v3-emul.c805 iodevs = kcalloc(dist->nr_cpus, sizeof(iodevs[0]), GFP_KERNEL); in vgic_v3_map_resources()
848 dist->irq_spi_mpidr = kcalloc(nr_spis, sizeof(dist->irq_spi_mpidr[0]), in vgic_v3_init_model()
/linux-4.4.14/drivers/staging/iio/meter/
Dade7758_core.c832 st->rx = kcalloc(ADE7758_MAX_RX, sizeof(*st->rx), GFP_KERNEL); in ade7758_probe()
835 st->tx = kcalloc(ADE7758_MAX_TX, sizeof(*st->tx), GFP_KERNEL); in ade7758_probe()
/linux-4.4.14/drivers/net/wireless/b43legacy/
Ddma.c668 ring->meta = kcalloc(nr_slots, sizeof(struct b43legacy_dmadesc_meta), in b43legacy_setup_dmaring()
673 ring->txhdr_cache = kcalloc(nr_slots, in b43legacy_setup_dmaring()
688 ring->txhdr_cache = kcalloc(nr_slots, in b43legacy_setup_dmaring()
/linux-4.4.14/drivers/pnp/pnpbios/
Dcore.c104 if (!(envp = kcalloc(20, sizeof(char *), GFP_KERNEL))) in pnp_dock_event()
/linux-4.4.14/drivers/staging/iio/
Diio_simple_dummy.c710 iio_dummy_devs = kcalloc(instances, sizeof(*iio_dummy_devs), in iio_dummy_init()
/linux-4.4.14/drivers/power/
Dgeneric-adc-battery.c273 psy_desc->properties = kcalloc(ARRAY_SIZE(gab_props) + in gab_probe()
/linux-4.4.14/drivers/i2c/
Di2c-stub.c382 stub_chips = kcalloc(stub_chips_nr, sizeof(struct stub_chip), in i2c_stub_init()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dradeon_cs.c273 p->chunks_array = kcalloc(cs->num_chunks, sizeof(uint64_t), GFP_KERNEL); in radeon_cs_parser_init()
284 p->chunks = kcalloc(p->nchunks, sizeof(struct radeon_cs_chunk), GFP_KERNEL); in radeon_cs_parser_init()
/linux-4.4.14/drivers/media/usb/em28xx/
Dem28xx-audio.c831 dev->adev.transfer_buffer = kcalloc(num_urb, in em28xx_audio_urb_init()
838 dev->adev.urb = kcalloc(num_urb, sizeof(*dev->adev.urb), GFP_ATOMIC); in em28xx_audio_urb_init()
/linux-4.4.14/drivers/dma/ioat/
Ddma.c339 ring = kcalloc(descs, sizeof(*ring), flags); in ioat_alloc_ring()
392 ring = kcalloc(new_size, sizeof(*ring), GFP_NOWAIT); in reshape_ring()
/linux-4.4.14/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c604 txdr = kcalloc(adapter->num_tx_queues, sizeof(struct e1000_tx_ring), in e1000_set_ringparam()
609 rxdr = kcalloc(adapter->num_rx_queues, sizeof(struct e1000_rx_ring), in e1000_set_ringparam()
1007 txdr->buffer_info = kcalloc(txdr->count, sizeof(struct e1000_tx_buffer), in e1000_setup_desc_rings()
1066 rxdr->buffer_info = kcalloc(rxdr->count, sizeof(struct e1000_rx_buffer), in e1000_setup_desc_rings()
/linux-4.4.14/drivers/net/ethernet/altera/
Daltera_tse_main.c164 mdio->irq = kcalloc(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); in altera_tse_mdio_create()
278 priv->rx_ring = kcalloc(rx_descs, sizeof(struct tse_buffer), in alloc_init_skbufs()
284 priv->tx_ring = kcalloc(tx_descs, sizeof(struct tse_buffer), in alloc_init_skbufs()
/linux-4.4.14/drivers/clk/rockchip/
Dclk.c176 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in rockchip_clk_init()
/linux-4.4.14/sound/hda/
Dhdac_sysfs.c374 tree->nodes = kcalloc(codec->num_nodes + 1, sizeof(*tree->nodes), in widget_tree_create()
/linux-4.4.14/kernel/events/
Dhw_breakpoint.c631 info->tsk_pinned = kcalloc(nr_slots[i], sizeof(int), in init_hw_breakpoint()
/linux-4.4.14/drivers/video/fbdev/
Dsimplefb.c212 par->clks = kcalloc(par->clk_count, sizeof(struct clk *), GFP_KERNEL); in simplefb_clocks_init()
/linux-4.4.14/crypto/asymmetric_keys/
Dverify_pefile.c270 canon = kcalloc(ctx->n_sections, sizeof(unsigned), GFP_KERNEL); in pefile_digest_pe_contents()
/linux-4.4.14/drivers/pci/host/
Dpci-xgene-msi.c289 xgene_msi->msi_groups = kcalloc(NR_HW_IRQS, in xgene_msi_init_allocator()
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c4591 txdata->tx_buf_ring = kcalloc(NUM_TX_BD, in bnx2x_alloc_fp_mem_at()
4607 kcalloc(NUM_RX_BD, sizeof(struct sw_rx_bd), GFP_KERNEL); in bnx2x_alloc_fp_mem_at()
4625 kcalloc(NUM_RX_SGE, sizeof(struct sw_rx_page), in bnx2x_alloc_fp_mem_at()
4756 fp = kcalloc(bp->fp_array_size, sizeof(*fp), GFP_KERNEL); in bnx2x_alloc_mem_bp()
4761 kcalloc(ETH_MAX_AGGREGATION_QUEUES_E1H_E2, in bnx2x_alloc_mem_bp()
4770 bp->sp_objs = kcalloc(bp->fp_array_size, sizeof(struct bnx2x_sp_objs), in bnx2x_alloc_mem_bp()
4776 bp->fp_stats = kcalloc(bp->fp_array_size, sizeof(struct bnx2x_fp_stats), in bnx2x_alloc_mem_bp()
4786 bp->bnx2x_txq = kcalloc(txq_array_size, sizeof(struct bnx2x_fp_txdata), in bnx2x_alloc_mem_bp()
4792 tbl = kcalloc(msix_table_size, sizeof(*tbl), GFP_KERNEL); in bnx2x_alloc_mem_bp()

1234