Lines Matching refs:mr

203 	u32 mr;  in mchp_spdiftx_is_running()  local
205 regmap_read(dev->regmap, SPDIFTX_MR, &mr); in mchp_spdiftx_is_running()
206 return !!(mr & SPDIFTX_MR_TXEN_ENABLE); in mchp_spdiftx_is_running()
352 u32 mr; in mchp_spdiftx_hw_params() local
366 regmap_read(dev->regmap, SPDIFTX_MR, &mr); in mchp_spdiftx_hw_params()
368 if (mr & SPDIFTX_MR_TXEN_ENABLE) { in mchp_spdiftx_hw_params()
374 mr = SPDIFTX_MR_CMODE_TOGGLE_ACCESS | SPDIFTX_MR_JUSTIFY_LSB; in mchp_spdiftx_hw_params()
378 mr |= SPDIFTX_MR_MULTICH_MONO; in mchp_spdiftx_hw_params()
381 mr |= SPDIFTX_MR_MULTICH_DUAL; in mchp_spdiftx_hw_params()
390 mr |= FIELD_PREP(SPDIFTX_MR_CHUNK_MASK, dev->playback.maxburst); in mchp_spdiftx_hw_params()
394 mr |= FIELD_PREP(SPDIFTX_MR_VBPS_MASK, 8); in mchp_spdiftx_hw_params()
397 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
400 mr |= FIELD_PREP(SPDIFTX_MR_VBPS_MASK, 16); in mchp_spdiftx_hw_params()
403 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
406 mr |= FIELD_PREP(SPDIFTX_MR_VBPS_MASK, 18); in mchp_spdiftx_hw_params()
409 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
412 mr |= FIELD_PREP(SPDIFTX_MR_VBPS_MASK, 20); in mchp_spdiftx_hw_params()
415 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
418 mr |= FIELD_PREP(SPDIFTX_MR_VBPS_MASK, 24); in mchp_spdiftx_hw_params()
421 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
424 mr |= FIELD_PREP(SPDIFTX_MR_VBPS_MASK, 24); in mchp_spdiftx_hw_params()
427 mr |= SPDIFTX_MR_ENDIAN_BIG; in mchp_spdiftx_hw_params()
430 mr |= FIELD_PREP(SPDIFTX_MR_VBPS_MASK, 32); in mchp_spdiftx_hw_params()
438 mr |= FIELD_PREP(SPDIFTX_MR_BPS_MASK, bps - 1); in mchp_spdiftx_hw_params()
505 regmap_write(dev->regmap, SPDIFTX_MR, mr); in mchp_spdiftx_hw_params()