Lines Matching refs:cmd
118 #define DBRI_CMD(cmd, intr, value) ((cmd << 28) | \ argument
269 s32 cmd[DBRI_NO_CMDS]; /* Place for commands */ member
669 if (dbri->cmdptr - dbri->dma->cmd + len < DBRI_NO_CMDS - 2) in dbri_cmdlock()
672 return dbri->dma->cmd; in dbri_cmdlock()
687 static void dbri_cmdsend(struct snd_dbri *dbri, s32 *cmd, int len) in dbri_cmdsend() argument
695 *(cmd) = DBRI_CMD(D_WAIT, 1, wait_id); in dbri_cmdsend()
696 *(cmd+1) = DBRI_CMD(D_WAIT, 1, wait_id); in dbri_cmdsend()
699 addr = dvma_addr + (cmd - len - dbri->dma->cmd) * sizeof(s32); in dbri_cmdsend()
704 if (cmd > dbri->cmdptr) { in dbri_cmdsend()
707 for (ptr = dbri->cmdptr; ptr < cmd+2; ptr++) in dbri_cmdsend()
716 for (ptr = dbri->dma->cmd; ptr < cmd+2; ptr++) in dbri_cmdsend()
727 dbri->cmdptr = cmd; in dbri_cmdsend()
758 s32 *cmd; in dbri_initialize() local
782 cmd = dbri->cmdptr = dbri->dma->cmd; in dbri_initialize()
783 *(cmd++) = DBRI_CMD(D_IIQ, 0, 0); in dbri_initialize()
784 *(cmd++) = dma_addr; in dbri_initialize()
785 *(cmd++) = DBRI_CMD(D_PAUSE, 0, 0); in dbri_initialize()
786 dbri->cmdptr = cmd; in dbri_initialize()
787 *(cmd++) = DBRI_CMD(D_WAIT, 1, 0); in dbri_initialize()
788 *(cmd++) = DBRI_CMD(D_WAIT, 1, 0); in dbri_initialize()
789 dma_addr = dvma_addr + dbri_dma_off(cmd, 0); in dbri_initialize()
825 s32 *cmd; in reset_pipe() local
840 cmd = dbri_cmdlock(dbri, 3); in reset_pipe()
841 *(cmd++) = DBRI_CMD(D_SDP, 0, sdp | D_SDP_C | D_SDP_P); in reset_pipe()
842 *(cmd++) = 0; in reset_pipe()
843 *(cmd++) = DBRI_CMD(D_PAUSE, 0, 0); in reset_pipe()
844 dbri_cmdsend(dbri, cmd, 3); in reset_pipe()
896 s32 *cmd; in link_time_slot() local
919 cmd = dbri_cmdlock(dbri, 4); in link_time_slot()
931 *(cmd++) = DBRI_CMD(D_DTS, 0, val); in link_time_slot()
932 *(cmd++) = 0; in link_time_slot()
933 *(cmd++) = in link_time_slot()
937 *(cmd++) = DBRI_CMD(D_DTS, 0, val); in link_time_slot()
938 *(cmd++) = in link_time_slot()
940 *(cmd++) = 0; in link_time_slot()
942 *(cmd++) = DBRI_CMD(D_PAUSE, 0, 0); in link_time_slot()
944 dbri_cmdsend(dbri, cmd, 4); in link_time_slot()
955 s32 *cmd;
966 cmd = dbri_cmdlock(dbri, 4);
970 *(cmd++) = DBRI_CMD(D_DTS, 0, val);
971 *(cmd++) = D_TS_NEXT(nextpipe);
972 *(cmd++) = 0;
975 *(cmd++) = DBRI_CMD(D_DTS, 0, val);
976 *(cmd++) = 0;
977 *(cmd++) = D_TS_NEXT(nextpipe);
979 *(cmd++) = DBRI_CMD(D_PAUSE, 0, 0);
981 dbri_cmdsend(dbri, cmd, 4);
1003 s32 *cmd; in xmit_fixed() local
1033 cmd = dbri_cmdlock(dbri, 3); in xmit_fixed()
1035 *(cmd++) = DBRI_CMD(D_SSP, 0, pipe); in xmit_fixed()
1036 *(cmd++) = data; in xmit_fixed()
1037 *(cmd++) = DBRI_CMD(D_PAUSE, 0, 0); in xmit_fixed()
1040 dbri_cmdsend(dbri, cmd, 3); in xmit_fixed()
1244 s32 *cmd; in reset_chi() local
1249 cmd = dbri_cmdlock(dbri, 4); in reset_chi()
1252 *(cmd++) = DBRI_CMD(D_DTS, 0, val); in reset_chi()
1253 *(cmd++) = D_TS_ANCHOR | D_TS_NEXT(16); in reset_chi()
1254 *(cmd++) = D_TS_ANCHOR | D_TS_NEXT(16); in reset_chi()
1255 *(cmd++) = DBRI_CMD(D_PAUSE, 0, 0); in reset_chi()
1256 dbri_cmdsend(dbri, cmd, 4); in reset_chi()
1261 cmd = dbri_cmdlock(dbri, 4); in reset_chi()
1270 *(cmd++) = DBRI_CMD(D_CHI, 0, D_CHI_CHICM(0)); in reset_chi()
1285 *(cmd++) = DBRI_CMD(D_CHI, 0, D_CHI_CHICM(divisor) | D_CHI_FD in reset_chi()
1299 *(cmd++) = DBRI_CMD(D_PAUSE, 0, 0); in reset_chi()
1300 *(cmd++) = DBRI_CMD(D_CDM, 0, D_CDM_XCE | D_CDM_XEN | D_CDM_REN); in reset_chi()
1301 *(cmd++) = DBRI_CMD(D_PAUSE, 0, 0); in reset_chi()
1303 dbri_cmdsend(dbri, cmd, 4); in reset_chi()
1710 s32 *cmd; in xmit_descs() local
1728 cmd = dbri_cmdlock(dbri, 2); in xmit_descs()
1729 *(cmd++) = DBRI_CMD(D_SDP, 0, in xmit_descs()
1732 *(cmd++) = dvma_addr + in xmit_descs()
1734 dbri_cmdsend(dbri, cmd, 2); in xmit_descs()
1750 cmd = dbri_cmdlock(dbri, 2); in xmit_descs()
1751 *(cmd++) = DBRI_CMD(D_SDP, 0, in xmit_descs()
1754 *(cmd++) = dvma_addr + in xmit_descs()
1756 dbri_cmdsend(dbri, cmd, 2); in xmit_descs()
1878 s32 *cmd; in dbri_process_one_interrupt()
1883 cmd = dbri_cmdlock(dbri, NoGetLock); in dbri_process_one_interrupt()
1884 *(cmd++) = DBRI_CMD(D_SDP, 0, in dbri_process_one_interrupt()
1887 *(cmd++) = dbri->dma_dvma + dbri_dma_off(desc, td); in dbri_process_one_interrupt()
1888 dbri_cmdsend(dbri, cmd); in dbri_process_one_interrupt()
2177 static int snd_dbri_trigger(struct snd_pcm_substream *substream, int cmd) in snd_dbri_trigger() argument
2183 switch (cmd) { in snd_dbri_trigger()