Lines Matching refs:desc
15 const struct aspeed_sig_desc *desc, bool enable, u32 rv) in aspeed_sig_desc_print_val() argument
18 aspeed_pinmux_ips[desc->ip], desc->reg, in aspeed_sig_desc_print_val()
19 desc->mask, enable ? desc->enable : desc->disable, in aspeed_sig_desc_print_val()
20 (rv & desc->mask) >> __ffs(desc->mask), rv); in aspeed_sig_desc_print_val()
41 int aspeed_sig_desc_eval(const struct aspeed_sig_desc *desc, in aspeed_sig_desc_eval() argument
51 ret = regmap_read(map, desc->reg, &raw); in aspeed_sig_desc_eval()
55 aspeed_sig_desc_print_val(desc, enabled, raw); in aspeed_sig_desc_eval()
56 want = enabled ? desc->enable : desc->disable; in aspeed_sig_desc_eval()
58 return ((raw & desc->mask) >> __ffs(desc->mask)) == want; in aspeed_sig_desc_eval()
93 const struct aspeed_sig_desc *desc = &expr->descs[i]; in aspeed_sig_expr_eval() local
95 ret = aspeed_sig_desc_eval(desc, enabled, ctx->maps[desc->ip]); in aspeed_sig_expr_eval()