Home
last modified time | relevance | path

Searched refs:groups (Results 1 – 25 of 358) sorted by relevance

12345678910>>...15

/drivers/pinctrl/qcom/
Dpinctrl-qdf2xxx.c41 struct msm_pingroup *groups; in qdf2xxx_pinctrl_probe() local
60 groups = devm_kcalloc(&pdev->dev, num_gpios, in qdf2xxx_pinctrl_probe()
63 if (!pins || !groups) in qdf2xxx_pinctrl_probe()
69 groups[i].npins = 1, in qdf2xxx_pinctrl_probe()
70 groups[i].pins = &pins[i].number; in qdf2xxx_pinctrl_probe()
71 groups[i].ctl_reg = 0x10000 * i; in qdf2xxx_pinctrl_probe()
72 groups[i].io_reg = 0x04 + 0x10000 * i; in qdf2xxx_pinctrl_probe()
73 groups[i].intr_cfg_reg = 0x08 + 0x10000 * i; in qdf2xxx_pinctrl_probe()
74 groups[i].intr_status_reg = 0x0c + 0x10000 * i; in qdf2xxx_pinctrl_probe()
75 groups[i].intr_target_reg = 0x08 + 0x10000 * i; in qdf2xxx_pinctrl_probe()
[all …]
Dpinctrl-msm.c85 return pctrl->soc->groups[group].name; in msm_get_group_name()
95 *pins = pctrl->soc->groups[group].pins; in msm_get_group_pins()
96 *num_pins = pctrl->soc->groups[group].npins; in msm_get_group_pins()
125 const char * const **groups, in msm_get_function_groups() argument
130 *groups = pctrl->soc->functions[function].groups; in msm_get_function_groups()
145 g = &pctrl->soc->groups[group]; in msm_pinmux_set_mux()
228 g = &pctrl->soc->groups[group]; in msm_config_group_get()
293 g = &pctrl->soc->groups[group]; in msm_config_group_set()
385 g = &pctrl->soc->groups[offset]; in msm_gpio_direction_input()
405 g = &pctrl->soc->groups[offset]; in msm_gpio_direction_output()
[all …]
/drivers/pinctrl/mvebu/
Dpinctrl-mvebu.c35 const char **groups; member
53 struct mvebu_pinctrl_group *groups; member
65 if (pid >= pctl->groups[n].pins[0] && in mvebu_pinctrl_find_group_by_pid()
66 pid < pctl->groups[n].pins[0] + in mvebu_pinctrl_find_group_by_pid()
67 pctl->groups[n].npins) in mvebu_pinctrl_find_group_by_pid()
68 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_pid()
78 if (strcmp(name, pctl->groups[n].name) == 0) in mvebu_pinctrl_find_group_by_name()
79 return &pctl->groups[n]; in mvebu_pinctrl_find_group_by_name()
144 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_get()
157 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_set()
[all …]
/drivers/pinctrl/berlin/
Dberlin.c50 return pctrl->desc->groups[group].name; in berlin_pinctrl_get_group_name()
127 const char * const **groups, in berlin_pinmux_get_function_groups() argument
132 *groups = pctrl->functions[function].groups; in berlin_pinmux_get_function_groups()
160 const struct berlin_desc_group *group_desc = pctrl->desc->groups + group; in berlin_pinmux_set()
216 desc_group = pctrl->desc->groups + i; in berlin_pinctrl_build_state()
230 desc_group = pctrl->desc->groups + i; in berlin_pinctrl_build_state()
245 desc_group = pctrl->desc->groups + i; in berlin_pinctrl_build_state()
251 const char **groups; in berlin_pinctrl_build_state() local
265 if (!function->groups) { in berlin_pinctrl_build_state()
266 function->groups = in berlin_pinctrl_build_state()
[all …]
/drivers/hwmon/
Dhwmon.c36 const struct attribute_group **groups; member
507 const struct attribute_group **groups) in __hwmon_device_register() argument
533 if (groups) in __hwmon_device_register()
534 for (i = 0; groups[i]; i++) in __hwmon_device_register()
537 hwdev->groups = devm_kcalloc(dev, ngroups, sizeof(*groups), in __hwmon_device_register()
539 if (!hwdev->groups) { in __hwmon_device_register()
552 hwdev->groups[ngroups++] = &hwdev->group; in __hwmon_device_register()
554 if (groups) { in __hwmon_device_register()
555 for (i = 0; groups[i]; i++) in __hwmon_device_register()
556 hwdev->groups[ngroups++] = groups[i]; in __hwmon_device_register()
[all …]
/drivers/pinctrl/spear/
Dpinctrl-spear310.c52 .groups = emi_cs_0_to_5_grps,
84 .groups = uart1_grps,
116 .groups = uart2_grps,
148 .groups = uart3_grps,
180 .groups = uart4_grps,
212 .groups = uart5_grps,
244 .groups = fsmc_grps,
276 .groups = rs485_0_grps,
308 .groups = rs485_1_grps,
340 .groups = tdm_grps,
[all …]
Dpinctrl-spear1340.c271 .groups = pads_as_gpio_grps,
365 .groups = fsmc_grps,
432 .groups = keyboard_grps,
464 .groups = spdif_in_grps,
500 .groups = spdif_out_grps,
540 .groups = gpt_0_1_grps,
664 .groups = pwm_grps,
825 .groups = vip_grps,
862 .groups = cam0_grps,
903 .groups = cam1_grps,
[all …]
Dpinctrl-spear3xx.c50 .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,
Dpinctrl-spear1310.c269 .groups = i2c0_grps,
364 .groups = ssp0_grps,
400 .groups = i2s0_grps,
436 .groups = i2s1_grps,
503 .groups = clcd_grps,
547 .groups = arm_gpio_grps,
619 .groups = smi_grps,
657 .groups = gmii_grps,
711 .groups = rgmii_grps,
749 .groups = smii_0_1_2_grps,
[all …]
Dpinctrl-spear300.c218 .groups = fsmc_grps,
279 .groups = clcd_grps,
316 .groups = tdm_grps,
352 .groups = i2c_grps,
411 .groups = cam_grps,
445 .groups = dac_grps,
481 .groups = i2s_grps,
551 .groups = sdhci_grps,
612 .groups = gpio1_grps,
660 spear3xx_machdata.groups = spear300_pingroups; in spear300_pinctrl_probe()
Dpinctrl-spear.c102 pgroup = machdata->groups[group]; in pmx_init_addr()
126 return pmx->machdata->groups[group]->name; in spear_pinctrl_get_group_name()
134 *pins = pmx->machdata->groups[group]->pins; in spear_pinctrl_get_group_pins()
135 *num_pins = pmx->machdata->groups[group]->npins; in spear_pinctrl_get_group_pins()
226 unsigned function, const char *const **groups, in spear_pinctrl_get_func_groups() argument
231 *groups = pmx->machdata->functions[function]->groups; in spear_pinctrl_get_func_groups()
246 pgroup = pmx->machdata->groups[group]; in spear_pinctrl_endisable()
/drivers/pinctrl/freescale/
Dpinctrl-mxs.c47 return d->soc->groups[group].name; in mxs_get_group_name()
55 *pins = d->soc->groups[group].pins; in mxs_get_group_pins()
56 *num_pins = d->soc->groups[group].npins; in mxs_get_group_pins()
186 const char * const **groups, in mxs_pinctrl_get_func_groups() argument
191 *groups = d->soc->functions[group].groups; in mxs_pinctrl_get_func_groups()
211 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinctrl_set_mux()
255 *config = d->soc->groups[group].config; in mxs_pinconf_group_get()
265 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinconf_group_set()
359 struct mxs_group *g = &d->soc->groups[idx]; in mxs_pinctrl_parse_group()
441 soc->groups = devm_kzalloc(&pdev->dev, soc->ngroups * in mxs_pinctrl_probe_dt()
[all …]
Dpinctrl-imx1-core.c167 if (!strcmp(info->groups[i].name, name)) { in imx1_pinctrl_find_group_by_name()
168 grp = &info->groups[i]; in imx1_pinctrl_find_group_by_name()
190 return info->groups[selector].name; in imx1_get_group_name()
203 *pins = info->groups[selector].pin_ids; in imx1_get_group_pins()
204 *npins = info->groups[selector].npins; in imx1_get_group_pins()
313 pins = info->groups[group].pins; in imx1_pmx_set()
314 npins = info->groups[group].npins; in imx1_pmx_set()
319 info->functions[selector].name, info->groups[group].name); in imx1_pmx_set()
371 const char * const **groups, in imx1_pmx_get_groups() argument
377 *groups = info->functions[selector].groups; in imx1_pmx_get_groups()
[all …]
Dpinctrl-imx.c56 if (!strcmp(info->groups[i].name, name)) { in imx_pinctrl_find_group_by_name()
57 grp = &info->groups[i]; in imx_pinctrl_find_group_by_name()
79 return info->groups[selector].name; in imx_get_group_name()
92 *pins = info->groups[selector].pin_ids; in imx_get_group_pins()
93 *npins = info->groups[selector].npins; in imx_get_group_pins()
199 grp = &info->groups[group]; in imx_pmx_set()
293 const char * const **groups, in imx_pmx_get_groups() argument
299 *groups = info->functions[selector].groups; in imx_pmx_get_groups()
326 grp = &info->groups[group]; in imx_pmx_gpio_request_enable()
497 grp = &info->groups[group]; in imx_pinconf_group_dbg_show()
[all …]
/drivers/pinctrl/pxa/
Dpinctrl-pxa2xx.c38 struct pxa_pinctrl_group *group = pctl->groups + tgroup; in pxa2xx_pctrl_get_group_name()
49 struct pxa_pinctrl_group *group = pctl->groups + tgroup; in pxa2xx_pctrl_get_group_pins()
129 const char * const **groups, in pxa2xx_pmx_get_func_groups() argument
135 *groups = pf->groups; in pxa2xx_pmx_get_func_groups()
145 struct pxa_pinctrl_group *group = pctl->groups + tgroup; in pxa2xx_pmx_set_mux()
192 struct pxa_pinctrl_group *g = pctl->groups + group; in pxa2xx_pconf_group_get()
214 struct pxa_pinctrl_group *g = pctl->groups + group; in pxa2xx_pconf_group_set()
322 func->groups = in pxa2xx_build_groups()
325 if (!func->groups) in pxa2xx_build_groups()
328 memcpy(func->groups, gtmp, ngroups * sizeof(*gtmp)); in pxa2xx_build_groups()
[all …]
/drivers/gpio/
Dgpio-stp-xway.c86 u8 groups; /* we can drive 1-3 groups of 8bit each */ member
166 chip->groups, XWAY_STP_CON1); in xway_stp_hw_init()
201 u32 shadow, groups, dsl, phy; in xway_stp_probe() local
228 if (!of_property_read_u32(pdev->dev.of_node, "lantiq,groups", &groups)) in xway_stp_probe()
229 chip->groups = groups & XWAY_STP_GROUP_MASK; in xway_stp_probe()
231 chip->groups = XWAY_STP_GROUP0; in xway_stp_probe()
232 chip->gc.ngpio = fls(chip->groups) * 8; in xway_stp_probe()
/drivers/pinctrl/uniphier/
Dpinctrl-uniphier-core.c49 return priv->socdata->groups[selector].name; in uniphier_pctl_get_group_name()
59 *pins = priv->socdata->groups[selector].pins; in uniphier_pctl_get_group_pins()
60 *num_pins = priv->socdata->groups[selector].num_pins; in uniphier_pctl_get_group_pins()
508 const unsigned *pins = priv->socdata->groups[selector].pins; in uniphier_conf_pin_config_group_set()
509 unsigned num_pins = priv->socdata->groups[selector].num_pins; in uniphier_conf_pin_config_group_set()
546 const char * const **groups, in uniphier_pmx_get_function_groups() argument
551 *groups = priv->socdata->functions[selector].groups; in uniphier_pmx_get_function_groups()
628 &priv->socdata->groups[group_selector]; in uniphier_pmx_set_mux()
647 const struct uniphier_pinctrl_group *groups = priv->socdata->groups; in uniphier_pmx_gpio_request_enable() local
658 if (groups[i].range_type != range_type) in uniphier_pmx_gpio_request_enable()
[all …]
/drivers/crypto/nx/
Dnx-842.c152 int s = NX842_CRYPTO_HEADER_SIZE(hdr->groups); in nx842_crypto_add_header()
266 unsigned int groups, hdrsize, h; in nx842_crypto_compress() local
281 groups = min_t(unsigned int, NX842_CRYPTO_GROUP_MAX, in nx842_crypto_compress()
283 hdrsize = NX842_CRYPTO_HEADER_SIZE(groups); in nx842_crypto_compress()
298 hdr->groups = 0; in nx842_crypto_compress()
302 n = hdr->groups++; in nx842_crypto_compress()
304 if (hdr->groups > NX842_CRYPTO_GROUP_MAX) in nx842_crypto_compress()
318 if (!add_header && hdr->groups > 1) { in nx842_crypto_compress()
484 if (!hdr->groups) { in nx842_crypto_decompress()
489 if (hdr->groups > NX842_CRYPTO_GROUP_MAX) { in nx842_crypto_decompress()
[all …]
/drivers/base/
Ddriver.c129 const struct attribute_group **groups) in driver_add_groups() argument
131 return sysfs_create_groups(&drv->p->kobj, groups); in driver_add_groups()
135 const struct attribute_group **groups) in driver_remove_groups() argument
137 sysfs_remove_groups(&drv->p->kobj, groups); in driver_remove_groups()
171 ret = driver_add_groups(drv, drv->groups); in driver_register()
194 driver_remove_groups(drv, drv->groups); in driver_unregister()
/drivers/pinctrl/bcm/
Dpinctrl-nsp-mux.c95 const char * const *groups; member
120 const struct nsp_pin_group *groups; member
294 .groups = func ## _grps, \
330 return pinctrl->groups[selector].name; in nsp_get_group_name()
339 *pins = pinctrl->groups[selector].pins; in nsp_get_group_pins()
340 *num_pins = pinctrl->groups[selector].num_pins; in nsp_get_group_pins()
377 const char * const **groups, in nsp_get_function_groups() argument
382 *groups = pinctrl->functions[selector].groups; in nsp_get_function_groups()
468 grp = &pinctrl->groups[grp_select]; in nsp_pinmux_enable()
608 pinctrl->groups = nsp_pin_groups; in nsp_pinmux_probe()
/drivers/pinctrl/
Dpinctrl-adi2.h44 const char * const *groups; member
51 .groups = g, \
67 const struct adi_pin_group *groups; member
Dpinctrl-lantiq.c74 struct property *groups = of_find_property(np, "lantiq,groups", NULL); in ltq_pinctrl_dt_subnode_to_map() local
82 if (!pins && !groups) { in ltq_pinctrl_dt_subnode_to_map()
88 if (pins && groups) { in ltq_pinctrl_dt_subnode_to_map()
95 if (groups && !ret) { in ltq_pinctrl_dt_subnode_to_map()
202 const char * const **groups, in ltq_pmx_get_groups() argument
207 *groups = info->funcs[func].groups; in ltq_pmx_get_groups()
/drivers/pinctrl/tegra/
Dpinctrl-tegra.c70 return pmx->soc->groups[group].name; in tegra_pinctrl_get_group_name()
80 *pins = pmx->soc->groups[group].pins; in tegra_pinctrl_get_group_pins()
81 *num_pins = pmx->soc->groups[group].npins; in tegra_pinctrl_get_group_pins()
256 const char * const **groups, in tegra_pinctrl_get_func_groups() argument
261 *groups = pmx->soc->functions[function].groups; in tegra_pinctrl_get_func_groups()
276 g = &pmx->soc->groups[group]; in tegra_pinctrl_set_mux()
469 g = &pmx->soc->groups[group]; in tegra_pinconf_group_get()
498 g = &pmx->soc->groups[group]; in tegra_pinconf_group_set()
566 g = &pmx->soc->groups[group]; in tegra_pinconf_group_dbg_show()
635 g = &pmx->soc->groups[i]; in tegra_pinctrl_clear_parked_bits()
[all …]
/drivers/pinctrl/sunxi/
Dpinctrl-sunxi.c43 struct sunxi_pinctrl_group *grp = pctl->groups + i; in sunxi_pinctrl_find_group_by_name()
132 return pctl->groups[group].name; in sunxi_pctrl_get_group_name()
142 *pins = (unsigned *)&pctl->groups[group].pin; in sunxi_pctrl_get_group_pins()
277 *config = pctl->groups[group].config; in sunxi_pconf_group_get()
288 struct sunxi_pinctrl_group *g = &pctl->groups[group]; in sunxi_pconf_group_set()
366 const char * const **groups, in sunxi_pmx_get_func_groups() argument
371 *groups = pctl->functions[function].groups; in sunxi_pmx_get_func_groups()
401 struct sunxi_pinctrl_group *g = pctl->groups + group; in sunxi_pmx_set_mux()
794 pctl->groups = devm_kzalloc(&pdev->dev, in sunxi_pinctrl_build_state()
795 pctl->ngroups * sizeof(*pctl->groups), in sunxi_pinctrl_build_state()
[all …]
/drivers/pinctrl/aspeed/
Dpinctrl-aspeed.c29 return pdata->groups[group].name; in aspeed_pinctrl_get_group_name()
38 *pins = &pdata->groups[group].pins[0]; in aspeed_pinctrl_get_group_pins()
39 *npins = pdata->groups[group].npins; in aspeed_pinctrl_get_group_pins()
67 const char * const **groups, in aspeed_pinmux_get_fn_groups() argument
72 *groups = pdata->functions[function].groups; in aspeed_pinmux_get_fn_groups()
335 const struct aspeed_pin_group *pgroup = &pdata->groups[group]; in aspeed_pinmux_set_mux()

12345678910>>...15