Lines Matching refs:cs
64 u8 cs; member
218 #define MX51_ECSPI_CTRL_CS(cs) ((cs) << 18) argument
222 #define MX51_ECSPI_CONFIG_SCLKPHA(cs) (1 << ((cs) + 0)) argument
223 #define MX51_ECSPI_CONFIG_SCLKPOL(cs) (1 << ((cs) + 4)) argument
224 #define MX51_ECSPI_CONFIG_SBBCTRL(cs) (1 << ((cs) + 8)) argument
225 #define MX51_ECSPI_CONFIG_SSBPOL(cs) (1 << ((cs) + 12)) argument
226 #define MX51_ECSPI_CONFIG_SCLKCTL(cs) (1 << ((cs) + 20)) argument
331 ctrl |= MX51_ECSPI_CTRL_CS(config->cs); in mx51_ecspi_config()
335 cfg |= MX51_ECSPI_CONFIG_SBBCTRL(config->cs); in mx51_ecspi_config()
338 cfg |= MX51_ECSPI_CONFIG_SCLKPHA(config->cs); in mx51_ecspi_config()
340 cfg &= ~MX51_ECSPI_CONFIG_SCLKPHA(config->cs); in mx51_ecspi_config()
343 cfg |= MX51_ECSPI_CONFIG_SCLKPOL(config->cs); in mx51_ecspi_config()
344 cfg |= MX51_ECSPI_CONFIG_SCLKCTL(config->cs); in mx51_ecspi_config()
346 cfg &= ~MX51_ECSPI_CONFIG_SCLKPOL(config->cs); in mx51_ecspi_config()
347 cfg &= ~MX51_ECSPI_CONFIG_SCLKCTL(config->cs); in mx51_ecspi_config()
350 cfg |= MX51_ECSPI_CONFIG_SSBPOL(config->cs); in mx51_ecspi_config()
352 cfg &= ~MX51_ECSPI_CONFIG_SSBPOL(config->cs); in mx51_ecspi_config()
459 int cs = spi_imx->chipselect[config->cs]; in mx31_config() local
477 if (cs < 0) in mx31_config()
478 reg |= (cs + 32) << in mx31_config()
537 int cs = spi_imx->chipselect[config->cs]; in mx21_config() local
550 if (cs < 0) in mx21_config()
551 reg |= (cs + 32) << MX21_CSPICTRL_CS_SHIFT; in mx21_config()
783 config.cs = spi->chip_select; in spi_imx_setupxfer()