Home
last modified time | relevance | path

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

123

/linux-4.1.27/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.1.27/drivers/net/ethernet/mellanox/mlx5/core/
Duar.c136 uuari->uars = kcalloc(uuari->num_uars, sizeof(*uuari->uars), GFP_KERNEL); in mlx5_alloc_uuars()
140 uuari->bfs = kcalloc(tot_uuars, sizeof(*uuari->bfs), GFP_KERNEL); in mlx5_alloc_uuars()
146 uuari->bitmap = kcalloc(BITS_TO_LONGS(tot_uuars), sizeof(*uuari->bitmap), in mlx5_alloc_uuars()
153 uuari->count = kcalloc(tot_uuars, sizeof(*uuari->count), GFP_KERNEL); in mlx5_alloc_uuars()
Dalloc.c78 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx5_buf_alloc()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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()
Dgntalloc.c293 gref_ids = kcalloc(op.count, sizeof(gref_ids[0]), GFP_TEMPORARY); in gntalloc_ioctl_alloc()
/linux-4.1.27/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.1.27/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.1.27/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.c66 state->crtcs = kcalloc(dev->mode_config.num_crtc, in drm_atomic_state_alloc()
70 state->crtc_states = kcalloc(dev->mode_config.num_crtc, in drm_atomic_state_alloc()
74 state->planes = kcalloc(dev->mode_config.num_total_plane, in drm_atomic_state_alloc()
78 state->plane_states = kcalloc(dev->mode_config.num_total_plane, in drm_atomic_state_alloc()
82 state->connectors = kcalloc(state->num_connector, in drm_atomic_state_alloc()
87 state->connector_states = kcalloc(state->num_connector, in drm_atomic_state_alloc()
Ddrm_fb_helper.c633 fb_helper->crtc_info = kcalloc(crtc_count, sizeof(struct drm_fb_helper_crtc), GFP_KERNEL); in drm_fb_helper_init()
638 …fb_helper->connector_info = kcalloc(dev->mode_config.num_connector, sizeof(struct drm_fb_helper_co… in drm_fb_helper_init()
648 kcalloc(max_conn_count, in drm_fb_helper_init()
1641 crtcs = kcalloc(dev->mode_config.num_connector, in drm_setup_crtcs()
1643 modes = kcalloc(dev->mode_config.num_connector, in drm_setup_crtcs()
1645 offsets = kcalloc(dev->mode_config.num_connector, in drm_setup_crtcs()
1647 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.1.27/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.1.27/include/drm/
Ddrm_mem_util.h38 return kcalloc(nmemb, size, GFP_KERNEL); in drm_calloc_large()
/linux-4.1.27/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.1.27/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()
Dfile.c117 msblk->meta_index = kcalloc(SQUASHFS_META_SLOTS, in empty_meta_index()
/linux-4.1.27/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.1.27/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.1.27/drivers/cpufreq/
Dcpufreq_opp.c63 freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_ATOMIC); in dev_pm_opp_init_cpufreq_table()
Dqoriq-cpufreq.c229 table = kcalloc(count + 1, sizeof(*table), GFP_KERNEL); in qoriq_cpufreq_cpu_init()
/linux-4.1.27/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.1.27/arch/arm64/kernel/
Dsuspend.c142 ctx_ptr = kcalloc(mpidr_hash_size(), sizeof(phys_addr_t), GFP_KERNEL); in cpu_suspend_init()
Dvdso.c128 vdso_pagelist = kcalloc(vdso_pages + 1, sizeof(struct page *), in vdso_init()
Dpsci.c213 psci_states = kcalloc(count, sizeof(*psci_states), GFP_KERNEL); in cpu_psci_cpu_init_idle()
/linux-4.1.27/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()
Dperf_event_cpu.c314 irqs = kcalloc(pdev->num_resources, sizeof(*irqs), GFP_KERNEL); in of_pmu_irq_cfg()
/linux-4.1.27/fs/cifs/
Dsmb2file.c114 buf = kcalloc(max_num, sizeof(struct smb2_lock_element), GFP_KERNEL); in smb2_unlock_range()
250 buf = kcalloc(max_num, sizeof(struct smb2_lock_element), GFP_KERNEL); in smb2_push_mandatory_locks()
/linux-4.1.27/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.1.27/fs/nfs/blocklayout/
Ddev.c238 d->children = kcalloc(v->concat.volumes_count, in bl_parse_concat()
267 d->children = kcalloc(v->stripe.volumes_count, in bl_parse_stripe()
332 volumes = kcalloc(nr_volumes, sizeof(struct pnfs_block_volume), in bl_alloc_deviceid_node()
/linux-4.1.27/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.1.27/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.1.27/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.1.27/drivers/irqchip/
Dirq-crossbar.c223 cb->irq_map = kcalloc(max, sizeof(int), GFP_KERNEL); in crossbar_of_init()
269 cb->register_offsets = kcalloc(max, sizeof(int), GFP_KERNEL); in crossbar_of_init()
Dexynos-combiner.c182 combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL); in combiner_init()
Dirq-atmel-aic-common.c233 aic = kcalloc(nchips, sizeof(*aic), GFP_KERNEL); in aic_common_of_init()
/linux-4.1.27/drivers/staging/comedi/drivers/
Dserial2002.c403 di_cfg = kcalloc(32, sizeof(*cfg), GFP_KERNEL); in serial2002_setup_subdevs()
404 do_cfg = kcalloc(32, sizeof(*cfg), GFP_KERNEL); in serial2002_setup_subdevs()
405 ai_cfg = kcalloc(32, sizeof(*cfg), GFP_KERNEL); in serial2002_setup_subdevs()
406 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.1.27/drivers/staging/rtl8188eu/hal/
Drtl8188eu_recv.c45 kcalloc(NR_RECVBUFF, sizeof(struct recv_buf), GFP_KERNEL); in rtl8188eu_init_recv_priv()
/linux-4.1.27/drivers/staging/android/ion/
Dion_dummy_driver.c71 heaps = kcalloc(dummy_ion_pdata.nr, sizeof(struct ion_heap *), in ion_dummy_init()
/linux-4.1.27/drivers/clk/shmobile/
Dclk-r8a7778.c94 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a7778_cpg_clocks_init()
Dclk-r8a73a4.c206 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a73a4_cpg_clocks_init()
Dclk-sh73a0.c178 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in sh73a0_cpg_clocks_init()
/linux-4.1.27/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.1.27/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.1.27/drivers/clk/st/
Dclk-flexgen.c252 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()
/linux-4.1.27/drivers/clk/
Dclk-qoriq.c91 parent_names = kcalloc(count, sizeof(char *), GFP_KERNEL); in core_mux_init()
195 subclks = kcalloc(count, sizeof(struct clk *), GFP_KERNEL); in core_pll_init()
Dclk.c1410 clk->parents = kcalloc(clk->num_parents, in clk_fetch_parent_index()
2015 kcalloc(clk->num_parents, sizeof(struct clk *), in __clk_init_parent()
2335 clk->parents = kcalloc(clk->num_parents, sizeof(struct clk *), in __clk_init()
2521 clk->parent_names = kcalloc(clk->num_parents, sizeof(char *), in clk_register()
/linux-4.1.27/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.c273 dup->functions = kcalloc(info->n_functions, in gcov_info_dup()
/linux-4.1.27/kernel/sched/
Dcpupri.c222 cp->cpu_to_pri = kcalloc(nr_cpu_ids, sizeof(int), GFP_KERNEL); in cpupri_init()
Dcpudeadline.c221 cp->elements = kcalloc(nr_cpu_ids, in cpudl_init()
/linux-4.1.27/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.1.27/drivers/iio/
Dbuffer_cb.c67 = kcalloc(BITS_TO_LONGS(indio_dev->masklength), sizeof(long), in iio_channel_get_all_cb()
Dindustrialio-buffer.c621 compound_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in __iio_update_buffers()
898 attr = kcalloc(attrcount + ARRAY_SIZE(iio_buffer_attrs) + 1, in iio_buffer_alloc_sysfs_and_mask()
948 buffer->scan_mask = kcalloc(BITS_TO_LONGS(indio_dev->masklength), in iio_buffer_alloc_sysfs_and_mask()
960 buffer->scan_el_group.attrs = kcalloc(attrcount + 1, in iio_buffer_alloc_sysfs_and_mask()
Dindustrialio-event.c476 indio_dev->event_interface->group.attrs = kcalloc(attrcount + 1, in iio_device_register_eventset()
/linux-4.1.27/drivers/gpu/drm/i915/
Di915_gem_tiling.c419 obj->bit_17 = kcalloc(BITS_TO_LONGS(obj->base.size >> PAGE_SHIFT), in i915_gem_set_tiling()
535 obj->bit_17 = kcalloc(BITS_TO_LONGS(page_count), in i915_gem_object_save_bit_17_swizzle()
Di915_gpu_error.c1052 kcalloc(count, sizeof(*error->ring[i].requests), in i915_gem_record_rings()
1097 active_bo = kcalloc(i, sizeof(*active_bo), GFP_ATOMIC); in i915_gem_capture_vm()
1126 error->active_bo = kcalloc(cnt, sizeof(*error->active_bo), GFP_ATOMIC); in i915_gem_capture_buffers()
1127 error->pinned_bo = kcalloc(cnt, sizeof(*error->pinned_bo), GFP_ATOMIC); in i915_gem_capture_buffers()
1128 error->active_bo_count = kcalloc(cnt, sizeof(*error->active_bo_count), in i915_gem_capture_buffers()
1130 error->pinned_bo_count = kcalloc(cnt, sizeof(*error->pinned_bo_count), in i915_gem_capture_buffers()
/linux-4.1.27/drivers/gpu/drm/vmwgfx/
Dvmwgfx_ioctl.c249 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_ioctl()
332 clips = kcalloc(num_clips, sizeof(*clips), GFP_KERNEL); in vmw_present_readback_ioctl()
/linux-4.1.27/net/bridge/
Dbr_ioctl.c170 indices = kcalloc(num, sizeof(int), GFP_KERNEL); in old_dev_ioctl()
314 indices = kcalloc(args[2], sizeof(int), GFP_KERNEL); in old_deviceless()
Dbr_if.c297 inuse = kcalloc(BITS_TO_LONGS(BR_MAX_PORTS), sizeof(unsigned long), in find_portno()
/linux-4.1.27/drivers/acpi/
Dacpi_lpat.c115 lpat = kcalloc(obj_p->package.count, sizeof(int), GFP_KERNEL); in acpi_lpat_get_conversion_table()
/linux-4.1.27/drivers/clk/samsung/
Dclk.c44 rd = kcalloc(nr_rdump, sizeof(*rd), GFP_KERNEL); in samsung_clk_alloc_reg_dump()
66 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in samsung_clk_init()
/linux-4.1.27/drivers/net/ethernet/mellanox/mlx4/
Dqp.c808 dev->caps.qp0_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
809 dev->caps.qp0_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
810 dev->caps.qp1_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_init_qp_table()
811 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.c89 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile()
Dmain.c843 dev->caps.qp0_qkey = kcalloc(dev->caps.num_ports, sizeof(u32), GFP_KERNEL); in mlx4_slave_cap()
844 dev->caps.qp0_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
845 dev->caps.qp0_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
846 dev->caps.qp1_tunnel = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
847 dev->caps.qp1_proxy = kcalloc(dev->caps.num_ports, sizeof (u32), GFP_KERNEL); in mlx4_slave_cap()
2496 entries = kcalloc(nreq, sizeof *entries, GFP_KERNEL); in mlx4_enable_msi_x()
2708 dev->dev_vfs = kcalloc(total_vfs, sizeof(*dev->dev_vfs), in mlx4_enable_sriov()
Dicm.c399 table->icm = kcalloc(num_icm, sizeof *table->icm, GFP_KERNEL); in mlx4_init_icm_table()
/linux-4.1.27/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.1.27/drivers/clk/pistachio/
Dclk.c26 p->clk_data.clks = kcalloc(num_clks, sizeof(struct clk *), GFP_KERNEL); in pistachio_clk_alloc_provider()
/linux-4.1.27/fs/nfsd/
Dblocklayoutxdr.c111 iomaps = kcalloc(nr_iomaps, sizeof(*iomaps), GFP_KERNEL); in nfsd4_block_decode_layoutupdate()
Dnfscache.c184 drc_hashtbl = kcalloc(hashsize, sizeof(*drc_hashtbl), GFP_KERNEL); in nfsd_reply_cache_init()
/linux-4.1.27/drivers/net/phy/
Dmdio-bcm-unimac.c154 bus->irq = kcalloc(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); in unimac_mdio_probe()
/linux-4.1.27/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.1.27/drivers/usb/gadget/legacy/
Dg_ffs.c211 f_ffs[0] = kcalloc(func_num * N_CONF, sizeof(*f_ffs), GFP_KERNEL); in gfs_init()
219 fi_ffs = kcalloc(func_num, sizeof(*fi_ffs), GFP_KERNEL); in gfs_init()
/linux-4.1.27/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.1.27/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.1.27/drivers/net/wireless/ath/wil6210/
Drx_reorder.c211 kcalloc(size, sizeof(struct sk_buff *), GFP_KERNEL); in wil_tid_ampdu_rx_alloc()
213 kcalloc(size, sizeof(unsigned long), GFP_KERNEL); in wil_tid_ampdu_rx_alloc()
/linux-4.1.27/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()
/linux-4.1.27/net/mac80211/
Dagg-rx.c310 kcalloc(buf_size, sizeof(struct sk_buff_head), GFP_KERNEL); in __ieee80211_start_rx_ba_session()
312 kcalloc(buf_size, sizeof(unsigned long), GFP_KERNEL); in __ieee80211_start_rx_ba_session()
/linux-4.1.27/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()
596 pages = kcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL); in rds_cmsg_rdma_args()
/linux-4.1.27/drivers/usb/storage/
Dalauda.c448 MEDIA_INFO(us).pba_to_lba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media()
449 MEDIA_INFO(us).lba_to_pba = kcalloc(num_zones, sizeof(u16*), GFP_NOIO); in alauda_init_media()
577 u16 *lba_to_pba = kcalloc(zonesize, sizeof(u16), GFP_NOIO); in alauda_read_map()
578 u16 *pba_to_lba = kcalloc(zonesize, sizeof(u16), GFP_NOIO); in alauda_read_map()
/linux-4.1.27/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()
1107 devs.devices = kcalloc(i, sizeof(struct vfio_device *), GFP_KERNEL); in vfio_pci_try_bus_reset()
/linux-4.1.27/drivers/usb/wusbcore/
Dmmc.c48 wusbhc->mmcie = kcalloc(mmcies, sizeof(wusbhc->mmcie[0]), GFP_KERNEL); in wusbhc_mmcie_create()
/linux-4.1.27/fs/ramfs/
Dfile-nommu.c230 pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL); in ramfs_nommu_get_unmapped_area()
/linux-4.1.27/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.1.27/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()
Drx.c706 rx_queue->buffer = kcalloc(entries, sizeof(*rx_queue->buffer), in efx_probe_rx_queue()
737 rx_queue->page_ring = kcalloc(page_ring_size, in efx_init_rx_recycle_ring()
/linux-4.1.27/security/selinux/ss/
Dservices.c128 out_map = kcalloc(++i, size, GFP_ATOMIC); in selinux_set_mapping()
2216 mysids = kcalloc(maxnel, sizeof(*mysids), GFP_ATOMIC); in security_get_user_sids()
2237 mysids2 = kcalloc(maxnel, sizeof(*mysids2), GFP_ATOMIC); in security_get_user_sids()
2256 mysids2 = kcalloc(mynel, sizeof(*mysids2), GFP_KERNEL); in security_get_user_sids()
2424 *names = kcalloc(*len, sizeof(char *), GFP_ATOMIC); in security_get_bools()
2429 *values = kcalloc(*len, sizeof(int), GFP_ATOMIC); in security_get_bools()
2731 *classes = kcalloc(*nclasses, sizeof(**classes), GFP_ATOMIC); in security_get_classes()
2779 *perms = kcalloc(*nperms, sizeof(**perms), GFP_ATOMIC); in security_get_permissions()
/linux-4.1.27/arch/powerpc/sysdev/
Dmpic_msgr.c187 mpic_msgrs = kcalloc(mpic_msgr_count, sizeof(*mpic_msgrs), in mpic_msgr_probe()
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/
Dieee80211_module.c67 ieee->networks = kcalloc( in ieee80211_networks_allocate()
/linux-4.1.27/drivers/scsi/mvsas/
Dmv_init.c452 arr_phy = kcalloc(phy_nr, sizeof(void *), GFP_KERNEL); in mvs_prep_sas_ha_init()
453 arr_port = kcalloc(port_nr, sizeof(void *), GFP_KERNEL); in mvs_prep_sas_ha_init()
562 kcalloc(1, sizeof(struct sas_ha_struct), GFP_KERNEL); in mvs_pci_init()
/linux-4.1.27/drivers/hwtracing/coresight/
Dcoresight.c649 refcnts = kcalloc(nr_refcnts, sizeof(*refcnts), GFP_KERNEL); in coresight_register()
659 conns = kcalloc(csdev->nr_outport, sizeof(*conns), GFP_KERNEL); in coresight_register()
/linux-4.1.27/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.1.27/drivers/clk/mmp/
Dclk.c15 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in mmp_clk_init()
Dclk-of-pxa168.c227 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa168_clk_reset_init()
Dclk-of-pxa910.c231 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa910_clk_reset_init()
Dclk-of-mmp2.c282 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in mmp2_clk_reset_init()
/linux-4.1.27/drivers/s390/net/
Dfsm.c46 m = kcalloc(nr_states*nr_events, sizeof(fsm_function_t), order); in init_fsm()
/linux-4.1.27/drivers/usb/host/
Dehci-mem.c238 ehci->pshadow = kcalloc(ehci->periodic_size, sizeof(void *), flags); in ehci_mem_init()
/linux-4.1.27/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()
688 channels = kcalloc(st->scan_cnt, sizeof(*channels), GFP_KERNEL); in ad7280_event_handler()
/linux-4.1.27/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.1.27/fs/overlayfs/
Dsuper.c370 stack = kcalloc(poe->numlower, sizeof(struct path), GFP_KERNEL); in ovl_lookup()
902 stack = kcalloc(stacklen, sizeof(struct path), GFP_KERNEL); in ovl_fill_super()
942 ufs->lower_mnt = kcalloc(numlower, sizeof(struct vfsmount *), GFP_KERNEL); in ovl_fill_super()
/linux-4.1.27/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()
1978 lp->tx_dma_addr = kcalloc(lp->tx_ring_size, sizeof(dma_addr_t), in pcnet32_alloc_ring()
1983 lp->rx_dma_addr = kcalloc(lp->rx_ring_size, sizeof(dma_addr_t), in pcnet32_alloc_ring()
1988 lp->tx_skbuff = kcalloc(lp->tx_ring_size, sizeof(struct sk_buff *), in pcnet32_alloc_ring()
1993 lp->rx_skbuff = kcalloc(lp->rx_ring_size, sizeof(struct sk_buff *), in pcnet32_alloc_ring()
/linux-4.1.27/drivers/crypto/qat/qat_dh895xcc/
Dadf_isr.c178 names = kcalloc(msix_num_entries, sizeof(char *), GFP_KERNEL); in adf_isr_alloc_msix_entry_table()
/linux-4.1.27/block/partitions/
Daix.c218 lvip = kcalloc(state->limit, sizeof(struct lv_info), GFP_KERNEL); in aix_partition()
/linux-4.1.27/drivers/platform/x86/
Ddell-wmi.c304 keymap = kcalloc(hotkey_num + 1, sizeof(struct key_entry), GFP_KERNEL); in dell_wmi_prepare_new_keymap()
/linux-4.1.27/fs/nfs/filelayout/
Dfilelayoutdev.c102 stripe_indices = kcalloc(cnt, sizeof(u8), gfp_flags); in nfs4_fl_alloc_deviceid_node()
/linux-4.1.27/lib/
Dlist_sort.c221 elts = kcalloc(TEST_LIST_LEN, sizeof(*elts), GFP_KERNEL); in list_sort_test()
/linux-4.1.27/drivers/input/
Dsparse-keymap.c183 map = kcalloc(map_size, sizeof(struct key_entry), GFP_KERNEL); in sparse_keymap_setup()
Dff-core.c330 ff->effects = kcalloc(max_effects, sizeof(struct ff_effect), in input_ff_create()
Dinput-mt.c86 mt->red = kcalloc(n2, sizeof(*mt->red), GFP_KERNEL); in input_mt_init_slots()
/linux-4.1.27/Documentation/filesystems/cifs/
DAUTHORS34 Adrian Bunk (kcalloc cleanups)
/linux-4.1.27/net/sched/
Dcls_tcindex.c322 cp->perfect = kcalloc(cp->hash, sizeof(*r), GFP_KERNEL); in tcindex_set_parms()
333 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.c264 q->queues = kcalloc(q->max_bands, sizeof(struct Qdisc *), GFP_KERNEL); in multiq_init()
Dsch_mqprio.c118 priv->qdiscs = kcalloc(dev->num_tx_queues, sizeof(priv->qdiscs[0]), in mqprio_init()
/linux-4.1.27/drivers/target/
Dtarget_core_rd.c157 sg = kcalloc(sg_per_table + chain_entry, sizeof(*sg), in rd_allocate_sgl_table()
445 prot_sg = kcalloc(prot_npages, sizeof(*prot_sg), GFP_KERNEL); in rd_do_prot_rw()
Dtarget_core_file.c332 bvec = kcalloc(sgl_nents, sizeof(struct bio_vec), GFP_KERNEL); in fd_do_rw()
460 bvec = kcalloc(nolb, sizeof(struct bio_vec), GFP_KERNEL); in fd_execute_write_same()
/linux-4.1.27/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.1.27/drivers/edac/
Dedac_mc.c348 mci->csrows = kcalloc(tot_csrows, sizeof(*mci->csrows), GFP_KERNEL); in edac_mc_alloc()
359 csr->channels = kcalloc(tot_channels, sizeof(*csr->channels), in edac_mc_alloc()
377 mci->dimms = kcalloc(tot_dimms, sizeof(*mci->dimms), GFP_KERNEL); in edac_mc_alloc()
/linux-4.1.27/fs/dlm/
Dconfig.c461 gps = kcalloc(3, sizeof(struct config_group *), GFP_NOFS); in make_cluster()
536 gps = kcalloc(2, sizeof(struct config_group *), GFP_NOFS); in make_space()
958 nodes = kcalloc(count, sizeof(struct dlm_config_node), GFP_NOFS); in dlm_config_nodes()
/linux-4.1.27/drivers/staging/i2o/
Ddriver.c353 kcalloc(i2o_max_drivers, sizeof(*i2o_drivers), GFP_KERNEL); in i2o_driver_init()
/linux-4.1.27/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.1.27/arch/ia64/sn/kernel/
Dio_init.c252 res = kcalloc(2, sizeof(struct resource), GFP_KERNEL); in sn_pci_controller_fixup()
/linux-4.1.27/arch/alpha/kernel/
Dmodule.c108 chains = kcalloc(nsyms, sizeof(struct got_entry), GFP_KERNEL); in module_frob_arch_sections()
/linux-4.1.27/fs/adfs/
Ddir_fplus.c61 kcalloc(size, sizeof(struct buffer_head *), in adfs_fplus_read()
/linux-4.1.27/include/linux/
Dslab.h538 static inline void *kcalloc(size_t n, size_t size, gfp_t flags) in kcalloc() function
/linux-4.1.27/net/ipv4/
Dtcp_probe.c272 tcp_probe.log = kcalloc(bufsize, sizeof(struct tcp_log), GFP_KERNEL); in tcpprobe_init()
/linux-4.1.27/drivers/clk/sunxi/
Dclk-mod0.c325 clk_data->clks = kcalloc(3, sizeof(*clk_data->clks), GFP_KERNEL); in sunxi_mmc_setup()
/linux-4.1.27/drivers/vfio/platform/
Dvfio_platform_irq.c296 vdev->irqs = kcalloc(cnt, sizeof(struct vfio_platform_irq), GFP_KERNEL); in vfio_platform_irq_init()
/linux-4.1.27/net/sunrpc/
Dstats.c122 stats = kcalloc(clnt->cl_maxproc, sizeof(*stats), GFP_KERNEL); in rpc_alloc_iostats()
Dsvc.c161 m->to_pool = kcalloc(maxpools, sizeof(unsigned int), GFP_KERNEL); in svc_pool_map_alloc_arrays()
164 m->pool_to = kcalloc(maxpools, sizeof(unsigned int), GFP_KERNEL); in svc_pool_map_alloc_arrays()
465 kcalloc(serv->sv_nrpools, sizeof(struct svc_pool), in __svc_create()
/linux-4.1.27/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.1.27/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.1.27/virt/kvm/arm/
Dvgic-v3-emul.c761 iodevs = kcalloc(dist->nr_cpus, sizeof(iodevs[0]), GFP_KERNEL); in vgic_v3_map_resources()
804 dist->irq_spi_mpidr = kcalloc(nr_spis, sizeof(dist->irq_spi_mpidr[0]), in vgic_v3_init_model()
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
Dlloop.c794 loop_dev = kcalloc(max_loop, sizeof(*loop_dev), GFP_KERNEL); in lloop_init()
798 disks = kcalloc(max_loop, sizeof(*disks), GFP_KERNEL); in lloop_init()
/linux-4.1.27/drivers/staging/comedi/
Ddrivers.c82 s = kcalloc(num_subdevices, sizeof(*s), GFP_KERNEL); in comedi_alloc_subdevices()
109 s->readback = kcalloc(s->n_chan, sizeof(*s->readback), GFP_KERNEL); in comedi_alloc_subdev_readback()
/linux-4.1.27/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_sysfs.c917 pci_info = kcalloc(size, sizeof(*pci_info), GFP_KERNEL); in qlcnic_sysfs_read_pci_config()
965 p_read_buf = kcalloc(size, sizeof(unsigned char), GFP_KERNEL); in qlcnic_83xx_sysfs_flash_read_handler()
997 p_cache = kcalloc(size, sizeof(unsigned char), GFP_KERNEL); in qlcnic_83xx_sysfs_flash_bulk_write()
1065 p_cache = kcalloc(size, sizeof(unsigned char), GFP_KERNEL); in qlcnic_83xx_sysfs_flash_write()
Dqlcnic_main.c700 adapter->msix_entries = kcalloc(num_msix, in qlcnic_setup_tss_rss_intr()
755 adapter->msix_entries = kcalloc(num_msix, in qlcnic_enable_msix()
972 pci_info = kcalloc(ahw->max_vnic_func, sizeof(*pci_info), GFP_KERNEL); in qlcnic_get_act_pci_func()
1006 pci_info = kcalloc(ahw->max_vnic_func, sizeof(*pci_info), GFP_KERNEL); in qlcnic_init_pci_info()
2390 tx_ring = kcalloc(adapter->drv_tx_rings, in qlcnic_alloc_tx_rings()
2896 head = kcalloc(adapter->fhash.fbucket_size, in qlcnic_alloc_lb_filters_mem()
2913 head = kcalloc(adapter->rx_fhash.fbucket_size, in qlcnic_alloc_lb_filters_mem()
/linux-4.1.27/fs/nfs/
Dpnfs_dev.c123 pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); in nfs4_get_device_info()
/linux-4.1.27/drivers/pinctrl/
Dpinconf-generic.c240 cfg = kcalloc(max_cfg, sizeof(*cfg), GFP_KERNEL); in pinconf_generic_parse_dt_config()
/linux-4.1.27/drivers/of/
Doverlay.c275 ovinfo = kcalloc(cnt, sizeof(*ovinfo), GFP_KERNEL); in of_build_overlay_info()
/linux-4.1.27/drivers/usb/usbip/
Dstub_tx.c182 iov = kcalloc(iovnum, sizeof(struct kvec), GFP_KERNEL); in stub_send_ret_submit()
/linux-4.1.27/drivers/uwb/
Dest.c187 uwb_est = kcalloc(uwb_est_size, sizeof(uwb_est[0]), GFP_KERNEL); in uwb_est_create()
/linux-4.1.27/drivers/mfd/
Dmfd-core.c253 cnts = kcalloc(n_devs, sizeof(*cnts), GFP_KERNEL); in mfd_add_devices()
/linux-4.1.27/drivers/power/
Dmax17042_battery.c327 temp_data = kcalloc(table_size, sizeof(*temp_data), GFP_KERNEL); in max17042_init_model()
356 temp_data = kcalloc(table_size, sizeof(*temp_data), GFP_KERNEL); in max17042_verify_model_lock()
Dgeneric-adc-battery.c273 psy_desc->properties = kcalloc(ARRAY_SIZE(gab_props) + in gab_probe()
/linux-4.1.27/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.1.27/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.1.27/drivers/i2c/
Di2c-stub.c382 stub_chips = kcalloc(stub_chips_nr, sizeof(struct stub_chip), in i2c_stub_init()
/linux-4.1.27/drivers/staging/iio/
Diio_simple_dummy.c719 iio_dummy_devs = kcalloc(instances, sizeof(*iio_dummy_devs), in iio_dummy_init()
/linux-4.1.27/drivers/clk/rockchip/
Dclk.c167 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in rockchip_clk_init()
/linux-4.1.27/drivers/pnp/pnpbios/
Dcore.c104 if (!(envp = kcalloc(20, sizeof(char *), GFP_KERNEL))) in pnp_dock_event()
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_cmn.c4483 txdata->tx_buf_ring = kcalloc(NUM_TX_BD, in bnx2x_alloc_fp_mem_at()
4499 kcalloc(NUM_RX_BD, sizeof(struct sw_rx_bd), GFP_KERNEL); in bnx2x_alloc_fp_mem_at()
4517 kcalloc(NUM_RX_SGE, sizeof(struct sw_rx_page), in bnx2x_alloc_fp_mem_at()
4648 fp = kcalloc(bp->fp_array_size, sizeof(*fp), GFP_KERNEL); in bnx2x_alloc_mem_bp()
4653 kcalloc(ETH_MAX_AGGREGATION_QUEUES_E1H_E2, in bnx2x_alloc_mem_bp()
4662 bp->sp_objs = kcalloc(bp->fp_array_size, sizeof(struct bnx2x_sp_objs), in bnx2x_alloc_mem_bp()
4668 bp->fp_stats = kcalloc(bp->fp_array_size, sizeof(struct bnx2x_fp_stats), in bnx2x_alloc_mem_bp()
4678 bp->bnx2x_txq = kcalloc(txq_array_size, sizeof(struct bnx2x_fp_txdata), in bnx2x_alloc_mem_bp()
4684 tbl = kcalloc(msix_table_size, sizeof(*tbl), GFP_KERNEL); in bnx2x_alloc_mem_bp()
/linux-4.1.27/drivers/net/ethernet/intel/e1000/
De1000_ethtool.c606 txdr = kcalloc(adapter->num_tx_queues, sizeof(struct e1000_tx_ring), in e1000_set_ringparam()
611 rxdr = kcalloc(adapter->num_rx_queues, sizeof(struct e1000_rx_ring), in e1000_set_ringparam()
1009 txdr->buffer_info = kcalloc(txdr->count, sizeof(struct e1000_tx_buffer), in e1000_setup_desc_rings()
1068 rxdr->buffer_info = kcalloc(rxdr->count, sizeof(struct e1000_rx_buffer), in e1000_setup_desc_rings()
/linux-4.1.27/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.1.27/sound/hda/
Dhdac_sysfs.c367 tree->nodes = kcalloc(codec->num_nodes + 1, sizeof(*tree->nodes), in widget_tree_create()
/linux-4.1.27/drivers/video/fbdev/
Dsimplefb.c211 par->clks = kcalloc(par->clk_count, sizeof(struct clk *), GFP_KERNEL); in simplefb_clocks_init()
/linux-4.1.27/crypto/asymmetric_keys/
Dverify_pefile.c270 canon = kcalloc(ctx->n_sections, sizeof(unsigned), GFP_KERNEL); in pefile_digest_pe_contents()
/linux-4.1.27/kernel/events/
Dhw_breakpoint.c631 info->tsk_pinned = kcalloc(nr_slots[i], sizeof(int), in init_hw_breakpoint()
/linux-4.1.27/drivers/dma/
Ddmatest.c452 thread->srcs = kcalloc(src_cnt+1, sizeof(u8 *), GFP_KERNEL); in dmatest_func()
462 thread->dsts = kcalloc(dst_cnt+1, sizeof(u8 *), GFP_KERNEL); in dmatest_func()
/linux-4.1.27/net/decnet/
Ddn_table.c164 ht = kcalloc(new_divisor, sizeof(struct dn_fib_node*), GFP_KERNEL); in dn_rehash_zone()
200 dz->dz_hash = kcalloc(dz->dz_divisor, sizeof(struct dn_fib_node *), GFP_KERNEL); in dn_new_zone()
/linux-4.1.27/drivers/dma/ioat/
Ddma_v2.c483 ring = kcalloc(descs, sizeof(*ring), flags); in ioat2_alloc_ring()
607 ring = kcalloc(new_size, sizeof(*ring), GFP_NOWAIT); in reshape_ring()
/linux-4.1.27/drivers/iio/dac/
Dad5380.c352 channels = kcalloc(st->chip_info->num_channels, in ad5380_alloc_channels()
Dad5360.c441 channels = kcalloc(st->chip_info->num_channels, in ad5360_alloc_channels()
/linux-4.1.27/drivers/gpu/drm/gma500/
Dintel_gmbus.c399 dev_priv->gmbus = kcalloc(GMBUS_NUM_PORTS, sizeof(struct intel_gmbus), in gma_intel_setup_gmbus()
Dintel_bios.c489 dev_priv->child_dev = kcalloc(count, sizeof(*p_child), GFP_KERNEL); in parse_device_mapping()
/linux-4.1.27/drivers/net/wireless/hostap/
Dhostap_info.c336 results = kcalloc(new_count, sizeof(struct hfa384x_hostscan_result), in prism2_info_hostscanresults()
/linux-4.1.27/fs/ocfs2/
Dslot_map.c385 si->si_bh = kcalloc(si->si_blocks, sizeof(struct buffer_head *), in ocfs2_map_slot_buffers()
/linux-4.1.27/drivers/infiniband/hw/mlx5/
Dmain.c454 uars = kcalloc(num_uars, sizeof(*uars), GFP_KERNEL); in mlx5_ib_alloc_ucontext()
460 uuari->bitmap = kcalloc(BITS_TO_LONGS(gross_uuars), in mlx5_ib_alloc_ucontext()
476 uuari->count = kcalloc(gross_uuars, sizeof(*uuari->count), GFP_KERNEL); in mlx5_ib_alloc_ucontext()
/linux-4.1.27/crypto/
Dalgif_skcipher.c533 sreq->tsg = kcalloc(tx_nents, sizeof(*sg), GFP_KERNEL); in skcipher_recvmsg_async()
569 tmp = kcalloc(tx_nents * 2, sizeof(*tmp), in skcipher_recvmsg_async()
/linux-4.1.27/drivers/scsi/aic94xx/
Daic94xx_init.c682 kcalloc(ASD_MAX_PHYS, sizeof(*sas_phys), GFP_KERNEL); in asd_register_sas_ha()
684 kcalloc(ASD_MAX_PHYS, sizeof(*sas_ports), GFP_KERNEL); in asd_register_sas_ha()
/linux-4.1.27/drivers/net/wimax/i2400m/
Drx.c1357 i2400m->rx_roq = kcalloc(I2400M_RO_CIN + 1, in i2400m_rx_setup()
1362 rd = kcalloc(I2400M_RO_CIN + 1, sizeof(*i2400m->rx_roq[0].log), in i2400m_rx_setup()
/linux-4.1.27/fs/gfs2/
Dlock_dlm.c1033 submit = kcalloc(new_size, sizeof(uint32_t), GFP_NOFS); in set_recover_size()
1034 result = kcalloc(new_size, sizeof(uint32_t), GFP_NOFS); in set_recover_size()
/linux-4.1.27/sound/drivers/vx/
Dvx_pcm.c1187 chip->playback_pipes = kcalloc(chip->audio_outs, sizeof(struct vx_pipe *), GFP_KERNEL); in vx_init_audio_io()
1190 chip->capture_pipes = kcalloc(chip->audio_ins, sizeof(struct vx_pipe *), GFP_KERNEL); in vx_init_audio_io()
/linux-4.1.27/drivers/iio/adc/
Dti_am335x_adc.c300 chan_array = kcalloc(channels, in tiadc_channel_init()
/linux-4.1.27/drivers/spi/
Dspi-mxs.c193 dma_xfer = kcalloc(sgs, sizeof(*dma_xfer), GFP_KERNEL); in mxs_spi_txrx_dma()
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/
Dbcmmii.c428 bus->irq = kcalloc(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); in bcmgenet_mii_alloc()
/linux-4.1.27/sound/pci/ice1712/
Drevo.c532 ak = ice->akm = kcalloc(2, sizeof(struct snd_akm4xxx), GFP_KERNEL); in revo_init()
/linux-4.1.27/drivers/staging/dgnc/
Ddgnc_driver.c387 brd->msgbuf_head = kcalloc(8192, sizeof(u8), GFP_KERNEL); in dgnc_found_board()
/linux-4.1.27/sound/core/seq/
Dseq_midi.c337 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); in snd_seq_midisynth_probe()

123