Lines Matching refs:l
205 u32 l, rw; in omap2_mcspi_set_dma_req() local
207 l = mcspi_cached_chconf0(spi); in omap2_mcspi_set_dma_req()
215 l |= rw; in omap2_mcspi_set_dma_req()
217 l &= ~rw; in omap2_mcspi_set_dma_req()
219 mcspi_write_chconf0(spi, l); in omap2_mcspi_set_dma_req()
225 u32 l; in omap2_mcspi_set_enable() local
227 l = cs->chctrl0; in omap2_mcspi_set_enable()
229 l |= OMAP2_MCSPI_CHCTRL_EN; in omap2_mcspi_set_enable()
231 l &= ~OMAP2_MCSPI_CHCTRL_EN; in omap2_mcspi_set_enable()
232 cs->chctrl0 = l; in omap2_mcspi_set_enable()
241 u32 l; in omap2_mcspi_set_cs() local
257 l = mcspi_cached_chconf0(spi); in omap2_mcspi_set_cs()
260 l &= ~OMAP2_MCSPI_CHCONF_FORCE; in omap2_mcspi_set_cs()
262 l |= OMAP2_MCSPI_CHCONF_FORCE; in omap2_mcspi_set_cs()
264 mcspi_write_chconf0(spi, l); in omap2_mcspi_set_cs()
275 u32 l; in omap2_mcspi_set_mode() local
280 l = mcspi_read_reg(ctlr, OMAP2_MCSPI_MODULCTRL); in omap2_mcspi_set_mode()
281 l &= ~(OMAP2_MCSPI_MODULCTRL_STEST); in omap2_mcspi_set_mode()
283 l |= (OMAP2_MCSPI_MODULCTRL_MS); in omap2_mcspi_set_mode()
285 l &= ~(OMAP2_MCSPI_MODULCTRL_MS); in omap2_mcspi_set_mode()
286 l |= OMAP2_MCSPI_MODULCTRL_SINGLE; in omap2_mcspi_set_mode()
288 mcspi_write_reg(ctlr, OMAP2_MCSPI_MODULCTRL, l); in omap2_mcspi_set_mode()
290 ctx->modulctrl = l; in omap2_mcspi_set_mode()
443 u32 l; in omap2_mcspi_rx_dma() local
463 l = mcspi_cached_chconf0(spi); in omap2_mcspi_rx_dma()
479 if ((l & OMAP2_MCSPI_CHCONF_TURBO) && mcspi->fifo_depth == 0) in omap2_mcspi_rx_dma()
539 if (l & OMAP2_MCSPI_CHCONF_TURBO) { in omap2_mcspi_rx_dma()
693 u32 l; in omap2_mcspi_txrx_pio() local
704 l = mcspi_cached_chconf0(spi); in omap2_mcspi_txrx_pio()
742 (l & OMAP2_MCSPI_CHCONF_TURBO)) { in omap2_mcspi_txrx_pio()
791 (l & OMAP2_MCSPI_CHCONF_TURBO)) { in omap2_mcspi_txrx_pio()
840 (l & OMAP2_MCSPI_CHCONF_TURBO)) { in omap2_mcspi_txrx_pio()
902 u32 ref_clk_hz, l = 0, clkd = 0, div, extclk = 0, clkg = 0; in omap2_mcspi_setup_transfer() local
930 l = mcspi_cached_chconf0(spi); in omap2_mcspi_setup_transfer()
936 l &= ~OMAP2_MCSPI_CHCONF_IS; in omap2_mcspi_setup_transfer()
937 l &= ~OMAP2_MCSPI_CHCONF_DPE1; in omap2_mcspi_setup_transfer()
938 l |= OMAP2_MCSPI_CHCONF_DPE0; in omap2_mcspi_setup_transfer()
940 l |= OMAP2_MCSPI_CHCONF_IS; in omap2_mcspi_setup_transfer()
941 l |= OMAP2_MCSPI_CHCONF_DPE1; in omap2_mcspi_setup_transfer()
942 l &= ~OMAP2_MCSPI_CHCONF_DPE0; in omap2_mcspi_setup_transfer()
946 l &= ~OMAP2_MCSPI_CHCONF_WL_MASK; in omap2_mcspi_setup_transfer()
947 l |= (word_len - 1) << 7; in omap2_mcspi_setup_transfer()
951 l |= OMAP2_MCSPI_CHCONF_EPOL; /* active-low; normal */ in omap2_mcspi_setup_transfer()
953 l &= ~OMAP2_MCSPI_CHCONF_EPOL; in omap2_mcspi_setup_transfer()
956 l &= ~OMAP2_MCSPI_CHCONF_CLKD_MASK; in omap2_mcspi_setup_transfer()
957 l |= clkd << 2; in omap2_mcspi_setup_transfer()
960 l &= ~OMAP2_MCSPI_CHCONF_CLKG; in omap2_mcspi_setup_transfer()
961 l |= clkg; in omap2_mcspi_setup_transfer()
970 l |= OMAP2_MCSPI_CHCONF_POL; in omap2_mcspi_setup_transfer()
972 l &= ~OMAP2_MCSPI_CHCONF_POL; in omap2_mcspi_setup_transfer()
974 l |= OMAP2_MCSPI_CHCONF_PHA; in omap2_mcspi_setup_transfer()
976 l &= ~OMAP2_MCSPI_CHCONF_PHA; in omap2_mcspi_setup_transfer()
978 mcspi_write_chconf0(spi, l); in omap2_mcspi_setup_transfer()