Lines Matching refs:virtbase

364 	void __iomem			*virtbase;  member
432 tmp = readw(SSP_CSR(pl022->virtbase)); in internal_cs_control()
437 writew(tmp, SSP_CSR(pl022->virtbase)); in internal_cs_control()
457 while (readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_RNE) in flush()
458 readw(SSP_DR(pl022->virtbase)); in flush()
459 } while ((readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_BSY) && limit--); in flush()
475 writel(chip->cr0, SSP_CR0(pl022->virtbase)); in restore_state()
477 writew(chip->cr0, SSP_CR0(pl022->virtbase)); in restore_state()
478 writew(chip->cr1, SSP_CR1(pl022->virtbase)); in restore_state()
479 writew(chip->dmacr, SSP_DMACR(pl022->virtbase)); in restore_state()
480 writew(chip->cpsr, SSP_CPSR(pl022->virtbase)); in restore_state()
481 writew(DISABLE_ALL_INTERRUPTS, SSP_IMSC(pl022->virtbase)); in restore_state()
482 writew(CLEAR_ALL_INTERRUPTS, SSP_ICR(pl022->virtbase)); in restore_state()
563 writel(DEFAULT_SSP_REG_CR0_ST_PL023, SSP_CR0(pl022->virtbase)); in load_ssp_default_config()
564 writew(DEFAULT_SSP_REG_CR1_ST_PL023, SSP_CR1(pl022->virtbase)); in load_ssp_default_config()
566 writel(DEFAULT_SSP_REG_CR0_ST, SSP_CR0(pl022->virtbase)); in load_ssp_default_config()
567 writew(DEFAULT_SSP_REG_CR1_ST, SSP_CR1(pl022->virtbase)); in load_ssp_default_config()
569 writew(DEFAULT_SSP_REG_CR0, SSP_CR0(pl022->virtbase)); in load_ssp_default_config()
570 writew(DEFAULT_SSP_REG_CR1, SSP_CR1(pl022->virtbase)); in load_ssp_default_config()
572 writew(DEFAULT_SSP_REG_DMACR, SSP_DMACR(pl022->virtbase)); in load_ssp_default_config()
573 writew(DEFAULT_SSP_REG_CPSR, SSP_CPSR(pl022->virtbase)); in load_ssp_default_config()
574 writew(DISABLE_ALL_INTERRUPTS, SSP_IMSC(pl022->virtbase)); in load_ssp_default_config()
575 writew(CLEAR_ALL_INTERRUPTS, SSP_ICR(pl022->virtbase)); in load_ssp_default_config()
600 while ((readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_RNE) in readwriter()
604 readw(SSP_DR(pl022->virtbase)); in readwriter()
608 readw(SSP_DR(pl022->virtbase)) & 0xFFU; in readwriter()
612 (u16) readw(SSP_DR(pl022->virtbase)); in readwriter()
616 readl(SSP_DR(pl022->virtbase)); in readwriter()
629 writew(0x0, SSP_DR(pl022->virtbase)); in readwriter()
632 writew(*(u8 *) (pl022->tx), SSP_DR(pl022->virtbase)); in readwriter()
635 writew((*(u16 *) (pl022->tx)), SSP_DR(pl022->virtbase)); in readwriter()
638 writel(*(u32 *) (pl022->tx), SSP_DR(pl022->virtbase)); in readwriter()
649 while ((readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_RNE) in readwriter()
653 readw(SSP_DR(pl022->virtbase)); in readwriter()
657 readw(SSP_DR(pl022->virtbase)) & 0xFFU; in readwriter()
661 (u16) readw(SSP_DR(pl022->virtbase)); in readwriter()
665 readl(SSP_DR(pl022->virtbase)); in readwriter()
1144 irq_status = readw(SSP_MIS(pl022->virtbase)); in pl022_interrupt_handler()
1160 if (readw(SSP_SR(pl022->virtbase)) & SSP_SR_MASK_RFF) in pl022_interrupt_handler()
1170 SSP_IMSC(pl022->virtbase)); in pl022_interrupt_handler()
1171 writew(CLEAR_ALL_INTERRUPTS, SSP_ICR(pl022->virtbase)); in pl022_interrupt_handler()
1172 writew((readw(SSP_CR1(pl022->virtbase)) & in pl022_interrupt_handler()
1173 (~SSP_CR1_MASK_SSE)), SSP_CR1(pl022->virtbase)); in pl022_interrupt_handler()
1183 writew((readw(SSP_IMSC(pl022->virtbase)) & in pl022_interrupt_handler()
1185 SSP_IMSC(pl022->virtbase)); in pl022_interrupt_handler()
1195 SSP_IMSC(pl022->virtbase)); in pl022_interrupt_handler()
1196 writew(CLEAR_ALL_INTERRUPTS, SSP_ICR(pl022->virtbase)); in pl022_interrupt_handler()
1267 writew((readw(SSP_CR1(pl022->virtbase)) | SSP_CR1_MASK_SSE), in do_interrupt_dma_transfer()
1268 SSP_CR1(pl022->virtbase)); in do_interrupt_dma_transfer()
1269 writew(irqflags, SSP_IMSC(pl022->virtbase)); in do_interrupt_dma_transfer()
1279 read_cr0 = readl(SSP_CR0(pl022->virtbase)); in print_current_status()
1281 read_cr0 = readw(SSP_CR0(pl022->virtbase)); in print_current_status()
1282 read_cr1 = readw(SSP_CR1(pl022->virtbase)); in print_current_status()
1283 read_dmacr = readw(SSP_DMACR(pl022->virtbase)); in print_current_status()
1284 read_sr = readw(SSP_SR(pl022->virtbase)); in print_current_status()
1308 writew((readw(SSP_CR1(pl022->virtbase)) | SSP_CR1_MASK_SSE), in do_polling_transfer()
1309 SSP_CR1(pl022->virtbase)); in do_polling_transfer()
1354 writew(DISABLE_ALL_INTERRUPTS, SSP_IMSC(pl022->virtbase)); in pl022_handle_err()
1355 writew(CLEAR_ALL_INTERRUPTS, SSP_ICR(pl022->virtbase)); in pl022_handle_err()
1363 writew((readw(SSP_CR1(pl022->virtbase)) & in pl022_unprepare_transfer_hardware()
1364 (~SSP_CR1_MASK_SSE)), SSP_CR1(pl022->virtbase)); in pl022_unprepare_transfer_hardware()
1917 pl022->virtbase = devm_ioremap(dev, adev->res.start, in pl022_probe()
1919 if (pl022->virtbase == NULL) { in pl022_probe()
1924 &adev->res.start, pl022->virtbase); in pl022_probe()
1934 writew((readw(SSP_CR1(pl022->virtbase)) & (~SSP_CR1_MASK_SSE)), in pl022_probe()
1935 SSP_CR1(pl022->virtbase)); in pl022_probe()