Lines Matching refs:cfg_reg
872 const struct pinmux_cfg_reg *cfg_reg) in sh_pfc_check_cfg_reg() argument
877 sh_pfc_check_reg(drvname, cfg_reg->reg, in sh_pfc_check_cfg_reg()
878 GENMASK(cfg_reg->reg_width - 1, 0)); in sh_pfc_check_cfg_reg()
880 if (cfg_reg->field_width) { in sh_pfc_check_cfg_reg()
881 fw = cfg_reg->field_width; in sh_pfc_check_cfg_reg()
882 n = (cfg_reg->reg_width / fw) << fw; in sh_pfc_check_cfg_reg()
884 if (is0s(&cfg_reg->enum_ids[i], 1 << fw)) in sh_pfc_check_cfg_reg()
888 if ((r << fw) * sizeof(u16) > cfg_reg->reg_width / fw) in sh_pfc_check_cfg_reg()
890 cfg_reg->reg); in sh_pfc_check_cfg_reg()
896 for (i = 0, n = 0, rw = 0; (fw = cfg_reg->var_field_width[i]); i++) { in sh_pfc_check_cfg_reg()
900 if (is0s(&cfg_reg->enum_ids[n], 1 << fw)) in sh_pfc_check_cfg_reg()
902 cfg_reg->reg, rw, rw + fw - 1); in sh_pfc_check_cfg_reg()
908 if (rw != cfg_reg->reg_width) in sh_pfc_check_cfg_reg()
910 cfg_reg->reg, rw, cfg_reg->reg_width); in sh_pfc_check_cfg_reg()
912 if (n != cfg_reg->nr_enum_ids) { in sh_pfc_check_cfg_reg()
914 cfg_reg->reg, cfg_reg->nr_enum_ids, n); in sh_pfc_check_cfg_reg()
915 n = cfg_reg->nr_enum_ids; in sh_pfc_check_cfg_reg()
919 sh_pfc_check_reg_enums(drvname, cfg_reg->reg, cfg_reg->enum_ids, n); in sh_pfc_check_cfg_reg()