Home
last modified time | relevance | path

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

12345678910>>...34

/linux/drivers/soundwire/
H A Dmipi_disco.c66 prop->clk_freq = devm_kcalloc(bus->dev, prop->num_clk_freq, in sdw_master_read_prop()
92 prop->clk_gears = devm_kcalloc(bus->dev, prop->num_clk_gears, in sdw_master_read_prop()
139 dp0->words = devm_kcalloc(&slave->dev, in sdw_slave_read_dp0()
196 dpn[i].words = devm_kcalloc(&slave->dev, in sdw_slave_read_dpn()
235 dpn[i].channels = devm_kcalloc(&slave->dev, in sdw_slave_read_dpn()
250 dpn[i].ch_combinations = devm_kcalloc(&slave->dev, in sdw_slave_read_dpn()
364 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_slave_read_prop()
375 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_slave_read_prop()
/linux/drivers/pinctrl/mediatek/
H A Dpinctrl-mtmips.c206 p->group_names = devm_kcalloc(p->dev, p->group_count, in mtmips_pinctrl_index()
220 p->func = devm_kcalloc(p->dev, p->func_count, in mtmips_pinctrl_index()
222 gpio_func.groups = devm_kcalloc(p->dev, p->group_count, sizeof(int), in mtmips_pinctrl_index()
265 p->func[i]->pins = devm_kcalloc(p->dev, in mtmips_pinctrl_pins()
280 p->gpio = devm_kcalloc(p->dev, p->max_pins, sizeof(u8), GFP_KERNEL); in mtmips_pinctrl_pins()
282 p->pads = devm_kcalloc(p->dev, p->max_pins, in mtmips_pinctrl_pins()
/linux/drivers/pinctrl/qcom/
H A Dpinctrl-qdf2xxx.c78 pins = devm_kcalloc(&pdev->dev, num_gpios, in qdf2xxx_pinctrl_probe()
80 groups = devm_kcalloc(&pdev->dev, num_gpios, in qdf2xxx_pinctrl_probe()
82 names = devm_kcalloc(&pdev->dev, avail_gpios, NAME_SIZE, GFP_KERNEL); in qdf2xxx_pinctrl_probe()
/linux/drivers/gpio/
H A Dgpio-max3191x.c375 max3191x->crc_error = devm_kcalloc(dev, n, sizeof(long), GFP_KERNEL); in max3191x_probe()
376 max3191x->undervolt1 = devm_kcalloc(dev, n, sizeof(long), GFP_KERNEL); in max3191x_probe()
377 max3191x->undervolt2 = devm_kcalloc(dev, n, sizeof(long), GFP_KERNEL); in max3191x_probe()
378 max3191x->overtemp = devm_kcalloc(dev, n, sizeof(long), GFP_KERNEL); in max3191x_probe()
379 max3191x->fault = devm_kcalloc(dev, n, sizeof(long), GFP_KERNEL); in max3191x_probe()
380 max3191x->xfer.rx_buf = devm_kcalloc(dev, max3191x->nchips, in max3191x_probe()
/linux/drivers/hwmon/
H A Dscmi-hwmon.c163 u32 *cfg = devm_kcalloc(dev, num + 1, sizeof(*cfg), GFP_KERNEL); in scmi_hwmon_add_chan_info()
283 scmi_hwmon_chan = devm_kcalloc(dev, nr_types, sizeof(*scmi_hwmon_chan), in scmi_hwmon_probe()
288 ptr_scmi_ci = devm_kcalloc(dev, nr_types + 1, sizeof(*ptr_scmi_ci), in scmi_hwmon_probe()
305 devm_kcalloc(dev, nr_count[type], in scmi_hwmon_probe()
H A Dasus_wmi_sensors.c255 cfg = devm_kcalloc(dev, num + 1, sizeof(*cfg), GFP_KERNEL); in asus_wmi_hwmon_add_chan_info()
541 asus_wmi_hwmon_chan = devm_kcalloc(dev, nr_types, in asus_wmi_configure_sensor_setup()
547 ptr_asus_wmi_ci = devm_kcalloc(dev, nr_types + 1, in asus_wmi_configure_sensor_setup()
555 sensor_data->wmi.info_by_id = devm_kcalloc(dev, sensor_data->wmi.sensor_count, in asus_wmi_configure_sensor_setup()
574 sensor_data->wmi.info[type] = devm_kcalloc(dev, in asus_wmi_configure_sensor_setup()
/linux/drivers/leds/
H A Dleds-netxbig.c363 addr = devm_kcalloc(dev, num_addr, sizeof(*addr), GFP_KERNEL); in netxbig_gpio_ext_get()
392 data = devm_kcalloc(dev, num_data, sizeof(*data), GFP_KERNEL); in netxbig_gpio_ext_get()
469 timers = devm_kcalloc(dev, num_timers, sizeof(*timers), in netxbig_leds_get_of_pdata()
503 leds = devm_kcalloc(dev, num_leds, sizeof(*leds), GFP_KERNEL); in netxbig_leds_get_of_pdata()
531 devm_kcalloc(dev, in netxbig_leds_get_of_pdata()
613 leds_data = devm_kcalloc(&pdev->dev, in netxbig_led_probe()
/linux/drivers/pinctrl/pxa/
H A Dpinctrl-pxa2xx.c275 functions = devm_kcalloc(pctl->dev, pctl->npins * 6, in pxa2xx_build_functions()
338 pins = devm_kcalloc(pctl->dev, npins, sizeof(*pins), GFP_KERNEL); in pxa2xx_build_state()
383 pctl->base_gafr = devm_kcalloc(&pdev->dev, roundup(maxpin, 16), in pxa2xx_pinctrl_init()
385 pctl->base_gpdr = devm_kcalloc(&pdev->dev, roundup(maxpin, 32), in pxa2xx_pinctrl_init()
387 pctl->base_pgsr = devm_kcalloc(&pdev->dev, roundup(maxpin, 32), in pxa2xx_pinctrl_init()
/linux/drivers/pmdomain/arm/
H A Dscpi_pm_domain.c96 scpi_pd = devm_kcalloc(dev, num_domains, sizeof(*scpi_pd), GFP_KERNEL); in scpi_pm_domain_probe()
104 domains = devm_kcalloc(dev, num_domains, sizeof(*domains), GFP_KERNEL); in scpi_pm_domain_probe()
H A Dscmi_pm_domain.c79 scmi_pd = devm_kcalloc(dev, num_domains, sizeof(*scmi_pd), GFP_KERNEL); in scmi_pm_domain_probe()
87 domains = devm_kcalloc(dev, num_domains, sizeof(*domains), GFP_KERNEL); in scmi_pm_domain_probe()
H A Dscmi_perf_domain.c108 scmi_pd = devm_kcalloc(dev, num_domains, sizeof(*scmi_pd), GFP_KERNEL); in scmi_perf_domain_probe()
116 domains = devm_kcalloc(dev, num_domains, sizeof(*domains), GFP_KERNEL); in scmi_perf_domain_probe()
/linux/sound/soc/sof/
H A Dnocodec.c35 dlc = devm_kcalloc(dev, 2, sizeof(*dlc), GFP_KERNEL); in sof_nocodec_bes_setup()
79 links = devm_kcalloc(dev, num_dai_drivers, sizeof(struct snd_soc_dai_link), GFP_KERNEL); in sof_nocodec_setup()
/linux/drivers/pinctrl/
H A Dpinctrl-equilibrium.c196 girq->parents = devm_kcalloc(dev, 1, sizeof(*girq->parents), GFP_KERNEL); in gpiochip_setup()
656 funcs = devm_kcalloc(dev, nr_funcs, sizeof(*funcs), GFP_KERNEL); in eqbr_build_functions()
671 funcs[i].groups = devm_kcalloc(dev, funcs[i].nr_groups, in eqbr_build_functions()
726 pins = devm_kcalloc(dev, grp->npins, sizeof(*pins), GFP_KERNEL); in eqbr_build_groups()
733 pinmux = devm_kcalloc(dev, grp->npins, sizeof(*pinmux), GFP_KERNEL); in eqbr_build_groups()
798 pdesc = devm_kcalloc(dev, nr_pins, sizeof(*pdesc), GFP_KERNEL); in pinctrl_reg()
801 pin_names = devm_kcalloc(dev, nr_pins, PIN_NAME_LEN, GFP_KERNEL); in pinctrl_reg()
885 banks = devm_kcalloc(dev, nr_gpio, sizeof(*banks), GFP_KERNEL); in pinbank_probe()
889 gctrls = devm_kcalloc(dev, nr_gpio, sizeof(*gctrls), GFP_KERNEL); in pinbank_probe()
/linux/sound/soc/fsl/
H A Dimx-audmix.c187 priv->dai = devm_kcalloc(&pdev->dev, priv->num_dai, in imx_audmix_probe()
193 priv->dai_conf = devm_kcalloc(&pdev->dev, priv->num_dai_conf, in imx_audmix_probe()
200 priv->dapm_routes = devm_kcalloc(&pdev->dev, priv->num_dapm_routes, in imx_audmix_probe()
210 dlc = devm_kcalloc(&pdev->dev, 2, sizeof(*dlc), GFP_KERNEL); in imx_audmix_probe()
/linux/drivers/gpu/drm/vboxvideo/
H A Dvbox_main.c37 vbox->vbva_info = devm_kcalloc(vbox->ddev.dev, vbox->num_crtcs, in vbox_accel_init()
156 vbox->last_mode_hints = devm_kcalloc(vbox->ddev.dev, vbox->num_crtcs, in vbox_hw_init()
/linux/drivers/pinctrl/freescale/
H A Dpinctrl-mxs.c376 g->pins = devm_kcalloc(&pdev->dev, g->npins, sizeof(*g->pins), in mxs_pinctrl_parse_group()
381 g->muxsel = devm_kcalloc(&pdev->dev, g->npins, sizeof(*g->muxsel), in mxs_pinctrl_parse_group()
437 soc->functions = devm_kcalloc(&pdev->dev, in mxs_pinctrl_probe_dt()
444 soc->groups = devm_kcalloc(&pdev->dev, in mxs_pinctrl_probe_dt()
508 f->groups = devm_kcalloc(&pdev->dev, in mxs_pinctrl_probe_dt()
H A Dpinctrl-imx1-core.c488 grp->pins = devm_kcalloc(info->dev, in imx1_pinctrl_parse_groups()
490 grp->pin_ids = devm_kcalloc(info->dev, in imx1_pinctrl_parse_groups()
528 func->groups = devm_kcalloc(info->dev, in imx1_pinctrl_parse_functions()
571 info->functions = devm_kcalloc(&pdev->dev, in imx1_pinctrl_parse_dt()
575 info->groups = devm_kcalloc(&pdev->dev, in imx1_pinctrl_parse_dt()
/linux/drivers/pmdomain/sunxi/
H A Dsun20i-ppu.c117 pds = devm_kcalloc(dev, desc->num_domains, sizeof(*pds), GFP_KERNEL); in sun20i_ppu_probe()
125 ppu->domains = devm_kcalloc(dev, desc->num_domains, in sun20i_ppu_probe()
/linux/drivers/pinctrl/nxp/
H A Dpinctrl-s32cc.c765 pins = devm_kcalloc(info->dev, npins, sizeof(*pins), GFP_KERNEL); in s32_pinctrl_parse_groups()
766 sss = devm_kcalloc(info->dev, npins, sizeof(*sss), GFP_KERNEL); in s32_pinctrl_parse_groups()
808 groups = devm_kcalloc(info->dev, func->ngroups, in s32_pinctrl_parse_functions()
851 ipctl->regions = devm_kcalloc(&pdev->dev, mem_regions, in s32_pinctrl_probe_dt()
886 info->functions = devm_kcalloc(&pdev->dev, nfuncs, in s32_pinctrl_probe_dt()
895 info->groups = devm_kcalloc(&pdev->dev, info->ngroups, in s32_pinctrl_probe_dt()
975 devm_kcalloc(&pdev->dev, info->soc_data->npins, in s32_pinctrl_probe()
/linux/drivers/gpu/drm/msm/hdmi/
H A Dhdmi_phy.c17 phy->regs = devm_kcalloc(dev, cfg->num_regs, sizeof(phy->regs[0]), in msm_hdmi_phy_resource_init()
22 phy->clks = devm_kcalloc(dev, cfg->num_clks, sizeof(phy->clks[0]), in msm_hdmi_phy_resource_init()
H A Dhdmi.c441 hdmi->hpd_regs = devm_kcalloc(&pdev->dev, in msm_hdmi_dev_probe()
455 hdmi->pwr_regs = devm_kcalloc(&pdev->dev, in msm_hdmi_dev_probe()
469 hdmi->hpd_clks = devm_kcalloc(&pdev->dev, in msm_hdmi_dev_probe()
488 hdmi->pwr_clks = devm_kcalloc(&pdev->dev, in msm_hdmi_dev_probe()
/linux/drivers/pinctrl/intel/
H A Dpinctrl-intel-platform.c129 gpps = devm_kcalloc(dev, ngpps, sizeof(*gpps), GFP_KERNEL); in intel_platform_pinctrl_prepare_community()
163 communities = devm_kcalloc(dev, ncommunities, sizeof(*communities), GFP_KERNEL); in intel_platform_pinctrl_prepare_soc_data()
/linux/sound/soc/codecs/
H A Dsdw-mockup.c155 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop()
173 prop->sink_dpn_prop = devm_kcalloc(&slave->dev, nval, in sdw_mockup_read_prop()
/linux/sound/soc/generic/
H A Dsimple-card-utils.c132 dai->tdm_width_map = devm_kcalloc(dev, n, sizeof(*dai->tdm_width_map), GFP_KERNEL); in simple_util_parse_tdm_width_map()
815 priv->aux_jacks = devm_kcalloc(card->dev, num, in simple_util_init_aux_jacks()
856 dai_props = devm_kcalloc(dev, li->link, sizeof(*dai_props), GFP_KERNEL); in simple_util_init_priv()
857 dai_link = devm_kcalloc(dev, li->link, sizeof(*dai_link), GFP_KERNEL); in simple_util_init_priv()
875 dais = devm_kcalloc(dev, dai_num, sizeof(*dais), GFP_KERNEL); in simple_util_init_priv()
876 dlcs = devm_kcalloc(dev, dlc_num, sizeof(*dlcs), GFP_KERNEL); in simple_util_init_priv()
881 cconf = devm_kcalloc(dev, cnf_num, sizeof(*cconf), GFP_KERNEL); in simple_util_init_priv()
/linux/sound/soc/meson/
H A Daxg-card.c164 be->tx_mask = devm_kcalloc(card->dev, AXG_TDM_NUM_LANES, in axg_card_parse_cpu_tdm_slots()
166 be->rx_mask = devm_kcalloc(card->dev, AXG_TDM_NUM_LANES, in axg_card_parse_cpu_tdm_slots()
226 codec_mask = devm_kcalloc(card->dev, link->num_codecs, in axg_card_parse_codecs_masks()

12345678910>>...34