Lines Matching refs:function

56 			dev_err(pctldev->dev, "pinmux ops has no name for function%u\n",
68 if (!map->data.mux.function) {
69 pr_err("failed to register map %s (%d): no function given\n",
79 * is either muxed to a different function or used as gpio.
107 * name that controls its mux function, or the requested GPIO name
165 * If there is no kind of request function for the pin we just assume
204 * This function returns a pointer to the previous owner. This is used
234 * If there is no kind of request function for the pin we just assume
322 const char *function)
328 /* See if this pctldev has this function */
332 if (!strcmp(function, fname))
352 dev_err(pctldev->dev, "does not support mux function\n");
356 ret = pinmux_func_name_to_selector(pctldev, map->data.mux.function);
358 dev_err(pctldev->dev, "invalid function %s in map table\n",
359 map->data.mux.function);
367 dev_err(pctldev->dev, "can't query groups for function %s\n",
368 map->data.mux.function);
373 "function %s can't be selected on any group\n",
374 map->data.mux.function);
382 "invalid group \"%s\" for function \"%s\"\n",
383 group, map->data.mux.function);
403 /* This function is currently unused */
563 seq_printf(s, "function %s: COULD NOT GET GROUPS\n",
569 seq_printf(s, "function %d: %s, groups = [ ", func_selector, func);
639 /* If mux: print function+group claiming the pin */
641 seq_printf(s, " function %s group %s\n",
660 map->data.mux.function);
670 seq_printf(s, "group: %s (%u) function: %s (%u)\n",
713 /* drop extra spaces between function and group names */
722 dev_err(pctldev->dev, "invalid function %s in map table\n", fname);
729 dev_err(pctldev->dev, "no groups for function %d (%s)", fsel, fname);
784 * pinmux_generic_get_function_name() - returns the function name
786 * @selector: function number
792 struct function_desc *function;
794 function = radix_tree_lookup(&pctldev->pin_function_tree,
796 if (!function)
799 return function->name;
804 * pinmux_generic_get_function_groups() - gets the function groups
806 * @selector: function number
815 struct function_desc *function;
817 function = radix_tree_lookup(&pctldev->pin_function_tree,
819 if (!function) {
820 dev_err(pctldev->dev, "%s could not find function%i\n",
824 *groups = function->group_names;
825 *num_groups = function->num_group_names;
832 * pinmux_generic_get_function() - returns a function based on the number
834 * @selector: function number
839 struct function_desc *function;
841 function = radix_tree_lookup(&pctldev->pin_function_tree,
843 if (!function)
846 return function;
851 * pinmux_generic_add_function() - adds a function group
853 * @name: name of the function
864 struct function_desc *function;
876 function = devm_kzalloc(pctldev->dev, sizeof(*function), GFP_KERNEL);
877 if (!function)
880 function->name = name;
881 function->group_names = groups;
882 function->num_group_names = num_groups;
883 function->data = data;
885 error = radix_tree_insert(&pctldev->pin_function_tree, selector, function);
896 * pinmux_generic_remove_function() - removes a numbered function
898 * @selector: function number
905 struct function_desc *function;
907 function = radix_tree_lookup(&pctldev->pin_function_tree,
909 if (!function)
913 devm_kfree(pctldev->dev, function);