Lines Matching defs:send_cmd
115 static int send_cmd(struct scd_softc *, u_char cmd, u_int nargs, ...);
240 (void)send_cmd(sc, CMD_SPIN_DOWN, 0);
483 rc = send_cmd(sc, CMD_PLAY_AUDIO, 7,
507 (void)send_cmd(sc, CMD_STOP_AUDIO, 0);
523 if (send_cmd(sc, CMD_STOP_AUDIO, 0) != 0)
555 if (send_cmd(sc, CMD_STOP_AUDIO, 0) != 0 ||
556 send_cmd(sc, CMD_SPIN_DOWN, 0) != 0 ||
557 send_cmd(sc, CMD_EJECT, 0) != 0)
629 rc = send_cmd(sc, CMD_GET_DRIVE_CONFIG, 0);
671 rc = send_cmd(sc, CMD_GET_SUBCHANNEL_DATA, 0);
1052 rc = send_cmd(sc, CMD_SPIN_UP, 0, 0, res_reg, &res_size);
1059 rc = send_cmd(sc, CMD_READ_TOC, 0);
1107 rc = send_cmd(sc, CMD_GET_TOC, 1, 1);
1169 rc = send_cmd(sc, CMD_SET_DRIVE_PARAM, 2,
1179 int loop_index = 2; /* send_cmd() reads two bytes ... */
1200 send_cmd(struct scd_softc *sc, u_char cmd, u_int nargs, ...)
1212 XDEBUG(sc, 1, "DEBUG: send_cmd: cmd=0x%x nargs=%d", cmd, nargs);
1246 XDEBUG(sc, 1, "DEBUG: send_cmd: drive_error=0x%x\n", rc);
1251 XDEBUG(sc, 1, "DEBUG: send_cmd: result_len=%d\n", rc);