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
99643fc4
Commit
99643fc4
authored
Sep 17, 2004
by
Linus Torvalds
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fb: add __iomem annotations to cfbfillrect
parent
6675a253
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
drivers/video/cfbfillrect.c
drivers/video/cfbfillrect.c
+8
-8
No files found.
drivers/video/cfbfillrect.c
View file @
99643fc4
...
@@ -119,7 +119,7 @@ static inline unsigned long pixel_to_pat(const struct fb_info *p,
...
@@ -119,7 +119,7 @@ static inline unsigned long pixel_to_pat(const struct fb_info *p,
* Unaligned 32-bit pattern fill using 32/64-bit memory accesses
* Unaligned 32-bit pattern fill using 32/64-bit memory accesses
*/
*/
void
bitfill32
(
unsigned
long
*
dst
,
int
dst_idx
,
u32
pat
,
u32
n
)
void
bitfill32
(
unsigned
long
__iomem
*
dst
,
int
dst_idx
,
u32
pat
,
u32
n
)
{
{
unsigned
long
val
=
pat
;
unsigned
long
val
=
pat
;
unsigned
long
first
,
last
;
unsigned
long
first
,
last
;
...
@@ -178,7 +178,7 @@ void bitfill32(unsigned long *dst, int dst_idx, u32 pat, u32 n)
...
@@ -178,7 +178,7 @@ void bitfill32(unsigned long *dst, int dst_idx, u32 pat, u32 n)
* used for the next 32/64-bit word
* used for the next 32/64-bit word
*/
*/
void
bitfill
(
unsigned
long
*
dst
,
int
dst_idx
,
unsigned
long
pat
,
int
left
,
void
bitfill
(
unsigned
long
__iomem
*
dst
,
int
dst_idx
,
unsigned
long
pat
,
int
left
,
int
right
,
u32
n
)
int
right
,
u32
n
)
{
{
unsigned
long
first
,
last
;
unsigned
long
first
,
last
;
...
@@ -228,7 +228,7 @@ void bitfill(unsigned long *dst, int dst_idx, unsigned long pat, int left,
...
@@ -228,7 +228,7 @@ void bitfill(unsigned long *dst, int dst_idx, unsigned long pat, int left,
}
}
}
}
void
bitfill32_rev
(
unsigned
long
*
dst
,
int
dst_idx
,
u32
pat
,
u32
n
)
void
bitfill32_rev
(
unsigned
long
__iomem
*
dst
,
int
dst_idx
,
u32
pat
,
u32
n
)
{
{
unsigned
long
val
=
pat
,
dat
;
unsigned
long
val
=
pat
,
dat
;
unsigned
long
first
,
last
;
unsigned
long
first
,
last
;
...
@@ -300,7 +300,7 @@ void bitfill32_rev(unsigned long *dst, int dst_idx, u32 pat, u32 n)
...
@@ -300,7 +300,7 @@ void bitfill32_rev(unsigned long *dst, int dst_idx, u32 pat, u32 n)
* used for the next 32/64-bit word
* used for the next 32/64-bit word
*/
*/
void
bitfill_rev
(
unsigned
long
*
dst
,
int
dst_idx
,
unsigned
long
pat
,
int
left
,
void
bitfill_rev
(
unsigned
long
__iomem
*
dst
,
int
dst_idx
,
unsigned
long
pat
,
int
left
,
int
right
,
u32
n
)
int
right
,
u32
n
)
{
{
unsigned
long
first
,
last
,
dat
;
unsigned
long
first
,
last
,
dat
;
...
@@ -364,7 +364,7 @@ void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
...
@@ -364,7 +364,7 @@ void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
u32
bpp
=
p
->
var
.
bits_per_pixel
;
u32
bpp
=
p
->
var
.
bits_per_pixel
;
unsigned
long
x2
,
y2
,
vxres
,
vyres
;
unsigned
long
x2
,
y2
,
vxres
,
vyres
;
unsigned
long
height
,
width
,
fg
;
unsigned
long
height
,
width
,
fg
;
unsigned
long
*
dst
;
unsigned
long
__iomem
*
dst
;
int
dst_idx
,
left
;
int
dst_idx
,
left
;
if
(
p
->
state
!=
FBINFO_STATE_RUNNING
)
if
(
p
->
state
!=
FBINFO_STATE_RUNNING
)
...
@@ -397,7 +397,7 @@ void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
...
@@ -397,7 +397,7 @@ void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
else
else
fg
=
rect
->
color
;
fg
=
rect
->
color
;
dst
=
(
unsigned
long
*
)((
unsigned
long
)
p
->
screen_base
&
dst
=
(
unsigned
long
__iomem
*
)((
unsigned
long
)
p
->
screen_base
&
~
(
BYTES_PER_LONG
-
1
));
~
(
BYTES_PER_LONG
-
1
));
dst_idx
=
((
unsigned
long
)
p
->
screen_base
&
(
BYTES_PER_LONG
-
1
))
*
8
;
dst_idx
=
((
unsigned
long
)
p
->
screen_base
&
(
BYTES_PER_LONG
-
1
))
*
8
;
dst_idx
+=
rect
->
dy
*
p
->
fix
.
line_length
*
8
+
rect
->
dx
*
bpp
;
dst_idx
+=
rect
->
dy
*
p
->
fix
.
line_length
*
8
+
rect
->
dx
*
bpp
;
...
@@ -407,7 +407,7 @@ void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
...
@@ -407,7 +407,7 @@ void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
p
->
fbops
->
fb_sync
(
p
);
p
->
fbops
->
fb_sync
(
p
);
if
(
!
left
)
{
if
(
!
left
)
{
u32
pat
=
pixel_to_pat32
(
p
,
fg
);
u32
pat
=
pixel_to_pat32
(
p
,
fg
);
void
(
*
fill_op32
)(
unsigned
long
*
dst
,
int
dst_idx
,
u32
pat
,
void
(
*
fill_op32
)(
unsigned
long
__iomem
*
dst
,
int
dst_idx
,
u32
pat
,
u32
n
)
=
NULL
;
u32
n
)
=
NULL
;
switch
(
rect
->
rop
)
{
switch
(
rect
->
rop
)
{
...
@@ -429,7 +429,7 @@ void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
...
@@ -429,7 +429,7 @@ void cfb_fillrect(struct fb_info *p, const struct fb_fillrect *rect)
unsigned
long
pat
=
pixel_to_pat
(
p
,
fg
,
(
left
-
dst_idx
)
%
bpp
);
unsigned
long
pat
=
pixel_to_pat
(
p
,
fg
,
(
left
-
dst_idx
)
%
bpp
);
int
right
=
bpp
-
left
;
int
right
=
bpp
-
left
;
int
r
;
int
r
;
void
(
*
fill_op
)(
unsigned
long
*
dst
,
int
dst_idx
,
void
(
*
fill_op
)(
unsigned
long
__iomem
*
dst
,
int
dst_idx
,
unsigned
long
pat
,
int
left
,
int
right
,
unsigned
long
pat
,
int
left
,
int
right
,
u32
n
)
=
NULL
;
u32
n
)
=
NULL
;
...
...
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