Lines Matching refs:reg_width
139 u32 sh_pfc_read_raw_reg(void __iomem *mapped_reg, unsigned int reg_width) in sh_pfc_read_raw_reg() argument
141 switch (reg_width) { in sh_pfc_read_raw_reg()
154 void sh_pfc_write_raw_reg(void __iomem *mapped_reg, unsigned int reg_width, in sh_pfc_write_raw_reg() argument
157 switch (reg_width) { in sh_pfc_write_raw_reg()
211 *posp = crp->reg_width - ((in_pos + 1) * crp->field_width); in sh_pfc_config_reg_helper()
214 *posp = crp->reg_width; in sh_pfc_config_reg_helper()
232 crp->reg, value, field, crp->reg_width, hweight32(mask)); in sh_pfc_write_config_reg()
237 data = sh_pfc_read_raw_reg(mapped_reg, crp->reg_width); in sh_pfc_write_config_reg()
242 sh_pfc_write_raw_reg(mapped_reg, crp->reg_width, data); in sh_pfc_write_config_reg()
254 unsigned int r_width = config_reg->reg_width; in sh_pfc_get_config_reg()
884 GENMASK(cfg_reg->reg_width - 1, 0)); in sh_pfc_check_cfg_reg()
888 n = (cfg_reg->reg_width / fw) << fw; in sh_pfc_check_cfg_reg()
894 if ((r << fw) * sizeof(u16) > cfg_reg->reg_width / fw) in sh_pfc_check_cfg_reg()
914 if (rw != cfg_reg->reg_width) in sh_pfc_check_cfg_reg()
916 cfg_reg->reg, rw, cfg_reg->reg_width); in sh_pfc_check_cfg_reg()
1241 GENMASK(info->data_regs[i].reg_width - 1, 0)); in sh_pfc_check_info()
1244 info->data_regs[i].reg_width); in sh_pfc_check_info()