Lines Matching full:sregs

68 /* Offsets are from @ispi->sregs */
145 * @sregs: Start of software sequencer registers
163 void __iomem *sregs; member
217 if (ispi->sregs) { in intel_spi_dump_regs()
218 value = readl(ispi->sregs + SSFSTS_CTL); in intel_spi_dump_regs()
221 readl(ispi->sregs + PREOP_OPTYPE)); in intel_spi_dump_regs()
223 readl(ispi->sregs + OPMENU0)); in intel_spi_dump_regs()
225 readl(ispi->sregs + OPMENU1)); in intel_spi_dump_regs()
322 return readl_poll_timeout(ispi->sregs + SSFSTS_CTL, val, in intel_spi_wait_sw_busy()
349 writel(opcode, ispi->sregs + OPMENU0); in intel_spi_opcode_index()
350 preop = readw(ispi->sregs + PREOP_OPTYPE); in intel_spi_opcode_index()
351 writel(optype << 16 | preop, ispi->sregs + PREOP_OPTYPE); in intel_spi_opcode_index()
417 preop = readw(ispi->sregs + PREOP_OPTYPE); in intel_spi_sw_cycle()
433 writel(val, ispi->sregs + SSFSTS_CTL); in intel_spi_sw_cycle()
439 status = readl(ispi->sregs + SSFSTS_CTL); in intel_spi_sw_cycle()
504 preop = readw(ispi->sregs + PREOP_OPTYPE); in intel_spi_write_reg()
508 writel(opcode, ispi->sregs + PREOP_OPTYPE); in intel_spi_write_reg()
1077 ispi->sregs = ispi->base + BYT_SSFSTS_CTL; in intel_spi_init()
1085 ispi->sregs = ispi->base + LPT_SSFSTS_CTL; in intel_spi_init()
1093 ispi->sregs = ispi->base + BXT_SSFSTS_CTL; in intel_spi_init()
1101 ispi->sregs = NULL; in intel_spi_init()
1141 if (!ispi->sregs && (ispi->swseq_reg || ispi->swseq_erase)) { in intel_spi_init()
1153 val = readl(ispi->sregs + SSFSTS_CTL); in intel_spi_init()
1155 writel(val, ispi->sregs + SSFSTS_CTL); in intel_spi_init()
1162 if (ispi->locked && ispi->sregs) { in intel_spi_init()
1168 opmenu0 = readl(ispi->sregs + OPMENU0); in intel_spi_init()
1169 opmenu1 = readl(ispi->sregs + OPMENU1); in intel_spi_init()