Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6200539imm; Mon, 27 Aug 2018 11:26:32 -0700 (PDT) X-Google-Smtp-Source: ANB0VdZ8X0Iv4rQffiWEziNz5NzFjyx7pYquvJA1VUEcuOgA0j7nWpD7U+S07yhciKEx2dFoR+Ef X-Received: by 2002:a17:902:f098:: with SMTP id go24mr14421397plb.183.1535394392364; Mon, 27 Aug 2018 11:26:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535394392; cv=none; d=google.com; s=arc-20160816; b=DE3Y9QM/ZkW/Ncm0ydbn26jYIxWIJeBNJZREcK3vVnXRaXoCcgKhfkWXPNmFQHwA+s 3eniaP9RVIK2nJHPOM3UTNsSBbgUiVxR7jHnUIAcjmCmsit1vpke3xnridNVuCJXD1+E wZlEKZw1l64bxbGSj/i15UY1hguBHDdzSW8UrMokNoIDyeZ1mziD2kYa+fmctNiFtGix cfJsdMs7/67HnKEVzFg0jyBKqSVF+NGkbWXR4+kpU1dCWDTDZtpqnby/F1Qw9zW+x/BP 75XMUZiOnViZjMDGnUP964kTHtZdgAi6HhRZ3qTmgV/cKVtYF6GIh4oVRVXv2HDJ7IH1 FZkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature :arc-authentication-results; bh=q2x68N8lrgJfZ6T7hgCccIIuZNvKapdrxrCil2Dgb9w=; b=JfdWSwUbP6uD59gk+G/h6oMwEgnQTKOx9edsXeRjGyy08pbqsvtGIm6aNrUWDaGCJK iS2ME7JtRo8jY9OzjHM7+vm7IYI8jyt9ott/a74dKev437WRz5B5sPJQaRlt0eb8Urbb Bvf89XgVLDB6dCjcYWgu8T/RRO7k6JrwgZR3SVXzDzfWabhNMu7dY5UavZETlz8tPBgb LUbUfF/xPeBYpOUKAh0I+s14bBTqgiAzptbCalrzMmlopYWTvSqtqfFDDPQKU/CPUTob DycgYwzCZNQussXLlzCHrKA1n3v6a3XxswBs3je0BaiP0TpfuyO1bPuyq/BHTOSF9WWl HOhw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PFqYcS5E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s184-v6si14599057pgb.161.2018.08.27.11.26.16; Mon, 27 Aug 2018 11:26:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=PFqYcS5E; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727817AbeH0WME (ORCPT + 99 others); Mon, 27 Aug 2018 18:12:04 -0400 Received: from mail-pg1-f202.google.com ([209.85.215.202]:34797 "EHLO mail-pg1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbeH0WMD (ORCPT ); Mon, 27 Aug 2018 18:12:03 -0400 Received: by mail-pg1-f202.google.com with SMTP id w23-v6so11494473pgv.1 for ; Mon, 27 Aug 2018 11:24:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=q2x68N8lrgJfZ6T7hgCccIIuZNvKapdrxrCil2Dgb9w=; b=PFqYcS5EufQ2dHl3dPvBIxcnG2eqxY61wcSLe8CrYAtJHO2auwrTXK7+nikPq7YNl1 /9/jjwWOc0s55zUSsl4NPkA3s55/pMFf0uUuAOOz0VOIvIx7R2P5zm4ZAF9hS2Py1Hf0 TkWVytlGPCZ2n6RQ3PFtXmCumjR1NVliD6AuiJi+9sgRNdR++C/1+2Z2pATuu0zBxJ3i 6WX2dd3VoxoKKBZyyDmTnBsYtdLd6wDoL4hY8g69vZoMRcEPkr8XUGhhKIhgbadlPitW AondWhh7kGEMsqifKG2q+XToqXmlASxfziRMxKDI99Y4v8SU5anK2+c/WLWPBNxatCbO 7h2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=q2x68N8lrgJfZ6T7hgCccIIuZNvKapdrxrCil2Dgb9w=; b=EhlCs+Ekjy0btP6u3okIRTFfE71djcnrM5wswBuJhmowVmuyvee8vOqNPSzBTSAJ8W KFZHYk8K2p/8iiQSvxCJnNFyMIseIolUG9hZflBvhCIauGttsoku54yB3z25prq8k0g4 itJ//mg2SF5Zc2AJC7I5RdZwRMLoLOro+Cp45eeIsFgQsPxZh2llGwnggQOA5LFuBHJ8 6YMIZXPTA0Y1URA7oNHJWucr0p7b67p0gEvSx5edpd20EwxIc9PSGTI8rKcuQufifNCE AETZDOIc7+kQ78Wjp6Cio38bKZJJPaU5iFjnbS9ZxNc1jiHUBD9Tu1BIZT36m1lb2/4m B2jA== X-Gm-Message-State: APzg51CMm9cm3gPxwibFiEM5y6jjE+3SuUS2CSOpFWu9FFOGMxPX59Kj tJpFSo/ayovJ/sATUI0fBybZCkAV X-Received: by 2002:a63:5f15:: with SMTP id t21-v6mr3364486pgb.23.1535394261540; Mon, 27 Aug 2018 11:24:21 -0700 (PDT) Date: Mon, 27 Aug 2018 11:23:11 -0700 In-Reply-To: <20180827182315.126345-1-rkir@google.com> Message-Id: <20180827182315.126345-16-rkir@google.com> Mime-Version: 1.0 References: <20180827182315.126345-1-rkir@google.com> X-Mailer: git-send-email 2.19.0.rc0.228.g281dcd1b4d0-goog Subject: [PATCH 16/20] platform: goldfish: pipe: Rename goldfish_x to goldfish_pipe_x From: rkir@google.com To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, tkjos@google.com, Roman Kiryanov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Kiryanov Add "pipe" to the pipe related function names. Signed-off-by: Roman Kiryanov --- drivers/platform/goldfish/goldfish_pipe.c | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c index fb37499731a4..95256a5c593c 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c @@ -213,7 +213,8 @@ struct goldfish_pipe_dev { struct goldfish_pipe_dev goldfish_pipe_dev; -static int goldfish_cmd_locked(struct goldfish_pipe *pipe, enum PipeCmdCode cmd) +static int goldfish_pipe_cmd_locked(struct goldfish_pipe *pipe, + enum PipeCmdCode cmd) { pipe->command_buffer->cmd = cmd; /* failure by default */ @@ -222,13 +223,13 @@ static int goldfish_cmd_locked(struct goldfish_pipe *pipe, enum PipeCmdCode cmd) return pipe->command_buffer->status; } -static int goldfish_cmd(struct goldfish_pipe *pipe, enum PipeCmdCode cmd) +static int goldfish_pipe_cmd(struct goldfish_pipe *pipe, enum PipeCmdCode cmd) { int status; if (mutex_lock_interruptible(&pipe->lock)) return PIPE_ERROR_IO; - status = goldfish_cmd_locked(pipe, cmd); + status = goldfish_pipe_cmd_locked(pipe, cmd); mutex_unlock(&pipe->lock); return status; } @@ -349,7 +350,7 @@ static int transfer_max_buffers(struct goldfish_pipe *pipe, pipe->command_buffer); /* Transfer the data */ - *status = goldfish_cmd_locked(pipe, + *status = goldfish_pipe_cmd_locked(pipe, is_write ? PIPE_CMD_WRITE : PIPE_CMD_READ); *consumed_size = pipe->command_buffer->rw_params.consumed_size; @@ -368,7 +369,7 @@ static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write) set_bit(wake_bit, &pipe->flags); /* Tell the emulator we're going to wait for a wake event */ - goldfish_cmd(pipe, + goldfish_pipe_cmd(pipe, is_write ? PIPE_CMD_WAKE_ON_WRITE : PIPE_CMD_WAKE_ON_READ); while (test_bit(wake_bit, &pipe->flags)) { @@ -490,7 +491,7 @@ static __poll_t goldfish_pipe_poll(struct file *filp, poll_table *wait) poll_wait(filp, &pipe->wake_queue, wait); - status = goldfish_cmd(pipe, PIPE_CMD_POLL); + status = goldfish_pipe_cmd(pipe, PIPE_CMD_POLL); if (status < 0) return -ERESTARTSYS; @@ -722,7 +723,7 @@ static int goldfish_pipe_open(struct inode *inode, struct file *file) MAX_BUFFERS_PER_COMMAND; dev->buffers->open_command_params.command_buffer_ptr = (u64)(unsigned long)__pa(pipe->command_buffer); - status = goldfish_cmd_locked(pipe, PIPE_CMD_OPEN); + status = goldfish_pipe_cmd_locked(pipe, PIPE_CMD_OPEN); spin_unlock_irqrestore(&dev->lock, flags); if (status < 0) goto err_cmd; @@ -748,7 +749,7 @@ static int goldfish_pipe_release(struct inode *inode, struct file *filp) struct goldfish_pipe_dev *dev = pipe->dev; /* The guest is closing the channel, so tell the emulator right now */ - goldfish_cmd(pipe, PIPE_CMD_CLOSE); + goldfish_pipe_cmd(pipe, PIPE_CMD_CLOSE); spin_lock_irqsave(&dev->lock, flags); dev->pipes[pipe->id] = NULL; -- 2.19.0.rc0.228.g281dcd1b4d0-goog