Lines Matching refs:mode
78 unsigned int stat, mode, rate = 0; in axg_spdifin_get_rate() local
81 mode = FIELD_GET(SPDIFIN_STAT0_MODE, stat); in axg_spdifin_get_rate()
89 mode < SPDIFIN_MODE_NUM) in axg_spdifin_get_rate()
90 rate = priv->conf->mode_rates[mode]; in axg_spdifin_get_rate()
115 static void axg_spdifin_write_mode_param(struct regmap *map, int mode, in axg_spdifin_write_mode_param() argument
121 uint64_t offset = mode; in axg_spdifin_write_mode_param()
133 static void axg_spdifin_write_timer(struct regmap *map, int mode, in axg_spdifin_write_timer() argument
136 axg_spdifin_write_mode_param(map, mode, val, SPDIFIN_TIMER_PER_REG, in axg_spdifin_write_timer()
140 static void axg_spdifin_write_threshold(struct regmap *map, int mode, in axg_spdifin_write_threshold() argument
143 axg_spdifin_write_mode_param(map, mode, val, SPDIFIN_THRES_PER_REG, in axg_spdifin_write_threshold()
148 int mode, in axg_spdifin_mode_timer() argument
155 return rate / (128 * priv->conf->mode_rates[mode]); in axg_spdifin_mode_timer()