Lines Matching refs:selector

175 				    u32 selector,  in scmi_pinctrl_validate_id()  argument
184 if (selector >= value || value == 0) in scmi_pinctrl_validate_id()
192 u32 selector, char *name, in scmi_pinctrl_attributes() argument
204 ret = scmi_pinctrl_validate_id(ph, selector, type); in scmi_pinctrl_attributes()
215 tx->identifier = cpu_to_le32(selector); in scmi_pinctrl_attributes()
238 selector, (u32 *)&type, name, in scmi_pinctrl_attributes()
244 u32 selector; member
256 msg->identifier = cpu_to_le32(p->selector); in iter_pinctrl_assoc_prepare_message()
287 u32 selector, in scmi_pinctrl_list_associations() argument
299 .selector = selector, in scmi_pinctrl_list_associations()
307 ret = scmi_pinctrl_validate_id(ph, selector, type); in scmi_pinctrl_list_associations()
322 u32 selector; member
348 msg->identifier = cpu_to_le32(p->selector); in iter_pinctrl_settings_get_prepare_message()
394 scmi_pinctrl_settings_get(const struct scmi_protocol_handle *ph, u32 selector, in scmi_pinctrl_settings_get() argument
409 .selector = selector, in scmi_pinctrl_settings_get()
420 ret = scmi_pinctrl_validate_id(ph, selector, type); in scmi_pinctrl_settings_get()
437 u32 selector, in scmi_pinctrl_settings_get_one() argument
444 return scmi_pinctrl_settings_get(ph, selector, type, &nr_configs, in scmi_pinctrl_settings_get_one()
449 u32 selector, in scmi_pinctrl_settings_get_all() argument
458 return scmi_pinctrl_settings_get(ph, selector, type, nr_configs, in scmi_pinctrl_settings_get_all()
464 u32 selector, in scmi_pinctrl_settings_conf() argument
481 ret = scmi_pinctrl_validate_id(ph, selector, type); in scmi_pinctrl_settings_conf()
497 tx->identifier = cpu_to_le32(selector); in scmi_pinctrl_settings_conf()
599 u32 selector, in scmi_pinctrl_get_group_info() argument
604 ret = scmi_pinctrl_attributes(ph, GROUP_TYPE, selector, group->name, in scmi_pinctrl_get_group_info()
610 dev_err(ph->dev, "Group %d has 0 elements", selector); in scmi_pinctrl_get_group_info()
620 ret = scmi_pinctrl_list_associations(ph, selector, GROUP_TYPE, in scmi_pinctrl_get_group_info()
632 u32 selector, const char **name) in scmi_pinctrl_get_group_name() argument
639 if (selector >= pi->nr_groups || pi->nr_groups == 0) in scmi_pinctrl_get_group_name()
642 if (!pi->groups[selector].present) { in scmi_pinctrl_get_group_name()
645 ret = scmi_pinctrl_get_group_info(ph, selector, 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()
657 u32 selector, const u32 **pins, in scmi_pinctrl_group_pins_get() argument
665 if (selector >= pi->nr_groups || pi->nr_groups == 0) in scmi_pinctrl_group_pins_get()
668 if (!pi->groups[selector].present) { in scmi_pinctrl_group_pins_get()
671 ret = scmi_pinctrl_get_group_info(ph, selector, 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()
684 u32 selector, in scmi_pinctrl_get_function_info() argument
689 ret = scmi_pinctrl_attributes(ph, FUNCTION_TYPE, selector, func->name, in scmi_pinctrl_get_function_info()
695 dev_err(ph->dev, "Function %d has 0 elements", selector); in scmi_pinctrl_get_function_info()
704 ret = scmi_pinctrl_list_associations(ph, selector, FUNCTION_TYPE, in scmi_pinctrl_get_function_info()
716 u32 selector, const char **name) in scmi_pinctrl_get_function_name() argument
723 if (selector >= pi->nr_functions || pi->nr_functions == 0) in scmi_pinctrl_get_function_name()
726 if (!pi->functions[selector].present) { in scmi_pinctrl_get_function_name()
729 ret = scmi_pinctrl_get_function_info(ph, selector, in scmi_pinctrl_get_function_name()
730 &pi->functions[selector]); in scmi_pinctrl_get_function_name()
735 *name = pi->functions[selector].name; in scmi_pinctrl_get_function_name()
741 u32 selector, u32 *nr_groups, in scmi_pinctrl_function_groups_get() argument
749 if (selector >= pi->nr_functions || pi->nr_functions == 0) in scmi_pinctrl_function_groups_get()
752 if (!pi->functions[selector].present) { in scmi_pinctrl_function_groups_get()
755 ret = scmi_pinctrl_get_function_info(ph, selector, in scmi_pinctrl_function_groups_get()
756 &pi->functions[selector]); in scmi_pinctrl_function_groups_get()
761 *groups = pi->functions[selector].groups; in scmi_pinctrl_function_groups_get()
762 *nr_groups = pi->functions[selector].nr_groups; in scmi_pinctrl_function_groups_get()
768 u32 selector, u32 group) in scmi_pinctrl_mux_set() argument
770 return scmi_pinctrl_function_select(ph, group, GROUP_TYPE, selector); in scmi_pinctrl_mux_set()
774 u32 selector, struct scmi_pin_info *pin) in scmi_pinctrl_get_pin_info() argument
781 ret = scmi_pinctrl_attributes(ph, PIN_TYPE, selector, pin->name, NULL); in scmi_pinctrl_get_pin_info()
790 u32 selector, const char **name) in scmi_pinctrl_get_pin_name() argument
797 if (selector >= pi->nr_pins) in scmi_pinctrl_get_pin_name()
800 if (!pi->pins[selector].present) { in scmi_pinctrl_get_pin_name()
803 ret = scmi_pinctrl_get_pin_info(ph, selector, &pi->pins[selector]); in scmi_pinctrl_get_pin_name()
808 *name = pi->pins[selector].name; in scmi_pinctrl_get_pin_name()
814 u32 selector, in scmi_pinctrl_name_get() argument
820 return scmi_pinctrl_get_pin_name(ph, selector, name); in scmi_pinctrl_name_get()
822 return scmi_pinctrl_get_group_name(ph, selector, name); in scmi_pinctrl_name_get()
824 return scmi_pinctrl_get_function_name(ph, selector, name); in scmi_pinctrl_name_get()