Lines Matching refs:virtbase
371 void __iomem *virtbase; member
444 tmp = readw(SSP_CSR(pl022->virtbase)); in internal_cs_control()
449 writew(tmp, SSP_CSR(pl022->virtbase)); in internal_cs_control()
523 writew((readw(SSP_CR1(pl022->virtbase)) & in giveback()
524 (~SSP_CR1_MASK_SSE)), SSP_CR1(pl022->virtbase)); in giveback()
539 while (readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_RNE) in flush()
540 readw(SSP_DR(pl022->virtbase)); in flush()
541 } while ((readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_BSY) && limit--); in flush()
557 writel(chip->cr0, SSP_CR0(pl022->virtbase)); in restore_state()
559 writew(chip->cr0, SSP_CR0(pl022->virtbase)); in restore_state()
560 writew(chip->cr1, SSP_CR1(pl022->virtbase)); in restore_state()
561 writew(chip->dmacr, SSP_DMACR(pl022->virtbase)); in restore_state()
562 writew(chip->cpsr, SSP_CPSR(pl022->virtbase)); in restore_state()
563 writew(DISABLE_ALL_INTERRUPTS, SSP_IMSC(pl022->virtbase)); in restore_state()
564 writew(CLEAR_ALL_INTERRUPTS, SSP_ICR(pl022->virtbase)); in restore_state()
645 writel(DEFAULT_SSP_REG_CR0_ST_PL023, SSP_CR0(pl022->virtbase)); in load_ssp_default_config()
646 writew(DEFAULT_SSP_REG_CR1_ST_PL023, SSP_CR1(pl022->virtbase)); in load_ssp_default_config()
648 writel(DEFAULT_SSP_REG_CR0_ST, SSP_CR0(pl022->virtbase)); in load_ssp_default_config()
649 writew(DEFAULT_SSP_REG_CR1_ST, SSP_CR1(pl022->virtbase)); in load_ssp_default_config()
651 writew(DEFAULT_SSP_REG_CR0, SSP_CR0(pl022->virtbase)); in load_ssp_default_config()
652 writew(DEFAULT_SSP_REG_CR1, SSP_CR1(pl022->virtbase)); in load_ssp_default_config()
654 writew(DEFAULT_SSP_REG_DMACR, SSP_DMACR(pl022->virtbase)); in load_ssp_default_config()
655 writew(DEFAULT_SSP_REG_CPSR, SSP_CPSR(pl022->virtbase)); in load_ssp_default_config()
656 writew(DISABLE_ALL_INTERRUPTS, SSP_IMSC(pl022->virtbase)); in load_ssp_default_config()
657 writew(CLEAR_ALL_INTERRUPTS, SSP_ICR(pl022->virtbase)); in load_ssp_default_config()
682 while ((readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_RNE) in readwriter()
686 readw(SSP_DR(pl022->virtbase)); in readwriter()
690 readw(SSP_DR(pl022->virtbase)) & 0xFFU; in readwriter()
694 (u16) readw(SSP_DR(pl022->virtbase)); in readwriter()
698 readl(SSP_DR(pl022->virtbase)); in readwriter()
711 writew(0x0, SSP_DR(pl022->virtbase)); in readwriter()
714 writew(*(u8 *) (pl022->tx), SSP_DR(pl022->virtbase)); in readwriter()
717 writew((*(u16 *) (pl022->tx)), SSP_DR(pl022->virtbase)); in readwriter()
720 writel(*(u32 *) (pl022->tx), SSP_DR(pl022->virtbase)); in readwriter()
731 while ((readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_RNE) in readwriter()
735 readw(SSP_DR(pl022->virtbase)); in readwriter()
739 readw(SSP_DR(pl022->virtbase)) & 0xFFU; in readwriter()
743 (u16) readw(SSP_DR(pl022->virtbase)); in readwriter()
747 readl(SSP_DR(pl022->virtbase)); in readwriter()
1260 irq_status = readw(SSP_MIS(pl022->virtbase)); in pl022_interrupt_handler()
1276 if (readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_RFF) in pl022_interrupt_handler()
1286 SSP_IMSC(pl022->virtbase)); in pl022_interrupt_handler()
1287 writew(CLEAR_ALL_INTERRUPTS, SSP_ICR(pl022->virtbase)); in pl022_interrupt_handler()
1288 writew((readw(SSP_CR1(pl022->virtbase)) & in pl022_interrupt_handler()
1289 (~SSP_CR1_MASK_SSE)), SSP_CR1(pl022->virtbase)); in pl022_interrupt_handler()
1301 writew((readw(SSP_IMSC(pl022->virtbase)) & in pl022_interrupt_handler()
1303 SSP_IMSC(pl022->virtbase)); in pl022_interrupt_handler()
1313 SSP_IMSC(pl022->virtbase)); in pl022_interrupt_handler()
1314 writew(CLEAR_ALL_INTERRUPTS, SSP_ICR(pl022->virtbase)); in pl022_interrupt_handler()
1434 writew(ENABLE_ALL_INTERRUPTS & ~SSP_IMSC_MASK_RXIM, SSP_IMSC(pl022->virtbase)); in pump_transfers()
1469 writew((readw(SSP_CR1(pl022->virtbase)) | SSP_CR1_MASK_SSE), in do_interrupt_dma_transfer()
1470 SSP_CR1(pl022->virtbase)); in do_interrupt_dma_transfer()
1471 writew(irqflags, SSP_IMSC(pl022->virtbase)); in do_interrupt_dma_transfer()
1480 read_cr0 = readl(SSP_CR0(pl022->virtbase)); in print_current_status()
1482 read_cr0 = readw(SSP_CR0(pl022->virtbase)); in print_current_status()
1483 read_cr1 = readw(SSP_CR1(pl022->virtbase)); in print_current_status()
1484 read_dmacr = readw(SSP_DMACR(pl022->virtbase)); in print_current_status()
1485 read_sr = readw(SSP_SR(pl022->virtbase)); in print_current_status()
1536 writew((readw(SSP_CR1(pl022->virtbase)) | SSP_CR1_MASK_SSE), in do_polling_transfer()
1537 SSP_CR1(pl022->virtbase)); in do_polling_transfer()
1610 writew((readw(SSP_CR1(pl022->virtbase)) & in pl022_unprepare_transfer_hardware()
1611 (~SSP_CR1_MASK_SSE)), SSP_CR1(pl022->virtbase)); in pl022_unprepare_transfer_hardware()
2163 pl022->virtbase = devm_ioremap(dev, adev->res.start, in pl022_probe()
2165 if (pl022->virtbase == NULL) { in pl022_probe()
2170 &adev->res.start, pl022->virtbase); in pl022_probe()
2190 writew((readw(SSP_CR1(pl022->virtbase)) & (~SSP_CR1_MASK_SSE)), in pl022_probe()
2191 SSP_CR1(pl022->virtbase)); in pl022_probe()