Lines Matching refs:bus_width
172 void rk628_combtxphy_set_bus_width(struct rk628 *rk628, u32 bus_width) in rk628_combtxphy_set_bus_width() argument
174 rk628->combtxphy.bus_width = bus_width; in rk628_combtxphy_set_bus_width()
179 return rk628->combtxphy.bus_width; in rk628_combtxphy_get_bus_width()
195 int bus_width = rk628_combtxphy_get_bus_width(rk628); in rk628_combtxphy_set_mode() local
196 unsigned int fhsc = bus_width >> 8; in rk628_combtxphy_set_mode()
197 unsigned int flags = bus_width & 0xff; in rk628_combtxphy_set_mode()
227 combtxphy->bus_width = fhsc; in rk628_combtxphy_set_mode()
233 int bus_width = rk628_combtxphy_get_bus_width(rk628); in rk628_combtxphy_set_mode() local
234 unsigned int flags = bus_width & 0xff; in rk628_combtxphy_set_mode()
235 unsigned int rate = (bus_width >> 8) * 7; in rk628_combtxphy_set_mode()
253 unsigned int bus_width = rk628_combtxphy_get_bus_width(rk628); in rk628_combtxphy_set_mode() local
257 if (bus_width < 500000 || bus_width > 4000000) in rk628_combtxphy_set_mode()
259 else if (bus_width < 1000000) in rk628_combtxphy_set_mode()
261 else if (bus_width < 2000000) in rk628_combtxphy_set_mode()
265 fvco = bus_width * combtxphy->rate_div; in rk628_combtxphy_set_mode()
294 bus_width = ref_clk / combtxphy->ref_div * 8; in rk628_combtxphy_set_mode()
295 bus_width *= fb_div; in rk628_combtxphy_set_mode()
296 bus_width /= combtxphy->rate_div; in rk628_combtxphy_set_mode()
301 combtxphy->bus_width = bus_width; in rk628_combtxphy_set_mode()