/drivers/pinctrl/qcom/ |
D | pinctrl-qdf2xxx.c | 35 struct msm_pingroup *groups; in qdf2xxx_pinctrl_probe() local 80 groups = devm_kcalloc(&pdev->dev, num_gpios, in qdf2xxx_pinctrl_probe() 84 if (!pinctrl || !pins || !groups || !names) in qdf2xxx_pinctrl_probe() 93 groups[i].grp.pins = &pins[i].number; in qdf2xxx_pinctrl_probe() 100 groups[gpio].grp.npins = 1; in qdf2xxx_pinctrl_probe() 103 groups[gpio].grp.name = names[i]; in qdf2xxx_pinctrl_probe() 105 groups[gpio].ctl_reg = 0x10000 * gpio; in qdf2xxx_pinctrl_probe() 106 groups[gpio].io_reg = 0x04 + 0x10000 * gpio; in qdf2xxx_pinctrl_probe() 107 groups[gpio].intr_cfg_reg = 0x08 + 0x10000 * gpio; in qdf2xxx_pinctrl_probe() 108 groups[gpio].intr_status_reg = 0x0c + 0x10000 * gpio; in qdf2xxx_pinctrl_probe() [all …]
|
/drivers/pinctrl/mediatek/ |
D | pinctrl-mtmips.c | 38 struct mtmips_pmx_group *groups; member 71 *pins = p->groups[group].func[0].pins; in mtmips_get_group_pins() 72 *num_pins = p->groups[group].func[0].pin_count; in mtmips_get_group_pins() 102 const char * const **groups, in mtmips_pmx_group_get_groups() argument 108 *groups = &p->group_names[p->func[func]->groups[0]]; in mtmips_pmx_group_get_groups() 110 *groups = p->group_names; in mtmips_pmx_group_get_groups() 127 if (p->groups[group].enabled) { in mtmips_pmx_group_enable() 129 p->groups[group].name); in mtmips_pmx_group_enable() 133 p->groups[group].enabled = 1; in mtmips_pmx_group_enable() 136 shift = p->groups[group].shift; in mtmips_pmx_group_enable() [all …]
|
/drivers/rtc/ |
D | sysfs.c | 319 const struct attribute_group **groups, **old; in rtc_add_groups() local 324 groups = rtc->dev.groups; in rtc_add_groups() 325 if (groups) in rtc_add_groups() 326 for (; *groups; groups++) in rtc_add_groups() 329 for (groups = grps; *groups; groups++) in rtc_add_groups() 333 groups = devm_kcalloc(&rtc->dev, new_cnt, sizeof(*groups), GFP_KERNEL); in rtc_add_groups() 334 if (!groups) in rtc_add_groups() 336 memcpy(groups, rtc->dev.groups, old_cnt * sizeof(*groups)); in rtc_add_groups() 337 memcpy(groups + old_cnt, grps, add_cnt * sizeof(*groups)); in rtc_add_groups() 338 groups[old_cnt + add_cnt] = NULL; in rtc_add_groups() [all …]
|
/drivers/pinctrl/mvebu/ |
D | pinctrl-mvebu.c | 32 const char **groups; member 51 struct mvebu_pinctrl_group *groups; member 87 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid() 88 pid < pctl->groups[n].pins[0] + in mvebu_pinctrl_find_group_by_pid() 89 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid() 90 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_pid() 101 if (strcmp(name, pctl->groups[n].name) == 0) in mvebu_pinctrl_find_group_by_name() 102 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_name() 176 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_get() 189 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_set() [all …]
|
D | pinctrl-armada-37xx.c | 75 struct armada_37xx_pin_group *groups; member 81 const char **groups; member 106 struct armada_37xx_pin_group *groups; member 216 .groups = armada_37xx_nb_groups, 223 .groups = armada_37xx_sb_groups, 241 struct armada_37xx_pin_group *group = &info->groups[*grp]; in armada_37xx_find_next_grp_by_pin() 283 return info->groups[group].name; in armada_37xx_get_group_name() 296 *pins = info->groups[selector].pins; in armada_37xx_get_group_pins() 297 *npins = info->groups[selector].npins + in armada_37xx_get_group_pins() 298 info->groups[selector].extra_npins; in armada_37xx_get_group_pins() [all …]
|
/drivers/pinctrl/ |
D | pinctrl-zynqmp.c | 58 const char * const *groups; member 76 const struct zynqmp_pctrl_group *groups; member 108 return pctrl->groups[selector].name; in zynqmp_pctrl_get_group_name() 118 *pins = pctrl->groups[selector].pins; in zynqmp_pctrl_get_group_pins() 119 *npins = pctrl->groups[selector].npins; in zynqmp_pctrl_get_group_pins() 174 const char * const **groups, in zynqmp_pmux_get_function_groups() argument 179 *groups = pctrl->funcs[selector].groups; in zynqmp_pmux_get_function_groups() 201 const struct zynqmp_pctrl_group *pgrp = &pctrl->groups[group]; in zynqmp_pinmux_set_mux() 472 const struct zynqmp_pctrl_group *pgrp = &pctrl->groups[selector]; in zynqmp_pinconf_group_set() 499 static int zynqmp_pinctrl_get_function_groups(u32 fid, u32 index, u16 *groups) in zynqmp_pinctrl_get_function_groups() argument [all …]
|
D | pinctrl-artpec6.c | 76 const char * const *groups; member 522 .groups = gpiogrps, 527 .groups = cpuclkoutgrps, 532 .groups = udlclkoutgrps, 537 .groups = i2c1grps, 542 .groups = i2c2grps, 547 .groups = i2c3grps, 552 .groups = i2s0grps, 557 .groups = i2s1grps, 562 .groups = i2srefclkgrps, [all …]
|
D | pinctrl-rk805.c | 36 const char *const *groups; member 76 const struct rk805_pin_group *groups; member 134 .groups = rk805_gpio_groups, 143 .groups = rk806_gpio_groups, 149 .groups = rk806_gpio_groups, 155 .groups = rk806_gpio_groups, 161 .groups = rk806_gpio_groups, 167 .groups = rk806_gpio_groups, 173 .groups = rk806_gpio_groups, 353 return pci->groups[group].name; in rk805_pinctrl_get_group_name() [all …]
|
/drivers/pinctrl/berlin/ |
D | berlin.c | 47 return pctrl->desc->groups[group].name; in berlin_pinctrl_get_group_name() 122 const char * const **groups, in berlin_pinmux_get_function_groups() argument 127 *groups = pctrl->functions[function].groups; in berlin_pinmux_get_function_groups() 155 const struct berlin_desc_group *group_desc = pctrl->desc->groups + group; in berlin_pinmux_set() 211 desc_group = pctrl->desc->groups + i; in berlin_pinctrl_build_state() 224 desc_group = pctrl->desc->groups + i; in berlin_pinctrl_build_state() 241 desc_group = pctrl->desc->groups + i; in berlin_pinctrl_build_state() 247 const char **groups; in berlin_pinctrl_build_state() local 263 if (!function->groups) { in berlin_pinctrl_build_state() 264 function->groups = in berlin_pinctrl_build_state() [all …]
|
/drivers/infiniband/hw/hfi1/ |
D | exp_rcv.c | 43 rcd->groups = in hfi1_alloc_ctxt_rcv_groups() 44 kcalloc_node(ngroups, sizeof(*rcd->groups), in hfi1_alloc_ctxt_rcv_groups() 46 if (!rcd->groups) in hfi1_alloc_ctxt_rcv_groups() 50 grp = &rcd->groups[i]; in hfi1_alloc_ctxt_rcv_groups() 73 kfree(rcd->groups); in hfi1_free_ctxt_rcv_groups() 74 rcd->groups = NULL; in hfi1_free_ctxt_rcv_groups()
|
/drivers/pinctrl/spear/ |
D | pinctrl-spear310.c | 51 .groups = emi_cs_0_to_5_grps, 83 .groups = uart1_grps, 115 .groups = uart2_grps, 147 .groups = uart3_grps, 179 .groups = uart4_grps, 211 .groups = uart5_grps, 243 .groups = fsmc_grps, 275 .groups = rs485_0_grps, 307 .groups = rs485_1_grps, 339 .groups = tdm_grps, [all …]
|
D | pinctrl-spear1340.c | 270 .groups = pads_as_gpio_grps, 364 .groups = fsmc_grps, 431 .groups = keyboard_grps, 463 .groups = spdif_in_grps, 499 .groups = spdif_out_grps, 539 .groups = gpt_0_1_grps, 663 .groups = pwm_grps, 824 .groups = vip_grps, 861 .groups = cam0_grps, 902 .groups = cam1_grps, [all …]
|
D | pinctrl-spear3xx.c | 50 .groups = firda_grps, 83 .groups = i2c_grps, 116 .groups = ssp_cs_grps, 149 .groups = ssp_grps, 183 .groups = mii_grps, 348 .groups = gpio0_grps, 381 .groups = uart0_ext_grps, 414 .groups = uart0_grps, 447 .groups = timer_0_1_grps, 480 .groups = timer_2_3_grps,
|
/drivers/firmware/arm_scmi/ |
D | pinctrl.c | 110 u32 *groups; member 124 struct scmi_group_info *groups; member 642 if (!pi->groups[selector].present) { in scmi_pinctrl_get_group_name() 646 &pi->groups[selector]); in scmi_pinctrl_get_group_name() 651 *name = pi->groups[selector].name; in scmi_pinctrl_get_group_name() 668 if (!pi->groups[selector].present) { in scmi_pinctrl_group_pins_get() 672 &pi->groups[selector]); in scmi_pinctrl_group_pins_get() 677 *pins = pi->groups[selector].group_pins; in scmi_pinctrl_group_pins_get() 678 *nr_pins = pi->groups[selector].nr_pins; in scmi_pinctrl_group_pins_get() 699 func->groups = kmalloc_array(func->nr_groups, sizeof(*func->groups), in scmi_pinctrl_get_function_info() [all …]
|
/drivers/pinctrl/pxa/ |
D | pinctrl-pxa2xx.c | 35 struct pxa_pinctrl_group *group = pctl->groups + tgroup; in pxa2xx_pctrl_get_group_name() 46 struct pxa_pinctrl_group *group = pctl->groups + tgroup; in pxa2xx_pctrl_get_group_pins() 126 const char * const **groups, in pxa2xx_pmx_get_func_groups() argument 132 *groups = pf->groups; in pxa2xx_pmx_get_func_groups() 142 struct pxa_pinctrl_group *group = pctl->groups + tgroup; in pxa2xx_pmx_set_mux() 189 struct pxa_pinctrl_group *g = pctl->groups + group; in pxa2xx_pconf_group_get() 211 struct pxa_pinctrl_group *g = pctl->groups + group; in pxa2xx_pconf_group_set() 319 func->groups = in pxa2xx_build_groups() 322 if (!func->groups) in pxa2xx_build_groups() 325 memcpy(func->groups, gtmp, ngroups * sizeof(*gtmp)); in pxa2xx_build_groups() [all …]
|
/drivers/pinctrl/freescale/ |
D | pinctrl-imx1-core.c | 165 if (!strcmp(info->groups[i].name, name)) { in imx1_pinctrl_find_group_by_name() 166 grp = &info->groups[i]; in imx1_pinctrl_find_group_by_name() 188 return info->groups[selector].name; in imx1_get_group_name() 201 *pins = info->groups[selector].pin_ids; in imx1_get_group_pins() 202 *npins = info->groups[selector].npins; in imx1_get_group_pins() 311 pins = info->groups[group].pins; in imx1_pmx_set() 312 npins = info->groups[group].npins; in imx1_pmx_set() 317 info->functions[selector].name, info->groups[group].name); in imx1_pmx_set() 369 const char * const **groups, in imx1_pmx_get_groups() argument 375 *groups = info->functions[selector].groups; in imx1_pmx_get_groups() [all …]
|
D | pinctrl-mxs.c | 43 return d->soc->groups[group].name; in mxs_get_group_name() 51 *pins = d->soc->groups[group].pins; in mxs_get_group_pins() 52 *num_pins = d->soc->groups[group].npins; in mxs_get_group_pins() 182 const char * const **groups, in mxs_pinctrl_get_func_groups() argument 187 *groups = d->soc->functions[group].groups; in mxs_pinctrl_get_func_groups() 207 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinctrl_set_mux() 251 *config = d->soc->groups[group].config; in mxs_pinconf_group_get() 261 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinconf_group_set() 355 struct mxs_group *g = &d->soc->groups[idx]; in mxs_pinctrl_parse_group() 439 soc->groups = devm_kcalloc(&pdev->dev, in mxs_pinctrl_probe_dt() [all …]
|
/drivers/pinctrl/renesas/ |
D | pinctrl-rzn1.c | 90 const char **groups; member 121 struct rzn1_pin_group *groups; member 292 if (!strcmp(ipctl->groups[i].name, name)) in rzn1_pinctrl_find_group_by_name() 293 return &ipctl->groups[i]; in rzn1_pinctrl_find_group_by_name() 311 return ipctl->groups[selector].name; in rzn1_get_group_name() 323 *pins = ipctl->groups[selector].pins; in rzn1_get_group_pins() 324 *npins = ipctl->groups[selector].npins; in rzn1_get_group_pins() 453 const char * const **groups, in rzn1_pmx_get_groups() argument 458 *groups = ipctl->functions[selector].groups; in rzn1_pmx_get_groups() 468 struct rzn1_pin_group *grp = &ipctl->groups[group]; in rzn1_set_mux() [all …]
|
/drivers/crypto/nx/ |
D | nx-842.c | 143 int s = NX842_CRYPTO_HEADER_SIZE(hdr->groups); in nx842_crypto_add_header() 257 unsigned int groups, hdrsize, h; in nx842_crypto_compress() local 272 groups = min_t(unsigned int, NX842_CRYPTO_GROUP_MAX, in nx842_crypto_compress() 274 hdrsize = NX842_CRYPTO_HEADER_SIZE(groups); in nx842_crypto_compress() 289 hdr->groups = 0; in nx842_crypto_compress() 293 n = hdr->groups++; in nx842_crypto_compress() 295 if (hdr->groups > NX842_CRYPTO_GROUP_MAX) in nx842_crypto_compress() 309 if (!add_header && hdr->groups > 1) { in nx842_crypto_compress() 474 if (!hdr->groups) { in nx842_crypto_decompress() 479 if (hdr->groups > NX842_CRYPTO_GROUP_MAX) { in nx842_crypto_decompress() [all …]
|
/drivers/hwmon/ |
D | hwmon.c | 40 const struct attribute_group **groups; member 134 kfree(hwdev->groups); in hwmon_dev_release() 759 const struct attribute_group **groups) in __hwmon_device_register() argument 789 if (groups) in __hwmon_device_register() 790 for (i = 0; groups[i]; i++) in __hwmon_device_register() 793 hwdev->groups = kcalloc(ngroups, sizeof(*groups), GFP_KERNEL); in __hwmon_device_register() 794 if (!hwdev->groups) { in __hwmon_device_register() 807 hwdev->groups[ngroups++] = &hwdev->group; in __hwmon_device_register() 809 if (groups) { in __hwmon_device_register() 810 for (i = 0; groups[i]; i++) in __hwmon_device_register() [all …]
|
/drivers/pinctrl/nxp/ |
D | pinctrl-s32cc.c | 191 return info->groups[selector].data.name; in s32_get_group_name() 201 *pins = info->groups[selector].data.pins; in s32_get_group_pins() 202 *npins = info->groups[selector].data.npins; in s32_get_group_pins() 316 grp = &info->groups[group]; in s32_pmx_set() 362 const char * const **groups, in s32_pmx_get_groups() argument 368 *groups = info->functions[selector].groups; in s32_pmx_get_groups() 610 grp = &info->groups[selector]; in s32_pconf_group_set() 645 grp = &info->groups[selector]; in s32_pinconf_group_dbg_show() 792 const char **groups; in s32_pinctrl_parse_functions() local 808 groups = devm_kcalloc(info->dev, func->ngroups, in s32_pinctrl_parse_functions() [all …]
|
/drivers/pinctrl/visconti/ |
D | pinctrl-common.c | 132 pins = priv->devdata->groups[selector].pins; in visconti_pin_config_group_set() 133 num_pins = priv->devdata->groups[selector].nr_pins; in visconti_pin_config_group_set() 167 return priv->devdata->groups[selector].name; in visconti_get_group_name() 177 *pins = priv->devdata->groups[selector].pins; in visconti_get_group_pins() 178 *num_pins = priv->devdata->groups[selector].nr_pins; in visconti_get_group_pins() 209 const char * const **groups, in visconti_get_function_groups() argument 214 *groups = priv->devdata->functions[selector].groups; in visconti_get_function_groups() 225 const struct visconti_pin_group *grp = &priv->devdata->groups[group]; in visconti_set_mux()
|
/drivers/gpio/ |
D | gpio-stp-xway.c | 85 u8 groups; /* we can drive 1-3 groups of 8bit each */ member 182 chip->groups, XWAY_STP_CON1); in xway_stp_hw_init() 235 u32 shadow, groups, dsl, phy; in xway_stp_probe() local 262 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,groups", &groups)) in xway_stp_probe() 263 chip->groups = groups & XWAY_STP_GROUP_MASK; in xway_stp_probe() 265 chip->groups = XWAY_STP_GROUP0; in xway_stp_probe() 266 chip->gc.ngpio = fls(chip->groups) * 8; in xway_stp_probe()
|
/drivers/base/ |
D | driver.c | 203 const struct attribute_group **groups) in driver_add_groups() argument 205 return sysfs_create_groups(&drv->p->kobj, groups); in driver_add_groups() 209 const struct attribute_group **groups) in driver_remove_groups() argument 211 sysfs_remove_groups(&drv->p->kobj, groups); in driver_remove_groups() 249 ret = driver_add_groups(drv, drv->groups); in driver_register() 273 driver_remove_groups(drv, drv->groups); in driver_unregister()
|
/drivers/counter/ |
D | counter-sysfs.c | 867 struct counter_attribute_group *const groups) in counter_sysfs_signals_add() argument 875 groups[i].name = devm_kasprintf(&counter->dev, GFP_KERNEL, in counter_sysfs_signals_add() 877 if (!groups[i].name) in counter_sysfs_signals_add() 881 err = counter_signal_attrs_create(counter, groups + i, in counter_sysfs_signals_add() 976 struct counter_attribute_group *const groups) in counter_sysfs_counts_add() argument 987 groups[i].name = devm_kasprintf(&counter->dev, GFP_KERNEL, in counter_sysfs_counts_add() 989 if (!groups[i].name) in counter_sysfs_counts_add() 993 err = counter_sysfs_synapses_add(counter, groups + i, count); in counter_sysfs_counts_add() 998 err = counter_count_attrs_create(counter, groups + i, count); in counter_sysfs_counts_add() 1125 struct attribute_group *groups; in counter_sysfs_add() local [all …]
|