Lines Matching refs:ssp

32 	struct ssp_device	*ssp;  member
120 struct ssp_device *ssp = navpoint->ssp; in navpoint_irq() local
124 status = pxa_ssp_read_reg(ssp, SSSR); in navpoint_irq()
128 pxa_ssp_write_reg(ssp, SSSR, (status & sssr)); in navpoint_irq()
135 data = pxa_ssp_read_reg(ssp, SSDR); in navpoint_irq()
143 status = pxa_ssp_read_reg(ssp, SSSR); in navpoint_irq()
152 struct ssp_device *ssp = navpoint->ssp; in navpoint_up() local
155 clk_prepare_enable(ssp->clk); in navpoint_up()
157 pxa_ssp_write_reg(ssp, SSCR1, sscr1); in navpoint_up()
158 pxa_ssp_write_reg(ssp, SSSR, sssr); in navpoint_up()
159 pxa_ssp_write_reg(ssp, SSTO, 0); in navpoint_up()
160 pxa_ssp_write_reg(ssp, SSCR0, sscr0); /* SSCR0_SSE written last */ in navpoint_up()
164 if (!(pxa_ssp_read_reg(ssp, SSSR) & SSSR_CSS)) in navpoint_up()
179 struct ssp_device *ssp = navpoint->ssp; in navpoint_down() local
184 pxa_ssp_write_reg(ssp, SSCR0, 0); in navpoint_down()
186 clk_disable_unprepare(ssp->clk); in navpoint_down()
209 struct ssp_device *ssp; in navpoint_probe() local
226 ssp = pxa_ssp_request(pdata->port, pdev->name); in navpoint_probe()
227 if (!ssp) { in navpoint_probe()
233 if (pxa_ssp_read_reg(ssp, SSCR0) & SSCR0_SSE) { in navpoint_probe()
234 pxa_ssp_write_reg(ssp, SSCR0, 0); in navpoint_probe()
245 navpoint->ssp = ssp; in navpoint_probe()
272 error = request_irq(ssp->irq, navpoint_irq, 0, pdev->name, navpoint); in navpoint_probe()
281 dev_dbg(&pdev->dev, "ssp%d, irq %d\n", pdata->port, ssp->irq); in navpoint_probe()
286 free_irq(ssp->irq, navpoint); in navpoint_probe()
290 pxa_ssp_free(ssp); in navpoint_probe()
303 struct ssp_device *ssp = navpoint->ssp; in navpoint_remove() local
305 free_irq(ssp->irq, navpoint); in navpoint_remove()
310 pxa_ssp_free(ssp); in navpoint_remove()