Lines Matching refs:clkout

264 	struct lmk_clkout *clkout;  member
1163 struct lmk_clkout *clkout = container_of(hw, struct lmk_clkout, hw); in lmk04832_clkout_is_enabled() local
1164 struct lmk04832 *lmk = clkout->lmk; in lmk04832_clkout_is_enabled()
1172 ret = regmap_read(lmk->regmap, LMK04832_REG_CLKOUT_CTRL2(clkout->id), in lmk04832_clkout_is_enabled()
1179 ret = regmap_read(lmk->regmap, LMK04832_REG_CLKOUT_SRC_MUX(clkout->id), in lmk04832_clkout_is_enabled()
1186 LMK04832_REG_CLKOUT_CTRL4(clkout->id), in lmk04832_clkout_is_enabled()
1194 ret = regmap_read(lmk->regmap, LMK04832_REG_CLKOUT_FMT(clkout->id), in lmk04832_clkout_is_enabled()
1199 if (clkout->id % 2) in lmk04832_clkout_is_enabled()
1209 struct lmk_clkout *clkout = container_of(hw, struct lmk_clkout, hw); in lmk04832_clkout_prepare() local
1210 struct lmk04832 *lmk = clkout->lmk; in lmk04832_clkout_prepare()
1214 if (clkout->format == LMK04832_VAL_CLKOUT_FMT_POWERDOWN) in lmk04832_clkout_prepare()
1219 LMK04832_REG_CLKOUT_CTRL2(clkout->id), in lmk04832_clkout_prepare()
1224 ret = regmap_read(lmk->regmap, LMK04832_REG_CLKOUT_SRC_MUX(clkout->id), in lmk04832_clkout_prepare()
1231 LMK04832_REG_CLKOUT_CTRL4(clkout->id), in lmk04832_clkout_prepare()
1238 LMK04832_REG_CLKOUT_FMT(clkout->id), in lmk04832_clkout_prepare()
1239 LMK04832_BIT_CLKOUT_FMT(clkout->id), in lmk04832_clkout_prepare()
1240 clkout->format << 4 * (clkout->id % 2)); in lmk04832_clkout_prepare()
1245 struct lmk_clkout *clkout = container_of(hw, struct lmk_clkout, hw); in lmk04832_clkout_unprepare() local
1246 struct lmk04832 *lmk = clkout->lmk; in lmk04832_clkout_unprepare()
1248 regmap_update_bits(lmk->regmap, LMK04832_REG_CLKOUT_FMT(clkout->id), in lmk04832_clkout_unprepare()
1249 LMK04832_BIT_CLKOUT_FMT(clkout->id), in lmk04832_clkout_unprepare()
1255 struct lmk_clkout *clkout = container_of(hw, struct lmk_clkout, hw); in lmk04832_clkout_set_parent() local
1256 struct lmk04832 *lmk = clkout->lmk; in lmk04832_clkout_set_parent()
1259 LMK04832_REG_CLKOUT_SRC_MUX(clkout->id), in lmk04832_clkout_set_parent()
1267 struct lmk_clkout *clkout = container_of(hw, struct lmk_clkout, hw); in lmk04832_clkout_get_parent() local
1268 struct lmk04832 *lmk = clkout->lmk; in lmk04832_clkout_get_parent()
1272 ret = regmap_read(lmk->regmap, LMK04832_REG_CLKOUT_SRC_MUX(clkout->id), in lmk04832_clkout_get_parent()
1330 lmk->clkout[num].id = num; in lmk04832_register_clkout()
1331 lmk->clkout[num].lmk = lmk; in lmk04832_register_clkout()
1332 lmk->clkout[num].hw.init = &init; in lmk04832_register_clkout()
1333 lmk->clk_data->hws[num] = &lmk->clkout[num].hw; in lmk04832_register_clkout()
1340 lmk->clkout[num].sysref)); in lmk04832_register_clkout()
1342 return devm_clk_hw_register(lmk->dev, &lmk->clkout[num].hw); in lmk04832_register_clkout()
1415 lmk->clkout = devm_kcalloc(lmk->dev, info->num_channels, in lmk04832_probe()
1416 sizeof(*lmk->clkout), GFP_KERNEL); in lmk04832_probe()
1417 if (!lmk->clkout) { in lmk04832_probe()
1459 &lmk->clkout[reg].format); in lmk04832_probe()
1461 if (lmk->clkout[reg].format >= 0x0a && reg % 2 == 0 in lmk04832_probe()
1466 lmk->clkout[reg].sysref = in lmk04832_probe()