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
89c651e2
Commit
89c651e2
authored
Aug 20, 2015
by
Ben Skeggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
drm/nouveau/engine: rename some functions to avoid upcoming conflicts
Signed-off-by:
Ben Skeggs
<
bskeggs@redhat.com
>
parent
3a8c3400
Changes
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
19 additions
and
19 deletions
+19
-19
drivers/gpu/drm/nouveau/include/nvkm/core/engine.h
drivers/gpu/drm/nouveau/include/nvkm/core/engine.h
+2
-2
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
+2
-2
drivers/gpu/drm/nouveau/include/nvkm/engine/gr.h
drivers/gpu/drm/nouveau/include/nvkm/engine/gr.h
+2
-2
drivers/gpu/drm/nouveau/include/nvkm/engine/mpeg.h
drivers/gpu/drm/nouveau/include/nvkm/engine/mpeg.h
+2
-2
drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h
drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
+1
-1
drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c
drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
+2
-2
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
+2
-2
No files found.
drivers/gpu/drm/nouveau/include/nvkm/core/engine.h
View file @
89c651e2
...
@@ -40,9 +40,9 @@ struct nvkm_engine *nvkm_engine(void *obj, int idx);
...
@@ -40,9 +40,9 @@ struct nvkm_engine *nvkm_engine(void *obj, int idx);
#define nvkm_engine_destroy(p) \
#define nvkm_engine_destroy(p) \
nvkm_subdev_destroy(&(p)->subdev)
nvkm_subdev_destroy(&(p)->subdev)
#define nvkm_engine_init
(p)
\
#define nvkm_engine_init
_old(p)
\
nvkm_subdev_init_old(&(p)->subdev)
nvkm_subdev_init_old(&(p)->subdev)
#define nvkm_engine_fini
(p,s)
\
#define nvkm_engine_fini
_old(p,s)
\
nvkm_subdev_fini_old(&(p)->subdev, (s))
nvkm_subdev_fini_old(&(p)->subdev, (s))
int
nvkm_engine_create_
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
int
nvkm_engine_create_
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
...
...
drivers/gpu/drm/nouveau/include/nvkm/engine/fifo.h
View file @
89c651e2
...
@@ -91,9 +91,9 @@ nvkm_fifo(void *obj)
...
@@ -91,9 +91,9 @@ nvkm_fifo(void *obj)
#define nvkm_fifo_create(o,e,c,fc,lc,d) \
#define nvkm_fifo_create(o,e,c,fc,lc,d) \
nvkm_fifo_create_((o), (e), (c), (fc), (lc), sizeof(**d), (void **)d)
nvkm_fifo_create_((o), (e), (c), (fc), (lc), sizeof(**d), (void **)d)
#define nvkm_fifo_init(p) \
#define nvkm_fifo_init(p) \
nvkm_engine_init(&(p)->engine)
nvkm_engine_init
_old
(&(p)->engine)
#define nvkm_fifo_fini(p,s) \
#define nvkm_fifo_fini(p,s) \
nvkm_engine_fini(&(p)->engine, (s))
nvkm_engine_fini
_old
(&(p)->engine, (s))
int
nvkm_fifo_create_
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
int
nvkm_fifo_create_
(
struct
nvkm_object
*
,
struct
nvkm_object
*
,
struct
nvkm_oclass
*
,
int
min
,
int
max
,
struct
nvkm_oclass
*
,
int
min
,
int
max
,
...
...
drivers/gpu/drm/nouveau/include/nvkm/engine/gr.h
View file @
89c651e2
...
@@ -42,9 +42,9 @@ nvkm_gr(void *obj)
...
@@ -42,9 +42,9 @@ nvkm_gr(void *obj)
#define nvkm_gr_destroy(d) \
#define nvkm_gr_destroy(d) \
nvkm_engine_destroy(&(d)->engine)
nvkm_engine_destroy(&(d)->engine)
#define nvkm_gr_init(d) \
#define nvkm_gr_init(d) \
nvkm_engine_init(&(d)->engine)
nvkm_engine_init
_old
(&(d)->engine)
#define nvkm_gr_fini(d,s) \
#define nvkm_gr_fini(d,s) \
nvkm_engine_fini(&(d)->engine, (s))
nvkm_engine_fini
_old
(&(d)->engine, (s))
#define _nvkm_gr_dtor _nvkm_engine_dtor
#define _nvkm_gr_dtor _nvkm_engine_dtor
#define _nvkm_gr_init _nvkm_engine_init
#define _nvkm_gr_init _nvkm_engine_init
...
...
drivers/gpu/drm/nouveau/include/nvkm/engine/mpeg.h
View file @
89c651e2
...
@@ -32,9 +32,9 @@ struct nvkm_mpeg {
...
@@ -32,9 +32,9 @@ struct nvkm_mpeg {
#define nvkm_mpeg_destroy(d) \
#define nvkm_mpeg_destroy(d) \
nvkm_engine_destroy(&(d)->engine)
nvkm_engine_destroy(&(d)->engine)
#define nvkm_mpeg_init(d) \
#define nvkm_mpeg_init(d) \
nvkm_engine_init(&(d)->engine)
nvkm_engine_init
_old
(&(d)->engine)
#define nvkm_mpeg_fini(d,s) \
#define nvkm_mpeg_fini(d,s) \
nvkm_engine_fini(&(d)->engine, (s))
nvkm_engine_fini
_old
(&(d)->engine, (s))
#define _nvkm_mpeg_dtor _nvkm_engine_dtor
#define _nvkm_mpeg_dtor _nvkm_engine_dtor
#define _nvkm_mpeg_init _nvkm_engine_init
#define _nvkm_mpeg_init _nvkm_engine_init
...
...
drivers/gpu/drm/nouveau/include/nvkm/engine/sw.h
View file @
89c651e2
...
@@ -33,9 +33,9 @@ struct nvkm_sw {
...
@@ -33,9 +33,9 @@ struct nvkm_sw {
#define nvkm_sw_destroy(d) \
#define nvkm_sw_destroy(d) \
nvkm_engine_destroy(&(d)->engine)
nvkm_engine_destroy(&(d)->engine)
#define nvkm_sw_init(d) \
#define nvkm_sw_init(d) \
nvkm_engine_init(&(d)->engine)
nvkm_engine_init
_old
(&(d)->engine)
#define nvkm_sw_fini(d,s) \
#define nvkm_sw_fini(d,s) \
nvkm_engine_fini(&(d)->engine, (s))
nvkm_engine_fini
_old
(&(d)->engine, (s))
#define _nvkm_sw_dtor _nvkm_engine_dtor
#define _nvkm_sw_dtor _nvkm_engine_dtor
#define _nvkm_sw_init _nvkm_engine_init
#define _nvkm_sw_init _nvkm_engine_init
...
...
drivers/gpu/drm/nouveau/nvkm/engine/cipher/g84.c
View file @
89c651e2
...
@@ -163,7 +163,7 @@ g84_cipher_init(struct nvkm_object *object)
...
@@ -163,7 +163,7 @@ g84_cipher_init(struct nvkm_object *object)
struct
nvkm_device
*
device
=
cipher
->
subdev
.
device
;
struct
nvkm_device
*
device
=
cipher
->
subdev
.
device
;
int
ret
;
int
ret
;
ret
=
nvkm_engine_init
(
cipher
);
ret
=
nvkm_engine_init
_old
(
cipher
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/disp/base.c
View file @
89c651e2
...
@@ -129,7 +129,7 @@ _nvkm_disp_fini(struct nvkm_object *object, bool suspend)
...
@@ -129,7 +129,7 @@ _nvkm_disp_fini(struct nvkm_object *object, bool suspend)
nvkm_connector_fini
(
conn
);
nvkm_connector_fini
(
conn
);
}
}
return
nvkm_engine_fini
(
&
disp
->
engine
,
suspend
);
return
nvkm_engine_fini
_old
(
&
disp
->
engine
,
suspend
);
}
}
int
int
...
@@ -140,7 +140,7 @@ _nvkm_disp_init(struct nvkm_object *object)
...
@@ -140,7 +140,7 @@ _nvkm_disp_init(struct nvkm_object *object)
struct
nvkm_output
*
outp
;
struct
nvkm_output
*
outp
;
int
ret
;
int
ret
;
ret
=
nvkm_engine_init
(
&
disp
->
engine
);
ret
=
nvkm_engine_init
_old
(
&
disp
->
engine
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
...
...
drivers/gpu/drm/nouveau/nvkm/engine/falcon.c
View file @
89c651e2
...
@@ -67,7 +67,7 @@ _nvkm_falcon_init(struct nvkm_object *object)
...
@@ -67,7 +67,7 @@ _nvkm_falcon_init(struct nvkm_object *object)
u32
caps
;
u32
caps
;
/* enable engine, and determine its capabilities */
/* enable engine, and determine its capabilities */
ret
=
nvkm_engine_init
(
&
falcon
->
engine
);
ret
=
nvkm_engine_init
_old
(
&
falcon
->
engine
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
...
@@ -254,7 +254,7 @@ _nvkm_falcon_fini(struct nvkm_object *object, bool suspend)
...
@@ -254,7 +254,7 @@ _nvkm_falcon_fini(struct nvkm_object *object, bool suspend)
nvkm_mask
(
device
,
base
+
0x048
,
0x00000003
,
0x00000000
);
nvkm_mask
(
device
,
base
+
0x048
,
0x00000003
,
0x00000000
);
nvkm_wr32
(
device
,
base
+
0x014
,
0xffffffff
);
nvkm_wr32
(
device
,
base
+
0x014
,
0xffffffff
);
return
nvkm_engine_fini
(
&
falcon
->
engine
,
suspend
);
return
nvkm_engine_fini
_old
(
&
falcon
->
engine
,
suspend
);
}
}
int
int
...
...
drivers/gpu/drm/nouveau/nvkm/engine/pm/base.c
View file @
89c651e2
...
@@ -813,14 +813,14 @@ int
...
@@ -813,14 +813,14 @@ int
_nvkm_pm_fini
(
struct
nvkm_object
*
object
,
bool
suspend
)
_nvkm_pm_fini
(
struct
nvkm_object
*
object
,
bool
suspend
)
{
{
struct
nvkm_pm
*
pm
=
(
void
*
)
object
;
struct
nvkm_pm
*
pm
=
(
void
*
)
object
;
return
nvkm_engine_fini
(
&
pm
->
engine
,
suspend
);
return
nvkm_engine_fini
_old
(
&
pm
->
engine
,
suspend
);
}
}
int
int
_nvkm_pm_init
(
struct
nvkm_object
*
object
)
_nvkm_pm_init
(
struct
nvkm_object
*
object
)
{
{
struct
nvkm_pm
*
pm
=
(
void
*
)
object
;
struct
nvkm_pm
*
pm
=
(
void
*
)
object
;
return
nvkm_engine_init
(
&
pm
->
engine
);
return
nvkm_engine_init
_old
(
&
pm
->
engine
);
}
}
void
void
...
...
drivers/gpu/drm/nouveau/nvkm/engine/xtensa.c
View file @
89c651e2
...
@@ -90,7 +90,7 @@ _nvkm_xtensa_init(struct nvkm_object *object)
...
@@ -90,7 +90,7 @@ _nvkm_xtensa_init(struct nvkm_object *object)
int
i
,
ret
;
int
i
,
ret
;
u32
tmp
;
u32
tmp
;
ret
=
nvkm_engine_init
(
&
xtensa
->
engine
);
ret
=
nvkm_engine_init
_old
(
&
xtensa
->
engine
);
if
(
ret
)
if
(
ret
)
return
ret
;
return
ret
;
...
@@ -161,5 +161,5 @@ _nvkm_xtensa_fini(struct nvkm_object *object, bool suspend)
...
@@ -161,5 +161,5 @@ _nvkm_xtensa_fini(struct nvkm_object *object, bool suspend)
if
(
!
suspend
)
if
(
!
suspend
)
nvkm_gpuobj_ref
(
NULL
,
&
xtensa
->
gpu_fw
);
nvkm_gpuobj_ref
(
NULL
,
&
xtensa
->
gpu_fw
);
return
nvkm_engine_fini
(
&
xtensa
->
engine
,
suspend
);
return
nvkm_engine_fini
_old
(
&
xtensa
->
engine
,
suspend
);
}
}
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