/linux-4.1.27/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.1.27/drivers/net/ethernet/mellanox/mlx5/core/ |
D | uar.c | 136 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()
|
D | alloc.c | 78 buf->page_list = kcalloc(buf->nbufs, sizeof(*buf->page_list), in mlx5_buf_alloc()
|
/linux-4.1.27/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.1.27/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.1.27/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.1.27/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.1.27/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()
|
D | gntalloc.c | 293 gref_ids = kcalloc(op.count, sizeof(gref_ids[0]), GFP_TEMPORARY); in gntalloc_ioctl_alloc()
|
/linux-4.1.27/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.1.27/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.1.27/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 | 66 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()
|
D | drm_fb_helper.c | 633 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()
|
D | drm_hashtab.c | 48 ht->table = kcalloc(size, sizeof(*ht->table), GFP_KERNEL); in drm_ht_create()
|
/linux-4.1.27/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.1.27/include/drm/ |
D | drm_mem_util.h | 38 return kcalloc(nmemb, size, GFP_KERNEL); in drm_calloc_large()
|
/linux-4.1.27/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.1.27/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()
|
D | file.c | 117 msblk->meta_index = kcalloc(SQUASHFS_META_SLOTS, in empty_meta_index()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/cpufreq/ |
D | cpufreq_opp.c | 63 freq_table = kcalloc((max_opps + 1), sizeof(*freq_table), GFP_ATOMIC); in dev_pm_opp_init_cpufreq_table()
|
D | qoriq-cpufreq.c | 229 table = kcalloc(count + 1, sizeof(*table), GFP_KERNEL); in qoriq_cpufreq_cpu_init()
|
/linux-4.1.27/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.1.27/arch/arm64/kernel/ |
D | suspend.c | 142 ctx_ptr = kcalloc(mpidr_hash_size(), sizeof(phys_addr_t), GFP_KERNEL); in cpu_suspend_init()
|
D | vdso.c | 128 vdso_pagelist = kcalloc(vdso_pages + 1, sizeof(struct page *), in vdso_init()
|
D | psci.c | 213 psci_states = kcalloc(count, sizeof(*psci_states), GFP_KERNEL); in cpu_psci_cpu_init_idle()
|
/linux-4.1.27/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()
|
D | perf_event_cpu.c | 314 irqs = kcalloc(pdev->num_resources, sizeof(*irqs), GFP_KERNEL); in of_pmu_irq_cfg()
|
/linux-4.1.27/fs/cifs/ |
D | smb2file.c | 114 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/ |
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.1.27/fs/nfs/blocklayout/ |
D | dev.c | 238 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/ |
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.1.27/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.1.27/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.1.27/drivers/irqchip/ |
D | irq-crossbar.c | 223 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()
|
D | exynos-combiner.c | 182 combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL); in combiner_init()
|
D | irq-atmel-aic-common.c | 233 aic = kcalloc(nchips, sizeof(*aic), GFP_KERNEL); in aic_common_of_init()
|
/linux-4.1.27/drivers/staging/comedi/drivers/ |
D | serial2002.c | 403 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()
|
D | comedi_isadma.c | 180 desc = kcalloc(n_desc, sizeof(*desc), GFP_KERNEL); in comedi_isadma_alloc()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/clk/shmobile/ |
D | clk-r8a7778.c | 94 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a7778_cpg_clocks_init()
|
D | clk-r8a73a4.c | 206 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in r8a73a4_cpg_clocks_init()
|
D | clk-sh73a0.c | 178 clks = kcalloc(num_clks, sizeof(*clks), GFP_KERNEL); in sh73a0_cpg_clocks_init()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/clk/st/ |
D | clk-flexgen.c | 252 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/ |
D | clk-qoriq.c | 91 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()
|
D | clk.c | 1410 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/ |
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 | 273 dup->functions = kcalloc(info->n_functions, in gcov_info_dup()
|
/linux-4.1.27/kernel/sched/ |
D | cpupri.c | 222 cp->cpu_to_pri = kcalloc(nr_cpu_ids, sizeof(int), GFP_KERNEL); in cpupri_init()
|
D | cpudeadline.c | 221 cp->elements = kcalloc(nr_cpu_ids, in cpudl_init()
|
/linux-4.1.27/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.1.27/drivers/iio/ |
D | buffer_cb.c | 67 = kcalloc(BITS_TO_LONGS(indio_dev->masklength), sizeof(long), in iio_channel_get_all_cb()
|
D | industrialio-buffer.c | 621 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()
|
D | industrialio-event.c | 476 indio_dev->event_interface->group.attrs = kcalloc(attrcount + 1, in iio_device_register_eventset()
|
/linux-4.1.27/drivers/gpu/drm/i915/ |
D | i915_gem_tiling.c | 419 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()
|
D | i915_gpu_error.c | 1052 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/ |
D | vmwgfx_ioctl.c | 249 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/ |
D | br_ioctl.c | 170 indices = kcalloc(num, sizeof(int), GFP_KERNEL); in old_dev_ioctl() 314 indices = kcalloc(args[2], sizeof(int), GFP_KERNEL); in old_deviceless()
|
D | br_if.c | 297 inuse = kcalloc(BITS_TO_LONGS(BR_MAX_PORTS), sizeof(unsigned long), in find_portno()
|
/linux-4.1.27/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.1.27/drivers/clk/samsung/ |
D | clk.c | 44 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/ |
D | qp.c | 808 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()
|
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 | 89 profile = kcalloc(MLX4_RES_NUM, sizeof(*profile), GFP_KERNEL); in mlx4_make_profile()
|
D | main.c | 843 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()
|
D | icm.c | 399 table->icm = kcalloc(num_icm, sizeof *table->icm, GFP_KERNEL); in mlx4_init_icm_table()
|
/linux-4.1.27/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.1.27/drivers/clk/pistachio/ |
D | clk.c | 26 p->clk_data.clks = kcalloc(num_clks, sizeof(struct clk *), GFP_KERNEL); in pistachio_clk_alloc_provider()
|
/linux-4.1.27/fs/nfsd/ |
D | blocklayoutxdr.c | 111 iomaps = kcalloc(nr_iomaps, sizeof(*iomaps), GFP_KERNEL); in nfsd4_block_decode_layoutupdate()
|
D | nfscache.c | 184 drc_hashtbl = kcalloc(hashsize, sizeof(*drc_hashtbl), GFP_KERNEL); in nfsd_reply_cache_init()
|
/linux-4.1.27/drivers/net/phy/ |
D | mdio-bcm-unimac.c | 154 bus->irq = kcalloc(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); in unimac_mdio_probe()
|
/linux-4.1.27/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.1.27/drivers/usb/gadget/legacy/ |
D | g_ffs.c | 211 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/ |
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.1.27/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.1.27/drivers/net/wireless/ath/wil6210/ |
D | rx_reorder.c | 211 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/ |
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()
|
/linux-4.1.27/net/mac80211/ |
D | agg-rx.c | 310 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/ |
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() 596 pages = kcalloc(nr_pages, sizeof(struct page *), GFP_KERNEL); in rds_cmsg_rdma_args()
|
/linux-4.1.27/drivers/usb/storage/ |
D | alauda.c | 448 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/ |
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() 1107 devs.devices = kcalloc(i, sizeof(struct vfio_device *), GFP_KERNEL); in vfio_pci_try_bus_reset()
|
/linux-4.1.27/drivers/usb/wusbcore/ |
D | mmc.c | 48 wusbhc->mmcie = kcalloc(mmcies, sizeof(wusbhc->mmcie[0]), GFP_KERNEL); in wusbhc_mmcie_create()
|
/linux-4.1.27/fs/ramfs/ |
D | file-nommu.c | 230 pages = kcalloc(lpages, sizeof(struct page *), GFP_KERNEL); in ramfs_nommu_get_unmapped_area()
|
/linux-4.1.27/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.1.27/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()
|
D | rx.c | 706 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/ |
D | services.c | 128 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/ |
D | mpic_msgr.c | 187 mpic_msgrs = kcalloc(mpic_msgr_count, sizeof(*mpic_msgrs), in mpic_msgr_probe()
|
/linux-4.1.27/drivers/staging/rtl8192u/ieee80211/ |
D | ieee80211_module.c | 67 ieee->networks = kcalloc( in ieee80211_networks_allocate()
|
/linux-4.1.27/drivers/scsi/mvsas/ |
D | mv_init.c | 452 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/ |
D | coresight.c | 649 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/ |
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.1.27/drivers/clk/mmp/ |
D | clk.c | 15 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in mmp_clk_init()
|
D | clk-of-pxa168.c | 227 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa168_clk_reset_init()
|
D | clk-of-pxa910.c | 231 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in pxa910_clk_reset_init()
|
D | clk-of-mmp2.c | 282 cells = kcalloc(nr_resets, sizeof(*cells), GFP_KERNEL); in mmp2_clk_reset_init()
|
/linux-4.1.27/drivers/s390/net/ |
D | fsm.c | 46 m = kcalloc(nr_states*nr_events, sizeof(fsm_function_t), order); in init_fsm()
|
/linux-4.1.27/drivers/usb/host/ |
D | ehci-mem.c | 238 ehci->pshadow = kcalloc(ehci->periodic_size, sizeof(void *), flags); in ehci_mem_init()
|
/linux-4.1.27/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() 688 channels = kcalloc(st->scan_cnt, sizeof(*channels), GFP_KERNEL); in ad7280_event_handler()
|
/linux-4.1.27/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.1.27/fs/overlayfs/ |
D | super.c | 370 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/ |
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() 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/ |
D | adf_isr.c | 178 names = kcalloc(msix_num_entries, sizeof(char *), GFP_KERNEL); in adf_isr_alloc_msix_entry_table()
|
/linux-4.1.27/block/partitions/ |
D | aix.c | 218 lvip = kcalloc(state->limit, sizeof(struct lv_info), GFP_KERNEL); in aix_partition()
|
/linux-4.1.27/drivers/platform/x86/ |
D | dell-wmi.c | 304 keymap = kcalloc(hotkey_num + 1, sizeof(struct key_entry), GFP_KERNEL); in dell_wmi_prepare_new_keymap()
|
/linux-4.1.27/fs/nfs/filelayout/ |
D | filelayoutdev.c | 102 stripe_indices = kcalloc(cnt, sizeof(u8), gfp_flags); in nfs4_fl_alloc_deviceid_node()
|
/linux-4.1.27/lib/ |
D | list_sort.c | 221 elts = kcalloc(TEST_LIST_LEN, sizeof(*elts), GFP_KERNEL); in list_sort_test()
|
/linux-4.1.27/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 | 330 ff->effects = kcalloc(max_effects, sizeof(struct ff_effect), in input_ff_create()
|
D | input-mt.c | 86 mt->red = kcalloc(n2, sizeof(*mt->red), GFP_KERNEL); in input_mt_init_slots()
|
/linux-4.1.27/Documentation/filesystems/cifs/ |
D | AUTHORS | 34 Adrian Bunk (kcalloc cleanups)
|
/linux-4.1.27/net/sched/ |
D | cls_tcindex.c | 322 cp->perfect = kcalloc(cp->hash, sizeof(*r), GFP_KERNEL); in tcindex_set_parms() 333 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 | 264 q->queues = kcalloc(q->max_bands, sizeof(struct Qdisc *), GFP_KERNEL); in multiq_init()
|
D | sch_mqprio.c | 118 priv->qdiscs = kcalloc(dev->num_tx_queues, sizeof(priv->qdiscs[0]), in mqprio_init()
|
/linux-4.1.27/drivers/target/ |
D | target_core_rd.c | 157 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()
|
D | target_core_file.c | 332 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/ |
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.1.27/drivers/edac/ |
D | edac_mc.c | 348 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/ |
D | config.c | 461 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/ |
D | driver.c | 353 kcalloc(i2o_max_drivers, sizeof(*i2o_drivers), GFP_KERNEL); in i2o_driver_init()
|
/linux-4.1.27/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.1.27/arch/ia64/sn/kernel/ |
D | io_init.c | 252 res = kcalloc(2, sizeof(struct resource), GFP_KERNEL); in sn_pci_controller_fixup()
|
/linux-4.1.27/arch/alpha/kernel/ |
D | module.c | 108 chains = kcalloc(nsyms, sizeof(struct got_entry), GFP_KERNEL); in module_frob_arch_sections()
|
/linux-4.1.27/fs/adfs/ |
D | dir_fplus.c | 61 kcalloc(size, sizeof(struct buffer_head *), in adfs_fplus_read()
|
/linux-4.1.27/include/linux/ |
D | slab.h | 538 static inline void *kcalloc(size_t n, size_t size, gfp_t flags) in kcalloc() function
|
/linux-4.1.27/net/ipv4/ |
D | tcp_probe.c | 272 tcp_probe.log = kcalloc(bufsize, sizeof(struct tcp_log), GFP_KERNEL); in tcpprobe_init()
|
/linux-4.1.27/drivers/clk/sunxi/ |
D | clk-mod0.c | 325 clk_data->clks = kcalloc(3, sizeof(*clk_data->clks), GFP_KERNEL); in sunxi_mmc_setup()
|
/linux-4.1.27/drivers/vfio/platform/ |
D | vfio_platform_irq.c | 296 vdev->irqs = kcalloc(cnt, sizeof(struct vfio_platform_irq), GFP_KERNEL); in vfio_platform_irq_init()
|
/linux-4.1.27/net/sunrpc/ |
D | stats.c | 122 stats = kcalloc(clnt->cl_maxproc, sizeof(*stats), GFP_KERNEL); in rpc_alloc_iostats()
|
D | svc.c | 161 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/ |
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.1.27/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.1.27/virt/kvm/arm/ |
D | vgic-v3-emul.c | 761 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/ |
D | lloop.c | 794 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/ |
D | drivers.c | 82 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/ |
D | qlcnic_sysfs.c | 917 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()
|
D | qlcnic_main.c | 700 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/ |
D | pnfs_dev.c | 123 pages = kcalloc(max_pages, sizeof(struct page *), gfp_flags); in nfs4_get_device_info()
|
/linux-4.1.27/drivers/pinctrl/ |
D | pinconf-generic.c | 240 cfg = kcalloc(max_cfg, sizeof(*cfg), GFP_KERNEL); in pinconf_generic_parse_dt_config()
|
/linux-4.1.27/drivers/of/ |
D | overlay.c | 275 ovinfo = kcalloc(cnt, sizeof(*ovinfo), GFP_KERNEL); in of_build_overlay_info()
|
/linux-4.1.27/drivers/usb/usbip/ |
D | stub_tx.c | 182 iov = kcalloc(iovnum, sizeof(struct kvec), GFP_KERNEL); in stub_send_ret_submit()
|
/linux-4.1.27/drivers/uwb/ |
D | est.c | 187 uwb_est = kcalloc(uwb_est_size, sizeof(uwb_est[0]), GFP_KERNEL); in uwb_est_create()
|
/linux-4.1.27/drivers/mfd/ |
D | mfd-core.c | 253 cnts = kcalloc(n_devs, sizeof(*cnts), GFP_KERNEL); in mfd_add_devices()
|
/linux-4.1.27/drivers/power/ |
D | max17042_battery.c | 327 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()
|
D | generic-adc-battery.c | 273 psy_desc->properties = kcalloc(ARRAY_SIZE(gab_props) + in gab_probe()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/i2c/ |
D | i2c-stub.c | 382 stub_chips = kcalloc(stub_chips_nr, sizeof(struct stub_chip), in i2c_stub_init()
|
/linux-4.1.27/drivers/staging/iio/ |
D | iio_simple_dummy.c | 719 iio_dummy_devs = kcalloc(instances, sizeof(*iio_dummy_devs), in iio_dummy_init()
|
/linux-4.1.27/drivers/clk/rockchip/ |
D | clk.c | 167 clk_table = kcalloc(nr_clks, sizeof(struct clk *), GFP_KERNEL); in rockchip_clk_init()
|
/linux-4.1.27/drivers/pnp/pnpbios/ |
D | core.c | 104 if (!(envp = kcalloc(20, sizeof(char *), GFP_KERNEL))) in pnp_dock_event()
|
/linux-4.1.27/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.1.27/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.1.27/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_cmn.c | 4483 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/ |
D | e1000_ethtool.c | 606 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/ |
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.1.27/sound/hda/ |
D | hdac_sysfs.c | 367 tree->nodes = kcalloc(codec->num_nodes + 1, sizeof(*tree->nodes), in widget_tree_create()
|
/linux-4.1.27/drivers/video/fbdev/ |
D | simplefb.c | 211 par->clks = kcalloc(par->clk_count, sizeof(struct clk *), GFP_KERNEL); in simplefb_clocks_init()
|
/linux-4.1.27/crypto/asymmetric_keys/ |
D | verify_pefile.c | 270 canon = kcalloc(ctx->n_sections, sizeof(unsigned), GFP_KERNEL); in pefile_digest_pe_contents()
|
/linux-4.1.27/kernel/events/ |
D | hw_breakpoint.c | 631 info->tsk_pinned = kcalloc(nr_slots[i], sizeof(int), in init_hw_breakpoint()
|
/linux-4.1.27/drivers/dma/ |
D | dmatest.c | 452 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/ |
D | dn_table.c | 164 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/ |
D | dma_v2.c | 483 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/ |
D | ad5380.c | 352 channels = kcalloc(st->chip_info->num_channels, in ad5380_alloc_channels()
|
D | ad5360.c | 441 channels = kcalloc(st->chip_info->num_channels, in ad5360_alloc_channels()
|
/linux-4.1.27/drivers/gpu/drm/gma500/ |
D | intel_gmbus.c | 399 dev_priv->gmbus = kcalloc(GMBUS_NUM_PORTS, sizeof(struct intel_gmbus), in gma_intel_setup_gmbus()
|
D | intel_bios.c | 489 dev_priv->child_dev = kcalloc(count, sizeof(*p_child), GFP_KERNEL); in parse_device_mapping()
|
/linux-4.1.27/drivers/net/wireless/hostap/ |
D | hostap_info.c | 336 results = kcalloc(new_count, sizeof(struct hfa384x_hostscan_result), in prism2_info_hostscanresults()
|
/linux-4.1.27/fs/ocfs2/ |
D | slot_map.c | 385 si->si_bh = kcalloc(si->si_blocks, sizeof(struct buffer_head *), in ocfs2_map_slot_buffers()
|
/linux-4.1.27/drivers/infiniband/hw/mlx5/ |
D | main.c | 454 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/ |
D | algif_skcipher.c | 533 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/ |
D | aic94xx_init.c | 682 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/ |
D | rx.c | 1357 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/ |
D | lock_dlm.c | 1033 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/ |
D | vx_pcm.c | 1187 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/ |
D | ti_am335x_adc.c | 300 chan_array = kcalloc(channels, in tiadc_channel_init()
|
/linux-4.1.27/drivers/spi/ |
D | spi-mxs.c | 193 dma_xfer = kcalloc(sgs, sizeof(*dma_xfer), GFP_KERNEL); in mxs_spi_txrx_dma()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/genet/ |
D | bcmmii.c | 428 bus->irq = kcalloc(PHY_MAX_ADDR, sizeof(int), GFP_KERNEL); in bcmgenet_mii_alloc()
|
/linux-4.1.27/sound/pci/ice1712/ |
D | revo.c | 532 ak = ice->akm = kcalloc(2, sizeof(struct snd_akm4xxx), GFP_KERNEL); in revo_init()
|
/linux-4.1.27/drivers/staging/dgnc/ |
D | dgnc_driver.c | 387 brd->msgbuf_head = kcalloc(8192, sizeof(u8), GFP_KERNEL); in dgnc_found_board()
|
/linux-4.1.27/sound/core/seq/ |
D | seq_midi.c | 337 msynth = kcalloc(ports, sizeof(struct seq_midisynth), GFP_KERNEL); in snd_seq_midisynth_probe()
|