Lines Matching refs:g

204 	struct mxs_group *g = &d->soc->groups[group];  in mxs_pinctrl_set_mux()  local
210 for (i = 0; i < g->npins; i++) { in mxs_pinctrl_set_mux()
211 bank = PINID_TO_BANK(g->pins[i]); in mxs_pinctrl_set_mux()
212 pin = PINID_TO_PIN(g->pins[i]); in mxs_pinctrl_set_mux()
217 mxs_pinctrl_rmwl(g->muxsel[i], 0x3, shift, reg); in mxs_pinctrl_set_mux()
258 struct mxs_group *g = &d->soc->groups[group]; in mxs_pinconf_group_set() local
273 for (i = 0; i < g->npins; i++) { in mxs_pinconf_group_set()
274 bank = PINID_TO_BANK(g->pins[i]); in mxs_pinconf_group_set()
275 pin = PINID_TO_PIN(g->pins[i]); in mxs_pinconf_group_set()
309 g->config = config; in mxs_pinconf_group_set()
352 struct mxs_group *g = &d->soc->groups[idx]; in mxs_pinctrl_parse_group() local
366 g->name = group; in mxs_pinctrl_parse_group()
371 g->npins = length / sizeof(u32); in mxs_pinctrl_parse_group()
373 g->pins = devm_kcalloc(&pdev->dev, g->npins, sizeof(*g->pins), in mxs_pinctrl_parse_group()
375 if (!g->pins) in mxs_pinctrl_parse_group()
378 g->muxsel = devm_kcalloc(&pdev->dev, g->npins, sizeof(*g->muxsel), in mxs_pinctrl_parse_group()
380 if (!g->muxsel) in mxs_pinctrl_parse_group()
383 of_property_read_u32_array(np, propname, g->pins, g->npins); in mxs_pinctrl_parse_group()
384 for (i = 0; i < g->npins; i++) { in mxs_pinctrl_parse_group()
385 g->muxsel[i] = MUXID_TO_MUXSEL(g->pins[i]); in mxs_pinctrl_parse_group()
386 g->pins[i] = MUXID_TO_PINID(g->pins[i]); in mxs_pinctrl_parse_group()
390 *out_name = g->name; in mxs_pinctrl_parse_group()