提交 d3274f20 编写于 作者: E Eli Billauer 提交者: Greg Kroah-Hartman

staging: xillybus: Reorganize line breaks for clarity

Suggested-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NEli Billauer <eli.billauer@gmail.com>
Reviewed-by: NDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
上级 21c3184c
...@@ -770,14 +770,11 @@ static ssize_t xillybus_read(struct file *filp, char __user *userbuf, ...@@ -770,14 +770,11 @@ static ssize_t xillybus_read(struct file *filp, char __user *userbuf,
bytes_done += howmany; bytes_done += howmany;
if (bufferdone) { if (bufferdone) {
channel->endpoint->ephw-> channel->endpoint->ephw->hw_sync_sgl_for_device(
hw_sync_sgl_for_device channel->endpoint,
( channel->wr_buffers[bufidx]->dma_addr,
channel->endpoint, channel->wr_buf_size,
channel->wr_buffers[bufidx]-> DMA_FROM_DEVICE);
dma_addr,
channel->wr_buf_size,
DMA_FROM_DEVICE);
/* /*
* Tell FPGA the buffer is done with. It's an * Tell FPGA the buffer is done with. It's an
...@@ -1031,7 +1028,9 @@ static int xillybus_myflush(struct xilly_channel *channel, long timeout) ...@@ -1031,7 +1028,9 @@ static int xillybus_myflush(struct xilly_channel *channel, long timeout)
bufidx = channel->rd_host_buf_idx; bufidx = channel->rd_host_buf_idx;
bufidx_minus1 = (bufidx == 0) ? channel->num_rd_buffers - 1 : bufidx-1; bufidx_minus1 = (bufidx == 0) ?
channel->num_rd_buffers - 1 :
bufidx - 1;
end_offset_plus1 = channel->rd_host_buf_pos >> end_offset_plus1 = channel->rd_host_buf_pos >>
channel->log2_element_size; channel->log2_element_size;
...@@ -1320,13 +1319,11 @@ static ssize_t xillybus_write(struct file *filp, const char __user *userbuf, ...@@ -1320,13 +1319,11 @@ static ssize_t xillybus_write(struct file *filp, const char __user *userbuf,
bytes_done += howmany; bytes_done += howmany;
if (bufferdone) { if (bufferdone) {
channel->endpoint->ephw-> channel->endpoint->ephw->hw_sync_sgl_for_device(
hw_sync_sgl_for_device( channel->endpoint,
channel->endpoint, channel->rd_buffers[bufidx]->dma_addr,
channel->rd_buffers[bufidx]-> channel->rd_buf_size,
dma_addr, DMA_TO_DEVICE);
channel->rd_buf_size,
DMA_TO_DEVICE);
mutex_lock(&channel->endpoint->register_mutex); mutex_lock(&channel->endpoint->register_mutex);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册