Lines Matching refs:cp
214 volatile struct dbdma_cmd __iomem *cp; in snd_pmac_pcm_prepare() local
253 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) { in snd_pmac_pcm_prepare()
254 st_le32(&cp->phy_addr, offset); in snd_pmac_pcm_prepare()
255 st_le16(&cp->req_count, rec->period_size); in snd_pmac_pcm_prepare()
257 st_le16(&cp->xfer_status, 0); in snd_pmac_pcm_prepare()
261 st_le16(&cp->command, DBDMA_NOP + BR_ALWAYS); in snd_pmac_pcm_prepare()
262 st_le32(&cp->cmd_dep, rec->cmd.addr); in snd_pmac_pcm_prepare()
278 volatile struct dbdma_cmd __iomem *cp; in snd_pmac_pcm_trigger() local
291 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger()
292 out_le16(&cp->command, command); in snd_pmac_pcm_trigger()
306 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger()
307 out_le16(&cp->command, DBDMA_STOP); in snd_pmac_pcm_trigger()
330 volatile struct dbdma_cmd __iomem *cp = &rec->cmd.cmds[rec->cur_period]; in snd_pmac_pcm_pointer() local
331 stat = ld_le16(&cp->xfer_status); in snd_pmac_pcm_pointer()
333 count = in_le16(&cp->res_count); in snd_pmac_pcm_pointer()
414 volatile struct dbdma_cmd __iomem *cp) in snd_pmac_pcm_dead_xfer() argument
427 memcpy((void *)emergency_dbdma.cmds, (void *)cp, in snd_pmac_pcm_dead_xfer()
430 st_le16(&cp->xfer_status, 0); in snd_pmac_pcm_dead_xfer()
431 st_le16(&cp->req_count, rec->period_size); in snd_pmac_pcm_dead_xfer()
432 cp = emergency_dbdma.cmds; in snd_pmac_pcm_dead_xfer()
437 req = ld_le16(&cp->req_count); in snd_pmac_pcm_dead_xfer()
438 res = ld_le16(&cp->res_count); in snd_pmac_pcm_dead_xfer()
439 phy = ld_le32(&cp->phy_addr); in snd_pmac_pcm_dead_xfer()
441 st_le16(&cp->req_count, res); in snd_pmac_pcm_dead_xfer()
442 st_le16(&cp->res_count, 0); in snd_pmac_pcm_dead_xfer()
443 st_le16(&cp->xfer_status, 0); in snd_pmac_pcm_dead_xfer()
444 st_le32(&cp->phy_addr, phy); in snd_pmac_pcm_dead_xfer()
446 st_le32(&cp->cmd_dep, rec->cmd.addr in snd_pmac_pcm_dead_xfer()
449 st_le16(&cp->command, OUTPUT_MORE | BR_ALWAYS | INTR_ALWAYS); in snd_pmac_pcm_dead_xfer()
465 volatile struct dbdma_cmd __iomem *cp; in snd_pmac_pcm_update() local
474 cp = emergency_dbdma.cmds; in snd_pmac_pcm_update()
476 cp = &rec->cmd.cmds[rec->cur_period]; in snd_pmac_pcm_update()
478 stat = ld_le16(&cp->xfer_status); in snd_pmac_pcm_update()
481 snd_pmac_pcm_dead_xfer(rec, cp); in snd_pmac_pcm_update()
492 st_le16(&cp->xfer_status, 0); in snd_pmac_pcm_update()
493 st_le16(&cp->req_count, rec->period_size); in snd_pmac_pcm_update()