diff options
author | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-12-29 15:48:26 -0500 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2016-12-30 07:34:59 -0500 |
commit | ea0dd85a75f15174cc2bf75f805e378391995931 (patch) | |
tree | e2dc904067a98bec44e04ca870b46d4e4434de9e | |
parent | e9b4d7b56f293ed4de9ff7d16759d33492f83180 (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
31 files changed, 76 insertions, 76 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 | */ |
64 | static void | 64 | static 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 | ||
61 | static bool drm_kms_helper_poll = true; | 61 | static 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 |
diff --git a/include/drm/drm_atomic.h b/include/drm/drm_atomic.h index b0ebe0fafc41..fd2d971bca32 100644 --- a/include/drm/drm_atomic.h +++ b/include/drm/drm_atomic.h | |||
@@ -398,7 +398,7 @@ void drm_state_dump(struct drm_device *dev, struct drm_printer *p); | |||
398 | * drm_atomic_crtc_needs_modeset - compute combined modeset need | 398 | * drm_atomic_crtc_needs_modeset - compute combined modeset need |
399 | * @state: &drm_crtc_state for the CRTC | 399 | * @state: &drm_crtc_state for the CRTC |
400 | * | 400 | * |
401 | * To give drivers flexibility struct &drm_crtc_state has 3 booleans to track | 401 | * To give drivers flexibility &struct drm_crtc_state has 3 booleans to track |
402 | * whether the state CRTC changed enough to need a full modeset cycle: | 402 | * whether the state CRTC changed enough to need a full modeset cycle: |
403 | * connectors_changed, mode_changed and active_changed. This helper simply | 403 | * connectors_changed, mode_changed and active_changed. This helper simply |
404 | * combines these three to compute the overall need for a modeset for @state. | 404 | * combines these three to compute the overall need for a modeset for @state. |
diff --git a/include/drm/drm_auth.h b/include/drm/drm_auth.h index 155588eb8ccf..eecbc2f43f55 100644 --- a/include/drm/drm_auth.h +++ b/include/drm/drm_auth.h | |||
@@ -48,7 +48,7 @@ struct drm_master { | |||
48 | */ | 48 | */ |
49 | char *unique; | 49 | char *unique; |
50 | /** | 50 | /** |
51 | * @unique_len: Length of unique field. Protected by struct &drm_device | 51 | * @unique_len: Length of unique field. Protected by &struct drm_device |
52 | * master_mutex. | 52 | * master_mutex. |
53 | */ | 53 | */ |
54 | int unique_len; | 54 | int unique_len; |
diff --git a/include/drm/drm_bridge.h b/include/drm/drm_bridge.h index 435be20029f7..d3ca16f4da8f 100644 --- a/include/drm/drm_bridge.h +++ b/include/drm/drm_bridge.h | |||
@@ -98,7 +98,7 @@ struct drm_bridge_funcs { | |||
98 | * preceding element is a bridge this means it's called before that | 98 | * preceding element is a bridge this means it's called before that |
99 | * bridge's ->disable() function. If the preceding element is a | 99 | * bridge's ->disable() function. If the preceding element is a |
100 | * &drm_encoder it's called right before the encoder's ->disable(), | 100 | * &drm_encoder it's called right before the encoder's ->disable(), |
101 | * ->prepare() or ->dpms() hook from struct &drm_encoder_helper_funcs. | 101 | * ->prepare() or ->dpms() hook from &struct drm_encoder_helper_funcs. |
102 | * | 102 | * |
103 | * The bridge can assume that the display pipe (i.e. clocks and timing | 103 | * The bridge can assume that the display pipe (i.e. clocks and timing |
104 | * signals) feeding it is still running when this callback is called. | 104 | * signals) feeding it is still running when this callback is called. |
@@ -115,7 +115,7 @@ struct drm_bridge_funcs { | |||
115 | * preceding element is a bridge this means it's called after that | 115 | * preceding element is a bridge this means it's called after that |
116 | * bridge's ->post_disable() function. If the preceding element is a | 116 | * bridge's ->post_disable() function. If the preceding element is a |
117 | * &drm_encoder it's called right after the encoder's ->disable(), | 117 | * &drm_encoder it's called right after the encoder's ->disable(), |
118 | * ->prepare() or ->dpms() hook from struct &drm_encoder_helper_funcs. | 118 | * ->prepare() or ->dpms() hook from &struct drm_encoder_helper_funcs. |
119 | * | 119 | * |
120 | * The bridge must assume that the display pipe (i.e. clocks and timing | 120 | * The bridge must assume that the display pipe (i.e. clocks and timing |
121 | * singals) feeding it is no longer running when this callback is | 121 | * singals) feeding it is no longer running when this callback is |
@@ -144,7 +144,7 @@ struct drm_bridge_funcs { | |||
144 | * preceding element is a bridge this means it's called before that | 144 | * preceding element is a bridge this means it's called before that |
145 | * bridge's ->pre_enable() function. If the preceding element is a | 145 | * bridge's ->pre_enable() function. If the preceding element is a |
146 | * &drm_encoder it's called right before the encoder's ->enable(), | 146 | * &drm_encoder it's called right before the encoder's ->enable(), |
147 | * ->commit() or ->dpms() hook from struct &drm_encoder_helper_funcs. | 147 | * ->commit() or ->dpms() hook from &struct drm_encoder_helper_funcs. |
148 | * | 148 | * |
149 | * The display pipe (i.e. clocks and timing signals) feeding this bridge | 149 | * The display pipe (i.e. clocks and timing signals) feeding this bridge |
150 | * will not yet be running when this callback is called. The bridge must | 150 | * will not yet be running when this callback is called. The bridge must |
@@ -163,7 +163,7 @@ struct drm_bridge_funcs { | |||
163 | * preceding element is a bridge this means it's called after that | 163 | * preceding element is a bridge this means it's called after that |
164 | * bridge's ->enable() function. If the preceding element is a | 164 | * bridge's ->enable() function. If the preceding element is a |
165 | * &drm_encoder it's called right after the encoder's ->enable(), | 165 | * &drm_encoder it's called right after the encoder's ->enable(), |
166 | * ->commit() or ->dpms() hook from struct &drm_encoder_helper_funcs. | 166 | * ->commit() or ->dpms() hook from &struct drm_encoder_helper_funcs. |
167 | * | 167 | * |
168 | * The bridge can assume that the display pipe (i.e. clocks and timing | 168 | * The bridge can assume that the display pipe (i.e. clocks and timing |
169 | * signals) feeding it is running when this callback is called. This | 169 | * signals) feeding it is running when this callback is called. This |
diff --git a/include/drm/drm_connector.h b/include/drm/drm_connector.h index 6e352a0b5c81..acb4241bff7d 100644 --- a/include/drm/drm_connector.h +++ b/include/drm/drm_connector.h | |||
@@ -94,7 +94,7 @@ enum subpixel_order { | |||
94 | * | 94 | * |
95 | * Describes a given display (e.g. CRT or flat panel) and its limitations. For | 95 | * Describes a given display (e.g. CRT or flat panel) and its limitations. For |
96 | * fixed display sinks like built-in panels there's not much difference between | 96 | * fixed display sinks like built-in panels there's not much difference between |
97 | * this and struct &drm_connector. But for sinks with a real cable this | 97 | * this and &struct drm_connector. But for sinks with a real cable this |
98 | * structure is meant to describe all the things at the other end of the cable. | 98 | * structure is meant to describe all the things at the other end of the cable. |
99 | * | 99 | * |
100 | * For sinks which provide an EDID this can be filled out by calling | 100 | * For sinks which provide an EDID this can be filled out by calling |
@@ -422,7 +422,7 @@ struct drm_connector_funcs { | |||
422 | * &drm_mode_config_funcs) will be cleaned up by calling the | 422 | * &drm_mode_config_funcs) will be cleaned up by calling the |
423 | * @atomic_destroy_state hook in this structure. | 423 | * @atomic_destroy_state hook in this structure. |
424 | * | 424 | * |
425 | * Atomic drivers which don't subclass struct &drm_connector_state should use | 425 | * Atomic drivers which don't subclass &struct drm_connector_state should use |
426 | * drm_atomic_helper_connector_duplicate_state(). Drivers that subclass the | 426 | * drm_atomic_helper_connector_duplicate_state(). Drivers that subclass the |
427 | * state structure to extend it with driver-private state should use | 427 | * state structure to extend it with driver-private state should use |
428 | * __drm_atomic_helper_connector_duplicate_state() to make sure shared state is | 428 | * __drm_atomic_helper_connector_duplicate_state() to make sure shared state is |
@@ -525,7 +525,7 @@ struct drm_connector_funcs { | |||
525 | /** | 525 | /** |
526 | * @atomic_print_state: | 526 | * @atomic_print_state: |
527 | * | 527 | * |
528 | * If driver subclasses struct &drm_connector_state, it should implement | 528 | * If driver subclasses &struct drm_connector_state, it should implement |
529 | * this optional hook for printing additional driver specific state. | 529 | * this optional hook for printing additional driver specific state. |
530 | * | 530 | * |
531 | * Do not call this directly, use drm_atomic_connector_print_state() | 531 | * Do not call this directly, use drm_atomic_connector_print_state() |
@@ -904,8 +904,8 @@ void drm_connector_list_iter_put(struct drm_connector_list_iter *iter); | |||
904 | 904 | ||
905 | /** | 905 | /** |
906 | * drm_for_each_connector_iter - connector_list iterator macro | 906 | * drm_for_each_connector_iter - connector_list iterator macro |
907 | * @connector: struct &drm_connector pointer used as cursor | 907 | * @connector: &struct drm_connector pointer used as cursor |
908 | * @iter: struct &drm_connector_list_iter | 908 | * @iter: &struct drm_connector_list_iter |
909 | * | 909 | * |
910 | * Note that @connector is only valid within the list body, if you want to use | 910 | * Note that @connector is only valid within the list body, if you want to use |
911 | * @connector after calling drm_connector_list_iter_put() then you need to grab | 911 | * @connector after calling drm_connector_list_iter_put() then you need to grab |
diff --git a/include/drm/drm_crtc.h b/include/drm/drm_crtc.h index 89daa77c37fc..e9bc21950439 100644 --- a/include/drm/drm_crtc.h +++ b/include/drm/drm_crtc.h | |||
@@ -315,7 +315,7 @@ struct drm_crtc_funcs { | |||
315 | * | 315 | * |
316 | * This is the main legacy entry point to change the modeset state on a | 316 | * This is the main legacy entry point to change the modeset state on a |
317 | * CRTC. All the details of the desired configuration are passed in a | 317 | * CRTC. All the details of the desired configuration are passed in a |
318 | * struct &drm_mode_set - see there for details. | 318 | * &struct drm_mode_set - see there for details. |
319 | * | 319 | * |
320 | * Drivers implementing atomic modeset should use | 320 | * Drivers implementing atomic modeset should use |
321 | * drm_atomic_helper_set_config() to implement this hook. | 321 | * drm_atomic_helper_set_config() to implement this hook. |
@@ -346,7 +346,7 @@ struct drm_crtc_funcs { | |||
346 | * shared dma-buf. | 346 | * shared dma-buf. |
347 | * | 347 | * |
348 | * An application can request to be notified when the page flip has | 348 | * An application can request to be notified when the page flip has |
349 | * completed. The drm core will supply a struct &drm_event in the event | 349 | * completed. The drm core will supply a &struct drm_event in the event |
350 | * parameter in this case. This can be handled by the | 350 | * parameter in this case. This can be handled by the |
351 | * drm_crtc_send_vblank_event() function, which the driver should call on | 351 | * drm_crtc_send_vblank_event() function, which the driver should call on |
352 | * the provided event upon completion of the flip. Note that if | 352 | * the provided event upon completion of the flip. Note that if |
@@ -431,7 +431,7 @@ struct drm_crtc_funcs { | |||
431 | * &drm_mode_config_funcs) will be cleaned up by calling the | 431 | * &drm_mode_config_funcs) will be cleaned up by calling the |
432 | * @atomic_destroy_state hook in this structure. | 432 | * @atomic_destroy_state hook in this structure. |
433 | * | 433 | * |
434 | * Atomic drivers which don't subclass struct &drm_crtc should use | 434 | * Atomic drivers which don't subclass &struct drm_crtc should use |
435 | * drm_atomic_helper_crtc_duplicate_state(). Drivers that subclass the | 435 | * drm_atomic_helper_crtc_duplicate_state(). Drivers that subclass the |
436 | * state structure to extend it with driver-private state should use | 436 | * state structure to extend it with driver-private state should use |
437 | * __drm_atomic_helper_crtc_duplicate_state() to make sure shared state is | 437 | * __drm_atomic_helper_crtc_duplicate_state() to make sure shared state is |
@@ -583,7 +583,7 @@ struct drm_crtc_funcs { | |||
583 | /** | 583 | /** |
584 | * @atomic_print_state: | 584 | * @atomic_print_state: |
585 | * | 585 | * |
586 | * If driver subclasses struct &drm_crtc_state, it should implement | 586 | * If driver subclasses &struct drm_crtc_state, it should implement |
587 | * this optional hook for printing additional driver specific state. | 587 | * this optional hook for printing additional driver specific state. |
588 | * | 588 | * |
589 | * Do not call this directly, use drm_atomic_crtc_print_state() | 589 | * Do not call this directly, use drm_atomic_crtc_print_state() |
diff --git a/include/drm/drm_fb_helper.h b/include/drm/drm_fb_helper.h index 975deedd593e..53687c5664b8 100644 --- a/include/drm/drm_fb_helper.h +++ b/include/drm/drm_fb_helper.h | |||
@@ -181,7 +181,7 @@ struct drm_fb_helper_connector { | |||
181 | * | 181 | * |
182 | * This is the main structure used by the fbdev helpers. Drivers supporting | 182 | * This is the main structure used by the fbdev helpers. Drivers supporting |
183 | * fbdev emulation should embedded this into their overall driver structure. | 183 | * fbdev emulation should embedded this into their overall driver structure. |
184 | * Drivers must also fill out a struct &drm_fb_helper_funcs with a few | 184 | * Drivers must also fill out a &struct drm_fb_helper_funcs with a few |
185 | * operations. | 185 | * operations. |
186 | */ | 186 | */ |
187 | struct drm_fb_helper { | 187 | struct drm_fb_helper { |
diff --git a/include/drm/drm_framebuffer.h b/include/drm/drm_framebuffer.h index f0dde1d02be4..046c35e54099 100644 --- a/include/drm/drm_framebuffer.h +++ b/include/drm/drm_framebuffer.h | |||
@@ -51,7 +51,7 @@ struct drm_framebuffer_funcs { | |||
51 | * @create_handle: | 51 | * @create_handle: |
52 | * | 52 | * |
53 | * Create a buffer handle in the driver-specific buffer manager (either | 53 | * Create a buffer handle in the driver-specific buffer manager (either |
54 | * GEM or TTM) valid for the passed-in struct &drm_file. This is used by | 54 | * GEM or TTM) valid for the passed-in &struct drm_file. This is used by |
55 | * the core to implement the GETFB IOCTL, which returns (for | 55 | * the core to implement the GETFB IOCTL, which returns (for |
56 | * sufficiently priviledged user) also a native buffer handle. This can | 56 | * sufficiently priviledged user) also a native buffer handle. This can |
57 | * be used for seamless transitions between modesetting clients by | 57 | * be used for seamless transitions between modesetting clients by |
@@ -149,7 +149,7 @@ struct drm_framebuffer { | |||
149 | * | 149 | * |
150 | * This should not be used to specifiy x/y pixel offsets into the buffer | 150 | * This should not be used to specifiy x/y pixel offsets into the buffer |
151 | * data (even for linear buffers). Specifying an x/y pixel offset is | 151 | * data (even for linear buffers). Specifying an x/y pixel offset is |
152 | * instead done through the source rectangle in struct &drm_plane_state. | 152 | * instead done through the source rectangle in &struct drm_plane_state. |
153 | */ | 153 | */ |
154 | unsigned int offsets[4]; | 154 | unsigned int offsets[4]; |
155 | /** | 155 | /** |
@@ -187,7 +187,7 @@ struct drm_framebuffer { | |||
187 | */ | 187 | */ |
188 | int hot_y; | 188 | int hot_y; |
189 | /** | 189 | /** |
190 | * @filp_head: Placed on struct &drm_file fbs list_head, protected by | 190 | * @filp_head: Placed on &struct drm_file fbs list_head, protected by |
191 | * fbs_lock in the same structure. | 191 | * fbs_lock in the same structure. |
192 | */ | 192 | */ |
193 | struct list_head filp_head; | 193 | struct list_head filp_head; |
diff --git a/include/drm/drm_irq.h b/include/drm/drm_irq.h index 293d08caab60..18cfd11307e1 100644 --- a/include/drm/drm_irq.h +++ b/include/drm/drm_irq.h | |||
@@ -51,8 +51,8 @@ struct drm_pending_vblank_event { | |||
51 | * | 51 | * |
52 | * Note that for historical reasons - the vblank handling code is still shared | 52 | * Note that for historical reasons - the vblank handling code is still shared |
53 | * with legacy/non-kms drivers - this is a free-standing structure not directly | 53 | * with legacy/non-kms drivers - this is a free-standing structure not directly |
54 | * connected to struct &drm_crtc. But all public interface functions are taking | 54 | * connected to &struct drm_crtc. But all public interface functions are taking |
55 | * a struct &drm_crtc to hide this implementation detail. | 55 | * a &struct drm_crtc to hide this implementation detail. |
56 | */ | 56 | */ |
57 | struct drm_vblank_crtc { | 57 | struct drm_vblank_crtc { |
58 | /** | 58 | /** |
diff --git a/include/drm/drm_mode_config.h b/include/drm/drm_mode_config.h index 5b735549bd51..17942c0f32a8 100644 --- a/include/drm/drm_mode_config.h +++ b/include/drm/drm_mode_config.h | |||
@@ -47,7 +47,7 @@ struct drm_mode_config_funcs { | |||
47 | * | 47 | * |
48 | * Create a new framebuffer object. The core does basic checks on the | 48 | * Create a new framebuffer object. The core does basic checks on the |
49 | * requested metadata, but most of that is left to the driver. See | 49 | * requested metadata, but most of that is left to the driver. See |
50 | * struct &drm_mode_fb_cmd2 for details. | 50 | * &struct drm_mode_fb_cmd2 for details. |
51 | * | 51 | * |
52 | * If the parameters are deemed valid and the backing storage objects in | 52 | * If the parameters are deemed valid and the backing storage objects in |
53 | * the underlying memory manager all exist, then the driver allocates | 53 | * the underlying memory manager all exist, then the driver allocates |
@@ -135,7 +135,7 @@ struct drm_mode_config_funcs { | |||
135 | * error conditions which don't have to be checked at the | 135 | * error conditions which don't have to be checked at the |
136 | * ->atomic_check() stage? | 136 | * ->atomic_check() stage? |
137 | * | 137 | * |
138 | * See the documentation for struct &drm_atomic_state for how exactly | 138 | * See the documentation for &struct drm_atomic_state for how exactly |
139 | * an atomic modeset update is described. | 139 | * an atomic modeset update is described. |
140 | * | 140 | * |
141 | * Drivers using the atomic helpers can implement this hook using | 141 | * Drivers using the atomic helpers can implement this hook using |
@@ -171,7 +171,7 @@ struct drm_mode_config_funcs { | |||
171 | * calling this function, and that nothing has been changed in the | 171 | * calling this function, and that nothing has been changed in the |
172 | * interim. | 172 | * interim. |
173 | * | 173 | * |
174 | * See the documentation for struct &drm_atomic_state for how exactly | 174 | * See the documentation for &struct drm_atomic_state for how exactly |
175 | * an atomic modeset update is described. | 175 | * an atomic modeset update is described. |
176 | * | 176 | * |
177 | * Drivers using the atomic helpers can implement this hook using | 177 | * Drivers using the atomic helpers can implement this hook using |
@@ -198,7 +198,7 @@ struct drm_mode_config_funcs { | |||
198 | * completed. These events are per-CRTC and can be distinguished by the | 198 | * completed. These events are per-CRTC and can be distinguished by the |
199 | * CRTC index supplied in &drm_event to userspace. | 199 | * CRTC index supplied in &drm_event to userspace. |
200 | * | 200 | * |
201 | * The drm core will supply a struct &drm_event in the event | 201 | * The drm core will supply a &struct drm_event in the event |
202 | * member of each CRTC's &drm_crtc_state structure. See the | 202 | * member of each CRTC's &drm_crtc_state structure. See the |
203 | * documentation for &drm_crtc_state for more details about the precise | 203 | * documentation for &drm_crtc_state for more details about the precise |
204 | * semantics of this event. | 204 | * semantics of this event. |
@@ -381,7 +381,7 @@ struct drm_mode_config { | |||
381 | /** | 381 | /** |
382 | * @connector_list: List of connector objects. Protected by | 382 | * @connector_list: List of connector objects. Protected by |
383 | * @connector_list_lock. Only use drm_for_each_connector_iter() and | 383 | * @connector_list_lock. Only use drm_for_each_connector_iter() and |
384 | * struct &drm_connector_list_iter to walk this list. | 384 | * &struct drm_connector_list_iter to walk this list. |
385 | */ | 385 | */ |
386 | struct list_head connector_list; | 386 | struct list_head connector_list; |
387 | int num_encoder; | 387 | int num_encoder; |
diff --git a/include/drm/drm_modeset_helper_vtables.h b/include/drm/drm_modeset_helper_vtables.h index 625c7475c5df..46f5b349f059 100644 --- a/include/drm/drm_modeset_helper_vtables.h +++ b/include/drm/drm_modeset_helper_vtables.h | |||
@@ -726,7 +726,7 @@ struct drm_connector_helper_funcs { | |||
726 | * fixed panel can also manually add specific modes using | 726 | * fixed panel can also manually add specific modes using |
727 | * drm_mode_probed_add(). Drivers which manually add modes should also | 727 | * drm_mode_probed_add(). Drivers which manually add modes should also |
728 | * make sure that the @display_info, @width_mm and @height_mm fields of the | 728 | * make sure that the @display_info, @width_mm and @height_mm fields of the |
729 | * struct &drm_connector are filled in. | 729 | * &struct drm_connector are filled in. |
730 | * | 730 | * |
731 | * Virtual drivers that just want some standard VESA mode with a given | 731 | * Virtual drivers that just want some standard VESA mode with a given |
732 | * resolution can call drm_add_modes_noedid(), and mark the preferred | 732 | * resolution can call drm_add_modes_noedid(), and mark the preferred |
diff --git a/include/drm/drm_plane.h b/include/drm/drm_plane.h index db3bbdeb36d5..e049bc52fb07 100644 --- a/include/drm/drm_plane.h +++ b/include/drm/drm_plane.h | |||
@@ -253,7 +253,7 @@ struct drm_plane_funcs { | |||
253 | * &drm_mode_config_funcs) will be cleaned up by calling the | 253 | * &drm_mode_config_funcs) will be cleaned up by calling the |
254 | * @atomic_destroy_state hook in this structure. | 254 | * @atomic_destroy_state hook in this structure. |
255 | * | 255 | * |
256 | * Atomic drivers which don't subclass struct &drm_plane_state should use | 256 | * Atomic drivers which don't subclass &struct drm_plane_state should use |
257 | * drm_atomic_helper_plane_duplicate_state(). Drivers that subclass the | 257 | * drm_atomic_helper_plane_duplicate_state(). Drivers that subclass the |
258 | * state structure to extend it with driver-private state should use | 258 | * state structure to extend it with driver-private state should use |
259 | * __drm_atomic_helper_plane_duplicate_state() to make sure shared state is | 259 | * __drm_atomic_helper_plane_duplicate_state() to make sure shared state is |
@@ -381,7 +381,7 @@ struct drm_plane_funcs { | |||
381 | /** | 381 | /** |
382 | * @atomic_print_state: | 382 | * @atomic_print_state: |
383 | * | 383 | * |
384 | * If driver subclasses struct &drm_plane_state, it should implement | 384 | * If driver subclasses &struct drm_plane_state, it should implement |
385 | * this optional hook for printing additional driver specific state. | 385 | * this optional hook for printing additional driver specific state. |
386 | * | 386 | * |
387 | * Do not call this directly, use drm_atomic_plane_print_state() | 387 | * Do not call this directly, use drm_atomic_plane_print_state() |
diff --git a/include/drm/drm_print.h b/include/drm/drm_print.h index e9d0ba20089c..7d98763c0444 100644 --- a/include/drm/drm_print.h +++ b/include/drm/drm_print.h | |||
@@ -80,7 +80,7 @@ void drm_printf(struct drm_printer *p, const char *f, ...); | |||
80 | 80 | ||
81 | /** | 81 | /** |
82 | * drm_seq_file_printer - construct a &drm_printer that outputs to &seq_file | 82 | * drm_seq_file_printer - construct a &drm_printer that outputs to &seq_file |
83 | * @f: the struct &seq_file to output to | 83 | * @f: the &struct seq_file to output to |
84 | * | 84 | * |
85 | * RETURNS: | 85 | * RETURNS: |
86 | * The &drm_printer object | 86 | * The &drm_printer object |
@@ -96,7 +96,7 @@ static inline struct drm_printer drm_seq_file_printer(struct seq_file *f) | |||
96 | 96 | ||
97 | /** | 97 | /** |
98 | * drm_info_printer - construct a &drm_printer that outputs to dev_printk() | 98 | * drm_info_printer - construct a &drm_printer that outputs to dev_printk() |
99 | * @dev: the struct &device pointer | 99 | * @dev: the &struct device pointer |
100 | * | 100 | * |
101 | * RETURNS: | 101 | * RETURNS: |
102 | * The &drm_printer object | 102 | * The &drm_printer object |
diff --git a/include/drm/drm_simple_kms_helper.h b/include/drm/drm_simple_kms_helper.h index 2bbc610ec3a2..fe8c4ba905ac 100644 --- a/include/drm/drm_simple_kms_helper.h +++ b/include/drm/drm_simple_kms_helper.h | |||
@@ -73,9 +73,9 @@ struct drm_simple_display_pipe_funcs { | |||
73 | /** | 73 | /** |
74 | * @prepare_fb: | 74 | * @prepare_fb: |
75 | * | 75 | * |
76 | * Optional, called by struct &drm_plane_helper_funcs ->prepare_fb . | 76 | * Optional, called by &struct drm_plane_helper_funcs ->prepare_fb . |
77 | * Please read the documentation for the ->prepare_fb hook in | 77 | * Please read the documentation for the ->prepare_fb hook in |
78 | * struct &drm_plane_helper_funcs for more details. | 78 | * &struct drm_plane_helper_funcs for more details. |
79 | */ | 79 | */ |
80 | int (*prepare_fb)(struct drm_simple_display_pipe *pipe, | 80 | int (*prepare_fb)(struct drm_simple_display_pipe *pipe, |
81 | struct drm_plane_state *plane_state); | 81 | struct drm_plane_state *plane_state); |
@@ -83,9 +83,9 @@ struct drm_simple_display_pipe_funcs { | |||
83 | /** | 83 | /** |
84 | * @cleanup_fb: | 84 | * @cleanup_fb: |
85 | * | 85 | * |
86 | * Optional, called by struct &drm_plane_helper_funcs ->cleanup_fb . | 86 | * Optional, called by &struct drm_plane_helper_funcs ->cleanup_fb . |
87 | * Please read the documentation for the ->cleanup_fb hook in | 87 | * Please read the documentation for the ->cleanup_fb hook in |
88 | * struct &drm_plane_helper_funcs for more details. | 88 | * &struct drm_plane_helper_funcs for more details. |
89 | */ | 89 | */ |
90 | void (*cleanup_fb)(struct drm_simple_display_pipe *pipe, | 90 | void (*cleanup_fb)(struct drm_simple_display_pipe *pipe, |
91 | struct drm_plane_state *plane_state); | 91 | struct drm_plane_state *plane_state); |