Home
last modified time | relevance | path

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

/openbmc/linux/drivers/spi/
H A Dspi-sprd-adi.c157 static int sprd_adi_check_addr(struct sprd_adi *sadi, u32 reg) in sprd_adi_check_addr() argument
159 if (reg >= sadi->data->slave_addr_size) { in sprd_adi_check_addr()
160 dev_err(sadi->dev, in sprd_adi_check_addr()
169 static int sprd_adi_drain_fifo(struct sprd_adi *sadi) in sprd_adi_drain_fifo() argument
175 sts = readl_relaxed(sadi->base + REG_ADI_ARM_FIFO_STS); in sprd_adi_drain_fifo()
183 dev_err(sadi->dev, "drain write fifo timeout\n"); in sprd_adi_drain_fifo()
190 static int sprd_adi_fifo_is_full(struct sprd_adi *sadi) in sprd_adi_fifo_is_full() argument
192 return readl_relaxed(sadi->base + REG_ADI_ARM_FIFO_STS) & BIT_FIFO_FULL; in sprd_adi_fifo_is_full()
219 static int sprd_adi_read(struct sprd_adi *sadi, u32 reg, u32 *read_val) in sprd_adi_read() argument
226 if (sadi->hwlock) { in sprd_adi_read()
[all …]