Lines Matching +full:ssi +full:- +full:all

14  * all copies or substantial portions of the Software.
28 #include "hw/ssi/stm32f2xx_spi.h"
47 s->spi_cr1 = 0x00000000; in stm32f2xx_spi_reset()
48 s->spi_cr2 = 0x00000000; in stm32f2xx_spi_reset()
49 s->spi_sr = 0x0000000A; in stm32f2xx_spi_reset()
50 s->spi_dr = 0x0000000C; in stm32f2xx_spi_reset()
51 s->spi_crcpr = 0x00000007; in stm32f2xx_spi_reset()
52 s->spi_rxcrcr = 0x00000000; in stm32f2xx_spi_reset()
53 s->spi_txcrcr = 0x00000000; in stm32f2xx_spi_reset()
54 s->spi_i2scfgr = 0x00000000; in stm32f2xx_spi_reset()
55 s->spi_i2spr = 0x00000002; in stm32f2xx_spi_reset()
60 DB_PRINT("Data to send: 0x%x\n", s->spi_dr); in stm32f2xx_spi_transfer()
62 s->spi_dr = ssi_transfer(s->ssi, s->spi_dr); in stm32f2xx_spi_transfer()
63 s->spi_sr |= STM_SPI_SR_RXNE; in stm32f2xx_spi_transfer()
65 DB_PRINT("Data received: 0x%x\n", s->spi_dr); in stm32f2xx_spi_transfer()
77 return s->spi_cr1; in stm32f2xx_spi_read()
81 return s->spi_cr2; in stm32f2xx_spi_read()
83 return s->spi_sr; in stm32f2xx_spi_read()
86 s->spi_sr &= ~STM_SPI_SR_RXNE; in stm32f2xx_spi_read()
87 return s->spi_dr; in stm32f2xx_spi_read()
91 return s->spi_crcpr; in stm32f2xx_spi_read()
95 return s->spi_rxcrcr; in stm32f2xx_spi_read()
99 return s->spi_txcrcr; in stm32f2xx_spi_read()
103 return s->spi_i2scfgr; in stm32f2xx_spi_read()
107 return s->spi_i2spr; in stm32f2xx_spi_read()
126 s->spi_cr1 = value; in stm32f2xx_spi_write()
131 s->spi_cr2 = value; in stm32f2xx_spi_write()
139 s->spi_dr = value; in stm32f2xx_spi_write()
196 memory_region_init_io(&s->mmio, obj, &stm32f2xx_spi_ops, s, in stm32f2xx_spi_init()
198 sysbus_init_mmio(SYS_BUS_DEVICE(obj), &s->mmio); in stm32f2xx_spi_init()
200 sysbus_init_irq(SYS_BUS_DEVICE(obj), &s->irq); in stm32f2xx_spi_init()
202 s->ssi = ssi_create_bus(dev, "ssi"); in stm32f2xx_spi_init()
210 dc->vmsd = &vmstate_stm32f2xx_spi; in stm32f2xx_spi_class_init()