Lines Matching defs: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
206 * This function returns a pointer to the previous owner. This is used
236 * If there is no kind of request function for the pin we just assume
324 const char *function)
330 /* See if this pctldev has this function */
334 if (!strcmp(function, fname))
354 dev_err(pctldev->dev, "does not support mux function\n");
358 ret = pinmux_func_name_to_selector(pctldev, map->data.mux.function);
360 dev_err(pctldev->dev, "invalid function %s in map table\n",
361 map->data.mux.function);
369 dev_err(pctldev->dev, "can't query groups for function %s\n",
370 map->data.mux.function);
375 "function %s can't be selected on any group\n",
376 map->data.mux.function);
384 "invalid group \"%s\" for function \"%s\"\n",
385 group, map->data.mux.function);
405 /* This function is currently unused */
565 seq_printf(s, "function %s: COULD NOT GET GROUPS\n",
571 seq_printf(s, "function %d: %s, groups = [ ", func_selector, func);
640 /* If mux: print function+group claiming the pin */
642 seq_printf(s, " function %s group %s\n",
660 map->data.mux.function);
670 seq_printf(s, "group: %s (%u) function: %s (%u)\n",
711 /* drop extra spaces between function and group names */
720 dev_err(pctldev->dev, "invalid function %s in map table\n", fname);
727 dev_err(pctldev->dev, "no groups for function %d (%s)", fsel, fname);
794 * pinmux_generic_get_function_name() - returns the function name
796 * @selector: function number
802 struct function_desc *function;
804 function = radix_tree_lookup(&pctldev->pin_function_tree,
806 if (!function)
809 return function->name;
814 * pinmux_generic_get_function_groups() - gets the function groups
816 * @selector: function number
825 struct function_desc *function;
827 function = radix_tree_lookup(&pctldev->pin_function_tree,
829 if (!function) {
830 dev_err(pctldev->dev, "%s could not find function%i\n",
834 *groups = function->group_names;
835 *num_groups = function->num_group_names;
842 * pinmux_generic_get_function() - returns a function based on the number
844 * @selector: function number
849 struct function_desc *function;
851 function = radix_tree_lookup(&pctldev->pin_function_tree,
853 if (!function)
856 return function;
861 * pinmux_generic_add_function() - adds a function group
863 * @name: name of the function
874 struct function_desc *function;
886 function = devm_kzalloc(pctldev->dev, sizeof(*function), GFP_KERNEL);
887 if (!function)
890 function->name = name;
891 function->group_names = groups;
892 function->num_group_names = num_groups;
893 function->data = data;
895 error = radix_tree_insert(&pctldev->pin_function_tree, selector, function);
906 * pinmux_generic_remove_function() - removes a numbered function
908 * @selector: function number
915 struct function_desc *function;
917 function = radix_tree_lookup(&pctldev->pin_function_tree,
919 if (!function)
923 devm_kfree(pctldev->dev, function);