Lines Matching refs:hw_mode
113 u32 hw_mode; member
330 u32 hw_mode_old = cs->hw_mode; in fsl_espi_setup_transfer()
333 cs->hw_mode &= ~(CSMODE_LEN(0xF) | CSMODE_DIV16 | CSMODE_PM(0xF)); in fsl_espi_setup_transfer()
335 cs->hw_mode |= CSMODE_LEN(bits_per_word - 1); in fsl_espi_setup_transfer()
340 cs->hw_mode |= CSMODE_DIV16; in fsl_espi_setup_transfer()
344 cs->hw_mode |= CSMODE_PM(pm); in fsl_espi_setup_transfer()
347 if (cs->hw_mode != hw_mode_old) in fsl_espi_setup_transfer()
349 cs->hw_mode); in fsl_espi_setup_transfer()
495 cs->hw_mode = fsl_espi_read_reg(espi, ESPI_SPMODEx(spi_get_chipselect(spi, 0))); in fsl_espi_setup()
497 cs->hw_mode &= ~(CSMODE_CP_BEGIN_EDGECLK | CSMODE_CI_INACTIVEHIGH in fsl_espi_setup()
501 cs->hw_mode |= CSMODE_CP_BEGIN_EDGECLK; in fsl_espi_setup()
503 cs->hw_mode |= CSMODE_CI_INACTIVEHIGH; in fsl_espi_setup()
505 cs->hw_mode |= CSMODE_REV; in fsl_espi_setup()