Lines Matching defs:function
42 * struct pcs_func_vals - mux function register offset and value pair
81 * struct pcs_function - pinctrl function
82 * @name: pinctrl function name
85 * @pgnames: array of pingroup names the function uses
86 * @npgnames: number of pingroup names the function uses
103 * struct pcs_gpiofunc_range - pin ranges with same mux value of gpio function
105 * @npins: number pins with the same mux value of gpio function
106 * @gpiofunc: mux value of gpio function
136 * @rearm: optional SoC specific wake-up rearm function
161 * @fmask: function register mask
162 * @fshift: function register shift
173 * @read: register read function to use
174 * @write: register write function to use
344 struct function_desc *function;
352 function = pinmux_generic_get_function(pctldev, fselector);
353 *func = function->data;
355 dev_err(pcs->dev, "%s could not find function%i\n",
366 struct function_desc *function;
371 /* If function mask is null, needn't enable it. */
374 function = pinmux_generic_get_function(pctldev, fselector);
375 if (!function)
377 func = function->data;
381 dev_dbg(pcs->dev, "enabling %s function%i\n",
415 /* If function mask is null, return directly. */
765 * pcs_add_function() - adds a new function to the function list
767 * @fcn: new function allocated
768 * @name: name of the function
769 * @vals: array of mux register value pairs used by the function
771 * @pgnames: array of pingroup names for the function
784 struct pcs_function *function;
787 function = devm_kzalloc(pcs->dev, sizeof(*function), GFP_KERNEL);
788 if (!function)
791 function->vals = vals;
792 function->nvals = nvals;
796 function);
798 devm_kfree(pcs->dev, function);
801 *fcn = function;
987 * Also note that this driver tries to avoid understanding pin and function
991 * decipher the pin and function names using debugfs.
1005 struct pcs_function *function = NULL;
1063 fsel = pcs_add_function(pcs, &function, np->name, vals, found,
1078 (*map)->data.mux.function = np->name;
1080 if (PCS_HAS_PINCONF && function) {
1081 res = pcs_parse_pinconf(pcs, np, function, map);
1120 struct pcs_function *function = NULL;
1208 fsel = pcs_add_function(pcs, &function, np->name, vals, found,
1223 (*map)->data.mux.function = np->name;
1618 * interrupt per function if needed.
1815 ret = of_property_read_u32(np, "pinctrl-single,function-mask",
1821 /* If mask property doesn't exist, function mux is invalid. */
1827 ret = of_property_read_u32(np, "pinctrl-single,function-off",