Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Simple PCIe FMC carrier SPEC
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Simple PCIe FMC carrier SPEC
Commits
65a6b915
Commit
65a6b915
authored
Aug 27, 2019
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sw:drv:spi: rename rx_pushN to rx_popN
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
6ada9bb9
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
spi-ocores.c
software/kernel/spi-ocores.c
+10
-10
No files found.
software/kernel/spi-ocores.c
View file @
65a6b915
...
...
@@ -258,7 +258,7 @@ static void spi_ocores_hw_xfer_tx_push128(struct spi_ocores *sp)
}
}
static
void
spi_ocores_hw_xfer_rx_p
ush
8
(
struct
spi_ocores
*
sp
)
static
void
spi_ocores_hw_xfer_rx_p
op
8
(
struct
spi_ocores
*
sp
)
{
uint32_t
data
;
...
...
@@ -270,7 +270,7 @@ static void spi_ocores_hw_xfer_rx_push8(struct spi_ocores *sp)
sp
->
cur_rx_buf
+=
1
;
}
static
void
spi_ocores_hw_xfer_rx_p
ush
16
(
struct
spi_ocores
*
sp
)
static
void
spi_ocores_hw_xfer_rx_p
op
16
(
struct
spi_ocores
*
sp
)
{
uint32_t
data
;
...
...
@@ -282,7 +282,7 @@ static void spi_ocores_hw_xfer_rx_push16(struct spi_ocores *sp)
sp
->
cur_rx_buf
+=
2
;
}
static
void
spi_ocores_hw_xfer_rx_p
ush
32
(
struct
spi_ocores
*
sp
)
static
void
spi_ocores_hw_xfer_rx_p
op
32
(
struct
spi_ocores
*
sp
)
{
uint32_t
data
;
...
...
@@ -294,7 +294,7 @@ static void spi_ocores_hw_xfer_rx_push32(struct spi_ocores *sp)
sp
->
cur_rx_buf
+=
4
;
}
static
void
spi_ocores_hw_xfer_rx_p
ush
64
(
struct
spi_ocores
*
sp
)
static
void
spi_ocores_hw_xfer_rx_p
op
64
(
struct
spi_ocores
*
sp
)
{
int
i
;
...
...
@@ -310,7 +310,7 @@ static void spi_ocores_hw_xfer_rx_push64(struct spi_ocores *sp)
}
}
static
void
spi_ocores_hw_xfer_rx_p
ush
128
(
struct
spi_ocores
*
sp
)
static
void
spi_ocores_hw_xfer_rx_p
op
128
(
struct
spi_ocores
*
sp
)
{
int
i
;
...
...
@@ -357,15 +357,15 @@ static void spi_ocores_hw_xfer_rx_pop(struct spi_ocores *sp)
nbits
=
spi_ocores_hw_xfer_bits_per_word
(
sp
);
if
(
nbits
>=
8
)
spi_ocores_hw_xfer_rx_p
ush
8
(
sp
);
spi_ocores_hw_xfer_rx_p
op
8
(
sp
);
else
if
(
nbits
>=
16
)
spi_ocores_hw_xfer_rx_p
ush
16
(
sp
);
spi_ocores_hw_xfer_rx_p
op
16
(
sp
);
else
if
(
nbits
>=
32
)
spi_ocores_hw_xfer_rx_p
ush
32
(
sp
);
spi_ocores_hw_xfer_rx_p
op
32
(
sp
);
else
if
(
nbits
>=
64
)
spi_ocores_hw_xfer_rx_p
ush
64
(
sp
);
spi_ocores_hw_xfer_rx_p
op
64
(
sp
);
else
if
(
nbits
>=
128
)
spi_ocores_hw_xfer_rx_p
ush
128
(
sp
);
spi_ocores_hw_xfer_rx_p
op
128
(
sp
);
sp
->
cur_len
-=
(
nbits
/
8
);
/* FIXME not working for !pow2 */
}
...
...
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