Home
last modified time | relevance | path

Searched refs:devm_kcalloc (Results 1 – 77 of 77) sorted by relevance

/linux-4.4.14/drivers/pinctrl/qcom/
Dpinctrl-qdf2xxx.c53 pins = devm_kcalloc(&pdev->dev, num_gpios, in qdf2xxx_pinctrl_probe()
55 groups = devm_kcalloc(&pdev->dev, num_gpios, in qdf2xxx_pinctrl_probe()
Dpinctrl-spmi-gpio.c720 pindesc = devm_kcalloc(dev, npins, sizeof(*pindesc), GFP_KERNEL); in pmic_gpio_probe()
724 pads = devm_kcalloc(dev, npins, sizeof(*pads), GFP_KERNEL); in pmic_gpio_probe()
Dpinctrl-ssbi-gpio.c686 pins = devm_kcalloc(&pdev->dev, in pm8xxx_gpio_probe()
693 pin_data = devm_kcalloc(&pdev->dev, in pm8xxx_gpio_probe()
Dpinctrl-ssbi-mpp.c777 pins = devm_kcalloc(&pdev->dev, in pm8xxx_mpp_probe()
784 pin_data = devm_kcalloc(&pdev->dev, in pm8xxx_mpp_probe()
Dpinctrl-spmi-mpp.c821 pindesc = devm_kcalloc(dev, npins, sizeof(*pindesc), GFP_KERNEL); in pmic_mpp_probe()
825 pads = devm_kcalloc(dev, npins, sizeof(*pads), GFP_KERNEL); in pmic_mpp_probe()
/linux-4.4.14/tools/testing/nvdimm/test/
Dnfit.c1176 nfit_test->dimm = devm_kcalloc(dev, num, sizeof(void *), in nfit_test_probe()
1178 nfit_test->dimm_dma = devm_kcalloc(dev, num, sizeof(dma_addr_t), in nfit_test_probe()
1180 nfit_test->flush = devm_kcalloc(dev, num, sizeof(void *), in nfit_test_probe()
1182 nfit_test->flush_dma = devm_kcalloc(dev, num, sizeof(dma_addr_t), in nfit_test_probe()
1184 nfit_test->label = devm_kcalloc(dev, num, sizeof(void *), in nfit_test_probe()
1186 nfit_test->label_dma = devm_kcalloc(dev, num, in nfit_test_probe()
1188 nfit_test->dcr = devm_kcalloc(dev, num, in nfit_test_probe()
1190 nfit_test->dcr_dma = devm_kcalloc(dev, num, in nfit_test_probe()
1204 nfit_test->spa_set = devm_kcalloc(dev, num, sizeof(void *), in nfit_test_probe()
1206 nfit_test->spa_set_dma = devm_kcalloc(dev, num, in nfit_test_probe()
/linux-4.4.14/drivers/mfd/
Dintel_quark_i2c_gpio.c135 i2c_clk_lookup = devm_kcalloc(&pdev->dev, INTEL_QUARK_I2C_NCLK, in intel_quark_register_i2c_clk()
223 pdata->properties = devm_kcalloc(dev, pdata->nports, in intel_quark_gpio_setup()
Dlpc_sch.c130 res = devm_kcalloc(&pdev->dev, 2, sizeof(*res), GFP_KERNEL); in lpc_sch_populate_cell()
/linux-4.4.14/drivers/clk/
Dclk-s2mps11.c185 s2mps11_clks = devm_kcalloc(&pdev->dev, S2MPS11_CLKS_NUM, in s2mps11_clk_probe()
192 clk_table = devm_kcalloc(&pdev->dev, S2MPS11_CLKS_NUM, in s2mps11_clk_probe()
Dclk-scpi.c220 clk_data->clk = devm_kcalloc(dev, count, sizeof(*clk_data->clk), in scpi_clk_add()
225 clks = devm_kcalloc(dev, count, sizeof(*clks), GFP_KERNEL); in scpi_clk_add()
Dclk-rk808.c104 clk_table = devm_kcalloc(&client->dev, RK808_NR_OUTPUT, in rk808_clkout_probe()
/linux-4.4.14/drivers/hwtracing/intel_th/
Dgth.c376 attrs = devm_kcalloc(gth->dev, nattrs, sizeof(void *), GFP_KERNEL); in intel_th_master_attributes()
380 master_attrs = devm_kcalloc(gth->dev, nattrs, in intel_th_master_attributes()
420 attrs = devm_kcalloc(gth->dev, nattrs, sizeof(void *), GFP_KERNEL); in intel_th_output_attributes()
424 out_attrs = devm_kcalloc(gth->dev, nattrs, in intel_th_output_attributes()
/linux-4.4.14/drivers/hwmon/
Dscpi-hwmon.c137 scpi_sensors->data = devm_kcalloc(dev, nr_sensors, in scpi_hwmon_probe()
142 scpi_sensors->attrs = devm_kcalloc(dev, (nr_sensors * 2) + 1, in scpi_hwmon_probe()
Dfam15h_power.c130 fam15h_power_attrs = devm_kcalloc(&pdev->dev, n, in fam15h_power_init_attrs()
/linux-4.4.14/drivers/clk/sunxi/
Dclk-sun6i-apb0-gates.c77 clk_data->clks = devm_kcalloc(&pdev->dev, (ngates + 1), in sun6i_a31_apb0_gates_clk_probe()
Dclk-sun9i-mmc.c116 clk_data->clks = devm_kcalloc(&pdev->dev, count, sizeof(struct clk *), in sun9i_a80_mmc_config_clk_probe()
/linux-4.4.14/drivers/memory/tegra/
Dmc.c153 timing->emem_data = devm_kcalloc(mc->dev, mc->soc->num_emem_regs, in load_one_timing()
178 mc->timings = devm_kcalloc(mc->dev, child_count, sizeof(*timing), in load_timings()
Dtegra124-emc.c962 emc->timings = devm_kcalloc(emc->dev, child_count, sizeof(*timing), in tegra_emc_load_timings_from_dt()
/linux-4.4.14/drivers/pinctrl/mediatek/
Dpinctrl-mtk-common.c1244 pctl->groups = devm_kcalloc(&pdev->dev, pctl->ngroups, in mtk_pctrl_build_state()
1250 pctl->grp_names = devm_kcalloc(&pdev->dev, pctl->ngroups, in mtk_pctrl_build_state()
1318 pins = devm_kcalloc(&pdev->dev, pctl->devdata->npins, sizeof(*pins), in mtk_pctrl_init()
1385 pctl->wake_mask = devm_kcalloc(&pdev->dev, ports_buf, in mtk_pctrl_init()
1392 pctl->cur_mask = devm_kcalloc(&pdev->dev, ports_buf, in mtk_pctrl_init()
1399 pctl->eint_dual_edges = devm_kcalloc(&pdev->dev, pctl->devdata->ap_num, in mtk_pctrl_init()
/linux-4.4.14/drivers/iio/magnetometer/
Dhid-sensor-magn-3d.c345 _channels = devm_kcalloc(&pdev->dev, attr_count, in magn_3d_parse_report()
354 st->iio_vals = devm_kcalloc(&pdev->dev, attr_count, in magn_3d_parse_report()
/linux-4.4.14/drivers/dma/
Dlpc18xx-dmamux.c151 dmamux->muxes = devm_kcalloc(&pdev->dev, dmamux->dma_master_requests, in lpc18xx_dmamux_probe()
Dedma.c1904 queue_priority_map = devm_kcalloc(dev, ecc->num_tc + 1, sizeof(s8), in edma_setup_from_hw()
1935 xbar_chans = devm_kcalloc(dev, nelm + 2, sizeof(s16), GFP_KERNEL); in edma_xbar_event_map()
2000 memcpy_ch = devm_kcalloc(dev, nelm + 1, sizeof(s32), in edma_setup_info_from_dt()
2037 rsv_slots = devm_kcalloc(dev, nelm + 1, sizeof(*rsv_slots), in edma_setup_info_from_dt()
2196 ecc->slave_chans = devm_kcalloc(dev, ecc->num_channels, in edma_probe()
2201 ecc->slot_inuse = devm_kcalloc(dev, BITS_TO_LONGS(ecc->num_slots), in edma_probe()
2273 ecc->tc_list = devm_kcalloc(dev, ecc->num_tc, in edma_probe()
Dsun6i-dma.c989 sdc->pchans = devm_kcalloc(&pdev->dev, sdc->cfg->nr_max_channels, in sun6i_dma_probe()
994 sdc->vchans = devm_kcalloc(&pdev->dev, sdc->cfg->nr_max_vchans, in sun6i_dma_probe()
Dsun4i-dma.c1181 priv->pchans = devm_kcalloc(&pdev->dev, SUN4I_DMA_NR_MAX_CHANNELS, in sun4i_dma_probe()
1183 priv->vchans = devm_kcalloc(&pdev->dev, SUN4I_DMA_NR_MAX_VCHANS, in sun4i_dma_probe()
Didma64.c550 idma64->chan = devm_kcalloc(chip->dev, nr_chan, sizeof(*idma64->chan), in idma64_probe()
Dqcom_bam_dma.c1141 bdev->channels = devm_kcalloc(bdev->dev, bdev->num_channels, in bam_dma_probe()
Dmmp_pdma.c1036 pdev->phy = devm_kcalloc(pdev->dev, dma_channels, sizeof(*pdev->phy), in mmp_pdma_probe()
Dpxa_dma.c1291 pdev->phys = devm_kcalloc(&op->dev, nb_phy_chans, in pxad_init_phys()
/linux-4.4.14/drivers/pinctrl/intel/
Dpinctrl-intel.c928 pads = devm_kcalloc(pctrl->dev, soc->npins, sizeof(*pads), GFP_KERNEL); in intel_pinctrl_pm_init()
932 communities = devm_kcalloc(pctrl->dev, pctrl->ncommunities, in intel_pinctrl_pm_init()
942 intmask = devm_kcalloc(pctrl->dev, community->ngpps, in intel_pinctrl_pm_init()
979 pctrl->communities = devm_kcalloc(&pdev->dev, pctrl->ncommunities, in intel_pinctrl_probe()
Dpinctrl-baytrail.c604 vg->saved_context = devm_kcalloc(&pdev->dev, gc->ngpio, in byt_gpio_probe()
Dpinctrl-cherryview.c1508 pctrl->saved_pin_context = devm_kcalloc(pctrl->dev, in chv_pinctrl_probe()
/linux-4.4.14/drivers/clk/qcom/
Dgdsc.c214 data->domains = devm_kcalloc(dev, num, sizeof(*data->domains), in gdsc_register()
/linux-4.4.14/drivers/pci/host/
Dpci-host-generic.c186 pci->cfg.win = devm_kcalloc(dev, resource_size(pci->cfg.bus_range), in gen_pci_parse_map_cfg_windows()
Dpci-tegra.c1461 pcie->supplies = devm_kcalloc(pcie->dev, pcie->num_supplies, in tegra_pcie_get_legacy_regulators()
1494 pcie->supplies = devm_kcalloc(pcie->dev, pcie->num_supplies, in tegra_pcie_get_regulators()
1521 pcie->supplies = devm_kcalloc(pcie->dev, pcie->num_supplies, in tegra_pcie_get_regulators()
1544 pcie->supplies = devm_kcalloc(pcie->dev, pcie->num_supplies, in tegra_pcie_get_regulators()
Dpci-mvebu.c1233 pcie->ports = devm_kcalloc(&pdev->dev, num, sizeof(*pcie->ports), in mvebu_pcie_probe()
/linux-4.4.14/drivers/thunderbolt/
Dnhi.c572 nhi->tx_rings = devm_kcalloc(&pdev->dev, nhi->hop_count, in nhi_probe()
574 nhi->rx_rings = devm_kcalloc(&pdev->dev, nhi->hop_count, in nhi_probe()
/linux-4.4.14/drivers/phy/
Dphy-berlin-sata.c221 priv->phys = devm_kcalloc(dev, priv->nphys, sizeof(*priv->phys), in phy_berlin_sata_probe()
Dphy-rcar-gen2.c272 drv->channels = devm_kcalloc(dev, drv->num_channels, in rcar_gen2_phy_probe()
Dphy-miphy365x.c547 miphy_dev->phys = devm_kcalloc(&pdev->dev, miphy_dev->nphys, in miphy365x_probe()
Dphy-mt65xx-usb3.c425 u3phy->phys = devm_kcalloc(dev, u3phy->nphys, in mt65xx_u3phy_probe()
Dphy-miphy28lp.c1207 miphy_dev->phys = devm_kcalloc(&pdev->dev, miphy_dev->nphys, in miphy28lp_probe()
/linux-4.4.14/drivers/soc/qcom/
Dspm.c251 fns = devm_kcalloc(get_cpu_device(cpu), state_count, sizeof(*fns), in qcom_cpuidle_init()
/linux-4.4.14/drivers/pinctrl/bcm/
Dpinctrl-cygnus-mux.c916 pinctrl->mux_log = devm_kcalloc(pinctrl->dev, CYGNUS_NUM_IOMUX, in cygnus_mux_log_init()
973 pins = devm_kcalloc(&pdev->dev, num_pins, sizeof(*pins), GFP_KERNEL); in cygnus_pinmux_probe()
Dpinctrl-cygnus-gpio.c612 pins = devm_kcalloc(chip->dev, gc->ngpio, sizeof(*pins), GFP_KERNEL); in cygnus_gpio_register_pinconf()
/linux-4.4.14/drivers/gpio/
Dgpio-dwapb.c476 pdata->properties = devm_kcalloc(dev, nports, sizeof(*pp), GFP_KERNEL); in dwapb_gpio_get_pdata_of()
547 gpio->ports = devm_kcalloc(&pdev->dev, gpio->nr_ports, in dwapb_gpio_probe()
/linux-4.4.14/drivers/char/xillybus/
Dxillybus_core.c332 this_buffer = devm_kcalloc(dev, bufnum, in xilly_get_dma_buffers()
434 channel = devm_kcalloc(dev, ep->num_channels, in xilly_setupchannels()
439 ep->channels = devm_kcalloc(dev, ep->num_channels + 1, in xilly_setupchannels()
515 buffers = devm_kcalloc(dev, bufnum, in xilly_setupchannels()
/linux-4.4.14/drivers/bus/
Darm-cci.c1228 attrs = devm_kcalloc(&pdev->dev, n + 1, sizeof(struct attribute *), in alloc_attrs()
1477 cci_pmu->irqs = devm_kcalloc(&pdev->dev, CCI_PMU_MAX_HW_CNTRS(model), in cci_pmu_alloc()
1481 cci_pmu->hw_events.events = devm_kcalloc(&pdev->dev, in cci_pmu_alloc()
1487 cci_pmu->hw_events.used_mask = devm_kcalloc(&pdev->dev, in cci_pmu_alloc()
/linux-4.4.14/drivers/iio/adc/
Dcc10001_adc.c279 chan_array = devm_kcalloc(&indio_dev->dev, indio_dev->num_channels, in cc10001_adc_channel_init()
Dqcom-spmi-vadc.c828 vadc->iio_chans = devm_kcalloc(vadc->dev, vadc->nchannels, in vadc_get_dt_data()
833 vadc->chan_props = devm_kcalloc(vadc->dev, vadc->nchannels, in vadc_get_dt_data()
/linux-4.4.14/drivers/usb/host/
Dohci-platform.c172 priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, in ohci_platform_probe()
Dehci-platform.c209 priv->phys = devm_kcalloc(&dev->dev, priv->num_phys, in ehci_platform_probe()
/linux-4.4.14/drivers/net/ethernet/hisilicon/
Dhns_mdio.c466 new_bus->irq = devm_kcalloc(&pdev->dev, PHY_MAX_ADDR, in hns_mdio_probe()
/linux-4.4.14/arch/powerpc/platforms/512x/
Dmpc512x_lpbfifo.c408 lpbfifo.cs_ranges = devm_kcalloc(dev, lpbfifo.cs_n, in get_cs_ranges()
/linux-4.4.14/drivers/input/keyboard/
Dcap11xx.c276 led = devm_kcalloc(dev, cnt, sizeof(struct cap11xx_led), GFP_KERNEL); in cap11xx_init_leds()
/linux-4.4.14/drivers/net/ethernet/apm/xgene/
Dxgene_enet_main.c978 buf_pool->rx_skb = devm_kcalloc(dev, buf_pool->slots, in xgene_enet_create_desc_rings()
1025 cp_ring->cp_skb = devm_kcalloc(dev, tx_ring->slots, in xgene_enet_create_desc_rings()
1033 cp_ring->frag_dma_addr = devm_kcalloc(dev, tx_ring->slots, in xgene_enet_create_desc_rings()
/linux-4.4.14/drivers/dma/hsu/
Dhsu.c391 hsu->chan = devm_kcalloc(chip->dev, hsu->nr_channels, in hsu_dma_probe()
/linux-4.4.14/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c899 pctl->irq_array = devm_kcalloc(&pdev->dev, in sunxi_pinctrl_init()
990 pctl->irq = devm_kcalloc(&pdev->dev, in sunxi_pinctrl_init()
/linux-4.4.14/drivers/net/wireless/mediatek/mt7601u/
Ddma.c485 dev->tx_q = devm_kcalloc(dev->dev, __MT_EP_OUT_MAX, in mt7601u_alloc_tx()
/linux-4.4.14/Documentation/driver-model/
Ddevres.txt306 devm_kcalloc()
/linux-4.4.14/drivers/crypto/caam/
Dctrl.c585 ctrlpriv->jrpdev = devm_kcalloc(&pdev->dev, rspec, in caam_probe()
/linux-4.4.14/drivers/staging/fsl-mc/bus/
Dmc-bus.c641 *ranges = devm_kcalloc(dev, *num_ranges, in get_mc_addr_translation_ranges()
/linux-4.4.14/drivers/net/ethernet/marvell/
Dmvpp2.c2509 priv->prs_double_vlans = devm_kcalloc(&pdev->dev, sizeof(bool), in mvpp2_prs_vlan_init()
2931 priv->prs_shadow = devm_kcalloc(&pdev->dev, MVPP2_PRS_TCAM_SRAM_SIZE, in mvpp2_prs_default_init()
3502 priv->bm_pools = devm_kcalloc(&pdev->dev, MVPP2_BM_POOLS_NUM, in mvpp2_bm_init()
6016 port->txqs = devm_kcalloc(dev, txq_number, sizeof(*port->txqs), in mvpp2_port_init()
6049 port->rxqs = devm_kcalloc(dev, rxq_number, sizeof(*port->rxqs), in mvpp2_port_init()
6360 priv->aggr_txqs = devm_kcalloc(&pdev->dev, num_present_cpus(), in mvpp2_init()
6460 priv->port_list = devm_kcalloc(&pdev->dev, port_count, in mvpp2_probe()
Dmvneta.c3138 pp->txqs = devm_kcalloc(dev, txq_number, sizeof(struct mvneta_tx_queue), in mvneta_init()
3151 pp->rxqs = devm_kcalloc(dev, rxq_number, sizeof(struct mvneta_rx_queue), in mvneta_init()
/linux-4.4.14/drivers/firmware/
Darm_scpi.c673 scpi_chan = devm_kcalloc(dev, count, sizeof(*scpi_chan), GFP_KERNEL); in scpi_probe()
/linux-4.4.14/drivers/dma/sh/
Dusb-dmac.c789 dmac->channels = devm_kcalloc(&pdev->dev, dmac->n_channels, in usb_dmac_probe()
Drcar-dmac.c1634 dmac->channels = devm_kcalloc(&pdev->dev, dmac->n_channels, in rcar_dmac_probe()
/linux-4.4.14/drivers/media/i2c/
Dmt9v032.c909 link_freqs = devm_kcalloc(&client->dev, size, in mt9v032_get_pdata()
/linux-4.4.14/drivers/net/ethernet/samsung/sxgbe/
Dsxgbe_main.c411 tx_ring->tx_skbuff_dma = devm_kcalloc(dev, tx_rsize, in init_tx_ring()
416 tx_ring->tx_skbuff = devm_kcalloc(dev, tx_rsize, in init_tx_ring()
/linux-4.4.14/arch/arm/plat-omap/
Ddma.c1318 dma_chan = devm_kcalloc(&pdev->dev, dma_lch_count, in omap_system_dma_probe()
/linux-4.4.14/drivers/pinctrl/samsung/
Dpinctrl-samsung.c977 d->pin_banks = devm_kcalloc(&pdev->dev, d->nr_banks, in samsung_pinctrl_get_soc_data()
/linux-4.4.14/include/linux/
Ddevice.h664 static inline void *devm_kcalloc(struct device *dev, in devm_kcalloc() function
/linux-4.4.14/drivers/spi/
Dspi-omap2-mcspi.c1427 mcspi->dma_channels = devm_kcalloc(&pdev->dev, master->num_chipselect, in omap2_mcspi_probe()
/linux-4.4.14/drivers/media/platform/omap3isp/
Disp.c2241 notifier->subdevs = devm_kcalloc( in isp_of_parse_nodes()
/linux-4.4.14/drivers/dma/dw/
Dcore.c1552 dw->chan = devm_kcalloc(chip->dev, pdata->nr_channels, sizeof(*dw->chan), in dw_dma_probe()
/linux-4.4.14/drivers/media/i2c/smiapp/
Dsmiapp-core.c3032 pdata->op_sys_clock = devm_kcalloc( in smiapp_get_pdata()
/linux-4.4.14/sound/soc/
Dsoc-core.c3241 widgets = devm_kcalloc(card->dev, num_widgets, sizeof(*widgets), in snd_soc_of_parse_audio_simple_widgets()
Dsoc-dapm.c3625 w_param_text = devm_kcalloc(card->dev, num_params, in snd_soc_dapm_new_pcm()