• Home
  • Raw
  • Download

Lines Matching refs:mode

49 	struct histb_combphy_mode mode;  member
73 static int is_mode_fixed(struct histb_combphy_mode *mode) in is_mode_fixed() argument
75 return (mode->fixed != PHY_NONE) ? true : false; in is_mode_fixed()
80 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_set_mode() local
84 if (is_mode_fixed(mode)) in histb_combphy_set_mode()
87 switch (mode->select) { in histb_combphy_set_mode()
101 return regmap_update_bits(syscon, mode->reg, mode->mask, in histb_combphy_set_mode()
102 hw_sel << mode->shift); in histb_combphy_set_mode()
168 struct histb_combphy_mode *mode = &priv->mode; in histb_combphy_xlate() local
175 mode->select = args->args[0]; in histb_combphy_xlate()
177 if (mode->select < PHY_TYPE_SATA || mode->select > PHY_TYPE_USB3) { in histb_combphy_xlate()
182 if (is_mode_fixed(mode) && mode->select != mode->fixed) { in histb_combphy_xlate()
184 mode->select, mode->fixed); in histb_combphy_xlate()
197 struct histb_combphy_mode *mode; in histb_combphy_probe() local
217 mode = &priv->mode; in histb_combphy_probe()
218 mode->fixed = PHY_NONE; in histb_combphy_probe()
220 ret = of_property_read_u32(np, "hisilicon,fixed-mode", &mode->fixed); in histb_combphy_probe()
222 dev_dbg(dev, "found fixed phy mode %d\n", mode->fixed); in histb_combphy_probe()
227 if (is_mode_fixed(mode)) { in histb_combphy_probe()
232 mode->reg = vals[0]; in histb_combphy_probe()
233 mode->shift = vals[1]; in histb_combphy_probe()
234 mode->mask = vals[2]; in histb_combphy_probe()
237 if (!is_mode_fixed(mode)) { in histb_combphy_probe()