/linux-4.4.14/scripts/coccinelle/api/alloc/ |
D | alloc_cast.cocci | 5 //# kmalloc, kzalloc, kcalloc, kmem_cache_alloc, kmem_cache_zalloc, 30 \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 42 (\(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\| 54 (T@p *)\(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|
|
/linux-4.4.14/drivers/misc/echo/ |
D | fir.h | 98 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()
|
D | echo.c | 243 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/ |
D | uar.c | 137 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()
|
D | flow_table.c | 361 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/ |
D | eno.cocci | 20 x = \(kmalloc\|kzalloc\|kcalloc\|kmem_cache_alloc\|kmem_cache_zalloc\|kmem_cache_alloc_node\|kmallo… 30 *x = \(kmalloc@p1\|kzalloc@p1\|kcalloc@p1\|kmem_cache_alloc@p1\|kmem_cache_zalloc@p1\|kmem_cache_al…
|
D | kmerr.cocci | 37 *x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...); 53 x@p1 = \(kmalloc\|kzalloc\|kcalloc\)(...);
|
/linux-4.4.14/fs/ceph/ |
D | mdsmap.c | 79 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/ |
D | grant-table.c | 127 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/ |
D | xen-acpi-processor.c | 70 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()
|
D | gntdev.c | 142 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()
|
D | mcelog.c | 371 g_physinfo = kcalloc(ncpus, sizeof(struct mcinfo_logical_cpu), in bind_virq_for_mce()
|
/linux-4.4.14/drivers/ssb/ |
D | sprom.c | 75 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/ |
D | sgbuf.c | 84 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/ |
D | drm_scatter.c | 108 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()
|
D | drm_atomic.c | 70 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()
|
D | drm_fb_helper.c | 692 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()
|
D | drm_hashtab.c | 48 ht->table = kcalloc(size, sizeof(*ht->table), GFP_KERNEL); in drm_ht_create()
|
/linux-4.4.14/include/drm/ |
D | drm_mem_util.h | 38 return kcalloc(nmemb, size, GFP_KERNEL); in drm_calloc_large()
|
/linux-4.4.14/drivers/mtd/maps/ |
D | pmcmsp-flash.c | 86 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/ |
D | kfd_pasid.c | 35 pasid_bitmap = kcalloc(BITS_TO_LONGS(pasid_limit), sizeof(long), GFP_KERNEL); in kfd_pasid_init()
|
/linux-4.4.14/fs/squashfs/ |
D | cache.c | 247 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()
|
D | block.c | 99 bh = kcalloc(((output->length + msblk->devblksize - 1) in squashfs_read_data()
|
/linux-4.4.14/drivers/target/iscsi/ |
D | iscsi_target_seq_pdu_list.c | 142 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/ |
D | eeprom.c | 730 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/ |
D | suspend.c | 141 ctx_ptr = kcalloc(mpidr_hash_size(), sizeof(phys_addr_t), GFP_KERNEL); in cpu_suspend_init()
|
D | psci.c | 62 psci_states = kcalloc(count, sizeof(*psci_states), GFP_KERNEL); in cpu_psci_cpu_init_idle()
|
D | vdso.c | 128 vdso_pagelist = kcalloc(vdso_pages + 1, sizeof(struct page *), in vdso_init()
|
/linux-4.4.14/drivers/oprofile/ |
D | oprofile_perf.c | 288 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/ |
D | cpu_cooling.c | 296 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()
|
D | devfreq_cooling.c | 397 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/ |
D | suspend.c | 93 ctx_ptr = kcalloc(mpidr_hash_size(), sizeof(u32), GFP_KERNEL); in cpu_suspend_alloc_sp()
|
D | topology.c | 99 __cpu_capacity = kcalloc(nr_cpu_ids, sizeof(*__cpu_capacity), in parse_dt_topology()
|
D | vdso.c | 190 vdso_text_pagelist = kcalloc(text_pages, sizeof(struct page *), in vdso_init()
|
/linux-4.4.14/net/ceph/ |
D | osdmap.c | 71 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/ |
D | dev.c | 243 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/ |
D | netlabel_cipso_v4.c | 206 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/ |
D | smb2file.c | 133 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/ |
D | clk-corediv.c | 256 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()
|
D | kirkwood.c | 302 ctrl->muxes = kcalloc(ctrl->num_muxes, sizeof(struct clk *), in kirkwood_clk_muxing_setup()
|
/linux-4.4.14/drivers/clk/bcm/ |
D | clk-iproc-asiu.c | 201 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()
|
D | clk-iproc-pll.c | 611 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/ |
D | irq-crossbar.c | 228 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()
|
D | irq-atmel-aic-common.c | 233 aic = kcalloc(nchips, sizeof(*aic), GFP_KERNEL); in aic_common_of_init()
|
D | exynos-combiner.c | 184 combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL); in combiner_init()
|
D | irq-bcm7120-l2.c | 243 data->l1_data = kcalloc(data->num_parent_irqs, sizeof(*data->l1_data), in bcm7120_l2_intc_probe()
|
/linux-4.4.14/arch/mips/kernel/ |
D | smp-cps.c | 149 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/ |
D | serial2002.c | 402 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()
|
D | comedi_isadma.c | 180 desc = kcalloc(n_desc, sizeof(*desc), GFP_KERNEL); in comedi_isadma_alloc()
|
/linux-4.4.14/drivers/staging/rtl8188eu/hal/ |
D | rtl8188eu_recv.c | 45 kcalloc(NR_RECVBUFF, sizeof(struct recv_buf), GFP_KERNEL); in rtl8188eu_init_recv_priv()
|
/linux-4.4.14/drivers/gpio/ |
D | gpio-it87.c | 364 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/ |
D | qoriq-cpufreq.c | 229 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/ |
D | ion_dummy_driver.c | 71 heaps = kcalloc(dummy_ion_pdata.nr, sizeof(struct ion_heap *), in ion_dummy_init()
|
/linux-4.4.14/drivers/clk/shmobile/ |
D | clk-r8a7778.c | 94 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a7778_cpg_clocks_init()
|
D | clk-sh73a0.c | 178 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in sh73a0_cpg_clocks_init()
|
D | clk-r8a73a4.c | 206 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a73a4_cpg_clocks_init()
|
/linux-4.4.14/drivers/staging/iio/accel/ |
D | lis3l02dq_ring.c | 64 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/ |
D | emux_seq.c | 151 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()
|
D | emux.c | 102 emu->voices = kcalloc(emu->max_voices, sizeof(struct snd_emux_voice), in snd_emux_register()
|
D | emux_effect.c | 283 p->effect = kcalloc(p->chset.max_channels, in snd_emux_create_effect()
|
/linux-4.4.14/drivers/clk/st/ |
D | clk-flexgen.c | 253 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()
|
D | clkgen-mux.c | 35 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/ |
D | fs.c | 375 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()
|
D | gcc_4_7.c | 275 dup->functions = kcalloc(info->n_functions, in gcov_info_dup()
|
/linux-4.4.14/kernel/sched/ |
D | cpupri.c | 222 cp->cpu_to_pri = kcalloc(nr_cpu_ids, sizeof(int), GFP_KERNEL); in cpupri_init()
|
D | cpudeadline.c | 216 cp->elements = kcalloc(nr_cpu_ids, in cpudl_init()
|
/linux-4.4.14/drivers/iio/imu/ |
D | adis16400_buffer.c | 35 adis->xfer = kcalloc(2, sizeof(*adis->xfer), GFP_KERNEL); in adis16400_update_scan_mode()
|
D | adis_buffer.c | 37 adis->xfer = kcalloc(scan_count + 1, sizeof(*adis->xfer), GFP_KERNEL); in adis_update_scan_mode()
|
/linux-4.4.14/drivers/iio/buffer/ |
D | industrialio-buffer-cb.c | 77 = kcalloc(BITS_TO_LONGS(indio_dev->masklength), sizeof(long), in iio_channel_get_all_cb()
|
/linux-4.4.14/net/bridge/ |
D | br_ioctl.c | 171 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/ |
D | clk-simple-gates.c | 54 clk_data->clks = kcalloc(number + 1, sizeof(struct clk *), GFP_KERNEL); in sunxi_simple_gates_setup()
|
D | clk-a10-pll2.c | 65 clks = kcalloc(SUN4I_PLL2_OUTPUTS, sizeof(struct clk *), GFP_KERNEL); in sun4i_pll2_setup()
|
D | clk-mod0.c | 326 clk_data->clks = kcalloc(3, sizeof(*clk_data->clks), GFP_KERNEL); in sunxi_mmc_setup()
|
/linux-4.4.14/drivers/acpi/ |
D | acpi_lpat.c | 115 lpat = kcalloc(obj_p->package.count, sizeof(int), GFP_KERNEL); in acpi_lpat_get_conversion_table()
|
/linux-4.4.14/drivers/staging/rtl8192e/ |
D | rtllib_module.c | 62 ieee->networks = kcalloc(MAX_NETWORK_COUNT, in rtllib_networks_allocate()
|
/linux-4.4.14/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_ioctl.c | 275 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/ |
D | clk.c | 48 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/ |
D | qp.c | 822 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()
|
D | mr.c | 109 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()
|
D | profile.c | 88 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile()
|
/linux-4.4.14/sound/core/seq/oss/ |
D | seq_oss_readq.c | 54 q->q = kcalloc(maxlen, sizeof(union evrec), GFP_KERNEL); in snd_seq_oss_readq_new()
|
/linux-4.4.14/drivers/clk/hisilicon/ |
D | clkdivider-hi6220.c | 122 table = kcalloc(max_div + 1, sizeof(*table), GFP_KERNEL); in hi6220_register_clkdiv()
|
/linux-4.4.14/drivers/clk/pistachio/ |
D | clk.c | 27 p->clk_data.clks = kcalloc(num_clks, sizeof(struct clk *), GFP_KERNEL); in pistachio_clk_alloc_provider()
|
/linux-4.4.14/fs/nfsd/ |
D | blocklayoutxdr.c | 111 iomaps = kcalloc(nr_iomaps, sizeof(*iomaps), GFP_KERNEL); in nfsd4_block_decode_layoutupdate()
|
/linux-4.4.14/drivers/base/power/opp/ |
D | cpu.c | 68 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/ |
D | card_debugfs.c | 77 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/ |
D | clk-emc.c | 442 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/ |
D | g_ffs.c | 197 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/ |
D | i915_gpu_error.c | 1063 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()
|
D | i915_gem_tiling.c | 260 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/ |
D | opal-irqchip.c | 218 opal_irqs = kcalloc(opal_irq_count, sizeof(*opal_irqs), GFP_KERNEL); in opal_event_init()
|
/linux-4.4.14/drivers/block/aoe/ |
D | aoedev.c | 456 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()
|
D | aoecmd.c | 215 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/ |
D | lov_dev.c | 326 emerg = kcalloc(nr, sizeof(emerg[0]), GFP_NOFS); in lov_emerg_alloc() 372 newd = kcalloc(tgt_size, sz, GFP_NOFS); in lov_expand_targets()
|
D | lov_pool.c | 307 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/ |
D | cmservice.c | 220 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/ |
D | cacheinfo.c | 192 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()
|
D | property.c | 528 values = kcalloc(nval, sizeof(*values), GFP_KERNEL); in fwnode_property_match_string()
|
/linux-4.4.14/fs/dlm/ |
D | config.c | 349 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/ |
D | rdma.c | 207 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/ |
D | vfio_pci.c | 655 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/ |
D | alauda.c | 451 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/ |
D | mmc.c | 48 wusbhc->mmcie = kcalloc(mmcies, sizeof(wusbhc->mmcie[0]), GFP_KERNEL); in wusbhc_mmcie_create()
|
/linux-4.4.14/fs/ramfs/ |
D | file-nommu.c | 231 pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL); in ramfs_nommu_get_unmapped_area()
|
/linux-4.4.14/drivers/net/phy/ |
D | mdio-bcm-unimac.c | 203 bus->irq = kcalloc(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); in unimac_mdio_probe()
|
/linux-4.4.14/lib/ |
D | sg_split.c | 159 splitters = kcalloc(nb_splits, sizeof(*splitters), gfp_mask); in sg_split()
|
D | list_sort.c | 221 elts = kcalloc(TEST_LIST_LEN, sizeof(*elts), GFP_KERNEL); in list_sort_test()
|
/linux-4.4.14/drivers/net/wireless/iwlwifi/dvm/ |
D | tt.c | 626 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/ |
D | rx_reorder.c | 243 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()
|
D | pmc.c | 73 pmc->descriptors = kcalloc(num_descriptors, in wil_pmc_alloc()
|
/linux-4.4.14/drivers/net/ethernet/sfc/ |
D | mcdi_mon.c | 356 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/ |
D | agg-rx.c | 312 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/ |
D | hdm_usb.c | 1264 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/ |
D | industrialio-buffer.c | 672 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/ |
D | mpic_msgr.c | 187 mpic_msgrs = kcalloc(mpic_msgr_count, sizeof(*mpic_msgrs), in mpic_msgr_probe()
|
/linux-4.4.14/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_module.c | 67 ieee->networks = kcalloc( in ieee80211_networks_allocate()
|
/linux-4.4.14/drivers/staging/iio/adc/ |
D | ad7280a.c | 489 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/ |
D | mv_init.c | 446 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/ |
D | vpfe_mc_capture.c | 229 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/ |
D | coresight.c | 654 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/ |
D | clk-lpc18xx-ccu.c | 286 clk_data->name = kcalloc(clk_data->num, sizeof(char *), GFP_KERNEL); in lpc18xx_ccu_init()
|
/linux-4.4.14/drivers/clk/mmp/ |
D | clk.c | 14 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in mmp_clk_init()
|
D | clk-of-pxa1928.c | 191 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa1928_clk_reset_init()
|
D | clk-of-pxa168.c | 235 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa168_clk_reset_init()
|
D | clk-of-pxa910.c | 243 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa910_clk_reset_init()
|
D | clk-of-mmp2.c | 286 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in mmp2_clk_reset_init()
|
/linux-4.4.14/drivers/usb/host/ |
D | ehci-mem.c | 238 ehci->pshadow = kcalloc(ehci->periodic_size, sizeof(void *), flags); in ehci_mem_init()
|
/linux-4.4.14/drivers/crypto/qat/qat_common/ |
D | adf_sriov.c | 272 accel_dev->pf.vf_info = kcalloc(totalvfs, in adf_sriov_configure()
|
/linux-4.4.14/drivers/clk/mediatek/ |
D | clk-mtk.c | 36 clk_data->clks = kcalloc(clk_num, sizeof(*clk_data->clks), GFP_KERNEL); in mtk_alloc_clk_data()
|
/linux-4.4.14/drivers/s390/net/ |
D | fsm.c | 46 m = kcalloc(nr_states*nr_events, sizeof(fsm_function_t), order); in init_fsm()
|
/linux-4.4.14/drivers/dma/sh/ |
D | shdma-base.c | 230 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/ |
D | pcnet32.c | 495 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/ |
D | services.c | 129 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/ |
D | AUTHORS | 34 Adrian Bunk (kcalloc cleanups)
|
/linux-4.4.14/drivers/input/ |
D | sparse-keymap.c | 183 map = kcalloc(map_size, sizeof(struct key_entry), GFP_KERNEL); in sparse_keymap_setup()
|
D | ff-core.c | 335 ff->effects = kcalloc(max_effects, sizeof(struct ff_effect), in input_ff_create()
|
/linux-4.4.14/drivers/clk/meson/ |
D | clkc.c | 32 clks = kcalloc(nr_clks, sizeof(*clks), GFP_KERNEL); in meson_clk_init()
|
/linux-4.4.14/fs/nfs/filelayout/ |
D | filelayoutdev.c | 102 stripe_indices = kcalloc(cnt, sizeof(u8), gfp_flags); in nfs4_fl_alloc_deviceid_node()
|
/linux-4.4.14/block/partitions/ |
D | aix.c | 218 lvip = kcalloc(state->limit, sizeof(struct lv_info), GFP_KERNEL); in aix_partition()
|
/linux-4.4.14/drivers/platform/x86/ |
D | dell-wmi.c | 305 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/ |
D | videobuf-dma-sg.c | 217 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/ |
D | cls_tcindex.c | 343 cp->perfect = kcalloc(cp->hash, sizeof(*r), GFP_KERNEL); in tcindex_set_parms() 354 hash = kcalloc(cp->hash, in tcindex_set_parms()
|
D | sch_mq.c | 53 priv->qdiscs = kcalloc(dev->num_tx_queues, sizeof(priv->qdiscs[0]), in mq_init()
|
D | sch_multiq.c | 266 q->queues = kcalloc(q->max_bands, sizeof(struct Qdisc *), GFP_KERNEL); in multiq_init()
|
/linux-4.4.14/fs/overlayfs/ |
D | super.c | 474 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/ |
D | edac_mc.c | 353 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/ |
D | init.c | 136 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/ |
D | path.c | 40 path->hops = kcalloc(num_hops, sizeof(*path->hops), GFP_KERNEL); in tb_path_alloc()
|
D | switch.c | 382 sw->ports = kcalloc(sw->config.max_port_number + 1, sizeof(*sw->ports), in tb_switch_alloc()
|
/linux-4.4.14/drivers/clk/ |
D | clk-gpio.c | 296 parent_names = kcalloc(num_parents, sizeof(char *), GFP_KERNEL); in of_gpio_clk_setup()
|
/linux-4.4.14/arch/alpha/kernel/ |
D | module.c | 108 chains = kcalloc(nsyms, sizeof(struct got_entry), GFP_KERNEL); in module_frob_arch_sections()
|
/linux-4.4.14/fs/adfs/ |
D | dir_fplus.c | 61 kcalloc(size, sizeof(struct buffer_head *), in adfs_fplus_read()
|
/linux-4.4.14/drivers/iommu/ |
D | omap-iommu-debug.c | 150 cr = kcalloc(num, sizeof(*cr), GFP_KERNEL); in omap_dump_tlb_entries()
|
D | tegra-smmu.c | 279 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/ |
D | io_init.c | 252 res = kcalloc(2, sizeof(struct resource), GFP_KERNEL); in sn_pci_controller_fixup()
|
/linux-4.4.14/drivers/nvdimm/ |
D | namespace_devs.c | 1425 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()
|
D | btt.c | 450 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/ |
D | vfio_platform_irq.c | 297 vdev->irqs = kcalloc(cnt, sizeof(struct vfio_platform_irq), GFP_KERNEL); in vfio_platform_irq_init()
|
/linux-4.4.14/drivers/gpu/drm/virtio/ |
D | virtgpu_kms.c | 103 vgdev->capsets = kcalloc(num_capsets, in virtio_gpu_get_capsets()
|
/linux-4.4.14/drivers/gpu/drm/amd/amdgpu/ |
D | amdgpu_irq.c | 306 types = kcalloc(source->num_types, sizeof(atomic_t), in amdgpu_irq_add_id()
|
/linux-4.4.14/net/sunrpc/ |
D | stats.c | 122 stats = kcalloc(clnt->cl_maxproc, sizeof(*stats), GFP_KERNEL); in rpc_alloc_iostats()
|
D | svc.c | 144 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/ |
D | tcp_probe.c | 272 tcp_probe.log = kcalloc(bufsize, sizeof(struct tcp_log), GFP_KERNEL); in tcpprobe_init()
|
D | tcp_cdg.c | 387 ca->gradients = kcalloc(window, sizeof(ca->gradients[0]), in tcp_cdg_init()
|
/linux-4.4.14/drivers/crypto/qat/qat_dh895xcc/ |
D | adf_isr.c | 246 names = kcalloc(msix_num_entries, sizeof(char *), GFP_KERNEL); in adf_isr_alloc_msix_entry_table()
|
/linux-4.4.14/drivers/hwmon/ |
D | applesmc.c | 518 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/ |
D | target_core_file.c | 260 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/ |
D | gpio_keys.c | 177 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/ |
D | drivers.c | 114 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/ |
D | lloop.c | 799 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/ |
D | qlcnic_sysfs.c | 914 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/ |
D | pinconf-generic.c | 241 cfg = kcalloc(max_cfg, sizeof(*cfg), GFP_KERNEL); in pinconf_generic_parse_dt_config()
|
/linux-4.4.14/fs/nfs/ |
D | pnfs_dev.c | 123 pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); in nfs4_get_device_info()
|
/linux-4.4.14/include/linux/ |
D | slab.h | 557 static inline void *kcalloc(size_t n, size_t size, gfp_t flags) in kcalloc() function
|
/linux-4.4.14/drivers/of/ |
D | overlay.c | 276 ovinfo = kcalloc(cnt, sizeof(*ovinfo), GFP_KERNEL); in of_build_overlay_info()
|
/linux-4.4.14/drivers/misc/mic/scif/ |
D | scif_main.c | 121 scif_dev = kcalloc(num_nodes, sizeof(*scif_dev), GFP_KERNEL); in scif_setup_scifdev()
|
/linux-4.4.14/drivers/dma-buf/ |
D | fence.c | 448 cb = kcalloc(count, sizeof(struct default_wait_cb), GFP_KERNEL); in fence_wait_any_timeout()
|
/linux-4.4.14/drivers/usb/usbip/ |
D | stub_tx.c | 182 iov = kcalloc(iovnum, sizeof(struct kvec), GFP_KERNEL); in stub_send_ret_submit()
|
/linux-4.4.14/drivers/mfd/ |
D | mfd-core.c | 275 cnts = kcalloc(n_devs, sizeof(*cnts), GFP_KERNEL); in mfd_add_devices()
|
/linux-4.4.14/drivers/uwb/ |
D | est.c | 187 uwb_est = kcalloc(uwb_est_size, sizeof(uwb_est[0]), GFP_KERNEL); in uwb_est_create()
|
/linux-4.4.14/drivers/net/ |
D | ifb.c | 170 txp = kcalloc(dev->num_tx_queues, sizeof(*txp), GFP_KERNEL); in ifb_dev_init()
|
/linux-4.4.14/virt/kvm/arm/ |
D | vgic-v3-emul.c | 805 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/ |
D | ade7758_core.c | 832 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/ |
D | dma.c | 668 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/ |
D | core.c | 104 if (!(envp = kcalloc(20, sizeof(char *), GFP_KERNEL))) in pnp_dock_event()
|
/linux-4.4.14/drivers/staging/iio/ |
D | iio_simple_dummy.c | 710 iio_dummy_devs = kcalloc(instances, sizeof(*iio_dummy_devs), in iio_dummy_init()
|
/linux-4.4.14/drivers/power/ |
D | generic-adc-battery.c | 273 psy_desc->properties = kcalloc(ARRAY_SIZE(gab_props) + in gab_probe()
|
/linux-4.4.14/drivers/i2c/ |
D | i2c-stub.c | 382 stub_chips = kcalloc(stub_chips_nr, sizeof(struct stub_chip), in i2c_stub_init()
|
/linux-4.4.14/drivers/gpu/drm/radeon/ |
D | radeon_cs.c | 273 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/ |
D | em28xx-audio.c | 831 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/ |
D | dma.c | 339 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/ |
D | e1000_ethtool.c | 604 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/ |
D | altera_tse_main.c | 164 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/ |
D | clk.c | 176 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in rockchip_clk_init()
|
/linux-4.4.14/sound/hda/ |
D | hdac_sysfs.c | 374 tree->nodes = kcalloc(codec->num_nodes + 1, sizeof(*tree->nodes), in widget_tree_create()
|
/linux-4.4.14/kernel/events/ |
D | hw_breakpoint.c | 631 info->tsk_pinned = kcalloc(nr_slots[i], sizeof(int), in init_hw_breakpoint()
|
/linux-4.4.14/drivers/video/fbdev/ |
D | simplefb.c | 212 par->clks = kcalloc(par->clk_count, sizeof(struct clk *), GFP_KERNEL); in simplefb_clocks_init()
|
/linux-4.4.14/crypto/asymmetric_keys/ |
D | verify_pefile.c | 270 canon = kcalloc(ctx->n_sections, sizeof(unsigned), GFP_KERNEL); in pefile_digest_pe_contents()
|
/linux-4.4.14/drivers/pci/host/ |
D | pci-xgene-msi.c | 289 xgene_msi->msi_groups = kcalloc(NR_HW_IRQS, in xgene_msi_init_allocator()
|
/linux-4.4.14/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 4591 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()
|