Lines Matching refs:reg_desc
24 u32 tmp32 = reg_csdev->reg_desc.val32; in cscfg_set_reg()
26 if (reg_csdev->reg_desc.type & CS_CFG_REG_TYPE_VAL_64BIT) { in cscfg_set_reg()
27 *((u64 *)reg_csdev->driver_regval) = reg_csdev->reg_desc.val64; in cscfg_set_reg()
31 if (reg_csdev->reg_desc.type & CS_CFG_REG_TYPE_VAL_MASK) { in cscfg_set_reg()
33 tmp32 &= ~reg_csdev->reg_desc.mask32; in cscfg_set_reg()
34 tmp32 |= reg_csdev->reg_desc.val32 & reg_csdev->reg_desc.mask32; in cscfg_set_reg()
44 if (!(reg_csdev->reg_desc.type & CS_CFG_REG_TYPE_VAL_SAVE)) in cscfg_save_reg()
46 if (reg_csdev->reg_desc.type & CS_CFG_REG_TYPE_VAL_64BIT) in cscfg_save_reg()
47 reg_csdev->reg_desc.val64 = *(u64 *)(reg_csdev->driver_regval); in cscfg_save_reg()
49 reg_csdev->reg_desc.val32 = *(u32 *)(reg_csdev->driver_regval); in cscfg_save_reg()
57 struct cscfg_regval_desc *reg_desc, in cscfg_init_reg_param() argument
63 param_csdev = &feat_csdev->params_csdev[reg_desc->param_idx]; in cscfg_init_reg_param()
65 param_csdev->val64 = reg_csdev->reg_desc.type & CS_CFG_REG_TYPE_VAL_64BIT; in cscfg_init_reg_param()
68 reg_csdev->reg_desc.val64 = param_csdev->current_value; in cscfg_init_reg_param()
70 reg_csdev->reg_desc.val32 = (u32)param_csdev->current_value; in cscfg_init_reg_param()
105 struct cscfg_regval_desc *reg_desc; in cscfg_reset_feat() local
118 reg_desc = &feat_csdev->feat_desc->regs_desc[i]; in cscfg_reset_feat()
120 reg_csdev->reg_desc.type = reg_desc->type; in cscfg_reset_feat()
123 if (reg_desc->type & CS_CFG_REG_TYPE_VAL_PARAM) in cscfg_reset_feat()
124 cscfg_init_reg_param(feat_csdev, reg_desc, reg_csdev); in cscfg_reset_feat()
130 reg_csdev->reg_desc.val64 = reg_desc->val64; in cscfg_reset_feat()
172 param_csdev->reg_csdev->reg_desc.val64 = val; in cscfg_update_presets()
174 param_csdev->reg_csdev->reg_desc.val32 = (u32)val; in cscfg_update_presets()
211 param_csdev->reg_csdev->reg_desc.val64 = val; in cscfg_update_curr_params()
213 param_csdev->reg_csdev->reg_desc.val32 = (u32)val; in cscfg_update_curr_params()