Lines Matching refs:reg_csdev

21 static void cscfg_set_reg(struct cscfg_regval_csdev *reg_csdev)  in cscfg_set_reg()  argument
23 u32 *p_val32 = (u32 *)reg_csdev->driver_regval; in cscfg_set_reg()
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()
42 static void cscfg_save_reg(struct cscfg_regval_csdev *reg_csdev) in cscfg_save_reg() argument
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()
58 struct cscfg_regval_csdev *reg_csdev) in cscfg_init_reg_param() argument
64 param_csdev->reg_csdev = reg_csdev; 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()
106 struct cscfg_regval_csdev *reg_csdev; in cscfg_reset_feat() local
119 reg_csdev = &feat_csdev->regs_csdev[i]; in cscfg_reset_feat()
120 reg_csdev->reg_desc.type = reg_desc->type; 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()