Lines Matching defs:cmd

188     int cmd;
544 static void dma_cmd(PSB16STATE pThis, uint8_t cmd, uint8_t d0, int dma_len)
546 pThis->use_hdma = cmd < 0xc0;
547 pThis->fifo = (cmd >> 1) & 1;
548 pThis->dma_auto = (cmd >> 2) & 1;
552 switch (cmd >> 4)
661 static void sb16HandleCommand(PSB16STATE pThis, uint8_t cmd)
663 LogFlowFunc(("command %#x\n", cmd));
665 if (cmd > 0xaf && cmd < 0xd0)
667 if (cmd & 8) /** @todo Handle recording. */
668 LogFlowFunc(("ADC not yet supported (command %#x)\n", cmd));
670 switch (cmd >> 4)
676 LogFlowFunc(("%#x wrong bits\n", cmd));
685 switch (cmd)
801 dma_cmd8(pThis, (((cmd & 1) == 0) ? 1 : 0) | DMA8_HIGH, -1);
874 pThis->mixer_regs[0x82] |= (cmd == 0xf2) ? 1 : 2;
900 LogFlowFunc(("Unrecognized command %#x\n", cmd));
911 pThis->cmd = -1;
913 pThis->cmd = cmd;
919 cmd, pThis->needed_bytes));
941 pThis->cmd, pThis->in_index, pThis->needed_bytes));
943 if (pThis->cmd > 0xaf && pThis->cmd < 0xd0)
949 if (pThis->cmd & 8)
950 LogFlowFunc(("ADC params cmd = %#x d0 = %d, d1 = %d, d2 = %d\n", pThis->cmd, d0, d1, d2));
953 LogFlowFunc(("cmd = %#x d0 = %d, d1 = %d, d2 = %d\n", pThis->cmd, d0, d1, d2));
954 dma_cmd(pThis, pThis->cmd, d0, d1 + (d2 << 8));
959 switch (pThis->cmd)
1009 LogFlowFunc(("cmd 0x10 d0=%#x\n", d0));
1023 LogFlowFunc(("cmd 0x42 might not do what it think it should\n"));
1115 LogFlowFunc(("complete: unrecognized command %#x\n", pThis->cmd));
1121 pThis->cmd = -1;
1188 pThis->cmd = -1;
1323 if (pThis->cmd != -1)
1324 LogFlowFunc(("empty output buffer for command %#x\n", pThis->cmd));
1940 qemu_put_be32 (f, pThis->cmd);
2001 pThis->cmd=qemu_get_be32 (f);
2107 pThis->cmd = -1;
2362 pThis->cmd = -1;