Lines Matching defs:command
141 waiting for a command to
157 static int firm_send_command(struct usb_serial_port *port, __u8 command,
171 #define COMMAND_TIMEOUT (2*HZ) /* 2 second timeout for a command */
227 __u8 *command;
234 command = kmalloc(2, GFP_KERNEL);
235 if (!command)
237 command[0] = WHITEHEAT_GET_HW_INFO;
238 command[1] = 0;
249 ret = usb_bulk_msg(serial->dev, pipe, command, 2,
252 dev_err(&serial->dev->dev, "%s: Couldn't send command [%d]\n",
256 dev_err(&serial->dev->dev, "%s: Send command incomplete [%d]\n",
275 } else if (result[0] != command[0]) {
299 kfree(command);
315 kfree(command);
321 kfree(command);
330 /* free up our private data for our command port */
366 /* send an open port command */
525 waiting command to wakeup */
547 static int firm_send_command(struct usb_serial_port *port, __u8 command,
558 dev_dbg(dev, "%s - command %d\n", __func__, command);
570 transfer_buffer[0] = command;
579 /* wait for the command to complete */
586 dev_dbg(dev, "%s - command timed out.\n", __func__);
592 dev_dbg(dev, "%s - command failed.\n", __func__);
598 dev_dbg(dev, "%s - command completed.\n", __func__);
599 switch (command) {