orion_spi         559 arch/arm/plat-orion/common.c static struct platform_device orion_spi = {
orion_spi         576 arch/arm/plat-orion/common.c 	fill_resources(&orion_spi, &orion_spi_resources,
orion_spi         578 arch/arm/plat-orion/common.c 	platform_device_register(&orion_spi);
orion_spi         106 drivers/spi/spi-orion.c static inline void __iomem *spi_reg(struct orion_spi *orion_spi, u32 reg)
orion_spi         108 drivers/spi/spi-orion.c 	return orion_spi->base + reg;
orion_spi         112 drivers/spi/spi-orion.c orion_spi_setbits(struct orion_spi *orion_spi, u32 reg, u32 mask)
orion_spi         114 drivers/spi/spi-orion.c 	void __iomem *reg_addr = spi_reg(orion_spi, reg);
orion_spi         123 drivers/spi/spi-orion.c orion_spi_clrbits(struct orion_spi *orion_spi, u32 reg, u32 mask)
orion_spi         125 drivers/spi/spi-orion.c 	void __iomem *reg_addr = spi_reg(orion_spi, reg);
orion_spi         139 drivers/spi/spi-orion.c 	struct orion_spi *orion_spi;
orion_spi         142 drivers/spi/spi-orion.c 	orion_spi = spi_master_get_devdata(spi->master);
orion_spi         143 drivers/spi/spi-orion.c 	devdata = orion_spi->devdata;
orion_spi         145 drivers/spi/spi-orion.c 	tclk_hz = clk_get_rate(orion_spi->clk);
orion_spi         223 drivers/spi/spi-orion.c 	reg = readl(spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG));
orion_spi         225 drivers/spi/spi-orion.c 	writel(reg, spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG));
orion_spi         234 drivers/spi/spi-orion.c 	struct orion_spi *orion_spi;
orion_spi         236 drivers/spi/spi-orion.c 	orion_spi = spi_master_get_devdata(spi->master);
orion_spi         238 drivers/spi/spi-orion.c 	reg = readl(spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG));
orion_spi         249 drivers/spi/spi-orion.c 	writel(reg, spi_reg(orion_spi, ORION_SPI_IF_CONFIG_REG));
orion_spi         256 drivers/spi/spi-orion.c 	struct orion_spi *orion_spi;
orion_spi         258 drivers/spi/spi-orion.c 	orion_spi = spi_master_get_devdata(spi->master);
orion_spi         274 drivers/spi/spi-orion.c 	reg = readl(spi_reg(orion_spi, ORION_SPI_TIMING_PARAMS_REG));
orion_spi         277 drivers/spi/spi-orion.c 	if (clk_get_rate(orion_spi->clk) == 250000000 &&
orion_spi         284 drivers/spi/spi-orion.c 	writel(reg, spi_reg(orion_spi, ORION_SPI_TIMING_PARAMS_REG));
orion_spi         293 drivers/spi/spi-orion.c 	struct orion_spi *orion_spi;
orion_spi         298 drivers/spi/spi-orion.c 	orion_spi = spi_master_get_devdata(spi->master);
orion_spi         308 drivers/spi/spi-orion.c 	if (orion_spi->devdata->is_errata_50mhz_ac)
orion_spi         316 drivers/spi/spi-orion.c 		orion_spi_setbits(orion_spi, ORION_SPI_IF_CONFIG_REG,
orion_spi         319 drivers/spi/spi-orion.c 		orion_spi_clrbits(orion_spi, ORION_SPI_IF_CONFIG_REG,
orion_spi         327 drivers/spi/spi-orion.c 	struct orion_spi *orion_spi;
orion_spi         330 drivers/spi/spi-orion.c 	orion_spi = spi_master_get_devdata(spi->master);
orion_spi         333 drivers/spi/spi-orion.c 		cs = orion_spi->unused_hw_gpio;
orion_spi         337 drivers/spi/spi-orion.c 	orion_spi_clrbits(orion_spi, ORION_SPI_IF_CTRL_REG, ORION_SPI_CS_MASK);
orion_spi         338 drivers/spi/spi-orion.c 	orion_spi_setbits(orion_spi, ORION_SPI_IF_CTRL_REG,
orion_spi         343 drivers/spi/spi-orion.c 		orion_spi_setbits(orion_spi, ORION_SPI_IF_CTRL_REG, 0x1);
orion_spi         345 drivers/spi/spi-orion.c 		orion_spi_clrbits(orion_spi, ORION_SPI_IF_CTRL_REG, 0x1);
orion_spi         348 drivers/spi/spi-orion.c static inline int orion_spi_wait_till_ready(struct orion_spi *orion_spi)
orion_spi         353 drivers/spi/spi-orion.c 		if (readl(spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG)))
orion_spi         367 drivers/spi/spi-orion.c 	struct orion_spi *orion_spi;
orion_spi         369 drivers/spi/spi-orion.c 	orion_spi = spi_master_get_devdata(spi->master);
orion_spi         370 drivers/spi/spi-orion.c 	tx_reg = spi_reg(orion_spi, ORION_SPI_DATA_OUT_REG);
orion_spi         371 drivers/spi/spi-orion.c 	rx_reg = spi_reg(orion_spi, ORION_SPI_DATA_IN_REG);
orion_spi         372 drivers/spi/spi-orion.c 	int_reg = spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG);
orion_spi         382 drivers/spi/spi-orion.c 	if (orion_spi_wait_till_ready(orion_spi) < 0) {
orion_spi         398 drivers/spi/spi-orion.c 	struct orion_spi *orion_spi;
orion_spi         400 drivers/spi/spi-orion.c 	orion_spi = spi_master_get_devdata(spi->master);
orion_spi         401 drivers/spi/spi-orion.c 	tx_reg = spi_reg(orion_spi, ORION_SPI_DATA_OUT_REG);
orion_spi         402 drivers/spi/spi-orion.c 	rx_reg = spi_reg(orion_spi, ORION_SPI_DATA_IN_REG);
orion_spi         403 drivers/spi/spi-orion.c 	int_reg = spi_reg(orion_spi, ORION_SPI_INT_CAUSE_REG);
orion_spi         413 drivers/spi/spi-orion.c 	if (orion_spi_wait_till_ready(orion_spi) < 0) {
orion_spi         429 drivers/spi/spi-orion.c 	struct orion_spi *orion_spi;
orion_spi         436 drivers/spi/spi-orion.c 	orion_spi = spi_master_get_devdata(spi->master);
orion_spi         442 drivers/spi/spi-orion.c 	vaddr = orion_spi->child[cs].direct_access.vaddr;
orion_spi         514 drivers/spi/spi-orion.c static int orion_spi_reset(struct orion_spi *orion_spi)
orion_spi         517 drivers/spi/spi-orion.c 	orion_spi_clrbits(orion_spi, ORION_SPI_IF_CTRL_REG, 0x1);
orion_spi         520 drivers/spi/spi-orion.c 	writel(0, spi_reg(orion_spi, SPI_DIRECT_WRITE_CONFIG_REG));
orion_spi         597 drivers/spi/spi-orion.c 	struct orion_spi *spi;
orion_spi         800 drivers/spi/spi-orion.c 	struct orion_spi *spi = spi_master_get_devdata(master);
orion_spi         818 drivers/spi/spi-orion.c 	struct orion_spi *spi = spi_master_get_devdata(master);
orion_spi         828 drivers/spi/spi-orion.c 	struct orion_spi *spi = spi_master_get_devdata(master);