Lines Matching refs:cmd_buff
578 Byte cmd_buff[2]; in set_drive_mode() local
581 cmd_buff[0] = SONY535_SET_DRIVE_MODE; in set_drive_mode()
582 cmd_buff[1] = mode; in set_drive_mode()
583 return do_sony_cmd(cmd_buff, 2, status, ret_buff, 1, 1); in set_drive_mode()
602 Byte cmd_buff[7]; in seek_and_read_N_blocks() local
615 cmd_buff[0] = SONY535_SEEK_AND_READ_N_BLOCKS_1; in seek_and_read_N_blocks()
617 cmd_buff[i + 1] = params[i]; in seek_and_read_N_blocks()
619 outb(cmd_buff[i], command_reg); in seek_and_read_N_blocks()
1081 Byte cmd_buff[10], params[10]; in cdu_ioctl() local
1107 cmd_buff[0] = SONY535_HOLD; in cdu_ioctl()
1108 do_sony_cmd(cmd_buff, 1, status, NULL, 0, 0); in cdu_ioctl()
1115 cmd_buff[0] = SONY535_SPIN_DOWN; in cdu_ioctl()
1116 dsc_status = do_sony_cmd(cmd_buff, 1, status, NULL, 0, 0); in cdu_ioctl()
1127 cmd_buff[0] = SONY535_HOLD; /* CDU-31 driver uses AUDIO_STOP, not pause */ in cdu_ioctl()
1128 if (do_sony_cmd(cmd_buff, 1, status, NULL, 0, 0) != 0) { in cdu_ioctl()
1153 cmd_buff[0] = SONY535_PLAY_AUDIO; in cdu_ioctl()
1154 cmd_buff[1] = 0; /* play back starting at this address */ in cdu_ioctl()
1155 cmd_buff[2] = cur_pos_msf[0]; in cdu_ioctl()
1156 cmd_buff[3] = cur_pos_msf[1]; in cdu_ioctl()
1157 cmd_buff[4] = cur_pos_msf[2]; in cdu_ioctl()
1158 cmd_buff[5] = SONY535_PLAY_AUDIO; in cdu_ioctl()
1159 cmd_buff[6] = 2; /* set ending address */ in cdu_ioctl()
1160 cmd_buff[7] = final_pos_msf[0]; in cdu_ioctl()
1161 cmd_buff[8] = final_pos_msf[1]; in cdu_ioctl()
1162 cmd_buff[9] = final_pos_msf[2]; in cdu_ioctl()
1163 if ((do_sony_cmd(cmd_buff, 5, status, NULL, 0, 0) != 0) || in cdu_ioctl()
1164 (do_sony_cmd(cmd_buff + 5, 5, status, NULL, 0, 0) != 0)) { in cdu_ioctl()
1183 cmd_buff[2 + i] = int_to_bcd(params[i]); in cdu_ioctl()
1184 cmd_buff[7 + i] = int_to_bcd(params[i + 3]); in cdu_ioctl()
1186 cmd_buff[0] = SONY535_PLAY_AUDIO; in cdu_ioctl()
1187 cmd_buff[1] = 0; /* play back starting at this address */ in cdu_ioctl()
1189 cmd_buff[5] = SONY535_PLAY_AUDIO; in cdu_ioctl()
1190 cmd_buff[6] = 2; /* set ending address */ in cdu_ioctl()
1192 if ((do_sony_cmd(cmd_buff, 5, status, NULL, 0, 0) != 0) || in cdu_ioctl()
1193 (do_sony_cmd(cmd_buff + 5, 5, status, NULL, 0, 0) != 0)) { in cdu_ioctl()
1199 final_pos_msf[0] = cmd_buff[7]; in cdu_ioctl()
1200 final_pos_msf[1] = cmd_buff[8]; in cdu_ioctl()
1201 final_pos_msf[2] = cmd_buff[9]; in cdu_ioctl()
1315 cmd_buff[0] = SONY535_PLAY_AUDIO; in cdu_ioctl()
1316 cmd_buff[1] = 0; /* play back starting at this address */ in cdu_ioctl()
1317 cmd_buff[2] = params[1]; in cdu_ioctl()
1318 cmd_buff[3] = params[2]; in cdu_ioctl()
1319 cmd_buff[4] = params[3]; in cdu_ioctl()
1320 cmd_buff[5] = SONY535_PLAY_AUDIO; in cdu_ioctl()
1321 cmd_buff[6] = 2; /* set ending address */ in cdu_ioctl()
1322 cmd_buff[7] = params[4]; in cdu_ioctl()
1323 cmd_buff[8] = params[5]; in cdu_ioctl()
1324 cmd_buff[9] = params[6]; in cdu_ioctl()
1325 if ((do_sony_cmd(cmd_buff, 5, status, NULL, 0, 0) != 0) || in cdu_ioctl()
1326 (do_sony_cmd(cmd_buff + 5, 5, status, NULL, 0, 0) != 0)) { in cdu_ioctl()
1354 cmd_buff[0] = SONY535_SET_VOLUME; in cdu_ioctl()
1355 cmd_buff[1] = volctrl.channel0; in cdu_ioctl()
1356 cmd_buff[2] = volctrl.channel1; in cdu_ioctl()
1357 if (do_sony_cmd(cmd_buff, 3, status, NULL, 0, 0) != 0) { in cdu_ioctl()
1366 cmd_buff[0] = SONY535_STOP; in cdu_ioctl()
1367 do_sony_cmd(cmd_buff, 1, status, NULL, 0, 0); in cdu_ioctl()
1368 cmd_buff[0] = SONY535_SPIN_DOWN; in cdu_ioctl()
1369 do_sony_cmd(cmd_buff, 1, status, NULL, 0, 0); in cdu_ioctl()
1372 cmd_buff[0] = SONY535_EJECT_CADDY; in cdu_ioctl()
1373 if (do_sony_cmd(cmd_buff, 1, status, NULL, 0, 0) != 0) { in cdu_ioctl()
1395 Byte status[2], cmd_buff[2]; in cdu_open() local
1411 cmd_buff[0] = SONY535_SPIN_DOWN; in cdu_open()
1412 do_sony_cmd(cmd_buff, 1, status, NULL, 0, 0); in cdu_open()
1423 cmd_buff[0] = SONY535_DISABLE_EJECT_BUTTON; in cdu_open()
1424 do_sony_cmd(cmd_buff, 1, status, NULL, 0, 0); in cdu_open()
1480 Byte cmd_buff[3]; in sony535_init() local
1535 cmd_buff[0] = SONY535_INQUIRY; in sony535_init()
1536 if (do_sony_cmd(cmd_buff, 1, status, in sony535_init()
1570 cmd_buff[0] = SONY535_SET_DRIVE_MODE; in sony535_init()
1571 cmd_buff[1] = 0x0; /* default audio */ in sony535_init()
1572 if (do_sony_cmd(cmd_buff, 2, status, ret_buff, 1, 1) == 0) { in sony535_init()