aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm
diff options
context:
space:
mode:
authorDaniel Vetter <daniel.vetter@ffwll.ch>2016-12-29 15:48:26 -0500
committerDaniel Vetter <daniel.vetter@ffwll.ch>2016-12-30 07:34:59 -0500
commitea0dd85a75f15174cc2bf75f805e378391995931 (patch)
treee2dc904067a98bec44e04ca870b46d4e4434de9e /drivers/gpu/drm
parente9b4d7b56f293ed4de9ff7d16759d33492f83180 (diff)
drm/doc: use preferred struct reference in kernel-doc
sed -e 's/\( \* .*\)struct &\([_a-z]*\)/\1\&struct \2/' -i Originally I wasnt a friend of this style because I thought a line-break between the "&struct" and "foo" part would break it. But a quick test shows that " * &struct \n * foo\n" works pefectly well with current kernel-doc. So time to mass-apply these changes! Cc: Jani Nikula <jani.nikula@linux.intel.com> Cc: Chris Wilson <chris@chris-wilson.co.uk> Reviewed-by: David Herrmann <dh.herrmann@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com> Link: http://patchwork.freedesktop.org/patch/msgid/1483044517-5770-6-git-send-email-daniel.vetter@ffwll.ch
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r--drivers/gpu/drm/drm_atomic.c6
-rw-r--r--drivers/gpu/drm/drm_atomic_helper.c8
-rw-r--r--drivers/gpu/drm/drm_auth.c8
-rw-r--r--drivers/gpu/drm/drm_bridge.c4
-rw-r--r--drivers/gpu/drm/drm_color_mgmt.c4
-rw-r--r--drivers/gpu/drm/drm_connector.c2
-rw-r--r--drivers/gpu/drm/drm_crtc_helper.c14
-rw-r--r--drivers/gpu/drm/drm_drv.c10
-rw-r--r--drivers/gpu/drm/drm_dumb_buffers.c2
-rw-r--r--drivers/gpu/drm/drm_encoder.c4
-rw-r--r--drivers/gpu/drm/drm_fb_cma_helper.c2
-rw-r--r--drivers/gpu/drm/drm_framebuffer.c6
-rw-r--r--drivers/gpu/drm/drm_irq.c2
-rw-r--r--drivers/gpu/drm/drm_plane.c2
-rw-r--r--drivers/gpu/drm/drm_plane_helper.c2
-rw-r--r--drivers/gpu/drm/drm_probe_helper.c2
-rw-r--r--drivers/gpu/drm/drm_property.c2
-rw-r--r--drivers/gpu/drm/drm_simple_kms_helper.c2
18 files changed, 41 insertions, 41 deletions
diff --git a/drivers/gpu/drm/drm_atomic.c b/drivers/gpu/drm/drm_atomic.c
index b1b54011a92c..681d5f97639d 100644
--- a/drivers/gpu/drm/drm_atomic.c
+++ b/drivers/gpu/drm/drm_atomic.c
@@ -1882,7 +1882,7 @@ EXPORT_SYMBOL(drm_atomic_clean_old_fb);
1882 * As a contrast, with implicit fencing the kernel keeps track of any 1882 * As a contrast, with implicit fencing the kernel keeps track of any
1883 * ongoing rendering, and automatically ensures that the atomic update waits 1883 * ongoing rendering, and automatically ensures that the atomic update waits
1884 * for any pending rendering to complete. For shared buffers represented with 1884 * for any pending rendering to complete. For shared buffers represented with
1885 * a struct &dma_buf this is tracked in &reservation_object structures. 1885 * a &struct dma_buf this is tracked in &reservation_object structures.
1886 * Implicit syncing is how Linux traditionally worked (e.g. DRI2/3 on X.org), 1886 * Implicit syncing is how Linux traditionally worked (e.g. DRI2/3 on X.org),
1887 * whereas explicit fencing is what Android wants. 1887 * whereas explicit fencing is what Android wants.
1888 * 1888 *
@@ -1898,7 +1898,7 @@ EXPORT_SYMBOL(drm_atomic_clean_old_fb);
1898 * it will only check if the Sync File is a valid one. 1898 * it will only check if the Sync File is a valid one.
1899 * 1899 *
1900 * On the driver side the fence is stored on the @fence parameter of 1900 * On the driver side the fence is stored on the @fence parameter of
1901 * struct &drm_plane_state. Drivers which also support implicit fencing 1901 * &struct drm_plane_state. Drivers which also support implicit fencing
1902 * should set the implicit fence using drm_atomic_set_fence_for_plane(), 1902 * should set the implicit fence using drm_atomic_set_fence_for_plane(),
1903 * to make sure there's consistent behaviour between drivers in precedence 1903 * to make sure there's consistent behaviour between drivers in precedence
1904 * of implicit vs. explicit fencing. 1904 * of implicit vs. explicit fencing.
@@ -1917,7 +1917,7 @@ EXPORT_SYMBOL(drm_atomic_clean_old_fb);
1917 * DRM_MODE_ATOMIC_TEST_ONLY flag the out fence will also be set to -1. 1917 * DRM_MODE_ATOMIC_TEST_ONLY flag the out fence will also be set to -1.
1918 * 1918 *
1919 * Note that out-fences don't have a special interface to drivers and are 1919 * Note that out-fences don't have a special interface to drivers and are
1920 * internally represented by a struct &drm_pending_vblank_event in struct 1920 * internally represented by a &struct drm_pending_vblank_event in struct
1921 * &drm_crtc_state, which is also used by the nonblocking atomic commit 1921 * &drm_crtc_state, which is also used by the nonblocking atomic commit
1922 * helpers and for the DRM event handling for existing userspace. 1922 * helpers and for the DRM event handling for existing userspace.
1923 */ 1923 */
diff --git a/drivers/gpu/drm/drm_atomic_helper.c b/drivers/gpu/drm/drm_atomic_helper.c
index 799c1564a4f8..8eab8944c736 100644
--- a/drivers/gpu/drm/drm_atomic_helper.c
+++ b/drivers/gpu/drm/drm_atomic_helper.c
@@ -56,9 +56,9 @@
56 * implement these functions themselves but must use the provided helpers. 56 * implement these functions themselves but must use the provided helpers.
57 * 57 *
58 * The atomic helper uses the same function table structures as all other 58 * The atomic helper uses the same function table structures as all other
59 * modesetting helpers. See the documentation for struct &drm_crtc_helper_funcs, 59 * modesetting helpers. See the documentation for &struct drm_crtc_helper_funcs,
60 * struct &drm_encoder_helper_funcs and struct &drm_connector_helper_funcs. It 60 * struct &drm_encoder_helper_funcs and &struct drm_connector_helper_funcs. It
61 * also shares the struct &drm_plane_helper_funcs function table with the plane 61 * also shares the &struct drm_plane_helper_funcs function table with the plane
62 * helpers. 62 * helpers.
63 */ 63 */
64static void 64static void
@@ -1369,7 +1369,7 @@ static int stall_checks(struct drm_crtc *crtc, bool nonblock)
1369 * actually committing the hardware state, and for nonblocking commits this call 1369 * actually committing the hardware state, and for nonblocking commits this call
1370 * must be placed in the async worker. See also drm_atomic_helper_swap_state() 1370 * must be placed in the async worker. See also drm_atomic_helper_swap_state()
1371 * and it's stall parameter, for when a driver's commit hooks look at the 1371 * and it's stall parameter, for when a driver's commit hooks look at the
1372 * ->state pointers of struct &drm_crtc, &drm_plane or &drm_connector directly. 1372 * ->state pointers of &struct drm_crtc, &drm_plane or &drm_connector directly.
1373 * 1373 *
1374 * Completion of the hardware commit step must be signalled using 1374 * Completion of the hardware commit step must be signalled using
1375 * drm_atomic_helper_commit_hw_done(). After this step the driver is not allowed 1375 * drm_atomic_helper_commit_hw_done(). After this step the driver is not allowed
diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c
index 6b143514a566..860cfe124c2a 100644
--- a/drivers/gpu/drm/drm_auth.c
+++ b/drivers/gpu/drm/drm_auth.c
@@ -35,8 +35,8 @@
35/** 35/**
36 * DOC: master and authentication 36 * DOC: master and authentication
37 * 37 *
38 * struct &drm_master is used to track groups of clients with open 38 * &struct drm_master is used to track groups of clients with open
39 * primary/legacy device nodes. For every struct &drm_file which has had at 39 * primary/legacy device nodes. For every &struct drm_file which has had at
40 * least once successfully became the device master (either through the 40 * least once successfully became the device master (either through the
41 * SET_MASTER IOCTL, or implicitly through opening the primary device node when 41 * SET_MASTER IOCTL, or implicitly through opening the primary device node when
42 * no one else is the current master that time) there exists one &drm_master. 42 * no one else is the current master that time) there exists one &drm_master.
@@ -294,7 +294,7 @@ EXPORT_SYMBOL(drm_is_current_master);
294 294
295/** 295/**
296 * drm_master_get - reference a master pointer 296 * drm_master_get - reference a master pointer
297 * @master: struct &drm_master 297 * @master: &struct drm_master
298 * 298 *
299 * Increments the reference count of @master and returns a pointer to @master. 299 * Increments the reference count of @master and returns a pointer to @master.
300 */ 300 */
@@ -322,7 +322,7 @@ static void drm_master_destroy(struct kref *kref)
322 322
323/** 323/**
324 * drm_master_put - unreference and clear a master pointer 324 * drm_master_put - unreference and clear a master pointer
325 * @master: pointer to a pointer of struct &drm_master 325 * @master: pointer to a pointer of &struct drm_master
326 * 326 *
327 * This decrements the &drm_master behind @master and sets it to NULL. 327 * This decrements the &drm_master behind @master and sets it to NULL.
328 */ 328 */
diff --git a/drivers/gpu/drm/drm_bridge.c b/drivers/gpu/drm/drm_bridge.c
index cd10095e8d00..ae5e57ad718c 100644
--- a/drivers/gpu/drm/drm_bridge.c
+++ b/drivers/gpu/drm/drm_bridge.c
@@ -33,7 +33,7 @@
33/** 33/**
34 * DOC: overview 34 * DOC: overview
35 * 35 *
36 * struct &drm_bridge represents a device that hangs on to an encoder. These are 36 * &struct drm_bridge represents a device that hangs on to an encoder. These are
37 * handy when a regular &drm_encoder entity isn't enough to represent the entire 37 * handy when a regular &drm_encoder entity isn't enough to represent the entire
38 * encoder chain. 38 * encoder chain.
39 * 39 *
@@ -55,7 +55,7 @@
55 * just provide additional hooks to get the desired output at the end of the 55 * just provide additional hooks to get the desired output at the end of the
56 * encoder chain. 56 * encoder chain.
57 * 57 *
58 * Bridges can also be chained up using the next pointer in struct &drm_bridge. 58 * Bridges can also be chained up using the next pointer in &struct drm_bridge.
59 * 59 *
60 * Both legacy CRTC helpers and the new atomic modeset helpers support bridges. 60 * Both legacy CRTC helpers and the new atomic modeset helpers support bridges.
61 */ 61 */
diff --git a/drivers/gpu/drm/drm_color_mgmt.c b/drivers/gpu/drm/drm_color_mgmt.c
index 6543ebde501a..789b4c65cd69 100644
--- a/drivers/gpu/drm/drm_color_mgmt.c
+++ b/drivers/gpu/drm/drm_color_mgmt.c
@@ -36,7 +36,7 @@
36 * "DEGAMMA_LUT”: 36 * "DEGAMMA_LUT”:
37 * Blob property to set the degamma lookup table (LUT) mapping pixel data 37 * Blob property to set the degamma lookup table (LUT) mapping pixel data
38 * from the framebuffer before it is given to the transformation matrix. 38 * from the framebuffer before it is given to the transformation matrix.
39 * The data is interpreted as an array of struct &drm_color_lut elements. 39 * The data is interpreted as an array of &struct drm_color_lut elements.
40 * Hardware might choose not to use the full precision of the LUT elements 40 * Hardware might choose not to use the full precision of the LUT elements
41 * nor use all the elements of the LUT (for example the hardware might 41 * nor use all the elements of the LUT (for example the hardware might
42 * choose to interpolate between LUT[0] and LUT[4]). 42 * choose to interpolate between LUT[0] and LUT[4]).
@@ -65,7 +65,7 @@
65 * “GAMMA_LUT”: 65 * “GAMMA_LUT”:
66 * Blob property to set the gamma lookup table (LUT) mapping pixel data 66 * Blob property to set the gamma lookup table (LUT) mapping pixel data
67 * after the transformation matrix to data sent to the connector. The 67 * after the transformation matrix to data sent to the connector. The
68 * data is interpreted as an array of struct &drm_color_lut elements. 68 * data is interpreted as an array of &struct drm_color_lut elements.
69 * Hardware might choose not to use the full precision of the LUT elements 69 * Hardware might choose not to use the full precision of the LUT elements
70 * nor use all the elements of the LUT (for example the hardware might 70 * nor use all the elements of the LUT (for example the hardware might
71 * choose to interpolate between LUT[0] and LUT[4]). 71 * choose to interpolate between LUT[0] and LUT[4]).
diff --git a/drivers/gpu/drm/drm_connector.c b/drivers/gpu/drm/drm_connector.c
index 3115db2ae6b1..799edd0d308e 100644
--- a/drivers/gpu/drm/drm_connector.c
+++ b/drivers/gpu/drm/drm_connector.c
@@ -49,7 +49,7 @@
49 * Connectors must be attached to an encoder to be used. For devices that map 49 * Connectors must be attached to an encoder to be used. For devices that map
50 * connectors to encoders 1:1, the connector should be attached at 50 * connectors to encoders 1:1, the connector should be attached at
51 * initialization time with a call to drm_mode_connector_attach_encoder(). The 51 * initialization time with a call to drm_mode_connector_attach_encoder(). The
52 * driver must also set the struct &drm_connector encoder field to point to the 52 * driver must also set the &struct drm_connector encoder field to point to the
53 * attached encoder. 53 * attached encoder.
54 * 54 *
55 * For connectors which are not fixed (like built-in panels) the driver needs to 55 * For connectors which are not fixed (like built-in panels) the driver needs to
diff --git a/drivers/gpu/drm/drm_crtc_helper.c b/drivers/gpu/drm/drm_crtc_helper.c
index 923a17c05e01..1e281dd42e4b 100644
--- a/drivers/gpu/drm/drm_crtc_helper.c
+++ b/drivers/gpu/drm/drm_crtc_helper.c
@@ -71,7 +71,7 @@
71 * 71 *
72 * These legacy modeset helpers use the same function table structures as 72 * These legacy modeset helpers use the same function table structures as
73 * all other modesetting helpers. See the documentation for struct 73 * all other modesetting helpers. See the documentation for struct
74 * &drm_crtc_helper_funcs, struct &drm_encoder_helper_funcs and struct 74 * &drm_crtc_helper_funcs, &struct drm_encoder_helper_funcs and struct
75 * &drm_connector_helper_funcs. 75 * &drm_connector_helper_funcs.
76 */ 76 */
77 77
@@ -478,10 +478,10 @@ drm_crtc_helper_disable(struct drm_crtc *crtc)
478 * @set: mode set configuration 478 * @set: mode set configuration
479 * 479 *
480 * The drm_crtc_helper_set_config() helper function implements the set_config 480 * The drm_crtc_helper_set_config() helper function implements the set_config
481 * callback of struct &drm_crtc_funcs for drivers using the legacy CRTC helpers. 481 * callback of &struct drm_crtc_funcs for drivers using the legacy CRTC helpers.
482 * 482 *
483 * It first tries to locate the best encoder for each connector by calling the 483 * It first tries to locate the best encoder for each connector by calling the
484 * connector ->best_encoder() (struct &drm_connector_helper_funcs) helper 484 * connector ->best_encoder() (&struct drm_connector_helper_funcs) helper
485 * operation. 485 * operation.
486 * 486 *
487 * After locating the appropriate encoders, the helper function will call the 487 * After locating the appropriate encoders, the helper function will call the
@@ -493,7 +493,7 @@ drm_crtc_helper_disable(struct drm_crtc *crtc)
493 * 493 *
494 * If the adjusted mode is identical to the current mode but changes to the 494 * If the adjusted mode is identical to the current mode but changes to the
495 * frame buffer need to be applied, the drm_crtc_helper_set_config() function 495 * frame buffer need to be applied, the drm_crtc_helper_set_config() function
496 * will call the CRTC ->mode_set_base() (struct &drm_crtc_helper_funcs) helper 496 * will call the CRTC ->mode_set_base() (&struct drm_crtc_helper_funcs) helper
497 * operation. 497 * operation.
498 * 498 *
499 * If the adjusted mode differs from the current mode, or if the 499 * If the adjusted mode differs from the current mode, or if the
@@ -501,7 +501,7 @@ drm_crtc_helper_disable(struct drm_crtc *crtc)
501 * performs a full mode set sequence by calling the ->prepare(), ->mode_set() 501 * performs a full mode set sequence by calling the ->prepare(), ->mode_set()
502 * and ->commit() CRTC and encoder helper operations, in that order. 502 * and ->commit() CRTC and encoder helper operations, in that order.
503 * Alternatively it can also use the dpms and disable helper operations. For 503 * Alternatively it can also use the dpms and disable helper operations. For
504 * details see struct &drm_crtc_helper_funcs and struct 504 * details see &struct drm_crtc_helper_funcs and struct
505 * &drm_encoder_helper_funcs. 505 * &drm_encoder_helper_funcs.
506 * 506 *
507 * This function is deprecated. New drivers must implement atomic modeset 507 * This function is deprecated. New drivers must implement atomic modeset
@@ -852,12 +852,12 @@ static int drm_helper_choose_crtc_dpms(struct drm_crtc *crtc)
852 * @mode: DPMS mode 852 * @mode: DPMS mode
853 * 853 *
854 * The drm_helper_connector_dpms() helper function implements the ->dpms() 854 * The drm_helper_connector_dpms() helper function implements the ->dpms()
855 * callback of struct &drm_connector_funcs for drivers using the legacy CRTC helpers. 855 * callback of &struct drm_connector_funcs for drivers using the legacy CRTC helpers.
856 * 856 *
857 * This is the main helper function provided by the CRTC helper framework for 857 * This is the main helper function provided by the CRTC helper framework for
858 * implementing the DPMS connector attribute. It computes the new desired DPMS 858 * implementing the DPMS connector attribute. It computes the new desired DPMS
859 * state for all encoders and CRTCs in the output mesh and calls the ->dpms() 859 * state for all encoders and CRTCs in the output mesh and calls the ->dpms()
860 * callbacks provided by the driver in struct &drm_crtc_helper_funcs and struct 860 * callbacks provided by the driver in &struct drm_crtc_helper_funcs and struct
861 * &drm_encoder_helper_funcs appropriately. 861 * &drm_encoder_helper_funcs appropriately.
862 * 862 *
863 * This function is deprecated. New drivers must implement atomic modeset 863 * This function is deprecated. New drivers must implement atomic modeset
diff --git a/drivers/gpu/drm/drm_drv.c b/drivers/gpu/drm/drm_drv.c
index 9d2b4b630601..135c746dc9c7 100644
--- a/drivers/gpu/drm/drm_drv.c
+++ b/drivers/gpu/drm/drm_drv.c
@@ -298,7 +298,7 @@ void drm_minor_release(struct drm_minor *minor)
298/** 298/**
299 * DOC: driver instance overview 299 * DOC: driver instance overview
300 * 300 *
301 * A device instance for a drm driver is represented by struct &drm_device. This 301 * A device instance for a drm driver is represented by &struct drm_device. This
302 * is allocated with drm_dev_alloc(), usually from bus-specific ->probe() 302 * is allocated with drm_dev_alloc(), usually from bus-specific ->probe()
303 * callbacks implemented by the driver. The driver then needs to initialize all 303 * callbacks implemented by the driver. The driver then needs to initialize all
304 * the various subsystems for the drm device like memory management, vblank 304 * the various subsystems for the drm device like memory management, vblank
@@ -323,7 +323,7 @@ void drm_minor_release(struct drm_minor *minor)
323 * historical baggage. Hence use the reference counting provided by 323 * historical baggage. Hence use the reference counting provided by
324 * drm_dev_ref() and drm_dev_unref() only carefully. 324 * drm_dev_ref() and drm_dev_unref() only carefully.
325 * 325 *
326 * It is recommended that drivers embed struct &drm_device into their own device 326 * It is recommended that drivers embed &struct drm_device into their own device
327 * structure, which is supported through drm_dev_init(). 327 * structure, which is supported through drm_dev_init().
328 */ 328 */
329 329
@@ -461,8 +461,8 @@ static void drm_fs_inode_free(struct inode *inode)
461 * Note that for purely virtual devices @parent can be NULL. 461 * Note that for purely virtual devices @parent can be NULL.
462 * 462 *
463 * Drivers that do not want to allocate their own device struct 463 * Drivers that do not want to allocate their own device struct
464 * embedding struct &drm_device can call drm_dev_alloc() instead. For drivers 464 * embedding &struct drm_device can call drm_dev_alloc() instead. For drivers
465 * that do embed struct &drm_device it must be placed first in the overall 465 * that do embed &struct drm_device it must be placed first in the overall
466 * structure, and the overall structure must be allocated using kmalloc(): The 466 * structure, and the overall structure must be allocated using kmalloc(): The
467 * drm core's release function unconditionally calls kfree() on the @dev pointer 467 * drm core's release function unconditionally calls kfree() on the @dev pointer
468 * when the final reference is released. 468 * when the final reference is released.
@@ -568,7 +568,7 @@ EXPORT_SYMBOL(drm_dev_init);
568 * 568 *
569 * Note that for purely virtual devices @parent can be NULL. 569 * Note that for purely virtual devices @parent can be NULL.
570 * 570 *
571 * Drivers that wish to subclass or embed struct &drm_device into their 571 * Drivers that wish to subclass or embed &struct drm_device into their
572 * own struct should look at using drm_dev_init() instead. 572 * own struct should look at using drm_dev_init() instead.
573 * 573 *
574 * RETURNS: 574 * RETURNS:
diff --git a/drivers/gpu/drm/drm_dumb_buffers.c b/drivers/gpu/drm/drm_dumb_buffers.c
index 8ac5a1c1d811..e5c61cda4ae3 100644
--- a/drivers/gpu/drm/drm_dumb_buffers.c
+++ b/drivers/gpu/drm/drm_dumb_buffers.c
@@ -43,7 +43,7 @@
43 * KMS frame buffers. 43 * KMS frame buffers.
44 * 44 *
45 * To support dumb objects drivers must implement the dumb_create, 45 * To support dumb objects drivers must implement the dumb_create,
46 * dumb_destroy and dumb_map_offset operations from struct &drm_driver. See 46 * dumb_destroy and dumb_map_offset operations from &struct drm_driver. See
47 * there for further details. 47 * there for further details.
48 * 48 *
49 * Note that dumb objects may not be used for gpu acceleration, as has been 49 * Note that dumb objects may not be used for gpu acceleration, as has been
diff --git a/drivers/gpu/drm/drm_encoder.c b/drivers/gpu/drm/drm_encoder.c
index 5f0598e4bf6f..487cfe3989e8 100644
--- a/drivers/gpu/drm/drm_encoder.c
+++ b/drivers/gpu/drm/drm_encoder.c
@@ -30,8 +30,8 @@
30 * DOC: overview 30 * DOC: overview
31 * 31 *
32 * Encoders represent the connecting element between the CRTC (as the overall 32 * Encoders represent the connecting element between the CRTC (as the overall
33 * pixel pipeline, represented by struct &drm_crtc) and the connectors (as the 33 * pixel pipeline, represented by &struct drm_crtc) and the connectors (as the
34 * generic sink entity, represented by struct &drm_connector). An encoder takes 34 * generic sink entity, represented by &struct drm_connector). An encoder takes
35 * pixel data from a CRTC and converts it to a format suitable for any attached 35 * pixel data from a CRTC and converts it to a format suitable for any attached
36 * connector. Encoders are objects exposed to userspace, originally to allow 36 * connector. Encoders are objects exposed to userspace, originally to allow
37 * userspace to infer cloning and connector/CRTC restrictions. Unfortunately 37 * userspace to infer cloning and connector/CRTC restrictions. Unfortunately
diff --git a/drivers/gpu/drm/drm_fb_cma_helper.c b/drivers/gpu/drm/drm_fb_cma_helper.c
index 591f30ebc42a..96f3965b8028 100644
--- a/drivers/gpu/drm/drm_fb_cma_helper.c
+++ b/drivers/gpu/drm/drm_fb_cma_helper.c
@@ -273,7 +273,7 @@ EXPORT_SYMBOL_GPL(drm_fb_cma_get_gem_obj);
273 * @plane: Which plane 273 * @plane: Which plane
274 * @state: Plane state attach fence to 274 * @state: Plane state attach fence to
275 * 275 *
276 * This should be put into prepare_fb hook of struct &drm_plane_helper_funcs . 276 * This should be put into prepare_fb hook of &struct drm_plane_helper_funcs .
277 * 277 *
278 * This function checks if the plane FB has an dma-buf attached, extracts 278 * This function checks if the plane FB has an dma-buf attached, extracts
279 * the exclusive fence and attaches it to plane state for the atomic helper 279 * the exclusive fence and attaches it to plane state for the atomic helper
diff --git a/drivers/gpu/drm/drm_framebuffer.c b/drivers/gpu/drm/drm_framebuffer.c
index 94ddab41f24f..588ccc3a2218 100644
--- a/drivers/gpu/drm/drm_framebuffer.c
+++ b/drivers/gpu/drm/drm_framebuffer.c
@@ -39,13 +39,13 @@
39 * Frame buffers rely on the underlying memory manager for allocating backing 39 * Frame buffers rely on the underlying memory manager for allocating backing
40 * storage. When creating a frame buffer applications pass a memory handle 40 * storage. When creating a frame buffer applications pass a memory handle
41 * (or a list of memory handles for multi-planar formats) through the 41 * (or a list of memory handles for multi-planar formats) through the
42 * struct &drm_mode_fb_cmd2 argument. For drivers using GEM as their userspace 42 * &struct drm_mode_fb_cmd2 argument. For drivers using GEM as their userspace
43 * buffer management interface this would be a GEM handle. Drivers are however 43 * buffer management interface this would be a GEM handle. Drivers are however
44 * free to use their own backing storage object handles, e.g. vmwgfx directly 44 * free to use their own backing storage object handles, e.g. vmwgfx directly
45 * exposes special TTM handles to userspace and so expects TTM handles in the 45 * exposes special TTM handles to userspace and so expects TTM handles in the
46 * create ioctl and not GEM handles. 46 * create ioctl and not GEM handles.
47 * 47 *
48 * Framebuffers are tracked with struct &drm_framebuffer. They are published 48 * Framebuffers are tracked with &struct drm_framebuffer. They are published
49 * using drm_framebuffer_init() - after calling that function userspace can use 49 * using drm_framebuffer_init() - after calling that function userspace can use
50 * and access the framebuffer object. The helper function 50 * and access the framebuffer object. The helper function
51 * drm_helper_mode_fill_fb_struct() can be used to pre-fill the required 51 * drm_helper_mode_fill_fb_struct() can be used to pre-fill the required
@@ -55,7 +55,7 @@
55 * drivers can grab additional references with drm_framebuffer_reference() and 55 * drivers can grab additional references with drm_framebuffer_reference() and
56 * drop them again with drm_framebuffer_unreference(). For driver-private 56 * drop them again with drm_framebuffer_unreference(). For driver-private
57 * framebuffers for which the last reference is never dropped (e.g. for the 57 * framebuffers for which the last reference is never dropped (e.g. for the
58 * fbdev framebuffer when the struct struct &drm_framebuffer is embedded into 58 * fbdev framebuffer when the struct &struct drm_framebuffer is embedded into
59 * the fbdev helper struct) drivers can manually clean up a framebuffer at 59 * the fbdev helper struct) drivers can manually clean up a framebuffer at
60 * module unload time with drm_framebuffer_unregister_private(). But doing this 60 * module unload time with drm_framebuffer_unregister_private(). But doing this
61 * is not recommended, and it's better to have a normal free-standing struct 61 * is not recommended, and it's better to have a normal free-standing struct
diff --git a/drivers/gpu/drm/drm_irq.c b/drivers/gpu/drm/drm_irq.c
index feb091310ffe..88c69e71102e 100644
--- a/drivers/gpu/drm/drm_irq.c
+++ b/drivers/gpu/drm/drm_irq.c
@@ -982,7 +982,7 @@ static void send_vblank_event(struct drm_device *dev,
982 * period. This helper function implements exactly the required vblank arming 982 * period. This helper function implements exactly the required vblank arming
983 * behaviour. 983 * behaviour.
984 * 984 *
985 * NOTE: Drivers using this to send out the event in struct &drm_crtc_state 985 * NOTE: Drivers using this to send out the event in &struct drm_crtc_state
986 * as part of an atomic commit must ensure that the next vblank happens at 986 * as part of an atomic commit must ensure that the next vblank happens at
987 * exactly the same time as the atomic commit is committed to the hardware. This 987 * exactly the same time as the atomic commit is committed to the hardware. This
988 * function itself does **not** protect again the next vblank interrupt racing 988 * function itself does **not** protect again the next vblank interrupt racing
diff --git a/drivers/gpu/drm/drm_plane.c b/drivers/gpu/drm/drm_plane.c
index 8ad20af88ed7..7b7275f0c2df 100644
--- a/drivers/gpu/drm/drm_plane.c
+++ b/drivers/gpu/drm/drm_plane.c
@@ -37,7 +37,7 @@
37 * rotation or Z-position. All these properties are stored in &drm_plane_state. 37 * rotation or Z-position. All these properties are stored in &drm_plane_state.
38 * 38 *
39 * To create a plane, a KMS drivers allocates and zeroes an instances of 39 * To create a plane, a KMS drivers allocates and zeroes an instances of
40 * struct &drm_plane (possibly as part of a larger structure) and registers it 40 * &struct drm_plane (possibly as part of a larger structure) and registers it
41 * with a call to drm_universal_plane_init(). 41 * with a call to drm_universal_plane_init().
42 * 42 *
43 * Cursor and overlay planes are optional. All drivers should provide one 43 * Cursor and overlay planes are optional. All drivers should provide one
diff --git a/drivers/gpu/drm/drm_plane_helper.c b/drivers/gpu/drm/drm_plane_helper.c
index 8b042a193613..35d43607a47d 100644
--- a/drivers/gpu/drm/drm_plane_helper.c
+++ b/drivers/gpu/drm/drm_plane_helper.c
@@ -60,7 +60,7 @@
60 * Again drivers are strongly urged to switch to the new interfaces. 60 * Again drivers are strongly urged to switch to the new interfaces.
61 * 61 *
62 * The plane helpers share the function table structures with other helpers, 62 * The plane helpers share the function table structures with other helpers,
63 * specifically also the atomic helpers. See struct &drm_plane_helper_funcs for 63 * specifically also the atomic helpers. See &struct drm_plane_helper_funcs for
64 * the details. 64 * the details.
65 */ 65 */
66 66
diff --git a/drivers/gpu/drm/drm_probe_helper.c b/drivers/gpu/drm/drm_probe_helper.c
index 7cff91e7497f..97a32898ef50 100644
--- a/drivers/gpu/drm/drm_probe_helper.c
+++ b/drivers/gpu/drm/drm_probe_helper.c
@@ -55,7 +55,7 @@
55 * handling code to avoid probing unrelated outputs. 55 * handling code to avoid probing unrelated outputs.
56 * 56 *
57 * The probe helpers share the function table structures with other display 57 * The probe helpers share the function table structures with other display
58 * helper libraries. See struct &drm_connector_helper_funcs for the details. 58 * helper libraries. See &struct drm_connector_helper_funcs for the details.
59 */ 59 */
60 60
61static bool drm_kms_helper_poll = true; 61static bool drm_kms_helper_poll = true;
diff --git a/drivers/gpu/drm/drm_property.c b/drivers/gpu/drm/drm_property.c
index 24be69d29964..0d0e5dc0ee23 100644
--- a/drivers/gpu/drm/drm_property.c
+++ b/drivers/gpu/drm/drm_property.c
@@ -34,7 +34,7 @@
34 * even the only way to transport metadata about the desired new modeset 34 * even the only way to transport metadata about the desired new modeset
35 * configuration from userspace to the kernel. Properties have a well-defined 35 * configuration from userspace to the kernel. Properties have a well-defined
36 * value range, which is enforced by the drm core. See the documentation of the 36 * value range, which is enforced by the drm core. See the documentation of the
37 * flags member of struct &drm_property for an overview of the different 37 * flags member of &struct drm_property for an overview of the different
38 * property types and ranges. 38 * property types and ranges.
39 * 39 *
40 * Properties don't store the current value directly, but need to be 40 * Properties don't store the current value directly, but need to be
diff --git a/drivers/gpu/drm/drm_simple_kms_helper.c b/drivers/gpu/drm/drm_simple_kms_helper.c
index 3cc42f5dfba1..35c5d99296b9 100644
--- a/drivers/gpu/drm/drm_simple_kms_helper.c
+++ b/drivers/gpu/drm/drm_simple_kms_helper.c
@@ -23,7 +23,7 @@
23 * 23 *
24 * drm_simple_display_pipe_init() initializes a simple display pipeline 24 * drm_simple_display_pipe_init() initializes a simple display pipeline
25 * which has only one full-screen scanout buffer feeding one output. The 25 * which has only one full-screen scanout buffer feeding one output. The
26 * pipeline is represented by struct &drm_simple_display_pipe and binds 26 * pipeline is represented by &struct drm_simple_display_pipe and binds
27 * together &drm_plane, &drm_crtc and &drm_encoder structures into one fixed 27 * together &drm_plane, &drm_crtc and &drm_encoder structures into one fixed
28 * entity. Some flexibility for code reuse is provided through a separately 28 * entity. Some flexibility for code reuse is provided through a separately
29 * allocated &drm_connector object and supporting optional &drm_bridge 29 * allocated &drm_connector object and supporting optional &drm_bridge