• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asus-wl-520gu-7.0.1.45/src/linux/linux/drivers/char/ftape/lowlevel/

Lines Matching refs:command

118 /*  send a command or parameter to the drive
138 static int ft_check_cmd_restrictions(qic117_cmd_t command)
143 TRACE(ft_t_flow, "%s", qic117_cmds[command].name);
144 /* A new motion command during an uninterruptible (motion)
145 * command requires a ready status before the new command can
146 * be issued. Otherwise a new motion command needs to be
149 if (qic117_cmds[command].cmd_type == motion &&
155 command, ftape_current_command);
161 if (qic117_cmds[command].mask != 0) {
168 difference = ((status ^ qic117_cmds[command].state) &
169 qic117_cmds[command].mask);
175 TRACE(ft_t_noise, "command %d issued while not ready",
176 command);
185 difference = ((status ^ qic117_cmds[command].state) &
186 qic117_cmds[command].mask);
193 "command %d issued while error pending",
194 command);
198 difference = ((status ^ qic117_cmds[command].state) &
199 qic117_cmds[command].mask);
218 status & qic117_cmds[command].mask,
219 qic117_cmds[command].state);
223 if (~status & QIC_STATUS_READY & qic117_cmds[command].mask) {
230 /* Issue a tape command:
232 int ftape_command(qic117_cmd_t command)
238 if ((unsigned int)command > NR_ITEMS(qic117_cmds)) {
241 TRACE_ABORT(-EIO, ft_t_bug, "bug - bad command: %d", command);
245 TRACE_ABORT(-EIO, ft_t_bug, "bug - recursion for command: %d",
246 command);
253 TRACE(ft_t_flow, "diagnostic command %d", command);
254 } else if (command == QIC_REPORT_DRIVE_STATUS ||
255 command == QIC_REPORT_NEXT_BIT) {
256 TRACE(ft_t_any, "%s", qic117_cmds[command].name);
258 TRACE_CATCH(ft_check_cmd_restrictions(command), --level);
262 result = ft_send_to_drive((unsigned int)command);
263 if (qic117_cmds[command].cmd_type == motion &&
264 command != QIC_LOGICAL_FORWARD && command != QIC_STOP_TAPE) {
267 ftape_current_command = command;
272 /* Send a tape command parameter:
273 * Generates command # of step pulses.
345 /* Issue command and wait up to timeout milli seconds for drive ready
347 int ftape_command_wait(qic117_cmd_t command, unsigned int timeout, int *status)
351 /* Drive should be ready, issue command
353 result = ftape_command(command);
364 /* Drive should be ready, issue command
377 /* Query the drive about its status. The command is sent and
382 qic117_cmd_t command,
390 TRACE_CATCH(ftape_command(command),);
425 /* this command will put track zero and index back into normal state */
475 qic117_cmd_t *command, int report)
483 *command = (qic117_cmd_t)((code>>8)&0xff);
486 ft_last_error.error.command = (__u8)*command;
502 if ((unsigned int)*command < NR_ITEMS(qic117_cmds) &&
503 qic117_cmds[*command].name != NULL) {
504 TRACE(ft_t_noise, "... caused by command \'%s\'",
505 qic117_cmds[*command].name);
507 TRACE(ft_t_noise, "... caused by unknown command %d",
508 *command);
694 qic117_cmd_t command;
696 ftape_report_error(&error, &command, 1);
747 qic117_cmd_t command;
752 /* Check if the drive does support the select rate command
754 * we assume the command is supported, else not.
765 ftape_report_error(&error, &command, 0);
771 TRACE(ft_t_noise, "Select Rate command is%s supported",
973 TRACE(ft_t_flow, "Reset command to drive");
997 * command and responded as it