Home
last modified time | relevance | path

Searched refs:kcalloc (Results 1 - 25 of 3177) sorted by relevance

12345678910>>...128

/kernel/linux/linux-5.10/arch/powerpc/platforms/powernv/
H A Dopal-sysparam.c188 id = kcalloc(count, sizeof(*id), GFP_KERNEL); in opal_sys_param_init()
195 size = kcalloc(count, sizeof(*size), GFP_KERNEL); in opal_sys_param_init()
202 perm = kcalloc(count, sizeof(*perm), GFP_KERNEL); in opal_sys_param_init()
225 attr = kcalloc(count, sizeof(*attr), GFP_KERNEL); in opal_sys_param_init()
H A Dopal-imc.c95 base_addr_arr = kcalloc(nr_chips, sizeof(*base_addr_arr), GFP_KERNEL); in imc_get_mem_addr_nest()
99 chipid_arr = kcalloc(nr_chips, sizeof(*chipid_arr), GFP_KERNEL); in imc_get_mem_addr_nest()
112 pmu_ptr->mem_info = kcalloc(nr_chips + 1, sizeof(*pmu_ptr->mem_info), in imc_get_mem_addr_nest()
H A Dopal-sensor-groups.c171 sgs = kcalloc(of_get_child_count(sg), sizeof(*sgs), GFP_KERNEL); in opal_sensor_groups_init()
193 sgs[i].sgattrs = kcalloc(nr_attrs, sizeof(*sgs[i].sgattrs), in opal_sensor_groups_init()
198 sgs[i].sg.attrs = kcalloc(nr_attrs + 1, in opal_sensor_groups_init()
H A Dopal-powercap.c153 pcaps = kcalloc(of_get_child_count(powercap), sizeof(*pcaps), in opal_powercap_init()
185 pcaps[i].pattrs = kcalloc(j, sizeof(struct powercap_attr), in opal_powercap_init()
190 pcaps[i].pg.attrs = kcalloc(j + 1, sizeof(struct attribute *), in opal_powercap_init()
/kernel/linux/linux-6.6/arch/powerpc/platforms/powernv/
H A Dopal-sysparam.c188 id = kcalloc(count, sizeof(*id), GFP_KERNEL); in opal_sys_param_init()
195 size = kcalloc(count, sizeof(*size), GFP_KERNEL); in opal_sys_param_init()
202 perm = kcalloc(count, sizeof(*perm), GFP_KERNEL); in opal_sys_param_init()
225 attr = kcalloc(count, sizeof(*attr), GFP_KERNEL); in opal_sys_param_init()
H A Dopal-imc.c94 base_addr_arr = kcalloc(nr_chips, sizeof(*base_addr_arr), GFP_KERNEL); in imc_get_mem_addr_nest()
98 chipid_arr = kcalloc(nr_chips, sizeof(*chipid_arr), GFP_KERNEL); in imc_get_mem_addr_nest()
111 pmu_ptr->mem_info = kcalloc(nr_chips + 1, sizeof(*pmu_ptr->mem_info), in imc_get_mem_addr_nest()
H A Dopal-sensor-groups.c171 sgs = kcalloc(of_get_child_count(sg), sizeof(*sgs), GFP_KERNEL); in opal_sensor_groups_init()
193 sgs[i].sgattrs = kcalloc(nr_attrs, sizeof(*sgs[i].sgattrs), in opal_sensor_groups_init()
198 sgs[i].sg.attrs = kcalloc(nr_attrs + 1, in opal_sensor_groups_init()
H A Dopal-powercap.c153 pcaps = kcalloc(of_get_child_count(powercap), sizeof(*pcaps), in opal_powercap_init()
185 pcaps[i].pattrs = kcalloc(j, sizeof(struct powercap_attr), in opal_powercap_init()
190 pcaps[i].pg.attrs = kcalloc(j + 1, sizeof(struct attribute *), in opal_powercap_init()
/kernel/linux/linux-5.10/drivers/irqchip/
H A Dirq-mtk-sysirq.c148 chip_data->intpol_words = kcalloc(nr_intpol_bases, in mtk_sysirq_of_init()
156 chip_data->intpol_bases = kcalloc(nr_intpol_bases, in mtk_sysirq_of_init()
179 chip_data->intpol_idx = kcalloc(intpol_num, in mtk_sysirq_of_init()
187 chip_data->which_word = kcalloc(intpol_num, in mtk_sysirq_of_init()
/kernel/linux/linux-5.10/drivers/mtd/maps/
H A Dpmcmsp-flash.c78 msp_flash = kcalloc(fcnt, sizeof(*msp_flash), GFP_KERNEL); in init_msp_flash()
82 msp_parts = kcalloc(fcnt, sizeof(*msp_parts), GFP_KERNEL); in init_msp_flash()
86 msp_maps = kcalloc(fcnt, sizeof(*msp_maps), GFP_KERNEL); in init_msp_flash()
104 msp_parts[i] = kcalloc(pcnt, sizeof(struct mtd_partition), in init_msp_flash()
/kernel/linux/linux-6.6/drivers/irqchip/
H A Dirq-mtk-sysirq.c149 chip_data->intpol_words = kcalloc(nr_intpol_bases, in mtk_sysirq_of_init()
157 chip_data->intpol_bases = kcalloc(nr_intpol_bases, in mtk_sysirq_of_init()
180 chip_data->intpol_idx = kcalloc(intpol_num, in mtk_sysirq_of_init()
188 chip_data->which_word = kcalloc(intpol_num, in mtk_sysirq_of_init()
/kernel/linux/linux-5.10/net/smc/
H A Dsmc_wr.c592 link->wr_tx_bufs = kcalloc(SMC_WR_BUF_CNT, SMC_WR_BUF_SIZE, GFP_KERNEL); in smc_wr_alloc_link_mem()
595 link->wr_rx_bufs = kcalloc(SMC_WR_BUF_CNT * 3, SMC_WR_BUF_SIZE, in smc_wr_alloc_link_mem()
599 link->wr_tx_ibs = kcalloc(SMC_WR_BUF_CNT, sizeof(link->wr_tx_ibs[0]), in smc_wr_alloc_link_mem()
603 link->wr_rx_ibs = kcalloc(SMC_WR_BUF_CNT * 3, in smc_wr_alloc_link_mem()
608 link->wr_tx_rdmas = kcalloc(SMC_WR_BUF_CNT, in smc_wr_alloc_link_mem()
613 link->wr_tx_rdma_sges = kcalloc(SMC_WR_BUF_CNT, in smc_wr_alloc_link_mem()
618 link->wr_tx_sges = kcalloc(SMC_WR_BUF_CNT, sizeof(link->wr_tx_sges[0]), in smc_wr_alloc_link_mem()
622 link->wr_rx_sges = kcalloc(SMC_WR_BUF_CNT * 3, in smc_wr_alloc_link_mem()
627 link->wr_tx_mask = kcalloc(BITS_TO_LONGS(SMC_WR_BUF_CNT), in smc_wr_alloc_link_mem()
632 link->wr_tx_pends = kcalloc(SMC_WR_BUF_CN in smc_wr_alloc_link_mem()
[all...]
/kernel/linux/linux-5.10/drivers/xen/
H A Darm-device.c62 gpfns = kcalloc(nr, sizeof(xen_pfn_t), GFP_KERNEL); in xen_map_device_mmio()
63 idxs = kcalloc(nr, sizeof(xen_ulong_t), GFP_KERNEL); in xen_map_device_mmio()
64 errs = kcalloc(nr, sizeof(int), GFP_KERNEL); in xen_map_device_mmio()
H A Dxen-front-pgdir-shbuf.c217 unmap_ops = kcalloc(buf->num_pages, sizeof(*unmap_ops), in backend_unmap()
262 map_ops = kcalloc(buf->num_pages, sizeof(*map_ops), GFP_KERNEL); in backend_map()
266 buf->backend_map_handles = kcalloc(buf->num_pages, in backend_map()
479 buf->grefs = kcalloc(buf->num_grefs, sizeof(*buf->grefs), GFP_KERNEL); in alloc_storage()
483 buf->directory = kcalloc(get_num_pages_dir(buf), PAGE_SIZE, GFP_KERNEL); in alloc_storage()
/kernel/linux/linux-6.6/drivers/xen/
H A Darm-device.c62 gpfns = kcalloc(nr, sizeof(xen_pfn_t), GFP_KERNEL); in xen_map_device_mmio()
63 idxs = kcalloc(nr, sizeof(xen_ulong_t), GFP_KERNEL); in xen_map_device_mmio()
64 errs = kcalloc(nr, sizeof(int), GFP_KERNEL); in xen_map_device_mmio()
/kernel/linux/linux-6.6/drivers/iio/
H A Dindustrialio-gts-helper.c193 all_gains = kcalloc(gts->num_itime, gain_bytes, GFP_KERNEL); in gain_to_scaletables()
233 gts->avail_all_scales_table = kcalloc(new_idx, 2 * sizeof(int), in gain_to_scaletables()
280 per_time_gains = kcalloc(gts->num_itime, sizeof(*per_time_gains), GFP_KERNEL); in iio_gts_build_avail_scale_table()
284 per_time_scales = kcalloc(gts->num_itime, sizeof(*per_time_scales), GFP_KERNEL); in iio_gts_build_avail_scale_table()
289 per_time_scales[i] = kcalloc(gts->num_hwgain, 2 * sizeof(int), in iio_gts_build_avail_scale_table()
294 per_time_gains[i] = kcalloc(gts->num_hwgain, sizeof(int), in iio_gts_build_avail_scale_table()
357 times = kcalloc(gts->num_itime, sizeof(int), GFP_KERNEL); in iio_gts_build_avail_time_table()
381 int_micro_times = kcalloc(idx, sizeof(int) * 2, GFP_KERNEL); in iio_gts_build_avail_time_table()
/kernel/linux/linux-6.6/drivers/base/regmap/
H A Dregmap-ram.c68 data->read = kcalloc(sizeof(bool), config->max_register + 1, in __regmap_init_ram()
73 data->written = kcalloc(sizeof(bool), config->max_register + 1, in __regmap_init_ram()
/kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c199 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_link_settings_read()
271 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_link_settings_write()
405 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_mst_link_setting()
540 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_phy_settings_read()
623 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_phy_settings_write()
775 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_phy_test_pattern_debugfs_write()
1131 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_dsc_passthrough_set()
1346 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in trigger_hotplug()
1458 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_dsc_clock_en_read()
1545 wr_buf = kcalloc(wr_buf_siz in dp_dsc_clock_en_write()
[all...]
/kernel/linux/linux-6.6/drivers/platform/x86/x86-android-tablets/
H A Dcore.c312 i2c_clients = kcalloc(dev_info->i2c_client_count, sizeof(*i2c_clients), GFP_KERNEL); in x86_android_tablet_init()
328 pdevs = kcalloc(dev_info->pdev_count + 1, sizeof(*pdevs), GFP_KERNEL); in x86_android_tablet_init()
343 serdevs = kcalloc(dev_info->serdev_count, sizeof(*serdevs), GFP_KERNEL); in x86_android_tablet_init()
362 buttons = kcalloc(dev_info->gpio_button_count, sizeof(*buttons), GFP_KERNEL); in x86_android_tablet_init()
/kernel/linux/linux-6.6/drivers/gpu/drm/nouveau/nvkm/engine/gr/
H A Dgv100.c131 if (!(num_tpc_gpc = kcalloc(gr->gpc_nr, sizeof(*num_tpc_gpc), GFP_KERNEL))) in gv100_gr_scg_estimate_perf()
234 gpc_tpc_mask = kcalloc(gr->gpc_nr, sizeof(*gpc_tpc_mask), GFP_KERNEL); in gv100_gr_oneinit_sm_id()
235 gpc_table = kcalloc(gr->tpc_total, sizeof(*gpc_table), GFP_KERNEL); in gv100_gr_oneinit_sm_id()
236 tpc_table = kcalloc(gr->tpc_total, sizeof(*tpc_table), GFP_KERNEL); in gv100_gr_oneinit_sm_id()
/kernel/linux/linux-6.6/lib/
H A Dgroup_cpus.c50 masks = kcalloc(nr_node_ids, sizeof(cpumask_var_t), GFP_KERNEL); in alloc_node_to_cpumask()
280 node_groups = kcalloc(nr_node_ids, in __group_cpus_evenly()
365 masks = kcalloc(numgrps, sizeof(*masks), GFP_KERNEL); in group_cpus_evenly()
429 struct cpumask *masks = kcalloc(numgrps, sizeof(*masks), GFP_KERNEL); in group_cpus_evenly()
/kernel/linux/linux-5.10/drivers/iio/imu/
H A Dadis_buffer.c36 adis->xfer = kcalloc(2, sizeof(*adis->xfer), GFP_KERNEL); in adis_update_scan_mode_burst()
82 adis->xfer = kcalloc(scan_count + 1, sizeof(*adis->xfer), GFP_KERNEL); in adis_update_scan_mode()
86 adis->buffer = kcalloc(indio_dev->scan_bytes, 2, GFP_KERNEL); in adis_update_scan_mode()
/kernel/linux/linux-6.6/drivers/iio/imu/
H A Dadis_buffer.c36 adis->xfer = kcalloc(2, sizeof(*adis->xfer), GFP_KERNEL); in adis_update_scan_mode_burst()
86 adis->xfer = kcalloc(scan_count + 1, sizeof(*adis->xfer), GFP_KERNEL); in adis_update_scan_mode()
90 adis->buffer = kcalloc(indio_dev->scan_bytes, 2, GFP_KERNEL); in adis_update_scan_mode()
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_debugfs.c194 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_link_settings_read()
263 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_link_settings_write()
377 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_phy_settings_read()
423 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_phy_settings_write()
575 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_phy_test_pattern_debugfs_write()
1087 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_trigger_hotplug()
1184 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_dsc_clock_en_read()
1268 wr_buf = kcalloc(wr_buf_size, sizeof(char), GFP_KERNEL); in dp_dsc_clock_en_write()
1340 rd_buf = kcalloc(rd_buf_size, sizeof(char), GFP_KERNEL); in dp_dsc_slice_width_read()
1422 wr_buf = kcalloc(wr_buf_siz in dp_dsc_slice_width_write()
[all...]
/kernel/linux/linux-5.10/drivers/sh/intc/
H A Dcore.c206 d->window = kcalloc(d->nr_windows, sizeof(*d->window), in register_intc_controller()
233 d->reg = kcalloc(d->nr_reg, sizeof(*d->reg), GFP_NOWAIT); in register_intc_controller()
238 d->smp = kcalloc(d->nr_reg, sizeof(*d->smp), GFP_NOWAIT); in register_intc_controller()
256 d->prio = kcalloc(hw->nr_vectors, sizeof(*d->prio), in register_intc_controller()
272 d->sense = kcalloc(hw->nr_vectors, sizeof(*d->sense), in register_intc_controller()

Completed in 17 milliseconds

12345678910>>...128