Lines Matching refs:cmd

79 #define PORT100_CMD_RESPONSE(cmd) (cmd + 1)  argument
464 struct port100_cmd *cmd; member
611 return (PORT100_FRAME_CMD(f) == PORT100_CMD_RESPONSE(dev->cmd->code)); in port100_rx_frame_is_cmd_response()
617 struct port100_cmd *cmd = dev->cmd; in port100_recv_response() local
620 cmd->status = urb->status; in port100_recv_response()
641 cmd->status = -EIO; in port100_recv_response()
651 cmd->status = -EIO; in port100_recv_response()
670 struct port100_cmd *cmd = dev->cmd; in port100_recv_ack() local
674 cmd->status = urb->status; in port100_recv_ack()
695 cmd->status = -EIO; in port100_recv_ack()
703 cmd->status = rc; in port100_recv_ack()
813 struct port100_cmd *cmd = dev->cmd; in port100_send_async_complete() local
814 int status = cmd->status; in port100_send_async_complete()
816 struct sk_buff *req = cmd->req; in port100_send_async_complete()
817 struct sk_buff *resp = cmd->resp; in port100_send_async_complete()
821 dev->cmd = NULL; in port100_send_async_complete()
824 cmd->complete_cb(dev, cmd->complete_cb_context, in port100_send_async_complete()
834 cmd->complete_cb(dev, cmd->complete_cb_context, resp); in port100_send_async_complete()
837 kfree(cmd); in port100_send_async_complete()
845 struct port100_cmd *cmd; in port100_send_cmd_async() local
852 if (dev->cmd) { in port100_send_cmd_async()
862 cmd = kzalloc(sizeof(*cmd), GFP_KERNEL); in port100_send_cmd_async()
863 if (!cmd) { in port100_send_cmd_async()
868 cmd->code = cmd_code; in port100_send_cmd_async()
869 cmd->req = req; in port100_send_cmd_async()
870 cmd->resp = resp; in port100_send_cmd_async()
871 cmd->resp_len = resp_len; in port100_send_cmd_async()
872 cmd->complete_cb = complete_cb; in port100_send_cmd_async()
873 cmd->complete_cb_context = complete_cb_context; in port100_send_cmd_async()
877 dev->cmd = cmd; in port100_send_cmd_async()
881 kfree(cmd); in port100_send_cmd_async()
883 dev->cmd = NULL; in port100_send_cmd_async()
1641 kfree(dev->cmd); in port100_disconnect()