Lines Matching refs:omap_ssi
52 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_port_regs_show() local
53 void __iomem *base = omap_ssi->sys; in ssi_port_regs_show()
194 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_claim_lch() local
198 if (!omap_ssi->gdd_trn[lch].msg) { in ssi_claim_lch()
199 omap_ssi->gdd_trn[lch].msg = msg; in ssi_claim_lch()
200 omap_ssi->gdd_trn[lch].sg = msg->sgt.sgl; in ssi_claim_lch()
212 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_start_dma() local
213 void __iomem *gdd = omap_ssi->gdd; in ssi_start_dma()
275 spin_lock_bh(&omap_ssi->lock); in ssi_start_dma()
276 tmp = readl(omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_start_dma()
278 writel_relaxed(tmp, omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_start_dma()
279 spin_unlock_bh(&omap_ssi->lock); in ssi_start_dma()
291 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_start_pio() local
311 val |= readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_start_pio()
312 writel(val, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_start_pio()
343 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_async_break() local
362 tmp = readl(omap_ssi->sys + in ssi_async_break()
365 omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_async_break()
420 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_calculate_div() local
421 u32 tx_fckrate = (u32) omap_ssi->fck_rate; in ssi_calculate_div()
428 tx_fckrate / omap_ssi->max_speed, omap_ssi->fck_rate, in ssi_calculate_div()
429 omap_ssi->max_speed); in ssi_calculate_div()
431 return tx_fckrate / omap_ssi->max_speed; in ssi_calculate_div()
459 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_setup() local
469 omap_ssi->max_speed = cl->tx_cfg.speed; in ssi_setup()
524 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_flush() local
540 msg = omap_ssi->gdd_trn[i].msg; in ssi_flush()
543 writew_relaxed(0, omap_ssi->gdd + SSI_GDD_CCR_REG(i)); in ssi_flush()
546 omap_ssi->gdd_trn[i].msg = NULL; in ssi_flush()
560 writel_relaxed(0, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_flush()
562 omap_ssi->sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_flush()
563 writel_relaxed(0, omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_flush()
564 writel(0xff, omap_ssi->sys + SSI_GDD_MPU_IRQ_STATUS_REG); in ssi_flush()
591 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in start_tx_work() local
594 writel(SSI_WAKE(0), omap_ssi->sys + SSI_SET_WAKE_REG(port->num)); in start_tx_work()
621 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_stop_tx() local
631 writel(SSI_WAKE(0), omap_ssi->sys + SSI_CLEAR_WAKE_REG(port->num)); in ssi_stop_tx()
671 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_cleanup_queues() local
720 tmp = readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_cleanup_queues()
722 writel_relaxed(tmp, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_cleanup_queues()
723 writel_relaxed(status, omap_ssi->sys + in ssi_cleanup_queues()
729 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_cleanup_gdd() local
738 msg = omap_ssi->gdd_trn[i].msg; in ssi_cleanup_gdd()
741 writew_relaxed(0, omap_ssi->gdd + SSI_GDD_CCR_REG(i)); in ssi_cleanup_gdd()
751 omap_ssi->gdd_trn[i].msg = NULL; in ssi_cleanup_gdd()
753 tmp = readl_relaxed(omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_cleanup_gdd()
755 writel_relaxed(tmp, omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_cleanup_gdd()
756 writel(val, omap_ssi->sys + SSI_GDD_MPU_IRQ_STATUS_REG); in ssi_cleanup_gdd()
809 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_error() local
823 spin_lock(&omap_ssi->lock); in ssi_error()
826 msg = omap_ssi->gdd_trn[i].msg; in ssi_error()
828 writew_relaxed(0, omap_ssi->gdd + SSI_GDD_CCR_REG(i)); in ssi_error()
830 omap_ssi->gdd_trn[i].msg = NULL; in ssi_error()
833 tmp = readl(omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_error()
835 writel_relaxed(tmp, omap_ssi->sys + SSI_GDD_MPU_IRQ_ENABLE_REG); in ssi_error()
836 spin_unlock(&omap_ssi->lock); in ssi_error()
839 tmp = readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_error()
841 writel_relaxed(tmp, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_error()
845 omap_ssi->sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_error()
867 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_break_complete() local
875 val = readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_break_complete()
877 writel_relaxed(val, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_break_complete()
880 omap_ssi->sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_break_complete()
896 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_pio_complete() local
933 writel(val, omap_ssi->sys + in ssi_pio_complete()
942 reg = readl(omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_pio_complete()
949 writel_relaxed(reg, omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_pio_complete()
950 writel_relaxed(val, omap_ssi->sys + SSI_MPU_STATUS_REG(port->num, 0)); in ssi_pio_complete()
962 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_pio_thread() local
963 void __iomem *sys = omap_ssi->sys; in ssi_pio_thread()
1001 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_wake_thread() local
1016 omap_ssi->sys + SSI_SET_WAKE_REG(port->num)); in ssi_wake_thread()
1023 omap_ssi->sys + SSI_CLEAR_WAKE_REG(port->num)); in ssi_wake_thread()
1131 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_port_probe() local
1138 if (!ssi->port || !omap_ssi->port) { in ssi_port_probe()
1145 for (port_id = 0; port_id < ssi->num_ports && omap_ssi->port[port_id]; in ssi_port_probe()
1190 omap_ssi->port[port_id] = omap_port; in ssi_port_probe()
1220 err = ssi_debug_add_port(omap_port, omap_ssi->dir); in ssi_port_probe()
1242 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_port_remove() local
1259 omap_ssi->port[omap_port->port_id] = NULL; in ssi_port_remove()
1290 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_save_port_ctx() local
1292 omap_port->sys_mpu_enable = readl(omap_ssi->sys + in ssi_save_port_ctx()
1302 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in ssi_restore_port_ctx() local
1306 omap_ssi->sys + SSI_MPU_ENABLE_REG(port->num, 0)); in ssi_restore_port_ctx()
1342 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in omap_ssi_port_runtime_suspend() local
1347 if (omap_ssi->get_loss) in omap_ssi_port_runtime_suspend()
1349 omap_ssi->get_loss(ssi->device.parent); in omap_ssi_port_runtime_suspend()
1360 struct omap_ssi_controller *omap_ssi = hsi_controller_drvdata(ssi); in omap_ssi_port_runtime_resume() local
1364 if ((omap_ssi->get_loss) && (omap_port->loss_count == in omap_ssi_port_runtime_resume()
1365 omap_ssi->get_loss(ssi->device.parent))) in omap_ssi_port_runtime_resume()