Lines Matching refs:SSC_BF
563 rcmr = SSC_BF(RCMR_STTDLY, 0); in atmel_ssc_hw_params()
564 tcmr = SSC_BF(TCMR_STTDLY, 0); in atmel_ssc_hw_params()
572 rcmr = SSC_BF(RCMR_STTDLY, 1); in atmel_ssc_hw_params()
573 tcmr = SSC_BF(TCMR_STTDLY, 1); in atmel_ssc_hw_params()
589 rcmr = SSC_BF(RCMR_STTDLY, 1); in atmel_ssc_hw_params()
590 tcmr = SSC_BF(TCMR_STTDLY, 1); in atmel_ssc_hw_params()
606 rcmr |= SSC_BF(RCMR_START, fs_edge); in atmel_ssc_hw_params()
607 tcmr |= SSC_BF(TCMR_START, fs_edge); in atmel_ssc_hw_params()
617 rcmr |= SSC_BF(RCMR_CKS, SSC_CKS_DIV) in atmel_ssc_hw_params()
618 | SSC_BF(RCMR_CKO, SSC_CKO_NONE); in atmel_ssc_hw_params()
620 tcmr |= SSC_BF(TCMR_CKS, SSC_CKS_DIV) in atmel_ssc_hw_params()
621 | SSC_BF(TCMR_CKO, SSC_CKO_CONTINUOUS); in atmel_ssc_hw_params()
623 rcmr |= SSC_BF(RCMR_CKS, ssc->clk_from_rk_pin ? in atmel_ssc_hw_params()
625 | SSC_BF(RCMR_CKO, SSC_CKO_NONE); in atmel_ssc_hw_params()
627 tcmr |= SSC_BF(TCMR_CKS, ssc->clk_from_rk_pin ? in atmel_ssc_hw_params()
629 | SSC_BF(TCMR_CKO, SSC_CKO_NONE); in atmel_ssc_hw_params()
632 rcmr |= SSC_BF(RCMR_PERIOD, rcmr_period) in atmel_ssc_hw_params()
633 | SSC_BF(RCMR_CKI, SSC_CKI_RISING); in atmel_ssc_hw_params()
635 tcmr |= SSC_BF(TCMR_PERIOD, tcmr_period) in atmel_ssc_hw_params()
636 | SSC_BF(TCMR_CKI, SSC_CKI_FALLING); in atmel_ssc_hw_params()
638 rfmr = SSC_BF(RFMR_FSLEN_EXT, fslen_ext) in atmel_ssc_hw_params()
639 | SSC_BF(RFMR_FSEDGE, SSC_FSEDGE_POSITIVE) in atmel_ssc_hw_params()
640 | SSC_BF(RFMR_FSOS, fs_osync) in atmel_ssc_hw_params()
641 | SSC_BF(RFMR_FSLEN, fslen) in atmel_ssc_hw_params()
642 | SSC_BF(RFMR_DATNB, (channels - 1)) in atmel_ssc_hw_params()
644 | SSC_BF(RFMR_LOOP, 0) in atmel_ssc_hw_params()
645 | SSC_BF(RFMR_DATLEN, (bits - 1)); in atmel_ssc_hw_params()
647 tfmr = SSC_BF(TFMR_FSLEN_EXT, fslen_ext) in atmel_ssc_hw_params()
648 | SSC_BF(TFMR_FSEDGE, SSC_FSEDGE_POSITIVE) in atmel_ssc_hw_params()
649 | SSC_BF(TFMR_FSDEN, 0) in atmel_ssc_hw_params()
650 | SSC_BF(TFMR_FSOS, fs_osync) in atmel_ssc_hw_params()
651 | SSC_BF(TFMR_FSLEN, fslen) in atmel_ssc_hw_params()
652 | SSC_BF(TFMR_DATNB, (channels - 1)) in atmel_ssc_hw_params()
654 | SSC_BF(TFMR_DATDEF, 0) in atmel_ssc_hw_params()
655 | SSC_BF(TFMR_DATLEN, (bits - 1)); in atmel_ssc_hw_params()