Lines Matching refs:reg_offsets
148 const unsigned long *reg_offsets; member
164 return readb(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readb()
171 return ioread16be(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readw()
173 return readw(bs->regs + bs->reg_offsets[offset]); in bcm_spi_readw()
180 writeb(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writeb()
187 iowrite16be(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew()
189 writew(value, bs->regs + bs->reg_offsets[offset]); in bcm_spi_writew()
530 bs->reg_offsets = bcm63xx_spireg; in bcm63xx_spi_probe()
531 bs->fifo_size = bs->reg_offsets[SPI_MSG_DATA_SIZE]; in bcm63xx_spi_probe()
546 bs->msg_type_shift = bs->reg_offsets[SPI_MSG_TYPE_SHIFT]; in bcm63xx_spi_probe()
547 bs->msg_ctl_width = bs->reg_offsets[SPI_MSG_CTL_WIDTH]; in bcm63xx_spi_probe()
548 bs->tx_io = (u8 *)(bs->regs + bs->reg_offsets[SPI_MSG_DATA]); in bcm63xx_spi_probe()
549 bs->rx_io = (const u8 *)(bs->regs + bs->reg_offsets[SPI_RX_DATA]); in bcm63xx_spi_probe()