• Home
  • Raw
  • Download

Lines Matching refs:grp

107 	struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp,  in mvebu_pinctrl_find_setting_by_val()  argument
111 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinctrl_find_setting_by_val()
112 if (config == grp->settings[n].val) { in mvebu_pinctrl_find_setting_by_val()
114 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_val()
115 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_val()
122 struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp, in mvebu_pinctrl_find_setting_by_name() argument
126 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinctrl_find_setting_by_name()
127 if (strcmp(name, grp->settings[n].name) == 0) { in mvebu_pinctrl_find_setting_by_name()
129 grp->settings[n].variant)) in mvebu_pinctrl_find_setting_by_name()
130 return &grp->settings[n]; in mvebu_pinctrl_find_setting_by_name()
137 struct mvebu_pinctrl *pctl, struct mvebu_pinctrl_group *grp) in mvebu_pinctrl_find_gpio_setting() argument
140 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinctrl_find_gpio_setting()
141 if (grp->settings[n].flags & in mvebu_pinctrl_find_gpio_setting()
144 grp->settings[n].variant)) in mvebu_pinctrl_find_gpio_setting()
145 return &grp->settings[n]; in mvebu_pinctrl_find_gpio_setting()
166 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_get() local
168 if (!grp->ctrl) in mvebu_pinconf_group_get()
171 return grp->ctrl->mpp_get(grp->data, grp->pins[0], config); in mvebu_pinconf_group_get()
179 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_set() local
182 if (!grp->ctrl) in mvebu_pinconf_group_set()
186 ret = grp->ctrl->mpp_set(grp->data, grp->pins[0], configs[i]); in mvebu_pinconf_group_set()
198 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinconf_group_dbg_show() local
206 curr = mvebu_pinctrl_find_setting_by_val(pctl, grp, config); in mvebu_pinconf_group_dbg_show()
224 if (grp->num_settings > 1) { in mvebu_pinconf_group_dbg_show()
226 for (n = 0; n < grp->num_settings; n++) { in mvebu_pinconf_group_dbg_show()
227 if (curr == &grp->settings[n]) in mvebu_pinconf_group_dbg_show()
232 !(pctl->variant & grp->settings[n].variant)) in mvebu_pinconf_group_dbg_show()
235 seq_printf(s, " %s", grp->settings[n].name); in mvebu_pinconf_group_dbg_show()
236 if (grp->settings[n].subname) in mvebu_pinconf_group_dbg_show()
237 seq_printf(s, "(%s)", grp->settings[n].subname); in mvebu_pinconf_group_dbg_show()
238 if (grp->settings[n].flags & in mvebu_pinconf_group_dbg_show()
241 if (grp->settings[n].flags & MVEBU_SETTING_GPI) in mvebu_pinconf_group_dbg_show()
243 if (grp->settings[n].flags & MVEBU_SETTING_GPO) in mvebu_pinconf_group_dbg_show()
289 struct mvebu_pinctrl_group *grp = &pctl->groups[gid]; in mvebu_pinmux_set() local
294 setting = mvebu_pinctrl_find_setting_by_name(pctl, grp, in mvebu_pinmux_set()
304 ret = mvebu_pinconf_group_set(pctldev, grp->gid, &config, 1); in mvebu_pinmux_set()
318 struct mvebu_pinctrl_group *grp; in mvebu_pinmux_gpio_request_enable() local
322 grp = mvebu_pinctrl_find_group_by_pid(pctl, offset); in mvebu_pinmux_gpio_request_enable()
323 if (!grp) in mvebu_pinmux_gpio_request_enable()
326 if (grp->ctrl->mpp_gpio_req) in mvebu_pinmux_gpio_request_enable()
327 return grp->ctrl->mpp_gpio_req(grp->data, offset); in mvebu_pinmux_gpio_request_enable()
329 setting = mvebu_pinctrl_find_gpio_setting(pctl, grp); in mvebu_pinmux_gpio_request_enable()
335 return mvebu_pinconf_group_set(pctldev, grp->gid, &config, 1); in mvebu_pinmux_gpio_request_enable()
342 struct mvebu_pinctrl_group *grp; in mvebu_pinmux_gpio_set_direction() local
345 grp = mvebu_pinctrl_find_group_by_pid(pctl, offset); in mvebu_pinmux_gpio_set_direction()
346 if (!grp) in mvebu_pinmux_gpio_set_direction()
349 if (grp->ctrl->mpp_gpio_dir) in mvebu_pinmux_gpio_set_direction()
350 return grp->ctrl->mpp_gpio_dir(grp->data, offset, input); in mvebu_pinmux_gpio_set_direction()
352 setting = mvebu_pinctrl_find_gpio_setting(pctl, grp); in mvebu_pinmux_gpio_set_direction()
429 struct mvebu_pinctrl_group *grp = in mvebu_pinctrl_dt_node_to_map() local
432 if (!grp) { in mvebu_pinctrl_dt_node_to_map()
437 if (!mvebu_pinctrl_find_setting_by_name(pctl, grp, function)) { in mvebu_pinctrl_dt_node_to_map()
507 struct mvebu_pinctrl_group *grp = &pctl->groups[n]; in mvebu_pinctrl_build_functions() local
508 for (s = 0; s < grp->num_settings; s++) { in mvebu_pinctrl_build_functions()
513 !(pctl->variant & grp->settings[s].variant)) in mvebu_pinctrl_build_functions()
518 grp->settings[s].name); in mvebu_pinctrl_build_functions()
534 struct mvebu_pinctrl_group *grp = &pctl->groups[n]; in mvebu_pinctrl_build_functions() local
535 for (s = 0; s < grp->num_settings; s++) { in mvebu_pinctrl_build_functions()
541 !(pctl->variant & grp->settings[s].variant)) in mvebu_pinctrl_build_functions()
545 grp->settings[s].name); in mvebu_pinctrl_build_functions()
561 *groups = grp->name; in mvebu_pinctrl_build_functions()
689 struct mvebu_pinctrl_group *grp; in mvebu_pinctrl_probe() local
719 grp = mvebu_pinctrl_find_group_by_pid(pctl, mode->pid); in mvebu_pinctrl_probe()
720 if (!grp) { in mvebu_pinctrl_probe()
726 grp->settings = mode->settings; in mvebu_pinctrl_probe()
727 grp->num_settings = num_settings; in mvebu_pinctrl_probe()