Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dma_ip_drivers
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Libraries
dma_ip_drivers
Commits
7642657b
Commit
7642657b
authored
Oct 30, 2020
by
Karen Xie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
XDMA: remove dead code
parent
279ce21a
Changes
3
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
992 deletions
+10
-992
XDMA/linux-kernel/xdma/cdev_sgdma.c
XDMA/linux-kernel/xdma/cdev_sgdma.c
+1
-4
XDMA/linux-kernel/xdma/libxdma.c
XDMA/linux-kernel/xdma/libxdma.c
+9
-973
XDMA/linux-kernel/xdma/libxdma.h
XDMA/linux-kernel/xdma/libxdma.h
+0
-15
No files found.
XDMA/linux-kernel/xdma/cdev_sgdma.c
View file @
7642657b
...
@@ -807,11 +807,8 @@ static int char_sgdma_close(struct inode *inode, struct file *file)
...
@@ -807,11 +807,8 @@ static int char_sgdma_close(struct inode *inode, struct file *file)
engine
=
xcdev
->
engine
;
engine
=
xcdev
->
engine
;
if
(
engine
->
streaming
&&
engine
->
dir
==
DMA_FROM_DEVICE
)
{
if
(
engine
->
streaming
&&
engine
->
dir
==
DMA_FROM_DEVICE
)
engine
->
device_open
=
0
;
engine
->
device_open
=
0
;
if
(
engine
->
cyclic_req
)
return
xdma_cyclic_transfer_teardown
(
engine
);
}
return
0
;
return
0
;
}
}
...
...
XDMA/linux-kernel/xdma/libxdma.c
View file @
7642657b
This diff is collapsed.
Click to expand it.
XDMA/linux-kernel/xdma/libxdma.h
View file @
7642657b
...
@@ -508,20 +508,9 @@ struct xdma_engine {
...
@@ -508,20 +508,9 @@ struct xdma_engine {
/* Members applicable to AXI-ST C2H (cyclic) transfers */
/* Members applicable to AXI-ST C2H (cyclic) transfers */
struct
xdma_result
*
cyclic_result
;
struct
xdma_result
*
cyclic_result
;
dma_addr_t
cyclic_result_bus
;
/* bus addr for transfer */
dma_addr_t
cyclic_result_bus
;
/* bus addr for transfer */
struct
xdma_request_cb
*
cyclic_req
;
struct
sg_table
cyclic_sgt
;
u8
*
perf_buf_virt
;
u8
*
perf_buf_virt
;
dma_addr_t
perf_buf_bus
;
/* bus address */
dma_addr_t
perf_buf_bus
;
/* bus address */
u8
eop_found
;
/* used only for cyclic(rx:c2h) */
int
eop_count
;
int
rx_tail
;
/* follows the HW */
int
rx_head
;
/* where the SW reads from */
int
rx_overrun
;
/* flag if overrun occured */
/* for copy from cyclic buffer to user buffer */
unsigned
int
user_buffer_index
;
/* Members associated with polled mode support */
/* Members associated with polled mode support */
u8
*
poll_mode_addr_virt
;
/* virt addr for descriptor writeback */
u8
*
poll_mode_addr_virt
;
/* virt addr for descriptor writeback */
dma_addr_t
poll_mode_bus
;
/* bus addr for descriptor writeback */
dma_addr_t
poll_mode_bus
;
/* bus addr for descriptor writeback */
...
@@ -681,10 +670,6 @@ struct xdma_transfer *engine_cyclic_stop(struct xdma_engine *engine);
...
@@ -681,10 +670,6 @@ struct xdma_transfer *engine_cyclic_stop(struct xdma_engine *engine);
void
enable_perf
(
struct
xdma_engine
*
engine
);
void
enable_perf
(
struct
xdma_engine
*
engine
);
void
get_perf_stats
(
struct
xdma_engine
*
engine
);
void
get_perf_stats
(
struct
xdma_engine
*
engine
);
int
xdma_cyclic_transfer_setup
(
struct
xdma_engine
*
engine
);
int
xdma_cyclic_transfer_teardown
(
struct
xdma_engine
*
engine
);
ssize_t
xdma_engine_read_cyclic
(
struct
xdma_engine
*
engine
,
char
__user
*
buf
,
size_t
count
,
int
timeout_ms
);
int
engine_addrmode_set
(
struct
xdma_engine
*
engine
,
unsigned
long
arg
);
int
engine_addrmode_set
(
struct
xdma_engine
*
engine
,
unsigned
long
arg
);
int
engine_service_poll
(
struct
xdma_engine
*
engine
,
u32
expected_desc_count
);
int
engine_service_poll
(
struct
xdma_engine
*
engine
,
u32
expected_desc_count
);
#endif
/* XDMA_LIB_H */
#endif
/* XDMA_LIB_H */
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment