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()
341 cfg |= MX51_ECSPI_CONFIG_SCLKPOL(config->cs); in mx51_ecspi_config()
342 cfg |= MX51_ECSPI_CONFIG_SCLKCTL(config->cs); in mx51_ecspi_config()
345 cfg |= MX51_ECSPI_CONFIG_SSBPOL(config->cs); in mx51_ecspi_config()
452 int cs = spi_imx->chipselect[config->cs]; in mx31_config() local
470 if (cs < 0) in mx31_config()
471 reg |= (cs + 32) << in mx31_config()
530 int cs = spi_imx->chipselect[config->cs]; in mx21_config() local
543 if (cs < 0) in mx21_config()
544 reg |= (cs + 32) << MX21_CSPICTRL_CS_SHIFT; in mx21_config()
776 config.cs = spi->chip_select; in spi_imx_setupxfer()