Lines Matching refs:expr
76 const struct aspeed_sig_expr *expr) in aspeed_sig_expr_enable() argument
80 pr_debug("Enabling signal %s for %s\n", expr->signal, in aspeed_sig_expr_enable()
81 expr->function); in aspeed_sig_expr_enable()
83 ret = aspeed_sig_expr_eval(ctx, expr, true); in aspeed_sig_expr_enable()
88 return aspeed_sig_expr_set(ctx, expr, true); in aspeed_sig_expr_enable()
94 const struct aspeed_sig_expr *expr) in aspeed_sig_expr_disable() argument
98 pr_debug("Disabling signal %s for %s\n", expr->signal, in aspeed_sig_expr_disable()
99 expr->function); in aspeed_sig_expr_disable()
101 ret = aspeed_sig_expr_eval(ctx, expr, true); in aspeed_sig_expr_disable()
106 return aspeed_sig_expr_set(ctx, expr, false); in aspeed_sig_expr_disable()
165 const struct aspeed_sig_expr ***prios, **funcs, *expr; in get_defined_attribute() local
170 while ((expr = *funcs)) { in get_defined_attribute()
171 const char *str = get(expr); in get_defined_attribute()
203 static const char *aspeed_sig_expr_function(const struct aspeed_sig_expr *expr) in aspeed_sig_expr_function() argument
205 return expr->function; in aspeed_sig_expr_function()
213 static const char *aspeed_sig_expr_signal(const struct aspeed_sig_expr *expr) in aspeed_sig_expr_signal() argument
215 return expr->signal; in aspeed_sig_expr_signal()
236 const struct aspeed_sig_expr *expr = NULL; in aspeed_pinmux_set_mux() local
252 expr = aspeed_find_expr_by_name(funcs, pfunc->name); in aspeed_pinmux_set_mux()
254 if (expr) in aspeed_pinmux_set_mux()
264 if (!expr) { in aspeed_pinmux_set_mux()
277 ret = aspeed_sig_expr_enable(&pdata->pinmux, expr); in aspeed_pinmux_set_mux()
281 pr_debug("Muxed pin %s as %s for %s\n", pdesc->name, expr->signal, in aspeed_pinmux_set_mux()
282 expr->function); in aspeed_pinmux_set_mux()
288 static bool aspeed_expr_is_gpio(const struct aspeed_sig_expr *expr) in aspeed_expr_is_gpio() argument
359 return !strncmp(expr->signal, "GPI", 3) && in aspeed_expr_is_gpio()
360 !strcmp(expr->signal, expr->function); in aspeed_expr_is_gpio()
384 const struct aspeed_sig_expr ***prios, **funcs, *expr; in aspeed_gpio_request_enable() local
418 expr = *funcs; in aspeed_gpio_request_enable()
425 if (!expr) { in aspeed_gpio_request_enable()
434 ret = aspeed_sig_expr_enable(&pdata->pinmux, expr); in aspeed_gpio_request_enable()
438 pr_debug("Muxed pin %s as %s\n", pdesc->name, expr->signal); in aspeed_gpio_request_enable()