• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /asuswrt-rt-n18u-9.0.0.4.380.2695/release/src-rt-6.x.4708/linux/linux-2.6/drivers/usb/serial/

Lines Matching defs:command_info

393 	struct whiteheat_command_private *command_info;
547 command_info = kmalloc(sizeof(struct whiteheat_command_private),
549 if (command_info == NULL) {
556 mutex_init(&command_info->mutex);
557 command_info->port_running = 0;
558 init_waitqueue_head(&command_info->wait_command);
559 usb_set_serial_port_data(command_port, command_info);
1001 struct whiteheat_command_private *command_info;
1008 command_info = usb_get_serial_port_data(command_port);
1009 if (!command_info) {
1010 dbg("%s - command_info is NULL, exiting.", __func__);
1016 command_info->command_finished = WHITEHEAT_CMD_FAILURE;
1017 wake_up(&command_info->wait_command);
1025 command_info->command_finished = WHITEHEAT_CMD_COMPLETE;
1026 wake_up(&command_info->wait_command);
1028 command_info->command_finished = WHITEHEAT_CMD_FAILURE;
1029 wake_up(&command_info->wait_command);
1035 memcpy(command_info->result_buffer, &data[1],
1037 command_info->command_finished = WHITEHEAT_CMD_COMPLETE;
1038 wake_up(&command_info->wait_command);
1132 struct whiteheat_command_private *command_info;
1141 command_info = usb_get_serial_port_data(command_port);
1142 mutex_lock(&command_info->mutex);
1143 command_info->command_finished = false;
1157 t = wait_event_timeout(command_info->wait_command,
1158 (bool)command_info->command_finished, COMMAND_TIMEOUT);
1162 if (command_info->command_finished == false) {
1168 if (command_info->command_finished == WHITEHEAT_CMD_FAILURE) {
1174 if (command_info->command_finished == WHITEHEAT_CMD_COMPLETE) {
1179 memcpy(&info->mcr, command_info->result_buffer,
1185 mutex_unlock(&command_info->mutex);
1359 struct whiteheat_command_private *command_info;
1363 command_info = usb_get_serial_port_data(command_port);
1364 mutex_lock(&command_info->mutex);
1365 if (!command_info->port_running) {
1377 command_info->port_running++;
1380 mutex_unlock(&command_info->mutex);
1388 struct whiteheat_command_private *command_info;
1391 command_info = usb_get_serial_port_data(command_port);
1392 mutex_lock(&command_info->mutex);
1393 command_info->port_running--;
1394 if (!command_info->port_running)
1396 mutex_unlock(&command_info->mutex);