Lines Matching refs:function

52 			dev_err(pctldev->dev, "pinmux ops has no name for function%u\n",
64 if (!map->data.mux.function) {
65 pr_err("failed to register map %s (%d): no function given\n",
75 * is either muxed to a different function or used as gpio.
103 * name that controls its mux function, or the requested GPIO name
161 * If there is no kind of request function for the pin we just assume
202 * This function returns a pointer to the previous owner. This is used
232 * If there is no kind of request function for the pin we just assume
320 const char *function)
326 /* See if this pctldev has this function */
330 if (!strcmp(function, fname))
350 dev_err(pctldev->dev, "does not support mux function\n");
354 ret = pinmux_func_name_to_selector(pctldev, map->data.mux.function);
356 dev_err(pctldev->dev, "invalid function %s in map table\n",
357 map->data.mux.function);
365 dev_err(pctldev->dev, "can't query groups for function %s\n",
366 map->data.mux.function);
371 "function %s can't be selected on any group\n",
372 map->data.mux.function);
380 "invalid group \"%s\" for function \"%s\"\n",
381 group, map->data.mux.function);
401 /* This function is currently unused */
561 seq_printf(s, "function %s: COULD NOT GET GROUPS\n",
567 seq_printf(s, "function: %s, groups = [ ", func);
636 /* If mux: print function+group claiming the pin */
638 seq_printf(s, " function %s group %s\n",
656 map->data.mux.function);
666 seq_printf(s, "group: %s (%u) function: %s (%u)\n",
700 * pinmux_generic_get_function_name() - returns the function name
702 * @selector: function number
708 struct function_desc *function;
710 function = radix_tree_lookup(&pctldev->pin_function_tree,
712 if (!function)
715 return function->name;
720 * pinmux_generic_get_function_groups() - gets the function groups
722 * @selector: function number
731 struct function_desc *function;
733 function = radix_tree_lookup(&pctldev->pin_function_tree,
735 if (!function) {
736 dev_err(pctldev->dev, "%s could not find function%i\n",
740 *groups = function->group_names;
741 *num_groups = function->num_group_names;
748 * pinmux_generic_get_function() - returns a function based on the number
750 * @selector: function number
755 struct function_desc *function;
757 function = radix_tree_lookup(&pctldev->pin_function_tree,
759 if (!function)
762 return function;
767 * pinmux_generic_add_function() - adds a function group
769 * @name: name of the function
780 struct function_desc *function;
792 function = devm_kzalloc(pctldev->dev, sizeof(*function), GFP_KERNEL);
793 if (!function)
796 function->name = name;
797 function->group_names = groups;
798 function->num_group_names = num_groups;
799 function->data = data;
801 radix_tree_insert(&pctldev->pin_function_tree, selector, function);
810 * pinmux_generic_remove_function() - removes a numbered function
812 * @selector: function number
819 struct function_desc *function;
821 function = radix_tree_lookup(&pctldev->pin_function_tree,
823 if (!function)
827 devm_kfree(pctldev->dev, function);