Lines Matching refs:regmap
22 struct regmap *regs;
36 static int __serdes_write_mcb_s6g(struct regmap *regmap, u8 macro, u32 op) in __serdes_write_mcb_s6g() argument
40 regmap_write(regmap, HSIO_MCB_S6G_ADDR_CFG, op | in __serdes_write_mcb_s6g()
43 return regmap_read_poll_timeout(regmap, HSIO_MCB_S6G_ADDR_CFG, regval, in __serdes_write_mcb_s6g()
48 static int serdes_commit_mcb_s6g(struct regmap *regmap, u8 macro) in serdes_commit_mcb_s6g() argument
50 return __serdes_write_mcb_s6g(regmap, macro, in serdes_commit_mcb_s6g()
54 static int serdes_update_mcb_s6g(struct regmap *regmap, u8 macro) in serdes_update_mcb_s6g() argument
56 return __serdes_write_mcb_s6g(regmap, macro, in serdes_update_mcb_s6g()
60 static int serdes_init_s6g(struct regmap *regmap, u8 serdes, int mode) in serdes_init_s6g() argument
89 ret = serdes_update_mcb_s6g(regmap, serdes); in serdes_init_s6g()
95 regmap_update_bits(regmap, HSIO_S6G_COMMON_CFG, in serdes_init_s6g()
98 regmap_update_bits(regmap, HSIO_S6G_PLL_CFG, in serdes_init_s6g()
101 regmap_update_bits(regmap, HSIO_S6G_IB_CFG, in serdes_init_s6g()
114 regmap_update_bits(regmap, HSIO_S6G_IB_CFG1, in serdes_init_s6g()
128 regmap_update_bits(regmap, HSIO_S6G_IB_CFG2, in serdes_init_s6g()
132 regmap_update_bits(regmap, HSIO_S6G_IB_CFG3, in serdes_init_s6g()
142 regmap_update_bits(regmap, HSIO_S6G_MISC_CFG, in serdes_init_s6g()
146 ret = serdes_commit_mcb_s6g(regmap, serdes); in serdes_init_s6g()
151 regmap_update_bits(regmap, HSIO_S6G_OB_CFG, in serdes_init_s6g()
160 regmap_update_bits(regmap, HSIO_S6G_OB_CFG1, in serdes_init_s6g()
166 regmap_update_bits(regmap, HSIO_S6G_DES_CFG, in serdes_init_s6g()
174 regmap_update_bits(regmap, HSIO_S6G_IB_CFG, in serdes_init_s6g()
180 regmap_update_bits(regmap, HSIO_S6G_IB_CFG1, in serdes_init_s6g()
184 regmap_update_bits(regmap, HSIO_S6G_SER_CFG, in serdes_init_s6g()
189 regmap_update_bits(regmap, HSIO_S6G_PLL_CFG, in serdes_init_s6g()
198 regmap_update_bits(regmap, HSIO_S6G_COMMON_CFG, in serdes_init_s6g()
213 regmap_update_bits(regmap, HSIO_S6G_MISC_CFG, in serdes_init_s6g()
222 ret = serdes_commit_mcb_s6g(regmap, serdes); in serdes_init_s6g()
226 regmap_update_bits(regmap, HSIO_S6G_PLL_CFG, in serdes_init_s6g()
230 ret = serdes_commit_mcb_s6g(regmap, serdes); in serdes_init_s6g()
237 regmap_update_bits(regmap, HSIO_S6G_IB_CFG, in serdes_init_s6g()
241 regmap_update_bits(regmap, HSIO_S6G_MISC_CFG, in serdes_init_s6g()
244 ret = serdes_commit_mcb_s6g(regmap, serdes); in serdes_init_s6g()
251 regmap_update_bits(regmap, HSIO_S6G_IB_CFG, in serdes_init_s6g()
257 regmap_update_bits(regmap, HSIO_S6G_IB_CFG1, in serdes_init_s6g()
268 static int __serdes_write_mcb_s1g(struct regmap *regmap, u8 macro, u32 op) in __serdes_write_mcb_s1g() argument
272 regmap_write(regmap, HSIO_MCB_S1G_ADDR_CFG, op | in __serdes_write_mcb_s1g()
275 return regmap_read_poll_timeout(regmap, HSIO_MCB_S1G_ADDR_CFG, regval, in __serdes_write_mcb_s1g()
280 static int serdes_commit_mcb_s1g(struct regmap *regmap, u8 macro) in serdes_commit_mcb_s1g() argument
282 return __serdes_write_mcb_s1g(regmap, macro, in serdes_commit_mcb_s1g()
286 static int serdes_update_mcb_s1g(struct regmap *regmap, u8 macro) in serdes_update_mcb_s1g() argument
288 return __serdes_write_mcb_s1g(regmap, macro, in serdes_update_mcb_s1g()
292 static int serdes_init_s1g(struct regmap *regmap, u8 serdes) in serdes_init_s1g() argument
296 ret = serdes_update_mcb_s1g(regmap, serdes); in serdes_init_s1g()
300 regmap_update_bits(regmap, HSIO_S1G_COMMON_CFG, in serdes_init_s1g()
307 regmap_update_bits(regmap, HSIO_S1G_PLL_CFG, in serdes_init_s1g()
313 regmap_update_bits(regmap, HSIO_S1G_MISC_CFG, in serdes_init_s1g()
318 ret = serdes_commit_mcb_s1g(regmap, serdes); in serdes_init_s1g()
322 regmap_update_bits(regmap, HSIO_S1G_COMMON_CFG, in serdes_init_s1g()
326 regmap_update_bits(regmap, HSIO_S1G_MISC_CFG, in serdes_init_s1g()
329 ret = serdes_commit_mcb_s1g(regmap, serdes); in serdes_init_s1g()