Home
last modified time | relevance | path

Searched refs:amd_spi (Results 1 – 1 of 1) sorted by relevance

/linux-6.1.9/drivers/spi/
Dspi-amd.c92 struct amd_spi { struct
98 static inline u8 amd_spi_readreg8(struct amd_spi *amd_spi, int idx) in amd_spi_readreg8() argument
100 return ioread8((u8 __iomem *)amd_spi->io_remap_addr + idx); in amd_spi_readreg8()
103 static inline void amd_spi_writereg8(struct amd_spi *amd_spi, int idx, u8 val) in amd_spi_writereg8() argument
105 iowrite8(val, ((u8 __iomem *)amd_spi->io_remap_addr + idx)); in amd_spi_writereg8()
108 static void amd_spi_setclear_reg8(struct amd_spi *amd_spi, int idx, u8 set, u8 clear) in amd_spi_setclear_reg8() argument
110 u8 tmp = amd_spi_readreg8(amd_spi, idx); in amd_spi_setclear_reg8()
113 amd_spi_writereg8(amd_spi, idx, tmp); in amd_spi_setclear_reg8()
116 static inline u32 amd_spi_readreg32(struct amd_spi *amd_spi, int idx) in amd_spi_readreg32() argument
118 return ioread32((u8 __iomem *)amd_spi->io_remap_addr + idx); in amd_spi_readreg32()
[all …]