Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
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
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
2eab7ff8
Commit
2eab7ff8
authored
Dec 21, 2008
by
Geert Uytterhoeven
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fbdev: c2p - Rename c2p to c2p_planar
Signed-off-by:
Geert Uytterhoeven
<
geert@linux-m68k.org
>
parent
96f47d61
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
11 deletions
+12
-11
drivers/video/Makefile
drivers/video/Makefile
+1
-1
drivers/video/amifb.c
drivers/video/amifb.c
+3
-3
drivers/video/c2p.h
drivers/video/c2p.h
+3
-3
drivers/video/c2p_planar.c
drivers/video/c2p_planar.c
+5
-4
No files found.
drivers/video/Makefile
View file @
2eab7ff8
...
...
@@ -28,7 +28,7 @@ obj-$(CONFIG_FB_DDC) += fb_ddc.o
obj-$(CONFIG_FB_DEFERRED_IO)
+=
fb_defio.o
# Hardware specific drivers go first
obj-$(CONFIG_FB_AMIGA)
+=
amifb.o c2p.o
obj-$(CONFIG_FB_AMIGA)
+=
amifb.o c2p
_planar
.o
obj-$(CONFIG_FB_ARC)
+=
arcfb.o
obj-$(CONFIG_FB_CLPS711X)
+=
clps711xfb.o
obj-$(CONFIG_FB_CYBER2000)
+=
cyber2000fb.o
...
...
drivers/video/amifb.c
View file @
2eab7ff8
...
...
@@ -2159,9 +2159,9 @@ static void amifb_imageblit(struct fb_info *info, const struct fb_image *image)
src
+=
pitch
;
}
}
else
{
c2p
(
info
->
screen_base
,
image
->
data
,
dx
,
dy
,
width
,
height
,
par
->
next_line
,
par
->
next_plane
,
image
->
width
,
info
->
var
.
bits_per_pixel
);
c2p
_planar
(
info
->
screen_base
,
image
->
data
,
dx
,
dy
,
width
,
height
,
par
->
next_line
,
par
->
next_plane
,
image
->
width
,
info
->
var
.
bits_per_pixel
);
}
}
...
...
drivers/video/c2p.h
View file @
2eab7ff8
...
...
@@ -10,7 +10,7 @@
#include <linux/types.h>
extern
void
c2p
(
void
*
dst
,
const
void
*
src
,
u32
dx
,
u32
dy
,
u32
width
,
extern
void
c2p
_planar
(
void
*
dst
,
const
void
*
src
,
u32
dx
,
u32
dy
,
u32
width
,
u32
height
,
u32
dst_nextline
,
u32
dst_nextplane
,
u32
src_nextline
,
u32
bpp
);
...
...
drivers/video/c2p.c
→
drivers/video/c2p
_planar
.c
View file @
2eab7ff8
...
...
@@ -71,7 +71,7 @@ static inline void store_planar_masked(void *dst, u32 dst_inc, u32 bpp,
/*
* c2p - Copy 8-bit chunky image data to a planar frame buffer
* c2p
_planar
- Copy 8-bit chunky image data to a planar frame buffer
* @dst: Starting address of the planar frame buffer
* @dx: Horizontal destination offset (in pixels)
* @dy: Vertical destination offset (in pixels)
...
...
@@ -83,8 +83,9 @@ static inline void store_planar_masked(void *dst, u32 dst_inc, u32 bpp,
* @bpp: Bits per pixel of the planar frame buffer (1-8)
*/
void
c2p
(
void
*
dst
,
const
void
*
src
,
u32
dx
,
u32
dy
,
u32
width
,
u32
height
,
u32
dst_nextline
,
u32
dst_nextplane
,
u32
src_nextline
,
u32
bpp
)
void
c2p_planar
(
void
*
dst
,
const
void
*
src
,
u32
dx
,
u32
dy
,
u32
width
,
u32
height
,
u32
dst_nextline
,
u32
dst_nextplane
,
u32
src_nextline
,
u32
bpp
)
{
union
{
u8
pixels
[
32
];
...
...
@@ -150,6 +151,6 @@ void c2p(void *dst, const void *src, u32 dx, u32 dy, u32 width, u32 height,
dst
+=
dst_nextline
;
}
}
EXPORT_SYMBOL_GPL
(
c2p
);
EXPORT_SYMBOL_GPL
(
c2p
_planar
);
MODULE_LICENSE
(
"GPL"
);
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