Lines Matching full:g
254 const struct tegra_pingroup *g; in tegra_pinctrl_set_mux() local
258 g = &pmx->soc->groups[group]; in tegra_pinctrl_set_mux()
260 if (WARN_ON(g->mux_reg < 0)) in tegra_pinctrl_set_mux()
263 for (i = 0; i < ARRAY_SIZE(g->funcs); i++) { in tegra_pinctrl_set_mux()
264 if (g->funcs[i] == function) in tegra_pinctrl_set_mux()
267 if (WARN_ON(i == ARRAY_SIZE(g->funcs))) in tegra_pinctrl_set_mux()
270 val = pmx_readl(pmx, g->mux_bank, g->mux_reg); in tegra_pinctrl_set_mux()
271 val &= ~(0x3 << g->mux_bit); in tegra_pinctrl_set_mux()
272 val |= i << g->mux_bit; in tegra_pinctrl_set_mux()
273 pmx_writel(pmx, val, g->mux_bank, g->mux_reg); in tegra_pinctrl_set_mux()
332 const struct tegra_pingroup *g, in tegra_pinconf_reg() argument
339 *bank = g->pupd_bank; in tegra_pinconf_reg()
340 *reg = g->pupd_reg; in tegra_pinconf_reg()
341 *bit = g->pupd_bit; in tegra_pinconf_reg()
345 *bank = g->tri_bank; in tegra_pinconf_reg()
346 *reg = g->tri_reg; in tegra_pinconf_reg()
347 *bit = g->tri_bit; in tegra_pinconf_reg()
351 *bank = g->mux_bank; in tegra_pinconf_reg()
352 *reg = g->mux_reg; in tegra_pinconf_reg()
353 *bit = g->einput_bit; in tegra_pinconf_reg()
357 *bank = g->mux_bank; in tegra_pinconf_reg()
358 *reg = g->mux_reg; in tegra_pinconf_reg()
359 *bit = g->odrain_bit; in tegra_pinconf_reg()
363 *bank = g->mux_bank; in tegra_pinconf_reg()
364 *reg = g->mux_reg; in tegra_pinconf_reg()
365 *bit = g->lock_bit; in tegra_pinconf_reg()
369 *bank = g->mux_bank; in tegra_pinconf_reg()
370 *reg = g->mux_reg; in tegra_pinconf_reg()
371 *bit = g->ioreset_bit; in tegra_pinconf_reg()
375 *bank = g->mux_bank; in tegra_pinconf_reg()
376 *reg = g->mux_reg; in tegra_pinconf_reg()
377 *bit = g->rcv_sel_bit; in tegra_pinconf_reg()
382 *bank = g->mux_bank; in tegra_pinconf_reg()
383 *reg = g->mux_reg; in tegra_pinconf_reg()
385 *bank = g->drv_bank; in tegra_pinconf_reg()
386 *reg = g->drv_reg; in tegra_pinconf_reg()
388 *bit = g->hsm_bit; in tegra_pinconf_reg()
393 *bank = g->mux_bank; in tegra_pinconf_reg()
394 *reg = g->mux_reg; in tegra_pinconf_reg()
396 *bank = g->drv_bank; in tegra_pinconf_reg()
397 *reg = g->drv_reg; in tegra_pinconf_reg()
399 *bit = g->schmitt_bit; in tegra_pinconf_reg()
403 *bank = g->drv_bank; in tegra_pinconf_reg()
404 *reg = g->drv_reg; in tegra_pinconf_reg()
405 *bit = g->lpmd_bit; in tegra_pinconf_reg()
409 *bank = g->drv_bank; in tegra_pinconf_reg()
410 *reg = g->drv_reg; in tegra_pinconf_reg()
411 *bit = g->drvdn_bit; in tegra_pinconf_reg()
412 *width = g->drvdn_width; in tegra_pinconf_reg()
415 *bank = g->drv_bank; in tegra_pinconf_reg()
416 *reg = g->drv_reg; in tegra_pinconf_reg()
417 *bit = g->drvup_bit; in tegra_pinconf_reg()
418 *width = g->drvup_width; in tegra_pinconf_reg()
421 *bank = g->drv_bank; in tegra_pinconf_reg()
422 *reg = g->drv_reg; in tegra_pinconf_reg()
423 *bit = g->slwf_bit; in tegra_pinconf_reg()
424 *width = g->slwf_width; in tegra_pinconf_reg()
427 *bank = g->drv_bank; in tegra_pinconf_reg()
428 *reg = g->drv_reg; in tegra_pinconf_reg()
429 *bit = g->slwr_bit; in tegra_pinconf_reg()
430 *width = g->slwr_width; in tegra_pinconf_reg()
434 *bank = g->mux_bank; in tegra_pinconf_reg()
435 *reg = g->mux_reg; in tegra_pinconf_reg()
437 *bank = g->drv_bank; in tegra_pinconf_reg()
438 *reg = g->drv_reg; in tegra_pinconf_reg()
440 *bit = g->drvtype_bit; in tegra_pinconf_reg()
462 param, prop, g->name); in tegra_pinconf_reg()
491 const struct tegra_pingroup *g; in tegra_pinconf_group_get() local
497 g = &pmx->soc->groups[group]; in tegra_pinconf_group_get()
499 ret = tegra_pinconf_reg(pmx, g, param, true, &bank, ®, &bit, in tegra_pinconf_group_get()
520 const struct tegra_pingroup *g; in tegra_pinconf_group_set() local
526 g = &pmx->soc->groups[group]; in tegra_pinconf_group_set()
532 ret = tegra_pinconf_reg(pmx, g, param, true, &bank, ®, &bit, in tegra_pinconf_group_set()
588 const struct tegra_pingroup *g; in tegra_pinconf_group_dbg_show() local
594 g = &pmx->soc->groups[group]; in tegra_pinconf_group_dbg_show()
597 ret = tegra_pinconf_reg(pmx, g, cfg_params[i].param, false, in tegra_pinconf_group_dbg_show()
659 const struct tegra_pingroup *g; in tegra_pinctrl_clear_parked_bits() local
663 g = &pmx->soc->groups[i]; in tegra_pinctrl_clear_parked_bits()
664 if (g->parked_bitmask > 0) { in tegra_pinctrl_clear_parked_bits()
667 if (g->mux_reg != -1) { in tegra_pinctrl_clear_parked_bits()
668 bank = g->mux_bank; in tegra_pinctrl_clear_parked_bits()
669 reg = g->mux_reg; in tegra_pinctrl_clear_parked_bits()
671 bank = g->drv_bank; in tegra_pinctrl_clear_parked_bits()
672 reg = g->drv_reg; in tegra_pinctrl_clear_parked_bits()
676 val &= ~g->parked_bitmask; in tegra_pinctrl_clear_parked_bits()
788 const struct tegra_pingroup *g = &soc_data->groups[gn]; in tegra_pinctrl_probe() local
790 if (g->mux_reg == -1) in tegra_pinctrl_probe()
794 if (g->funcs[gfn] == fn) in tegra_pinctrl_probe()
801 *group_pins++ = g->name; in tegra_pinctrl_probe()