Lines Matching defs:ch
69 #define CH_SIZE_ERR(ch) ((ch < 0) || (ch >= CH_MAX))
234 int ch, u32 rate_in, u32 rate_out)
240 if (CH_SIZE_ERR(ch))
246 Ratio_Add(ch, i),
255 static u32 cs2000_ratio_get(struct cs2000_priv *priv, int ch)
263 ret = regmap_read(priv->regmap, Ratio_Add(ch, i), &tmp);
273 static int cs2000_ratio_select(struct cs2000_priv *priv, int ch)
278 if (CH_SIZE_ERR(ch))
281 ret = regmap_update_bits(priv->regmap, DEVICE_CFG1, RSEL_MASK, RSEL(ch));
289 LOCKCLK(ch) | fracnsrc);
300 int ch = 0; /* it uses ch0 only at this point */
303 ratio = cs2000_ratio_get(priv, ch);
340 static int __cs2000_set_rate(struct cs2000_priv *priv, int ch,
354 ret = cs2000_ratio_set(priv, ch, parent_rate, rate);
358 ret = cs2000_ratio_select(priv, ch);
376 int ch = 0; /* it uses ch0 only at this point */
378 return __cs2000_set_rate(priv, ch, rate, parent_rate);
383 int ch = 0; /* it uses ch0 only at this point */
385 return __cs2000_set_rate(priv, ch,
469 int ch = 0; /* it uses ch0 only at this point */
500 ret = __cs2000_set_rate(priv, ch, ref_clk_rate, ref_clk_rate);