Lines Matching defs:command
138 waiting for a command to
154 static int firm_send_command(struct usb_serial_port *port, __u8 command,
168 #define COMMAND_TIMEOUT (2*HZ) /* 2 second timeout for a command */
223 __u8 *command;
230 command = kmalloc(2, GFP_KERNEL);
231 if (!command)
233 command[0] = WHITEHEAT_GET_HW_INFO;
234 command[1] = 0;
245 ret = usb_bulk_msg(serial->dev, pipe, command, 2,
248 dev_err(&serial->dev->dev, "%s: Couldn't send command [%d]\n",
252 dev_err(&serial->dev->dev, "%s: Send command incomplete [%d]\n",
271 } else if (result[0] != command[0]) {
295 kfree(command);
311 kfree(command);
317 kfree(command);
326 /* free up our private data for our command port */
360 /* send an open port command */
509 waiting command to wakeup */
531 static int firm_send_command(struct usb_serial_port *port, __u8 command,
542 dev_dbg(dev, "%s - command %d\n", __func__, command);
554 transfer_buffer[0] = command;
563 /* wait for the command to complete */
570 dev_dbg(dev, "%s - command timed out.\n", __func__);
576 dev_dbg(dev, "%s - command failed.\n", __func__);
582 dev_dbg(dev, "%s - command completed.\n", __func__);
583 switch (command) {