Lines Matching refs:expr
75 const struct aspeed_sig_expr *expr) in aspeed_sig_expr_enable() argument
79 pr_debug("Enabling signal %s for %s\n", expr->signal, in aspeed_sig_expr_enable()
80 expr->function); in aspeed_sig_expr_enable()
82 ret = aspeed_sig_expr_eval(ctx, expr, true); in aspeed_sig_expr_enable()
87 return aspeed_sig_expr_set(ctx, expr, true); in aspeed_sig_expr_enable()
93 const struct aspeed_sig_expr *expr) in aspeed_sig_expr_disable() argument
97 pr_debug("Disabling signal %s for %s\n", expr->signal, in aspeed_sig_expr_disable()
98 expr->function); in aspeed_sig_expr_disable()
100 ret = aspeed_sig_expr_eval(ctx, expr, true); in aspeed_sig_expr_disable()
105 return aspeed_sig_expr_set(ctx, expr, false); in aspeed_sig_expr_disable()
164 const struct aspeed_sig_expr ***prios, **funcs, *expr; in get_defined_attribute() local
169 while ((expr = *funcs)) { in get_defined_attribute()
170 const char *str = get(expr); in get_defined_attribute()
202 static const char *aspeed_sig_expr_function(const struct aspeed_sig_expr *expr) in aspeed_sig_expr_function() argument
204 return expr->function; in aspeed_sig_expr_function()
212 static const char *aspeed_sig_expr_signal(const struct aspeed_sig_expr *expr) in aspeed_sig_expr_signal() argument
214 return expr->signal; in aspeed_sig_expr_signal()
235 const struct aspeed_sig_expr *expr = NULL; in aspeed_pinmux_set_mux() local
251 expr = aspeed_find_expr_by_name(funcs, pfunc->name); in aspeed_pinmux_set_mux()
253 if (expr) in aspeed_pinmux_set_mux()
263 if (!expr) { in aspeed_pinmux_set_mux()
276 ret = aspeed_sig_expr_enable(&pdata->pinmux, expr); in aspeed_pinmux_set_mux()
280 pr_debug("Muxed pin %s as %s for %s\n", pdesc->name, expr->signal, in aspeed_pinmux_set_mux()
281 expr->function); in aspeed_pinmux_set_mux()
287 static bool aspeed_expr_is_gpio(const struct aspeed_sig_expr *expr) in aspeed_expr_is_gpio() argument
358 return !strncmp(expr->signal, "GPI", 3) && in aspeed_expr_is_gpio()
359 !strcmp(expr->signal, expr->function); in aspeed_expr_is_gpio()
383 const struct aspeed_sig_expr ***prios, **funcs, *expr; in aspeed_gpio_request_enable() local
417 expr = *funcs; in aspeed_gpio_request_enable()
424 if (!expr) { in aspeed_gpio_request_enable()
433 ret = aspeed_sig_expr_enable(&pdata->pinmux, expr); in aspeed_gpio_request_enable()
437 pr_debug("Muxed pin %s as %s\n", pdesc->name, expr->signal); in aspeed_gpio_request_enable()