Lines Matching refs:mr
204 u32 mr; in mchp_spdiftx_is_running() local
206 regmap_read(dev->regmap, SPDIFTX_MR, &mr); in mchp_spdiftx_is_running()
207 return !!(mr & SPDIFTX_MR_TXEN_ENABLE); in mchp_spdiftx_is_running()
310 u32 mr; in mchp_spdiftx_trigger() local
316 regmap_read(dev->regmap, SPDIFTX_MR, &mr); in mchp_spdiftx_trigger()
317 running = !!(mr & SPDIFTX_MR_TXEN_ENABLE); in mchp_spdiftx_trigger()
324 mr &= ~SPDIFTX_MR_TXEN_MASK; in mchp_spdiftx_trigger()
325 mr |= SPDIFTX_MR_TXEN_ENABLE; in mchp_spdiftx_trigger()
332 mr &= ~SPDIFTX_MR_TXEN_MASK; in mchp_spdiftx_trigger()
333 mr |= SPDIFTX_MR_TXEN_DISABLE; in mchp_spdiftx_trigger()
341 ret = regmap_write(dev->regmap, SPDIFTX_MR, mr); in mchp_spdiftx_trigger()
356 u32 mr; in mchp_spdiftx_hw_params() local
369 regmap_read(dev->regmap, SPDIFTX_MR, &mr); in mchp_spdiftx_hw_params()
371 if (mr & SPDIFTX_MR_TXEN_ENABLE) { in mchp_spdiftx_hw_params()
377 mr = SPDIFTX_MR_CMODE_TOGGLE_ACCESS | SPDIFTX_MR_JUSTIFY_LSB; in mchp_spdiftx_hw_params()
381 mr |= SPDIFTX_MR_MULTICH_MONO; in mchp_spdiftx_hw_params()
384 mr |= SPDIFTX_MR_MULTICH_DUAL; in mchp_spdiftx_hw_params()
393 mr |= SPDIFTX_MR_CHUNK(dev->playback.maxburst); in mchp_spdiftx_hw_params()
397 mr |= SPDIFTX_MR_VBPS(8); in mchp_spdiftx_hw_params()
400 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
403 mr |= SPDIFTX_MR_VBPS(16); in mchp_spdiftx_hw_params()
406 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
409 mr |= SPDIFTX_MR_VBPS(18); in mchp_spdiftx_hw_params()
412 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
415 mr |= SPDIFTX_MR_VBPS(20); in mchp_spdiftx_hw_params()
418 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
421 mr |= SPDIFTX_MR_VBPS(24); in mchp_spdiftx_hw_params()
424 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
427 mr |= SPDIFTX_MR_VBPS(24); in mchp_spdiftx_hw_params()
430 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
433 mr |= SPDIFTX_MR_VBPS(32); in mchp_spdiftx_hw_params()
441 mr |= SPDIFTX_MR_BPS(bps); in mchp_spdiftx_hw_params()
513 regmap_write(dev->regmap, SPDIFTX_MR, mr); in mchp_spdiftx_hw_params()