Lines Matching refs:desc
2655 const struct aspeed_sig_desc *desc = &expr->descs[i]; in aspeed_g6_sig_expr_set() local
2656 u32 pattern = enable ? desc->enable : desc->disable; in aspeed_g6_sig_expr_set()
2657 u32 val = (pattern << __ffs(desc->mask)); in aspeed_g6_sig_expr_set()
2660 if (!ctx->maps[desc->ip]) in aspeed_g6_sig_expr_set()
2663 WARN_ON(desc->ip != ASPEED_IP_SCU); in aspeed_g6_sig_expr_set()
2664 is_strap = desc->reg == SCU500 || desc->reg == SCU510; in aspeed_g6_sig_expr_set()
2677 u32 clear = ~val & desc->mask; in aspeed_g6_sig_expr_set()
2678 u32 w1c = desc->reg + 4; in aspeed_g6_sig_expr_set()
2681 ret = regmap_update_bits(ctx->maps[desc->ip], in aspeed_g6_sig_expr_set()
2682 w1c, desc->mask, in aspeed_g6_sig_expr_set()
2686 ret = regmap_update_bits(ctx->maps[desc->ip], desc->reg, in aspeed_g6_sig_expr_set()
2687 desc->mask, val); in aspeed_g6_sig_expr_set()