Lines Matching refs:desc
2685 const struct aspeed_sig_desc *desc = &expr->descs[i]; in aspeed_g5_sig_expr_eval() local
2688 map = aspeed_g5_acquire_regmap(ctx, desc->ip); in aspeed_g5_sig_expr_eval()
2692 desc->ip); in aspeed_g5_sig_expr_eval()
2696 ret = aspeed_sig_desc_eval(desc, enabled, ctx->maps[desc->ip]); in aspeed_g5_sig_expr_eval()
2725 const struct aspeed_sig_desc *desc = &expr->descs[i]; in aspeed_g5_sig_expr_set() local
2726 u32 pattern = enable ? desc->enable : desc->disable; in aspeed_g5_sig_expr_set()
2727 u32 val = (pattern << __ffs(desc->mask)); in aspeed_g5_sig_expr_set()
2730 map = aspeed_g5_acquire_regmap(ctx, desc->ip); in aspeed_g5_sig_expr_set()
2734 desc->ip); in aspeed_g5_sig_expr_set()
2757 if (desc->ip == ASPEED_IP_SCU && desc->reg == HW_STRAP1 && in aspeed_g5_sig_expr_set()
2758 !(desc->mask & (BIT(22) | BIT(21) | BIT(13) | BIT(12)))) in aspeed_g5_sig_expr_set()
2761 if (desc->ip == ASPEED_IP_SCU && desc->reg == HW_STRAP2) in aspeed_g5_sig_expr_set()
2765 if (desc->ip == ASPEED_IP_SCU && desc->reg == HW_STRAP1) { in aspeed_g5_sig_expr_set()
2766 u32 value = ~val & desc->mask; in aspeed_g5_sig_expr_set()
2769 ret = regmap_write(ctx->maps[desc->ip], in aspeed_g5_sig_expr_set()
2776 ret = regmap_update_bits(ctx->maps[desc->ip], desc->reg, in aspeed_g5_sig_expr_set()
2777 desc->mask, val); in aspeed_g5_sig_expr_set()