diff options
author | Alexander Usyskin <alexander.usyskin@intel.com> | 2014-09-29 09:31:49 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-09-29 11:56:02 -0400 |
commit | a8605ea2c20c2b97a54d7746c16ebef5ba29632a (patch) | |
tree | 5381189bc33345ce3c89c36c733b50c73ab37419 | |
parent | 764c065a65c31a09340e71d2c41652e7e05bf083 (diff) |
mei: fix KDoc documentation formatting
Fix Kdoc documentation formatting warnings
genertaed by ./scripts/kernel-doc
Signed-off-by: Alexander Usyskin <alexander.usyskin@intel.com>
Signed-off-by: Tomas Winkler <tomas.winkler@intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/misc/mei/amthif.c | 30 | ||||
-rw-r--r-- | drivers/misc/mei/client.c | 70 | ||||
-rw-r--r-- | drivers/misc/mei/debugfs.c | 7 | ||||
-rw-r--r-- | drivers/misc/mei/hbm.c | 43 | ||||
-rw-r--r-- | drivers/misc/mei/hw-me.c | 48 | ||||
-rw-r--r-- | drivers/misc/mei/hw-txe.c | 57 | ||||
-rw-r--r-- | drivers/misc/mei/hw.h | 46 | ||||
-rw-r--r-- | drivers/misc/mei/init.c | 10 | ||||
-rw-r--r-- | drivers/misc/mei/interrupt.c | 24 | ||||
-rw-r--r-- | drivers/misc/mei/main.c | 21 | ||||
-rw-r--r-- | drivers/misc/mei/mei_dev.h | 88 | ||||
-rw-r--r-- | drivers/misc/mei/nfc.c | 3 | ||||
-rw-r--r-- | drivers/misc/mei/pci-me.c | 4 | ||||
-rw-r--r-- | drivers/misc/mei/pci-txe.c | 2 | ||||
-rw-r--r-- | drivers/misc/mei/wd.c | 15 |
15 files changed, 243 insertions, 225 deletions
diff --git a/drivers/misc/mei/amthif.c b/drivers/misc/mei/amthif.c index d9b0e761fcd2..29b3fd0ab505 100644 --- a/drivers/misc/mei/amthif.c +++ b/drivers/misc/mei/amthif.c | |||
@@ -122,7 +122,7 @@ int mei_amthif_host_init(struct mei_device *dev) | |||
122 | * @dev: the device structure | 122 | * @dev: the device structure |
123 | * @file: pointer to file object | 123 | * @file: pointer to file object |
124 | * | 124 | * |
125 | * returns returned a list entry on success, NULL on failure. | 125 | * Return: returned a list entry on success, NULL on failure. |
126 | */ | 126 | */ |
127 | struct mei_cl_cb *mei_amthif_find_read_list_entry(struct mei_device *dev, | 127 | struct mei_cl_cb *mei_amthif_find_read_list_entry(struct mei_device *dev, |
128 | struct file *file) | 128 | struct file *file) |
@@ -140,15 +140,14 @@ struct mei_cl_cb *mei_amthif_find_read_list_entry(struct mei_device *dev, | |||
140 | * mei_amthif_read - read data from AMTHIF client | 140 | * mei_amthif_read - read data from AMTHIF client |
141 | * | 141 | * |
142 | * @dev: the device structure | 142 | * @dev: the device structure |
143 | * @if_num: minor number | ||
144 | * @file: pointer to file object | 143 | * @file: pointer to file object |
145 | * @*ubuf: pointer to user data in user space | 144 | * @ubuf: pointer to user data in user space |
146 | * @length: data length to read | 145 | * @length: data length to read |
147 | * @offset: data read offset | 146 | * @offset: data read offset |
148 | * | 147 | * |
149 | * Locking: called under "dev->device_lock" lock | 148 | * Locking: called under "dev->device_lock" lock |
150 | * | 149 | * |
151 | * returns | 150 | * Return: |
152 | * returned data length on success, | 151 | * returned data length on success, |
153 | * zero if no data to read, | 152 | * zero if no data to read, |
154 | * negative on failure. | 153 | * negative on failure. |
@@ -256,7 +255,7 @@ out: | |||
256 | * @dev: the device structure | 255 | * @dev: the device structure |
257 | * @cb: mei call back struct | 256 | * @cb: mei call back struct |
258 | * | 257 | * |
259 | * returns 0 on success, <0 on failure. | 258 | * Return: 0 on success, <0 on failure. |
260 | * | 259 | * |
261 | */ | 260 | */ |
262 | static int mei_amthif_send_cmd(struct mei_device *dev, struct mei_cl_cb *cb) | 261 | static int mei_amthif_send_cmd(struct mei_device *dev, struct mei_cl_cb *cb) |
@@ -326,7 +325,7 @@ static int mei_amthif_send_cmd(struct mei_device *dev, struct mei_cl_cb *cb) | |||
326 | * @dev: the device structure | 325 | * @dev: the device structure |
327 | * @cb: mei call back struct | 326 | * @cb: mei call back struct |
328 | * | 327 | * |
329 | * returns 0 on success, <0 on failure. | 328 | * Return: 0 on success, <0 on failure. |
330 | * | 329 | * |
331 | */ | 330 | */ |
332 | int mei_amthif_write(struct mei_device *dev, struct mei_cl_cb *cb) | 331 | int mei_amthif_write(struct mei_device *dev, struct mei_cl_cb *cb) |
@@ -356,8 +355,6 @@ int mei_amthif_write(struct mei_device *dev, struct mei_cl_cb *cb) | |||
356 | * mei_amthif_run_next_cmd | 355 | * mei_amthif_run_next_cmd |
357 | * | 356 | * |
358 | * @dev: the device structure | 357 | * @dev: the device structure |
359 | * | ||
360 | * returns 0 on success, <0 on failure. | ||
361 | */ | 358 | */ |
362 | void mei_amthif_run_next_cmd(struct mei_device *dev) | 359 | void mei_amthif_run_next_cmd(struct mei_device *dev) |
363 | { | 360 | { |
@@ -420,12 +417,11 @@ unsigned int mei_amthif_poll(struct mei_device *dev, | |||
420 | /** | 417 | /** |
421 | * mei_amthif_irq_write - write iamthif command in irq thread context. | 418 | * mei_amthif_irq_write - write iamthif command in irq thread context. |
422 | * | 419 | * |
423 | * @dev: the device structure. | ||
424 | * @cb_pos: callback block. | ||
425 | * @cl: private data of the file object. | 420 | * @cl: private data of the file object. |
421 | * @cb: callback block. | ||
426 | * @cmpl_list: complete list. | 422 | * @cmpl_list: complete list. |
427 | * | 423 | * |
428 | * returns 0, OK; otherwise, error. | 424 | * Return: 0, OK; otherwise, error. |
429 | */ | 425 | */ |
430 | int mei_amthif_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb, | 426 | int mei_amthif_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb, |
431 | struct mei_cl_cb *cmpl_list) | 427 | struct mei_cl_cb *cmpl_list) |
@@ -507,7 +503,7 @@ int mei_amthif_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb, | |||
507 | * @mei_hdr: header of amthif message | 503 | * @mei_hdr: header of amthif message |
508 | * @complete_list: An instance of our list structure | 504 | * @complete_list: An instance of our list structure |
509 | * | 505 | * |
510 | * returns 0 on success, <0 on failure. | 506 | * Return: 0 on success, <0 on failure. |
511 | */ | 507 | */ |
512 | int mei_amthif_irq_read_msg(struct mei_device *dev, | 508 | int mei_amthif_irq_read_msg(struct mei_device *dev, |
513 | struct mei_msg_hdr *mei_hdr, | 509 | struct mei_msg_hdr *mei_hdr, |
@@ -560,7 +556,7 @@ int mei_amthif_irq_read_msg(struct mei_device *dev, | |||
560 | * @dev: the device structure. | 556 | * @dev: the device structure. |
561 | * @slots: free slots. | 557 | * @slots: free slots. |
562 | * | 558 | * |
563 | * returns 0, OK; otherwise, error. | 559 | * Return: 0, OK; otherwise, error. |
564 | */ | 560 | */ |
565 | int mei_amthif_irq_read(struct mei_device *dev, s32 *slots) | 561 | int mei_amthif_irq_read(struct mei_device *dev, s32 *slots) |
566 | { | 562 | { |
@@ -590,7 +586,7 @@ int mei_amthif_irq_read(struct mei_device *dev, s32 *slots) | |||
590 | * mei_amthif_complete - complete amthif callback. | 586 | * mei_amthif_complete - complete amthif callback. |
591 | * | 587 | * |
592 | * @dev: the device structure. | 588 | * @dev: the device structure. |
593 | * @cb_pos: callback block. | 589 | * @cb: callback block. |
594 | */ | 590 | */ |
595 | void mei_amthif_complete(struct mei_device *dev, struct mei_cl_cb *cb) | 591 | void mei_amthif_complete(struct mei_device *dev, struct mei_cl_cb *cb) |
596 | { | 592 | { |
@@ -624,7 +620,7 @@ void mei_amthif_complete(struct mei_device *dev, struct mei_cl_cb *cb) | |||
624 | * mei_clear_list is called to clear resources associated with file | 620 | * mei_clear_list is called to clear resources associated with file |
625 | * when application calls close function or Ctrl-C was pressed | 621 | * when application calls close function or Ctrl-C was pressed |
626 | * | 622 | * |
627 | * returns true if callback removed from the list, false otherwise | 623 | * Return: true if callback removed from the list, false otherwise |
628 | */ | 624 | */ |
629 | static bool mei_clear_list(struct mei_device *dev, | 625 | static bool mei_clear_list(struct mei_device *dev, |
630 | const struct file *file, struct list_head *mei_cb_list) | 626 | const struct file *file, struct list_head *mei_cb_list) |
@@ -664,7 +660,7 @@ static bool mei_clear_list(struct mei_device *dev, | |||
664 | * mei_clear_lists is called to clear resources associated with file | 660 | * mei_clear_lists is called to clear resources associated with file |
665 | * when application calls close function or Ctrl-C was pressed | 661 | * when application calls close function or Ctrl-C was pressed |
666 | * | 662 | * |
667 | * returns true if callback removed from the list, false otherwise | 663 | * Return: true if callback removed from the list, false otherwise |
668 | */ | 664 | */ |
669 | static bool mei_clear_lists(struct mei_device *dev, struct file *file) | 665 | static bool mei_clear_lists(struct mei_device *dev, struct file *file) |
670 | { | 666 | { |
@@ -705,7 +701,7 @@ static bool mei_clear_lists(struct mei_device *dev, struct file *file) | |||
705 | * @dev: device structure | 701 | * @dev: device structure |
706 | * @file: pointer to file structure | 702 | * @file: pointer to file structure |
707 | * | 703 | * |
708 | * returns 0 on success, <0 on error | 704 | * Return: 0 on success, <0 on error |
709 | */ | 705 | */ |
710 | int mei_amthif_release(struct mei_device *dev, struct file *file) | 706 | int mei_amthif_release(struct mei_device *dev, struct file *file) |
711 | { | 707 | { |
diff --git a/drivers/misc/mei/client.c b/drivers/misc/mei/client.c index bf3fd67dc6b6..1f91c55f7af5 100644 --- a/drivers/misc/mei/client.c +++ b/drivers/misc/mei/client.c | |||
@@ -27,13 +27,14 @@ | |||
27 | #include "client.h" | 27 | #include "client.h" |
28 | 28 | ||
29 | /** | 29 | /** |
30 | * mei_me_cl_by_uuid - locate index of me client | 30 | * mei_me_cl_by_uuid - locate me client by uuid |
31 | * | 31 | * |
32 | * @dev: mei device | 32 | * @dev: mei device |
33 | * @uuid: me client uuid | ||
33 | * | 34 | * |
34 | * Locking: called under "dev->device_lock" lock | 35 | * Locking: called under "dev->device_lock" lock |
35 | * | 36 | * |
36 | * returns me client or NULL if not found | 37 | * Return: me client or NULL if not found |
37 | */ | 38 | */ |
38 | struct mei_me_client *mei_me_cl_by_uuid(const struct mei_device *dev, | 39 | struct mei_me_client *mei_me_cl_by_uuid(const struct mei_device *dev, |
39 | const uuid_le *uuid) | 40 | const uuid_le *uuid) |
@@ -48,16 +49,15 @@ struct mei_me_client *mei_me_cl_by_uuid(const struct mei_device *dev, | |||
48 | } | 49 | } |
49 | 50 | ||
50 | /** | 51 | /** |
51 | * mei_me_cl_by_id return index to me_clients for client_id | 52 | * mei_me_cl_by_id - locate me client by client id |
52 | * | 53 | * |
53 | * @dev: the device structure | 54 | * @dev: the device structure |
54 | * @client_id: me client id | 55 | * @client_id: me client id |
55 | * | 56 | * |
56 | * Locking: called under "dev->device_lock" lock | 57 | * Locking: called under "dev->device_lock" lock |
57 | * | 58 | * |
58 | * returns me client or NULL if not found | 59 | * Return: me client or NULL if not found |
59 | */ | 60 | */ |
60 | |||
61 | struct mei_me_client *mei_me_cl_by_id(struct mei_device *dev, u8 client_id) | 61 | struct mei_me_client *mei_me_cl_by_id(struct mei_device *dev, u8 client_id) |
62 | { | 62 | { |
63 | 63 | ||
@@ -69,6 +69,17 @@ struct mei_me_client *mei_me_cl_by_id(struct mei_device *dev, u8 client_id) | |||
69 | return NULL; | 69 | return NULL; |
70 | } | 70 | } |
71 | 71 | ||
72 | /** | ||
73 | * mei_me_cl_by_uuid_id - locate me client by client id and uuid | ||
74 | * | ||
75 | * @dev: the device structure | ||
76 | * @uuid: me client uuid | ||
77 | * @client_id: me client id | ||
78 | * | ||
79 | * Locking: called under "dev->device_lock" lock | ||
80 | * | ||
81 | * Return: me client or NULL if not found | ||
82 | */ | ||
72 | struct mei_me_client *mei_me_cl_by_uuid_id(struct mei_device *dev, | 83 | struct mei_me_client *mei_me_cl_by_uuid_id(struct mei_device *dev, |
73 | const uuid_le *uuid, u8 client_id) | 84 | const uuid_le *uuid, u8 client_id) |
74 | { | 85 | { |
@@ -109,7 +120,7 @@ void mei_me_cl_remove(struct mei_device *dev, const uuid_le *uuid, u8 client_id) | |||
109 | * @cl1: host client 1 | 120 | * @cl1: host client 1 |
110 | * @cl2: host client 2 | 121 | * @cl2: host client 2 |
111 | * | 122 | * |
112 | * returns true - if the clients has same host and me ids | 123 | * Return: true - if the clients has same host and me ids |
113 | * false - otherwise | 124 | * false - otherwise |
114 | */ | 125 | */ |
115 | static inline bool mei_cl_cmp_id(const struct mei_cl *cl1, | 126 | static inline bool mei_cl_cmp_id(const struct mei_cl *cl1, |
@@ -184,10 +195,10 @@ void mei_io_cb_free(struct mei_cl_cb *cb) | |||
184 | /** | 195 | /** |
185 | * mei_io_cb_init - allocate and initialize io callback | 196 | * mei_io_cb_init - allocate and initialize io callback |
186 | * | 197 | * |
187 | * @cl - mei client | 198 | * @cl: mei client |
188 | * @fp: pointer to file structure | 199 | * @fp: pointer to file structure |
189 | * | 200 | * |
190 | * returns mei_cl_cb pointer or NULL; | 201 | * Return: mei_cl_cb pointer or NULL; |
191 | */ | 202 | */ |
192 | struct mei_cl_cb *mei_io_cb_init(struct mei_cl *cl, struct file *fp) | 203 | struct mei_cl_cb *mei_io_cb_init(struct mei_cl *cl, struct file *fp) |
193 | { | 204 | { |
@@ -211,7 +222,7 @@ struct mei_cl_cb *mei_io_cb_init(struct mei_cl *cl, struct file *fp) | |||
211 | * @cb: io callback structure | 222 | * @cb: io callback structure |
212 | * @length: size of the buffer | 223 | * @length: size of the buffer |
213 | * | 224 | * |
214 | * returns 0 on success | 225 | * Return: 0 on success |
215 | * -EINVAL if cb is NULL | 226 | * -EINVAL if cb is NULL |
216 | * -ENOMEM if allocation failed | 227 | * -ENOMEM if allocation failed |
217 | */ | 228 | */ |
@@ -235,7 +246,7 @@ int mei_io_cb_alloc_req_buf(struct mei_cl_cb *cb, size_t length) | |||
235 | * @cb: io callback structure | 246 | * @cb: io callback structure |
236 | * @length: size of the buffer | 247 | * @length: size of the buffer |
237 | * | 248 | * |
238 | * returns 0 on success | 249 | * Return: 0 on success |
239 | * -EINVAL if cb is NULL | 250 | * -EINVAL if cb is NULL |
240 | * -ENOMEM if allocation failed | 251 | * -ENOMEM if allocation failed |
241 | */ | 252 | */ |
@@ -305,7 +316,7 @@ void mei_cl_init(struct mei_cl *cl, struct mei_device *dev) | |||
305 | * mei_cl_allocate - allocates cl structure and sets it up. | 316 | * mei_cl_allocate - allocates cl structure and sets it up. |
306 | * | 317 | * |
307 | * @dev: mei device | 318 | * @dev: mei device |
308 | * returns The allocated file or NULL on failure | 319 | * Return: The allocated file or NULL on failure |
309 | */ | 320 | */ |
310 | struct mei_cl *mei_cl_allocate(struct mei_device *dev) | 321 | struct mei_cl *mei_cl_allocate(struct mei_device *dev) |
311 | { | 322 | { |
@@ -325,7 +336,7 @@ struct mei_cl *mei_cl_allocate(struct mei_device *dev) | |||
325 | * | 336 | * |
326 | * @cl: host client | 337 | * @cl: host client |
327 | * | 338 | * |
328 | * returns cb on success, NULL on error | 339 | * Return: cb on success, NULL on error |
329 | */ | 340 | */ |
330 | struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl) | 341 | struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl) |
331 | { | 342 | { |
@@ -343,7 +354,7 @@ struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl) | |||
343 | * @cl - host client | 354 | * @cl - host client |
344 | * @id - fixed host id or -1 for generic one | 355 | * @id - fixed host id or -1 for generic one |
345 | * | 356 | * |
346 | * returns 0 on success | 357 | * Return: 0 on success |
347 | * -EINVAL on incorrect values | 358 | * -EINVAL on incorrect values |
348 | * -ENONET if client not found | 359 | * -ENONET if client not found |
349 | */ | 360 | */ |
@@ -455,10 +466,10 @@ void mei_host_client_init(struct work_struct *work) | |||
455 | } | 466 | } |
456 | 467 | ||
457 | /** | 468 | /** |
458 | * mei_hbuf_acquire: try to acquire host buffer | 469 | * mei_hbuf_acquire - try to acquire host buffer |
459 | * | 470 | * |
460 | * @dev: the device structure | 471 | * @dev: the device structure |
461 | * returns true if host buffer was acquired | 472 | * Return: true if host buffer was acquired |
462 | */ | 473 | */ |
463 | bool mei_hbuf_acquire(struct mei_device *dev) | 474 | bool mei_hbuf_acquire(struct mei_device *dev) |
464 | { | 475 | { |
@@ -485,7 +496,7 @@ bool mei_hbuf_acquire(struct mei_device *dev) | |||
485 | * | 496 | * |
486 | * Locking: called under "dev->device_lock" lock | 497 | * Locking: called under "dev->device_lock" lock |
487 | * | 498 | * |
488 | * returns 0 on success, <0 on failure. | 499 | * Return: 0 on success, <0 on failure. |
489 | */ | 500 | */ |
490 | int mei_cl_disconnect(struct mei_cl *cl) | 501 | int mei_cl_disconnect(struct mei_cl *cl) |
491 | { | 502 | { |
@@ -566,7 +577,7 @@ free: | |||
566 | * | 577 | * |
567 | * @cl: private data of the file object | 578 | * @cl: private data of the file object |
568 | * | 579 | * |
569 | * returns true if other client is connected, false - otherwise. | 580 | * Return: true if other client is connected, false - otherwise. |
570 | */ | 581 | */ |
571 | bool mei_cl_is_other_connecting(struct mei_cl *cl) | 582 | bool mei_cl_is_other_connecting(struct mei_cl *cl) |
572 | { | 583 | { |
@@ -593,10 +604,11 @@ bool mei_cl_is_other_connecting(struct mei_cl *cl) | |||
593 | * mei_cl_connect - connect host client to the me one | 604 | * mei_cl_connect - connect host client to the me one |
594 | * | 605 | * |
595 | * @cl: host client | 606 | * @cl: host client |
607 | * @file: pointer to file structure | ||
596 | * | 608 | * |
597 | * Locking: called under "dev->device_lock" lock | 609 | * Locking: called under "dev->device_lock" lock |
598 | * | 610 | * |
599 | * returns 0 on success, <0 on failure. | 611 | * Return: 0 on success, <0 on failure. |
600 | */ | 612 | */ |
601 | int mei_cl_connect(struct mei_cl *cl, struct file *file) | 613 | int mei_cl_connect(struct mei_cl *cl, struct file *file) |
602 | { | 614 | { |
@@ -671,7 +683,7 @@ out: | |||
671 | * | 683 | * |
672 | * @cl: private data of the file object | 684 | * @cl: private data of the file object |
673 | * | 685 | * |
674 | * returns 1 if mei_flow_ctrl_creds >0, 0 - otherwise. | 686 | * Return: 1 if mei_flow_ctrl_creds >0, 0 - otherwise. |
675 | * -ENOENT if mei_cl is not present | 687 | * -ENOENT if mei_cl is not present |
676 | * -EINVAL if single_recv_buf == 0 | 688 | * -EINVAL if single_recv_buf == 0 |
677 | */ | 689 | */ |
@@ -707,7 +719,7 @@ int mei_cl_flow_ctrl_creds(struct mei_cl *cl) | |||
707 | * | 719 | * |
708 | * @cl: private data of the file object | 720 | * @cl: private data of the file object |
709 | * | 721 | * |
710 | * @returns | 722 | * Return: |
711 | * 0 on success | 723 | * 0 on success |
712 | * -ENOENT when me client is not found | 724 | * -ENOENT when me client is not found |
713 | * -EINVAL when ctrl credits are <= 0 | 725 | * -EINVAL when ctrl credits are <= 0 |
@@ -745,7 +757,7 @@ int mei_cl_flow_ctrl_reduce(struct mei_cl *cl) | |||
745 | * | 757 | * |
746 | * @cl: host client | 758 | * @cl: host client |
747 | * | 759 | * |
748 | * returns 0 on success, <0 on failure. | 760 | * Return: 0 on success, <0 on failure. |
749 | */ | 761 | */ |
750 | int mei_cl_read_start(struct mei_cl *cl, size_t length) | 762 | int mei_cl_read_start(struct mei_cl *cl, size_t length) |
751 | { | 763 | { |
@@ -823,7 +835,7 @@ out: | |||
823 | * @cb: callback block. | 835 | * @cb: callback block. |
824 | * @cmpl_list: complete list. | 836 | * @cmpl_list: complete list. |
825 | * | 837 | * |
826 | * returns 0, OK; otherwise error. | 838 | * Return: 0, OK; otherwise error. |
827 | */ | 839 | */ |
828 | int mei_cl_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb, | 840 | int mei_cl_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb, |
829 | struct mei_cl_cb *cmpl_list) | 841 | struct mei_cl_cb *cmpl_list) |
@@ -900,12 +912,12 @@ int mei_cl_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb, | |||
900 | 912 | ||
901 | /** | 913 | /** |
902 | * mei_cl_write - submit a write cb to mei device | 914 | * mei_cl_write - submit a write cb to mei device |
903 | assumes device_lock is locked | 915 | * assumes device_lock is locked |
904 | * | 916 | * |
905 | * @cl: host client | 917 | * @cl: host client |
906 | * @cl: write callback with filled data | 918 | * @cb: write callback with filled data |
907 | * | 919 | * |
908 | * returns number of bytes sent on success, <0 on failure. | 920 | * Return: number of bytes sent on success, <0 on failure. |
909 | */ | 921 | */ |
910 | int mei_cl_write(struct mei_cl *cl, struct mei_cl_cb *cb, bool blocking) | 922 | int mei_cl_write(struct mei_cl *cl, struct mei_cl_cb *cb, bool blocking) |
911 | { | 923 | { |
@@ -1042,7 +1054,7 @@ void mei_cl_complete(struct mei_cl *cl, struct mei_cl_cb *cb) | |||
1042 | /** | 1054 | /** |
1043 | * mei_cl_all_disconnect - disconnect forcefully all connected clients | 1055 | * mei_cl_all_disconnect - disconnect forcefully all connected clients |
1044 | * | 1056 | * |
1045 | * @dev - mei device | 1057 | * @dev: mei device |
1046 | */ | 1058 | */ |
1047 | 1059 | ||
1048 | void mei_cl_all_disconnect(struct mei_device *dev) | 1060 | void mei_cl_all_disconnect(struct mei_device *dev) |
@@ -1060,7 +1072,7 @@ void mei_cl_all_disconnect(struct mei_device *dev) | |||
1060 | /** | 1072 | /** |
1061 | * mei_cl_all_wakeup - wake up all readers and writers they can be interrupted | 1073 | * mei_cl_all_wakeup - wake up all readers and writers they can be interrupted |
1062 | * | 1074 | * |
1063 | * @dev - mei device | 1075 | * @dev: mei device |
1064 | */ | 1076 | */ |
1065 | void mei_cl_all_wakeup(struct mei_device *dev) | 1077 | void mei_cl_all_wakeup(struct mei_device *dev) |
1066 | { | 1078 | { |
@@ -1080,8 +1092,8 @@ void mei_cl_all_wakeup(struct mei_device *dev) | |||
1080 | 1092 | ||
1081 | /** | 1093 | /** |
1082 | * mei_cl_all_write_clear - clear all pending writes | 1094 | * mei_cl_all_write_clear - clear all pending writes |
1083 | 1095 | * | |
1084 | * @dev - mei device | 1096 | * @dev: mei device |
1085 | */ | 1097 | */ |
1086 | void mei_cl_all_write_clear(struct mei_device *dev) | 1098 | void mei_cl_all_write_clear(struct mei_device *dev) |
1087 | { | 1099 | { |
diff --git a/drivers/misc/mei/debugfs.c b/drivers/misc/mei/debugfs.c index b92b8bc136ac..357b02c18d40 100644 --- a/drivers/misc/mei/debugfs.c +++ b/drivers/misc/mei/debugfs.c | |||
@@ -161,7 +161,8 @@ static const struct file_operations mei_dbgfs_fops_devstate = { | |||
161 | 161 | ||
162 | /** | 162 | /** |
163 | * mei_dbgfs_deregister - Remove the debugfs files and directories | 163 | * mei_dbgfs_deregister - Remove the debugfs files and directories |
164 | * @mei - pointer to mei device private data | 164 | * |
165 | * @dev: the mei device structure | ||
165 | */ | 166 | */ |
166 | void mei_dbgfs_deregister(struct mei_device *dev) | 167 | void mei_dbgfs_deregister(struct mei_device *dev) |
167 | { | 168 | { |
@@ -172,8 +173,10 @@ void mei_dbgfs_deregister(struct mei_device *dev) | |||
172 | } | 173 | } |
173 | 174 | ||
174 | /** | 175 | /** |
175 | * Add the debugfs files | 176 | * mei_dbgfs_register - Add the debugfs files |
176 | * | 177 | * |
178 | * @dev: the mei device structure | ||
179 | * @name: the mei device name | ||
177 | */ | 180 | */ |
178 | int mei_dbgfs_register(struct mei_device *dev, const char *name) | 181 | int mei_dbgfs_register(struct mei_device *dev, const char *name) |
179 | { | 182 | { |
diff --git a/drivers/misc/mei/hbm.c b/drivers/misc/mei/hbm.c index 92d0739cca85..da476e8cac84 100644 --- a/drivers/misc/mei/hbm.c +++ b/drivers/misc/mei/hbm.c | |||
@@ -79,7 +79,7 @@ const char *mei_hbm_state_str(enum mei_hbm_state state) | |||
79 | * | 79 | * |
80 | * @status: client connect response status | 80 | * @status: client connect response status |
81 | * | 81 | * |
82 | * returns corresponding error code | 82 | * Return: corresponding error code |
83 | */ | 83 | */ |
84 | static int mei_cl_conn_status_to_errno(enum mei_cl_connect_status status) | 84 | static int mei_cl_conn_status_to_errno(enum mei_cl_connect_status status) |
85 | { | 85 | { |
@@ -196,7 +196,7 @@ int mei_hbm_cl_write(struct mei_device *dev, | |||
196 | * @cl: client | 196 | * @cl: client |
197 | * @cmd: hbm client message | 197 | * @cmd: hbm client message |
198 | * | 198 | * |
199 | * returns true if addresses are the same | 199 | * Return: true if addresses are the same |
200 | */ | 200 | */ |
201 | static inline | 201 | static inline |
202 | bool mei_hbm_cl_addr_equal(struct mei_cl *cl, struct mei_hbm_cl_cmd *cmd) | 202 | bool mei_hbm_cl_addr_equal(struct mei_cl *cl, struct mei_hbm_cl_cmd *cmd) |
@@ -211,7 +211,7 @@ bool mei_hbm_cl_addr_equal(struct mei_cl *cl, struct mei_hbm_cl_cmd *cmd) | |||
211 | * @dev: the device structure | 211 | * @dev: the device structure |
212 | * @buf: a buffer with hbm cl command | 212 | * @buf: a buffer with hbm cl command |
213 | * | 213 | * |
214 | * returns the recipient client or NULL if not found | 214 | * Return: the recipient client or NULL if not found |
215 | */ | 215 | */ |
216 | static inline | 216 | static inline |
217 | struct mei_cl *mei_hbm_cl_find_by_cmd(struct mei_device *dev, void *buf) | 217 | struct mei_cl *mei_hbm_cl_find_by_cmd(struct mei_device *dev, void *buf) |
@@ -231,7 +231,7 @@ struct mei_cl *mei_hbm_cl_find_by_cmd(struct mei_device *dev, void *buf) | |||
231 | * | 231 | * |
232 | * @dev: the device structure | 232 | * @dev: the device structure |
233 | * | 233 | * |
234 | * returns 0 on success and < 0 on failure | 234 | * Return: 0 on success and < 0 on failure |
235 | */ | 235 | */ |
236 | int mei_hbm_start_wait(struct mei_device *dev) | 236 | int mei_hbm_start_wait(struct mei_device *dev) |
237 | { | 237 | { |
@@ -259,7 +259,7 @@ int mei_hbm_start_wait(struct mei_device *dev) | |||
259 | * | 259 | * |
260 | * @dev: the device structure | 260 | * @dev: the device structure |
261 | * | 261 | * |
262 | * returns 0 on success and < 0 on failure | 262 | * Return: 0 on success and < 0 on failure |
263 | */ | 263 | */ |
264 | int mei_hbm_start_req(struct mei_device *dev) | 264 | int mei_hbm_start_req(struct mei_device *dev) |
265 | { | 265 | { |
@@ -297,7 +297,7 @@ int mei_hbm_start_req(struct mei_device *dev) | |||
297 | * | 297 | * |
298 | * @dev: the device structure | 298 | * @dev: the device structure |
299 | * | 299 | * |
300 | * returns 0 on success and < 0 on failure | 300 | * Return: 0 on success and < 0 on failure |
301 | */ | 301 | */ |
302 | static int mei_hbm_enum_clients_req(struct mei_device *dev) | 302 | static int mei_hbm_enum_clients_req(struct mei_device *dev) |
303 | { | 303 | { |
@@ -330,7 +330,7 @@ static int mei_hbm_enum_clients_req(struct mei_device *dev) | |||
330 | * @dev: the device structure | 330 | * @dev: the device structure |
331 | * @res: hbm property response | 331 | * @res: hbm property response |
332 | * | 332 | * |
333 | * returns 0 on success and -ENOMEM on allocation failure | 333 | * Return: 0 on success and -ENOMEM on allocation failure |
334 | */ | 334 | */ |
335 | 335 | ||
336 | static int mei_hbm_me_cl_add(struct mei_device *dev, | 336 | static int mei_hbm_me_cl_add(struct mei_device *dev, |
@@ -355,7 +355,7 @@ static int mei_hbm_me_cl_add(struct mei_device *dev, | |||
355 | * | 355 | * |
356 | * @dev: the device structure | 356 | * @dev: the device structure |
357 | * | 357 | * |
358 | * returns 0 on success and < 0 on failure | 358 | * Return: 0 on success and < 0 on failure |
359 | */ | 359 | */ |
360 | 360 | ||
361 | static int mei_hbm_prop_req(struct mei_device *dev) | 361 | static int mei_hbm_prop_req(struct mei_device *dev) |
@@ -405,7 +405,7 @@ static int mei_hbm_prop_req(struct mei_device *dev) | |||
405 | * @dev: the device structure | 405 | * @dev: the device structure |
406 | * @pg_cmd: the pg command code | 406 | * @pg_cmd: the pg command code |
407 | * | 407 | * |
408 | * returns -EIO on write failure | 408 | * Return: -EIO on write failure |
409 | * -EOPNOTSUPP if the operation is not supported by the protocol | 409 | * -EOPNOTSUPP if the operation is not supported by the protocol |
410 | */ | 410 | */ |
411 | int mei_hbm_pg(struct mei_device *dev, u8 pg_cmd) | 411 | int mei_hbm_pg(struct mei_device *dev, u8 pg_cmd) |
@@ -434,10 +434,9 @@ EXPORT_SYMBOL_GPL(mei_hbm_pg); | |||
434 | /** | 434 | /** |
435 | * mei_hbm_stop_req - send stop request message | 435 | * mei_hbm_stop_req - send stop request message |
436 | * | 436 | * |
437 | * @dev - mei device | 437 | * @dev: mei device |
438 | * @cl: client info | ||
439 | * | 438 | * |
440 | * This function returns -EIO on write failure | 439 | * Return: -EIO on write failure |
441 | */ | 440 | */ |
442 | static int mei_hbm_stop_req(struct mei_device *dev) | 441 | static int mei_hbm_stop_req(struct mei_device *dev) |
443 | { | 442 | { |
@@ -461,7 +460,7 @@ static int mei_hbm_stop_req(struct mei_device *dev) | |||
461 | * @dev: the device structure | 460 | * @dev: the device structure |
462 | * @cl: client info | 461 | * @cl: client info |
463 | * | 462 | * |
464 | * This function returns -EIO on write failure | 463 | * Return: -EIO on write failure |
465 | */ | 464 | */ |
466 | int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl) | 465 | int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl) |
467 | { | 466 | { |
@@ -477,7 +476,7 @@ int mei_hbm_cl_flow_control_req(struct mei_device *dev, struct mei_cl *cl) | |||
477 | * @dev: the device structure | 476 | * @dev: the device structure |
478 | * @flow: flow control. | 477 | * @flow: flow control. |
479 | * | 478 | * |
480 | * return 0 on success, < 0 otherwise | 479 | * Return: 0 on success, < 0 otherwise |
481 | */ | 480 | */ |
482 | static int mei_hbm_add_single_flow_creds(struct mei_device *dev, | 481 | static int mei_hbm_add_single_flow_creds(struct mei_device *dev, |
483 | struct hbm_flow_control *flow) | 482 | struct hbm_flow_control *flow) |
@@ -533,7 +532,7 @@ static void mei_hbm_cl_flow_control_res(struct mei_device *dev, | |||
533 | * @dev: the device structure | 532 | * @dev: the device structure |
534 | * @cl: a client to disconnect from | 533 | * @cl: a client to disconnect from |
535 | * | 534 | * |
536 | * This function returns -EIO on write failure | 535 | * Return: -EIO on write failure |
537 | */ | 536 | */ |
538 | int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl) | 537 | int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl) |
539 | { | 538 | { |
@@ -548,7 +547,7 @@ int mei_hbm_cl_disconnect_req(struct mei_device *dev, struct mei_cl *cl) | |||
548 | * @dev: the device structure | 547 | * @dev: the device structure |
549 | * @cl: a client to disconnect from | 548 | * @cl: a client to disconnect from |
550 | * | 549 | * |
551 | * This function returns -EIO on write failure | 550 | * Return: -EIO on write failure |
552 | */ | 551 | */ |
553 | int mei_hbm_cl_disconnect_rsp(struct mei_device *dev, struct mei_cl *cl) | 552 | int mei_hbm_cl_disconnect_rsp(struct mei_device *dev, struct mei_cl *cl) |
554 | { | 553 | { |
@@ -584,7 +583,7 @@ static void mei_hbm_cl_disconnect_res(struct mei_cl *cl, | |||
584 | * @dev: the device structure | 583 | * @dev: the device structure |
585 | * @cl: a client to connect to | 584 | * @cl: a client to connect to |
586 | * | 585 | * |
587 | * returns -EIO on write failure | 586 | * Return: -EIO on write failure |
588 | */ | 587 | */ |
589 | int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl) | 588 | int mei_hbm_cl_connect_req(struct mei_device *dev, struct mei_cl *cl) |
590 | { | 589 | { |
@@ -677,7 +676,7 @@ static void mei_hbm_cl_res(struct mei_device *dev, | |||
677 | * @dev: the device structure. | 676 | * @dev: the device structure. |
678 | * @disconnect_req: disconnect request bus message from the me | 677 | * @disconnect_req: disconnect request bus message from the me |
679 | * | 678 | * |
680 | * returns -ENOMEM on allocation failure | 679 | * Return: -ENOMEM on allocation failure |
681 | */ | 680 | */ |
682 | static int mei_hbm_fw_disconnect_req(struct mei_device *dev, | 681 | static int mei_hbm_fw_disconnect_req(struct mei_device *dev, |
683 | struct hbm_client_connect_request *disconnect_req) | 682 | struct hbm_client_connect_request *disconnect_req) |
@@ -702,7 +701,7 @@ static int mei_hbm_fw_disconnect_req(struct mei_device *dev, | |||
702 | } | 701 | } |
703 | 702 | ||
704 | /** | 703 | /** |
705 | * mei_hbm_config_features: check what hbm features and commands | 704 | * mei_hbm_config_features - check what hbm features and commands |
706 | * are supported by the fw | 705 | * are supported by the fw |
707 | * | 706 | * |
708 | * @dev: the device structure | 707 | * @dev: the device structure |
@@ -724,7 +723,7 @@ static void mei_hbm_config_features(struct mei_device *dev) | |||
724 | * support the hbm version of the device | 723 | * support the hbm version of the device |
725 | * | 724 | * |
726 | * @dev: the device structure | 725 | * @dev: the device structure |
727 | * returns true if driver can support hbm version of the device | 726 | * Return: true if driver can support hbm version of the device |
728 | */ | 727 | */ |
729 | bool mei_hbm_version_is_supported(struct mei_device *dev) | 728 | bool mei_hbm_version_is_supported(struct mei_device *dev) |
730 | { | 729 | { |
@@ -738,9 +737,9 @@ bool mei_hbm_version_is_supported(struct mei_device *dev) | |||
738 | * handle the read bus message cmd processing. | 737 | * handle the read bus message cmd processing. |
739 | * | 738 | * |
740 | * @dev: the device structure | 739 | * @dev: the device structure |
741 | * @mei_hdr: header of bus message | 740 | * @hdr: header of bus message |
742 | * | 741 | * |
743 | * returns 0 on success and < 0 on failure | 742 | * Return: 0 on success and < 0 on failure |
744 | */ | 743 | */ |
745 | int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr) | 744 | int mei_hbm_dispatch(struct mei_device *dev, struct mei_msg_hdr *hdr) |
746 | { | 745 | { |
diff --git a/drivers/misc/mei/hw-me.c b/drivers/misc/mei/hw-me.c index 77166ea30a4d..9dd7aa70bd85 100644 --- a/drivers/misc/mei/hw-me.c +++ b/drivers/misc/mei/hw-me.c | |||
@@ -28,10 +28,10 @@ | |||
28 | /** | 28 | /** |
29 | * mei_me_reg_read - Reads 32bit data from the mei device | 29 | * mei_me_reg_read - Reads 32bit data from the mei device |
30 | * | 30 | * |
31 | * @dev: the device structure | 31 | * @hw: the me hardware structure |
32 | * @offset: offset from which to read the data | 32 | * @offset: offset from which to read the data |
33 | * | 33 | * |
34 | * returns register value (u32) | 34 | * Return: register value (u32) |
35 | */ | 35 | */ |
36 | static inline u32 mei_me_reg_read(const struct mei_me_hw *hw, | 36 | static inline u32 mei_me_reg_read(const struct mei_me_hw *hw, |
37 | unsigned long offset) | 37 | unsigned long offset) |
@@ -43,7 +43,7 @@ static inline u32 mei_me_reg_read(const struct mei_me_hw *hw, | |||
43 | /** | 43 | /** |
44 | * mei_me_reg_write - Writes 32bit data to the mei device | 44 | * mei_me_reg_write - Writes 32bit data to the mei device |
45 | * | 45 | * |
46 | * @dev: the device structure | 46 | * @hw: the me hardware structure |
47 | * @offset: offset from which to write the data | 47 | * @offset: offset from which to write the data |
48 | * @value: register value to write (u32) | 48 | * @value: register value to write (u32) |
49 | */ | 49 | */ |
@@ -59,7 +59,7 @@ static inline void mei_me_reg_write(const struct mei_me_hw *hw, | |||
59 | * | 59 | * |
60 | * @dev: the device structure | 60 | * @dev: the device structure |
61 | * | 61 | * |
62 | * returns ME_CB_RW register value (u32) | 62 | * Return: ME_CB_RW register value (u32) |
63 | */ | 63 | */ |
64 | static u32 mei_me_mecbrw_read(const struct mei_device *dev) | 64 | static u32 mei_me_mecbrw_read(const struct mei_device *dev) |
65 | { | 65 | { |
@@ -68,9 +68,9 @@ static u32 mei_me_mecbrw_read(const struct mei_device *dev) | |||
68 | /** | 68 | /** |
69 | * mei_me_mecsr_read - Reads 32bit data from the ME CSR | 69 | * mei_me_mecsr_read - Reads 32bit data from the ME CSR |
70 | * | 70 | * |
71 | * @dev: the device structure | 71 | * @hw: the me hardware structure |
72 | * | 72 | * |
73 | * returns ME_CSR_HA register value (u32) | 73 | * Return: ME_CSR_HA register value (u32) |
74 | */ | 74 | */ |
75 | static inline u32 mei_me_mecsr_read(const struct mei_me_hw *hw) | 75 | static inline u32 mei_me_mecsr_read(const struct mei_me_hw *hw) |
76 | { | 76 | { |
@@ -80,9 +80,9 @@ static inline u32 mei_me_mecsr_read(const struct mei_me_hw *hw) | |||
80 | /** | 80 | /** |
81 | * mei_hcsr_read - Reads 32bit data from the host CSR | 81 | * mei_hcsr_read - Reads 32bit data from the host CSR |
82 | * | 82 | * |
83 | * @dev: the device structure | 83 | * @hw: the me hardware structure |
84 | * | 84 | * |
85 | * returns H_CSR register value (u32) | 85 | * Return: H_CSR register value (u32) |
86 | */ | 86 | */ |
87 | static inline u32 mei_hcsr_read(const struct mei_me_hw *hw) | 87 | static inline u32 mei_hcsr_read(const struct mei_me_hw *hw) |
88 | { | 88 | { |
@@ -93,7 +93,7 @@ static inline u32 mei_hcsr_read(const struct mei_me_hw *hw) | |||
93 | * mei_hcsr_set - writes H_CSR register to the mei device, | 93 | * mei_hcsr_set - writes H_CSR register to the mei device, |
94 | * and ignores the H_IS bit for it is write-one-to-zero. | 94 | * and ignores the H_IS bit for it is write-one-to-zero. |
95 | * | 95 | * |
96 | * @dev: the device structure | 96 | * @hw: the me hardware structure |
97 | */ | 97 | */ |
98 | static inline void mei_hcsr_set(struct mei_me_hw *hw, u32 hcsr) | 98 | static inline void mei_hcsr_set(struct mei_me_hw *hw, u32 hcsr) |
99 | { | 99 | { |
@@ -274,8 +274,8 @@ static void mei_me_host_set_ready(struct mei_device *dev) | |||
274 | /** | 274 | /** |
275 | * mei_me_host_is_ready - check whether the host has turned ready | 275 | * mei_me_host_is_ready - check whether the host has turned ready |
276 | * | 276 | * |
277 | * @dev - mei device | 277 | * @dev: mei device |
278 | * returns bool | 278 | * Return: bool |
279 | */ | 279 | */ |
280 | static bool mei_me_host_is_ready(struct mei_device *dev) | 280 | static bool mei_me_host_is_ready(struct mei_device *dev) |
281 | { | 281 | { |
@@ -288,8 +288,8 @@ static bool mei_me_host_is_ready(struct mei_device *dev) | |||
288 | /** | 288 | /** |
289 | * mei_me_hw_is_ready - check whether the me(hw) has turned ready | 289 | * mei_me_hw_is_ready - check whether the me(hw) has turned ready |
290 | * | 290 | * |
291 | * @dev - mei device | 291 | * @dev: mei device |
292 | * returns bool | 292 | * Return: bool |
293 | */ | 293 | */ |
294 | static bool mei_me_hw_is_ready(struct mei_device *dev) | 294 | static bool mei_me_hw_is_ready(struct mei_device *dev) |
295 | { | 295 | { |
@@ -333,7 +333,7 @@ static int mei_me_hw_start(struct mei_device *dev) | |||
333 | * | 333 | * |
334 | * @dev: the device structure | 334 | * @dev: the device structure |
335 | * | 335 | * |
336 | * returns number of filled slots | 336 | * Return: number of filled slots |
337 | */ | 337 | */ |
338 | static unsigned char mei_hbuf_filled_slots(struct mei_device *dev) | 338 | static unsigned char mei_hbuf_filled_slots(struct mei_device *dev) |
339 | { | 339 | { |
@@ -353,7 +353,7 @@ static unsigned char mei_hbuf_filled_slots(struct mei_device *dev) | |||
353 | * | 353 | * |
354 | * @dev: the device structure | 354 | * @dev: the device structure |
355 | * | 355 | * |
356 | * returns true if empty, false - otherwise. | 356 | * Return: true if empty, false - otherwise. |
357 | */ | 357 | */ |
358 | static bool mei_me_hbuf_is_empty(struct mei_device *dev) | 358 | static bool mei_me_hbuf_is_empty(struct mei_device *dev) |
359 | { | 359 | { |
@@ -365,7 +365,7 @@ static bool mei_me_hbuf_is_empty(struct mei_device *dev) | |||
365 | * | 365 | * |
366 | * @dev: the device structure | 366 | * @dev: the device structure |
367 | * | 367 | * |
368 | * returns -EOVERFLOW if overflow, otherwise empty slots count | 368 | * Return: -EOVERFLOW if overflow, otherwise empty slots count |
369 | */ | 369 | */ |
370 | static int mei_me_hbuf_empty_slots(struct mei_device *dev) | 370 | static int mei_me_hbuf_empty_slots(struct mei_device *dev) |
371 | { | 371 | { |
@@ -394,7 +394,7 @@ static size_t mei_me_hbuf_max_len(const struct mei_device *dev) | |||
394 | * @header: mei HECI header of message | 394 | * @header: mei HECI header of message |
395 | * @buf: message payload will be written | 395 | * @buf: message payload will be written |
396 | * | 396 | * |
397 | * This function returns -EIO if write has failed | 397 | * Return: -EIO if write has failed |
398 | */ | 398 | */ |
399 | static int mei_me_write_message(struct mei_device *dev, | 399 | static int mei_me_write_message(struct mei_device *dev, |
400 | struct mei_msg_hdr *header, | 400 | struct mei_msg_hdr *header, |
@@ -444,7 +444,7 @@ static int mei_me_write_message(struct mei_device *dev, | |||
444 | * | 444 | * |
445 | * @dev: the device structure | 445 | * @dev: the device structure |
446 | * | 446 | * |
447 | * returns -EOVERFLOW if overflow, otherwise filled slots count | 447 | * Return: -EOVERFLOW if overflow, otherwise filled slots count |
448 | */ | 448 | */ |
449 | static int mei_me_count_full_read_slots(struct mei_device *dev) | 449 | static int mei_me_count_full_read_slots(struct mei_device *dev) |
450 | { | 450 | { |
@@ -529,7 +529,7 @@ static void mei_me_pg_exit(struct mei_device *dev) | |||
529 | * | 529 | * |
530 | * @dev: the device structure | 530 | * @dev: the device structure |
531 | * | 531 | * |
532 | * returns 0 on success an error code otherwise | 532 | * Return: 0 on success an error code otherwise |
533 | */ | 533 | */ |
534 | int mei_me_pg_set_sync(struct mei_device *dev) | 534 | int mei_me_pg_set_sync(struct mei_device *dev) |
535 | { | 535 | { |
@@ -566,7 +566,7 @@ int mei_me_pg_set_sync(struct mei_device *dev) | |||
566 | * | 566 | * |
567 | * @dev: the device structure | 567 | * @dev: the device structure |
568 | * | 568 | * |
569 | * returns 0 on success an error code otherwise | 569 | * Return: 0 on success an error code otherwise |
570 | */ | 570 | */ |
571 | int mei_me_pg_unset_sync(struct mei_device *dev) | 571 | int mei_me_pg_unset_sync(struct mei_device *dev) |
572 | { | 572 | { |
@@ -603,7 +603,7 @@ reply: | |||
603 | * | 603 | * |
604 | * @dev: the device structure | 604 | * @dev: the device structure |
605 | * | 605 | * |
606 | * returns: true is pg supported, false otherwise | 606 | * Return: true is pg supported, false otherwise |
607 | */ | 607 | */ |
608 | static bool mei_me_pg_is_enabled(struct mei_device *dev) | 608 | static bool mei_me_pg_is_enabled(struct mei_device *dev) |
609 | { | 609 | { |
@@ -635,7 +635,7 @@ notsupported: | |||
635 | * @irq: The irq number | 635 | * @irq: The irq number |
636 | * @dev_id: pointer to the device structure | 636 | * @dev_id: pointer to the device structure |
637 | * | 637 | * |
638 | * returns irqreturn_t | 638 | * Return: irqreturn_t |
639 | */ | 639 | */ |
640 | 640 | ||
641 | irqreturn_t mei_me_irq_quick_handler(int irq, void *dev_id) | 641 | irqreturn_t mei_me_irq_quick_handler(int irq, void *dev_id) |
@@ -660,7 +660,7 @@ irqreturn_t mei_me_irq_quick_handler(int irq, void *dev_id) | |||
660 | * @irq: The irq number | 660 | * @irq: The irq number |
661 | * @dev_id: pointer to the device structure | 661 | * @dev_id: pointer to the device structure |
662 | * | 662 | * |
663 | * returns irqreturn_t | 663 | * Return: irqreturn_t |
664 | * | 664 | * |
665 | */ | 665 | */ |
666 | irqreturn_t mei_me_irq_thread_handler(int irq, void *dev_id) | 666 | irqreturn_t mei_me_irq_thread_handler(int irq, void *dev_id) |
@@ -841,7 +841,7 @@ const struct mei_cfg mei_me_lpt_cfg = { | |||
841 | * @pdev: The pci device structure | 841 | * @pdev: The pci device structure |
842 | * @cfg: per device generation config | 842 | * @cfg: per device generation config |
843 | * | 843 | * |
844 | * returns The mei_device_device pointer on success, NULL on failure. | 844 | * Return: The mei_device_device pointer on success, NULL on failure. |
845 | */ | 845 | */ |
846 | struct mei_device *mei_me_dev_init(struct pci_dev *pdev, | 846 | struct mei_device *mei_me_dev_init(struct pci_dev *pdev, |
847 | const struct mei_cfg *cfg) | 847 | const struct mei_cfg *cfg) |
diff --git a/drivers/misc/mei/hw-txe.c b/drivers/misc/mei/hw-txe.c index 695d480e44dc..0a155228645b 100644 --- a/drivers/misc/mei/hw-txe.c +++ b/drivers/misc/mei/hw-txe.c | |||
@@ -85,7 +85,7 @@ static inline u32 mei_txe_sec_reg_read(struct mei_txe_hw *hw, | |||
85 | * mei_txe_sec_reg_write_silent - Writes 32bit data to the SeC BAR | 85 | * mei_txe_sec_reg_write_silent - Writes 32bit data to the SeC BAR |
86 | * doesn't check for aliveness | 86 | * doesn't check for aliveness |
87 | * | 87 | * |
88 | * @dev: the device structure | 88 | * @hw: the txe hardware structure |
89 | * @offset: register offset | 89 | * @offset: register offset |
90 | * @value: value to write | 90 | * @value: value to write |
91 | * | 91 | * |
@@ -100,7 +100,7 @@ static inline void mei_txe_sec_reg_write_silent(struct mei_txe_hw *hw, | |||
100 | /** | 100 | /** |
101 | * mei_txe_sec_reg_write - Writes 32bit data to the SeC BAR | 101 | * mei_txe_sec_reg_write - Writes 32bit data to the SeC BAR |
102 | * | 102 | * |
103 | * @dev: the device structure | 103 | * @hw: the txe hardware structure |
104 | * @offset: register offset | 104 | * @offset: register offset |
105 | * @value: value to write | 105 | * @value: value to write |
106 | * | 106 | * |
@@ -128,7 +128,7 @@ static inline u32 mei_txe_br_reg_read(struct mei_txe_hw *hw, | |||
128 | /** | 128 | /** |
129 | * mei_txe_br_reg_write - Writes 32bit data to the Bridge BAR | 129 | * mei_txe_br_reg_write - Writes 32bit data to the Bridge BAR |
130 | * | 130 | * |
131 | * @hw: the device structure | 131 | * @hw: the txe hardware structure |
132 | * @offset: offset from which to write the data | 132 | * @offset: offset from which to write the data |
133 | * @value: the byte to write | 133 | * @value: the byte to write |
134 | */ | 134 | */ |
@@ -205,7 +205,8 @@ static u32 mei_txe_aliveness_get(struct mei_device *dev) | |||
205 | * @expected: expected aliveness value | 205 | * @expected: expected aliveness value |
206 | * | 206 | * |
207 | * Polls for HICR_HOST_ALIVENESS_RESP.ALIVENESS_RESP to be set | 207 | * Polls for HICR_HOST_ALIVENESS_RESP.ALIVENESS_RESP to be set |
208 | * returns > 0 if the expected value was received, -ETIME otherwise | 208 | * |
209 | * Return: > 0 if the expected value was received, -ETIME otherwise | ||
209 | */ | 210 | */ |
210 | static int mei_txe_aliveness_poll(struct mei_device *dev, u32 expected) | 211 | static int mei_txe_aliveness_poll(struct mei_device *dev, u32 expected) |
211 | { | 212 | { |
@@ -238,7 +239,8 @@ static int mei_txe_aliveness_poll(struct mei_device *dev, u32 expected) | |||
238 | * @expected: expected aliveness value | 239 | * @expected: expected aliveness value |
239 | * | 240 | * |
240 | * Waits for HICR_HOST_ALIVENESS_RESP.ALIVENESS_RESP to be set | 241 | * Waits for HICR_HOST_ALIVENESS_RESP.ALIVENESS_RESP to be set |
241 | * returns returns 0 on success and < 0 otherwise | 242 | * |
243 | * Return: 0 on success and < 0 otherwise | ||
242 | */ | 244 | */ |
243 | static int mei_txe_aliveness_wait(struct mei_device *dev, u32 expected) | 245 | static int mei_txe_aliveness_wait(struct mei_device *dev, u32 expected) |
244 | { | 246 | { |
@@ -277,7 +279,7 @@ static int mei_txe_aliveness_wait(struct mei_device *dev, u32 expected) | |||
277 | * | 279 | * |
278 | * @dev: the device structure | 280 | * @dev: the device structure |
279 | * | 281 | * |
280 | * returns returns 0 on success and < 0 otherwise | 282 | * Return: 0 on success and < 0 otherwise |
281 | */ | 283 | */ |
282 | int mei_txe_aliveness_set_sync(struct mei_device *dev, u32 req) | 284 | int mei_txe_aliveness_set_sync(struct mei_device *dev, u32 req) |
283 | { | 285 | { |
@@ -291,7 +293,7 @@ int mei_txe_aliveness_set_sync(struct mei_device *dev, u32 req) | |||
291 | * | 293 | * |
292 | * @dev: the device structure | 294 | * @dev: the device structure |
293 | * | 295 | * |
294 | * returns: true is pg supported, false otherwise | 296 | * Return: true is pg supported, false otherwise |
295 | */ | 297 | */ |
296 | static bool mei_txe_pg_is_enabled(struct mei_device *dev) | 298 | static bool mei_txe_pg_is_enabled(struct mei_device *dev) |
297 | { | 299 | { |
@@ -304,7 +306,7 @@ static bool mei_txe_pg_is_enabled(struct mei_device *dev) | |||
304 | * | 306 | * |
305 | * @dev: the device structure | 307 | * @dev: the device structure |
306 | * | 308 | * |
307 | * returns: MEI_PG_OFF if aliveness is on and MEI_PG_ON otherwise | 309 | * Return: MEI_PG_OFF if aliveness is on and MEI_PG_ON otherwise |
308 | */ | 310 | */ |
309 | static inline enum mei_pg_state mei_txe_pg_state(struct mei_device *dev) | 311 | static inline enum mei_pg_state mei_txe_pg_state(struct mei_device *dev) |
310 | { | 312 | { |
@@ -329,9 +331,10 @@ static void mei_txe_input_ready_interrupt_enable(struct mei_device *dev) | |||
329 | } | 331 | } |
330 | 332 | ||
331 | /** | 333 | /** |
332 | * mei_txe_input_doorbell_set | 334 | * mei_txe_input_doorbell_set - sets bit 0 in |
333 | * - Sets bit 0 in SEC_IPC_INPUT_DOORBELL.IPC_INPUT_DOORBELL. | 335 | * SEC_IPC_INPUT_DOORBELL.IPC_INPUT_DOORBELL. |
334 | * @dev: the device structure | 336 | * |
337 | * @hw: the txe hardware structure | ||
335 | */ | 338 | */ |
336 | static void mei_txe_input_doorbell_set(struct mei_txe_hw *hw) | 339 | static void mei_txe_input_doorbell_set(struct mei_txe_hw *hw) |
337 | { | 340 | { |
@@ -343,7 +346,7 @@ static void mei_txe_input_doorbell_set(struct mei_txe_hw *hw) | |||
343 | /** | 346 | /** |
344 | * mei_txe_output_ready_set - Sets the SICR_SEC_IPC_OUTPUT_STATUS bit to 1 | 347 | * mei_txe_output_ready_set - Sets the SICR_SEC_IPC_OUTPUT_STATUS bit to 1 |
345 | * | 348 | * |
346 | * @dev: the device structure | 349 | * @hw: the txe hardware structure |
347 | */ | 350 | */ |
348 | static void mei_txe_output_ready_set(struct mei_txe_hw *hw) | 351 | static void mei_txe_output_ready_set(struct mei_txe_hw *hw) |
349 | { | 352 | { |
@@ -459,7 +462,7 @@ static void mei_txe_input_payload_write(struct mei_device *dev, | |||
459 | * @dev: the device structure | 462 | * @dev: the device structure |
460 | * @idx: index in the device buffer | 463 | * @idx: index in the device buffer |
461 | * | 464 | * |
462 | * returns register value at index | 465 | * Return: register value at index |
463 | */ | 466 | */ |
464 | static u32 mei_txe_out_data_read(const struct mei_device *dev, | 467 | static u32 mei_txe_out_data_read(const struct mei_device *dev, |
465 | unsigned long idx) | 468 | unsigned long idx) |
@@ -503,6 +506,8 @@ static void mei_txe_readiness_clear(struct mei_device *dev) | |||
503 | * the HICR_SEC_IPC_READINESS register value | 506 | * the HICR_SEC_IPC_READINESS register value |
504 | * | 507 | * |
505 | * @dev: the device structure | 508 | * @dev: the device structure |
509 | * | ||
510 | * Return: the HICR_SEC_IPC_READINESS register value | ||
506 | */ | 511 | */ |
507 | static u32 mei_txe_readiness_get(struct mei_device *dev) | 512 | static u32 mei_txe_readiness_get(struct mei_device *dev) |
508 | { | 513 | { |
@@ -553,7 +558,7 @@ static inline bool mei_txe_host_is_ready(struct mei_device *dev) | |||
553 | * | 558 | * |
554 | * @dev: the device structure | 559 | * @dev: the device structure |
555 | * | 560 | * |
556 | * returns 0 on success and -ETIME on timeout | 561 | * Return: 0 on success and -ETIME on timeout |
557 | */ | 562 | */ |
558 | static int mei_txe_readiness_wait(struct mei_device *dev) | 563 | static int mei_txe_readiness_wait(struct mei_device *dev) |
559 | { | 564 | { |
@@ -637,7 +642,8 @@ static void mei_txe_hw_config(struct mei_device *dev) | |||
637 | * @dev: the device structure | 642 | * @dev: the device structure |
638 | * @header: header of message | 643 | * @header: header of message |
639 | * @buf: message buffer will be written | 644 | * @buf: message buffer will be written |
640 | * returns 1 if success, 0 - otherwise. | 645 | * |
646 | * Return: if success, 0 - otherwise. | ||
641 | */ | 647 | */ |
642 | 648 | ||
643 | static int mei_txe_write(struct mei_device *dev, | 649 | static int mei_txe_write(struct mei_device *dev, |
@@ -704,7 +710,7 @@ static int mei_txe_write(struct mei_device *dev, | |||
704 | * | 710 | * |
705 | * @dev: the device structure | 711 | * @dev: the device structure |
706 | * | 712 | * |
707 | * returns the PAYLOAD_SIZE - 4 | 713 | * Return: PAYLOAD_SIZE - 4 |
708 | */ | 714 | */ |
709 | static size_t mei_txe_hbuf_max_len(const struct mei_device *dev) | 715 | static size_t mei_txe_hbuf_max_len(const struct mei_device *dev) |
710 | { | 716 | { |
@@ -716,7 +722,7 @@ static size_t mei_txe_hbuf_max_len(const struct mei_device *dev) | |||
716 | * | 722 | * |
717 | * @dev: the device structure | 723 | * @dev: the device structure |
718 | * | 724 | * |
719 | * returns always hbuf_depth | 725 | * Return: always hbuf_depth |
720 | */ | 726 | */ |
721 | static int mei_txe_hbuf_empty_slots(struct mei_device *dev) | 727 | static int mei_txe_hbuf_empty_slots(struct mei_device *dev) |
722 | { | 728 | { |
@@ -730,7 +736,7 @@ static int mei_txe_hbuf_empty_slots(struct mei_device *dev) | |||
730 | * | 736 | * |
731 | * @dev: the device structure | 737 | * @dev: the device structure |
732 | * | 738 | * |
733 | * returns always buffer size in dwords count | 739 | * Return: always buffer size in dwords count |
734 | */ | 740 | */ |
735 | static int mei_txe_count_full_read_slots(struct mei_device *dev) | 741 | static int mei_txe_count_full_read_slots(struct mei_device *dev) |
736 | { | 742 | { |
@@ -743,7 +749,7 @@ static int mei_txe_count_full_read_slots(struct mei_device *dev) | |||
743 | * | 749 | * |
744 | * @dev: the device structure | 750 | * @dev: the device structure |
745 | * | 751 | * |
746 | * returns mei message header | 752 | * Return: mei message header |
747 | */ | 753 | */ |
748 | 754 | ||
749 | static u32 mei_txe_read_hdr(const struct mei_device *dev) | 755 | static u32 mei_txe_read_hdr(const struct mei_device *dev) |
@@ -757,7 +763,7 @@ static u32 mei_txe_read_hdr(const struct mei_device *dev) | |||
757 | * @buf: message buffer will be written | 763 | * @buf: message buffer will be written |
758 | * @len: message size will be read | 764 | * @len: message size will be read |
759 | * | 765 | * |
760 | * returns -EINVAL on error wrong argument and 0 on success | 766 | * Return: -EINVAL on error wrong argument and 0 on success |
761 | */ | 767 | */ |
762 | static int mei_txe_read(struct mei_device *dev, | 768 | static int mei_txe_read(struct mei_device *dev, |
763 | unsigned char *buf, unsigned long len) | 769 | unsigned char *buf, unsigned long len) |
@@ -799,7 +805,7 @@ static int mei_txe_read(struct mei_device *dev, | |||
799 | * @dev: the device structure | 805 | * @dev: the device structure |
800 | * @intr_enable: if interrupt should be enabled after reset. | 806 | * @intr_enable: if interrupt should be enabled after reset. |
801 | * | 807 | * |
802 | * returns 0 on success and < 0 in case of error | 808 | * Return: 0 on success and < 0 in case of error |
803 | */ | 809 | */ |
804 | static int mei_txe_hw_reset(struct mei_device *dev, bool intr_enable) | 810 | static int mei_txe_hw_reset(struct mei_device *dev, bool intr_enable) |
805 | { | 811 | { |
@@ -853,7 +859,7 @@ static int mei_txe_hw_reset(struct mei_device *dev, bool intr_enable) | |||
853 | * | 859 | * |
854 | * @dev: the device structure | 860 | * @dev: the device structure |
855 | * | 861 | * |
856 | * returns 0 on success and < 0 in case of error | 862 | * Return: 0 on success and < 0 in case of error |
857 | */ | 863 | */ |
858 | static int mei_txe_hw_start(struct mei_device *dev) | 864 | static int mei_txe_hw_start(struct mei_device *dev) |
859 | { | 865 | { |
@@ -964,7 +970,8 @@ out: | |||
964 | * @irq: The irq number | 970 | * @irq: The irq number |
965 | * @dev_id: pointer to the device structure | 971 | * @dev_id: pointer to the device structure |
966 | * | 972 | * |
967 | * returns irqreturn_t | 973 | * Return: IRQ_WAKE_THREAD if interrupt is designed for the device |
974 | * IRQ_NONE otherwise | ||
968 | */ | 975 | */ |
969 | irqreturn_t mei_txe_irq_quick_handler(int irq, void *dev_id) | 976 | irqreturn_t mei_txe_irq_quick_handler(int irq, void *dev_id) |
970 | { | 977 | { |
@@ -982,7 +989,7 @@ irqreturn_t mei_txe_irq_quick_handler(int irq, void *dev_id) | |||
982 | * @irq: The irq number | 989 | * @irq: The irq number |
983 | * @dev_id: pointer to the device structure | 990 | * @dev_id: pointer to the device structure |
984 | * | 991 | * |
985 | * returns irqreturn_t | 992 | * Return: IRQ_HANDLED |
986 | * | 993 | * |
987 | */ | 994 | */ |
988 | irqreturn_t mei_txe_irq_thread_handler(int irq, void *dev_id) | 995 | irqreturn_t mei_txe_irq_thread_handler(int irq, void *dev_id) |
@@ -1130,7 +1137,7 @@ static const struct mei_hw_ops mei_txe_hw_ops = { | |||
1130 | * | 1137 | * |
1131 | * @pdev - pci device | 1138 | * @pdev - pci device |
1132 | * | 1139 | * |
1133 | * returns struct mei_device * on success or NULL; | 1140 | * Return: struct mei_device * on success or NULL; |
1134 | * | 1141 | * |
1135 | */ | 1142 | */ |
1136 | struct mei_device *mei_txe_dev_init(struct pci_dev *pdev) | 1143 | struct mei_device *mei_txe_dev_init(struct pci_dev *pdev) |
diff --git a/drivers/misc/mei/hw.h b/drivers/misc/mei/hw.h index 6e31113b63df..ea8de2a88b31 100644 --- a/drivers/misc/mei/hw.h +++ b/drivers/misc/mei/hw.h | |||
@@ -99,16 +99,16 @@ enum mei_stop_reason_types { | |||
99 | 99 | ||
100 | 100 | ||
101 | /** | 101 | /** |
102 | * mei_hbm_status - mei host bus messages return values | 102 | * enum mei_hbm_status - mei host bus messages return values |
103 | * | 103 | * |
104 | * @MEI_HBMS_SUCCESS - status success | 104 | * @MEI_HBMS_SUCCESS : status success |
105 | * @MEI_HBMS_CLIENT_NOT_FOUND - client not found | 105 | * @MEI_HBMS_CLIENT_NOT_FOUND : client not found |
106 | * @MEI_HBMS_ALREADY_EXISTS - connection already established | 106 | * @MEI_HBMS_ALREADY_EXISTS : connection already established |
107 | * @MEI_HBMS_REJECTED - connection is rejected | 107 | * @MEI_HBMS_REJECTED : connection is rejected |
108 | * @MEI_HBMS_INVALID_PARAMETER - invalid parameter | 108 | * @MEI_HBMS_INVALID_PARAMETER : invalid parameter |
109 | * @MEI_HBMS_NOT_ALLOWED - operation not allowed | 109 | * @MEI_HBMS_NOT_ALLOWED : operation not allowed |
110 | * @MEI_HBMS_ALREADY_STARTED - system is already started | 110 | * @MEI_HBMS_ALREADY_STARTED : system is already started |
111 | * @MEI_HBMS_NOT_STARTED - system not started | 111 | * @MEI_HBMS_NOT_STARTED : system not started |
112 | */ | 112 | */ |
113 | enum mei_hbm_status { | 113 | enum mei_hbm_status { |
114 | MEI_HBMS_SUCCESS = 0, | 114 | MEI_HBMS_SUCCESS = 0, |
@@ -165,10 +165,10 @@ struct mei_bus_message { | |||
165 | * struct hbm_cl_cmd - client specific host bus command | 165 | * struct hbm_cl_cmd - client specific host bus command |
166 | * CONNECT, DISCONNECT, and FlOW CONTROL | 166 | * CONNECT, DISCONNECT, and FlOW CONTROL |
167 | * | 167 | * |
168 | * @hbm_cmd - bus message command header | 168 | * @hbm_cmd: bus message command header |
169 | * @me_addr - address of the client in ME | 169 | * @me_addr: address of the client in ME |
170 | * @host_addr - address of the client in the driver | 170 | * @host_addr: address of the client in the driver |
171 | * @data | 171 | * @data: generic data |
172 | */ | 172 | */ |
173 | struct mei_hbm_cl_cmd { | 173 | struct mei_hbm_cl_cmd { |
174 | u8 hbm_cmd; | 174 | u8 hbm_cmd; |
@@ -248,8 +248,8 @@ struct hbm_props_response { | |||
248 | /** | 248 | /** |
249 | * struct hbm_power_gate - power gate request/response | 249 | * struct hbm_power_gate - power gate request/response |
250 | * | 250 | * |
251 | * @hbm_cmd - bus message command header | 251 | * @hbm_cmd: bus message command header |
252 | * @reserved[3] | 252 | * @reserved: reserved |
253 | */ | 253 | */ |
254 | struct hbm_power_gate { | 254 | struct hbm_power_gate { |
255 | u8 hbm_cmd; | 255 | u8 hbm_cmd; |
@@ -259,10 +259,10 @@ struct hbm_power_gate { | |||
259 | /** | 259 | /** |
260 | * struct hbm_client_connect_request - connect/disconnect request | 260 | * struct hbm_client_connect_request - connect/disconnect request |
261 | * | 261 | * |
262 | * @hbm_cmd - bus message command header | 262 | * @hbm_cmd: bus message command header |
263 | * @me_addr - address of the client in ME | 263 | * @me_addr: address of the client in ME |
264 | * @host_addr - address of the client in the driver | 264 | * @host_addr: address of the client in the driver |
265 | * @reserved | 265 | * @reserved: reserved |
266 | */ | 266 | */ |
267 | struct hbm_client_connect_request { | 267 | struct hbm_client_connect_request { |
268 | u8 hbm_cmd; | 268 | u8 hbm_cmd; |
@@ -274,10 +274,10 @@ struct hbm_client_connect_request { | |||
274 | /** | 274 | /** |
275 | * struct hbm_client_connect_response - connect/disconnect response | 275 | * struct hbm_client_connect_response - connect/disconnect response |
276 | * | 276 | * |
277 | * @hbm_cmd - bus message command header | 277 | * @hbm_cmd: bus message command header |
278 | * @me_addr - address of the client in ME | 278 | * @me_addr: address of the client in ME |
279 | * @host_addr - address of the client in the driver | 279 | * @host_addr: address of the client in the driver |
280 | * @status - status of the request | 280 | * @status: status of the request |
281 | */ | 281 | */ |
282 | struct hbm_client_connect_response { | 282 | struct hbm_client_connect_response { |
283 | u8 hbm_cmd; | 283 | u8 hbm_cmd; |
diff --git a/drivers/misc/mei/init.c b/drivers/misc/mei/init.c index 76ef8ffa42c1..52d7f425ff8d 100644 --- a/drivers/misc/mei/init.c +++ b/drivers/misc/mei/init.c | |||
@@ -56,11 +56,11 @@ const char *mei_pg_state_str(enum mei_pg_state state) | |||
56 | 56 | ||
57 | 57 | ||
58 | /** | 58 | /** |
59 | * mei_cancel_work. Cancel mei background jobs | 59 | * mei_cancel_work - Cancel mei background jobs |
60 | * | 60 | * |
61 | * @dev: the device structure | 61 | * @dev: the device structure |
62 | * | 62 | * |
63 | * returns 0 on success or < 0 if the reset hasn't succeeded | 63 | * Return: 0 on success or < 0 if the reset hasn't succeeded |
64 | */ | 64 | */ |
65 | void mei_cancel_work(struct mei_device *dev) | 65 | void mei_cancel_work(struct mei_device *dev) |
66 | { | 66 | { |
@@ -175,7 +175,7 @@ EXPORT_SYMBOL_GPL(mei_reset); | |||
175 | * | 175 | * |
176 | * @dev: the device structure | 176 | * @dev: the device structure |
177 | * | 177 | * |
178 | * returns 0 on success, <0 on failure. | 178 | * Return: 0 on success, <0 on failure. |
179 | */ | 179 | */ |
180 | int mei_start(struct mei_device *dev) | 180 | int mei_start(struct mei_device *dev) |
181 | { | 181 | { |
@@ -244,7 +244,7 @@ EXPORT_SYMBOL_GPL(mei_start); | |||
244 | * | 244 | * |
245 | * @dev: the device structure | 245 | * @dev: the device structure |
246 | * | 246 | * |
247 | * returns 0 on success or -ENODEV if the restart hasn't succeeded | 247 | * Return: 0 on success or -ENODEV if the restart hasn't succeeded |
248 | */ | 248 | */ |
249 | int mei_restart(struct mei_device *dev) | 249 | int mei_restart(struct mei_device *dev) |
250 | { | 250 | { |
@@ -325,7 +325,7 @@ EXPORT_SYMBOL_GPL(mei_stop); | |||
325 | * | 325 | * |
326 | * @dev: the device structure | 326 | * @dev: the device structure |
327 | * | 327 | * |
328 | * returns true of there is no pending write | 328 | * Return: true of there is no pending write |
329 | */ | 329 | */ |
330 | bool mei_write_is_idle(struct mei_device *dev) | 330 | bool mei_write_is_idle(struct mei_device *dev) |
331 | { | 331 | { |
diff --git a/drivers/misc/mei/interrupt.c b/drivers/misc/mei/interrupt.c index 8844e1772793..d8aa1d372f74 100644 --- a/drivers/misc/mei/interrupt.c +++ b/drivers/misc/mei/interrupt.c | |||
@@ -33,8 +33,8 @@ | |||
33 | * mei_irq_compl_handler - dispatch complete handlers | 33 | * mei_irq_compl_handler - dispatch complete handlers |
34 | * for the completed callbacks | 34 | * for the completed callbacks |
35 | * | 35 | * |
36 | * @dev - mei device | 36 | * @dev: mei device |
37 | * @compl_list - list of completed cbs | 37 | * @compl_list: list of completed cbs |
38 | */ | 38 | */ |
39 | void mei_irq_compl_handler(struct mei_device *dev, struct mei_cl_cb *compl_list) | 39 | void mei_irq_compl_handler(struct mei_device *dev, struct mei_cl_cb *compl_list) |
40 | { | 40 | { |
@@ -62,7 +62,7 @@ EXPORT_SYMBOL_GPL(mei_irq_compl_handler); | |||
62 | * @cl: host client | 62 | * @cl: host client |
63 | * @mei_hdr: header of mei client message | 63 | * @mei_hdr: header of mei client message |
64 | * | 64 | * |
65 | * returns true if matches, false otherwise | 65 | * Return: true if matches, false otherwise |
66 | */ | 66 | */ |
67 | static inline int mei_cl_hbm_equal(struct mei_cl *cl, | 67 | static inline int mei_cl_hbm_equal(struct mei_cl *cl, |
68 | struct mei_msg_hdr *mei_hdr) | 68 | struct mei_msg_hdr *mei_hdr) |
@@ -72,12 +72,12 @@ static inline int mei_cl_hbm_equal(struct mei_cl *cl, | |||
72 | } | 72 | } |
73 | /** | 73 | /** |
74 | * mei_cl_is_reading - checks if the client | 74 | * mei_cl_is_reading - checks if the client |
75 | is the one to read this message | 75 | * is the one to read this message |
76 | * | 76 | * |
77 | * @cl: mei client | 77 | * @cl: mei client |
78 | * @mei_hdr: header of mei message | 78 | * @mei_hdr: header of mei message |
79 | * | 79 | * |
80 | * returns true on match and false otherwise | 80 | * Return: true on match and false otherwise |
81 | */ | 81 | */ |
82 | static bool mei_cl_is_reading(struct mei_cl *cl, struct mei_msg_hdr *mei_hdr) | 82 | static bool mei_cl_is_reading(struct mei_cl *cl, struct mei_msg_hdr *mei_hdr) |
83 | { | 83 | { |
@@ -93,7 +93,7 @@ static bool mei_cl_is_reading(struct mei_cl *cl, struct mei_msg_hdr *mei_hdr) | |||
93 | * @mei_hdr: header of mei client message | 93 | * @mei_hdr: header of mei client message |
94 | * @complete_list: An instance of our list structure | 94 | * @complete_list: An instance of our list structure |
95 | * | 95 | * |
96 | * returns 0 on success, <0 on failure. | 96 | * Return: 0 on success, <0 on failure. |
97 | */ | 97 | */ |
98 | static int mei_cl_irq_read_msg(struct mei_device *dev, | 98 | static int mei_cl_irq_read_msg(struct mei_device *dev, |
99 | struct mei_msg_hdr *mei_hdr, | 99 | struct mei_msg_hdr *mei_hdr, |
@@ -165,7 +165,7 @@ static int mei_cl_irq_read_msg(struct mei_device *dev, | |||
165 | * @cb: callback block. | 165 | * @cb: callback block. |
166 | * @cmpl_list: complete list. | 166 | * @cmpl_list: complete list. |
167 | * | 167 | * |
168 | * returns 0, OK; otherwise, error. | 168 | * Return: 0, OK; otherwise, error. |
169 | */ | 169 | */ |
170 | static int mei_cl_irq_disconnect_rsp(struct mei_cl *cl, struct mei_cl_cb *cb, | 170 | static int mei_cl_irq_disconnect_rsp(struct mei_cl *cl, struct mei_cl_cb *cb, |
171 | struct mei_cl_cb *cmpl_list) | 171 | struct mei_cl_cb *cmpl_list) |
@@ -201,7 +201,7 @@ static int mei_cl_irq_disconnect_rsp(struct mei_cl *cl, struct mei_cl_cb *cb, | |||
201 | * @cb: callback block. | 201 | * @cb: callback block. |
202 | * @cmpl_list: complete list. | 202 | * @cmpl_list: complete list. |
203 | * | 203 | * |
204 | * returns 0, OK; otherwise, error. | 204 | * Return: 0, OK; otherwise, error. |
205 | */ | 205 | */ |
206 | static int mei_cl_irq_disconnect(struct mei_cl *cl, struct mei_cl_cb *cb, | 206 | static int mei_cl_irq_disconnect(struct mei_cl *cl, struct mei_cl_cb *cb, |
207 | struct mei_cl_cb *cmpl_list) | 207 | struct mei_cl_cb *cmpl_list) |
@@ -241,7 +241,7 @@ static int mei_cl_irq_disconnect(struct mei_cl *cl, struct mei_cl_cb *cb, | |||
241 | * @cb: callback block. | 241 | * @cb: callback block. |
242 | * @cmpl_list: complete list. | 242 | * @cmpl_list: complete list. |
243 | * | 243 | * |
244 | * returns 0, OK; otherwise, error. | 244 | * Return: 0, OK; otherwise, error. |
245 | */ | 245 | */ |
246 | static int mei_cl_irq_read(struct mei_cl *cl, struct mei_cl_cb *cb, | 246 | static int mei_cl_irq_read(struct mei_cl *cl, struct mei_cl_cb *cb, |
247 | struct mei_cl_cb *cmpl_list) | 247 | struct mei_cl_cb *cmpl_list) |
@@ -278,7 +278,7 @@ static int mei_cl_irq_read(struct mei_cl *cl, struct mei_cl_cb *cb, | |||
278 | * @cb: callback block. | 278 | * @cb: callback block. |
279 | * @cmpl_list: complete list. | 279 | * @cmpl_list: complete list. |
280 | * | 280 | * |
281 | * returns 0, OK; otherwise, error. | 281 | * Return: 0, OK; otherwise, error. |
282 | */ | 282 | */ |
283 | static int mei_cl_irq_connect(struct mei_cl *cl, struct mei_cl_cb *cb, | 283 | static int mei_cl_irq_connect(struct mei_cl *cl, struct mei_cl_cb *cb, |
284 | struct mei_cl_cb *cmpl_list) | 284 | struct mei_cl_cb *cmpl_list) |
@@ -321,7 +321,7 @@ static int mei_cl_irq_connect(struct mei_cl *cl, struct mei_cl_cb *cb, | |||
321 | * @cmpl_list: An instance of our list structure | 321 | * @cmpl_list: An instance of our list structure |
322 | * @slots: slots to read. | 322 | * @slots: slots to read. |
323 | * | 323 | * |
324 | * returns 0 on success, <0 on failure. | 324 | * Return: 0 on success, <0 on failure. |
325 | */ | 325 | */ |
326 | int mei_irq_read_handler(struct mei_device *dev, | 326 | int mei_irq_read_handler(struct mei_device *dev, |
327 | struct mei_cl_cb *cmpl_list, s32 *slots) | 327 | struct mei_cl_cb *cmpl_list, s32 *slots) |
@@ -424,7 +424,7 @@ EXPORT_SYMBOL_GPL(mei_irq_read_handler); | |||
424 | * @dev: the device structure | 424 | * @dev: the device structure |
425 | * @cmpl_list: An instance of our list structure | 425 | * @cmpl_list: An instance of our list structure |
426 | * | 426 | * |
427 | * returns 0 on success, <0 on failure. | 427 | * Return: 0 on success, <0 on failure. |
428 | */ | 428 | */ |
429 | int mei_irq_write_handler(struct mei_device *dev, struct mei_cl_cb *cmpl_list) | 429 | int mei_irq_write_handler(struct mei_device *dev, struct mei_cl_cb *cmpl_list) |
430 | { | 430 | { |
diff --git a/drivers/misc/mei/main.c b/drivers/misc/mei/main.c index d31f271f6516..beedc91f03a6 100644 --- a/drivers/misc/mei/main.c +++ b/drivers/misc/mei/main.c | |||
@@ -44,7 +44,7 @@ | |||
44 | * @inode: pointer to inode structure | 44 | * @inode: pointer to inode structure |
45 | * @file: pointer to file structure | 45 | * @file: pointer to file structure |
46 | * | 46 | * |
47 | * returns 0 on success, <0 on error | 47 | * Return: 0 on success, <0 on error |
48 | */ | 48 | */ |
49 | static int mei_open(struct inode *inode, struct file *file) | 49 | static int mei_open(struct inode *inode, struct file *file) |
50 | { | 50 | { |
@@ -96,7 +96,7 @@ err_unlock: | |||
96 | * @inode: pointer to inode structure | 96 | * @inode: pointer to inode structure |
97 | * @file: pointer to file structure | 97 | * @file: pointer to file structure |
98 | * | 98 | * |
99 | * returns 0 on success, <0 on error | 99 | * Return: 0 on success, <0 on error |
100 | */ | 100 | */ |
101 | static int mei_release(struct inode *inode, struct file *file) | 101 | static int mei_release(struct inode *inode, struct file *file) |
102 | { | 102 | { |
@@ -157,7 +157,7 @@ out: | |||
157 | * @length: buffer length | 157 | * @length: buffer length |
158 | * @offset: data offset in buffer | 158 | * @offset: data offset in buffer |
159 | * | 159 | * |
160 | * returns >=0 data length on success , <0 on error | 160 | * Return: >=0 data length on success , <0 on error |
161 | */ | 161 | */ |
162 | static ssize_t mei_read(struct file *file, char __user *ubuf, | 162 | static ssize_t mei_read(struct file *file, char __user *ubuf, |
163 | size_t length, loff_t *offset) | 163 | size_t length, loff_t *offset) |
@@ -297,7 +297,7 @@ out: | |||
297 | * @length: buffer length | 297 | * @length: buffer length |
298 | * @offset: data offset in buffer | 298 | * @offset: data offset in buffer |
299 | * | 299 | * |
300 | * returns >=0 data length on success , <0 on error | 300 | * Return: >=0 data length on success , <0 on error |
301 | */ | 301 | */ |
302 | static ssize_t mei_write(struct file *file, const char __user *ubuf, | 302 | static ssize_t mei_write(struct file *file, const char __user *ubuf, |
303 | size_t length, loff_t *offset) | 303 | size_t length, loff_t *offset) |
@@ -414,13 +414,12 @@ out: | |||
414 | /** | 414 | /** |
415 | * mei_ioctl_connect_client - the connect to fw client IOCTL function | 415 | * mei_ioctl_connect_client - the connect to fw client IOCTL function |
416 | * | 416 | * |
417 | * @dev: the device structure | ||
418 | * @data: IOCTL connect data, input and output parameters | ||
419 | * @file: private data of the file object | 417 | * @file: private data of the file object |
418 | * @data: IOCTL connect data, input and output parameters | ||
420 | * | 419 | * |
421 | * Locking: called under "dev->device_lock" lock | 420 | * Locking: called under "dev->device_lock" lock |
422 | * | 421 | * |
423 | * returns 0 on success, <0 on failure. | 422 | * Return: 0 on success, <0 on failure. |
424 | */ | 423 | */ |
425 | static int mei_ioctl_connect_client(struct file *file, | 424 | static int mei_ioctl_connect_client(struct file *file, |
426 | struct mei_connect_client_data *data) | 425 | struct mei_connect_client_data *data) |
@@ -509,7 +508,7 @@ end: | |||
509 | * @cmd: ioctl command | 508 | * @cmd: ioctl command |
510 | * @data: pointer to mei message structure | 509 | * @data: pointer to mei message structure |
511 | * | 510 | * |
512 | * returns 0 on success , <0 on error | 511 | * Return: 0 on success , <0 on error |
513 | */ | 512 | */ |
514 | static long mei_ioctl(struct file *file, unsigned int cmd, unsigned long data) | 513 | static long mei_ioctl(struct file *file, unsigned int cmd, unsigned long data) |
515 | { | 514 | { |
@@ -573,7 +572,7 @@ out: | |||
573 | * @cmd: ioctl command | 572 | * @cmd: ioctl command |
574 | * @data: pointer to mei message structure | 573 | * @data: pointer to mei message structure |
575 | * | 574 | * |
576 | * returns 0 on success , <0 on error | 575 | * Return: 0 on success , <0 on error |
577 | */ | 576 | */ |
578 | #ifdef CONFIG_COMPAT | 577 | #ifdef CONFIG_COMPAT |
579 | static long mei_compat_ioctl(struct file *file, | 578 | static long mei_compat_ioctl(struct file *file, |
@@ -590,7 +589,7 @@ static long mei_compat_ioctl(struct file *file, | |||
590 | * @file: pointer to file structure | 589 | * @file: pointer to file structure |
591 | * @wait: pointer to poll_table structure | 590 | * @wait: pointer to poll_table structure |
592 | * | 591 | * |
593 | * returns poll mask | 592 | * Return: poll mask |
594 | */ | 593 | */ |
595 | static unsigned int mei_poll(struct file *file, poll_table *wait) | 594 | static unsigned int mei_poll(struct file *file, poll_table *wait) |
596 | { | 595 | { |
@@ -660,7 +659,7 @@ static DEFINE_IDR(mei_idr); | |||
660 | * | 659 | * |
661 | * @dev: device pointer | 660 | * @dev: device pointer |
662 | * | 661 | * |
663 | * returns allocated minor, or -ENOSPC if no free minor left | 662 | * Return: allocated minor, or -ENOSPC if no free minor left |
664 | */ | 663 | */ |
665 | static int mei_minor_get(struct mei_device *dev) | 664 | static int mei_minor_get(struct mei_device *dev) |
666 | { | 665 | { |
diff --git a/drivers/misc/mei/mei_dev.h b/drivers/misc/mei/mei_dev.h index 0a1f2b735706..563eebb62827 100644 --- a/drivers/misc/mei/mei_dev.h +++ b/drivers/misc/mei/mei_dev.h | |||
@@ -157,8 +157,8 @@ struct mei_msg_data { | |||
157 | /* | 157 | /* |
158 | * struct mei_fw_status - storage of FW status data | 158 | * struct mei_fw_status - storage of FW status data |
159 | * | 159 | * |
160 | * @count - number of actually available elements in array | 160 | * @count: number of actually available elements in array |
161 | * @status - FW status registers | 161 | * @status: FW status registers |
162 | */ | 162 | */ |
163 | struct mei_fw_status { | 163 | struct mei_fw_status { |
164 | int count; | 164 | int count; |
@@ -168,9 +168,10 @@ struct mei_fw_status { | |||
168 | /** | 168 | /** |
169 | * struct mei_me_client - representation of me (fw) client | 169 | * struct mei_me_client - representation of me (fw) client |
170 | * | 170 | * |
171 | * @props - client properties | 171 | * @list: link in me client list |
172 | * @client_id - me client id | 172 | * @props: client properties |
173 | * @mei_flow_ctrl_creds - flow control credits | 173 | * @client_id: me client id |
174 | * @mei_flow_ctrl_creds: flow control credits | ||
174 | */ | 175 | */ |
175 | struct mei_me_client { | 176 | struct mei_me_client { |
176 | struct list_head list; | 177 | struct list_head list; |
@@ -185,8 +186,9 @@ struct mei_cl; | |||
185 | /** | 186 | /** |
186 | * struct mei_cl_cb - file operation callback structure | 187 | * struct mei_cl_cb - file operation callback structure |
187 | * | 188 | * |
188 | * @cl - file client who is running this operation | 189 | * @list: link in callback queue |
189 | * @fop_type - file operation type | 190 | * @cl: file client who is running this operation |
191 | * @fop_type: file operation type | ||
190 | */ | 192 | */ |
191 | struct mei_cl_cb { | 193 | struct mei_cl_cb { |
192 | struct list_head list; | 194 | struct list_head list; |
@@ -226,31 +228,31 @@ struct mei_cl { | |||
226 | 228 | ||
227 | /** struct mei_hw_ops | 229 | /** struct mei_hw_ops |
228 | * | 230 | * |
229 | * @host_is_ready - query for host readiness | 231 | * @host_is_ready : query for host readiness |
230 | 232 | ||
231 | * @hw_is_ready - query if hw is ready | 233 | * @hw_is_ready : query if hw is ready |
232 | * @hw_reset - reset hw | 234 | * @hw_reset : reset hw |
233 | * @hw_start - start hw after reset | 235 | * @hw_start : start hw after reset |
234 | * @hw_config - configure hw | 236 | * @hw_config : configure hw |
235 | 237 | ||
236 | * @fw_status - get fw status registers | 238 | * @fw_status : get fw status registers |
237 | * @pg_state - power gating state of the device | 239 | * @pg_state : power gating state of the device |
238 | * @pg_is_enabled - is power gating enabled | 240 | * @pg_is_enabled : is power gating enabled |
239 | 241 | ||
240 | * @intr_clear - clear pending interrupts | 242 | * @intr_clear : clear pending interrupts |
241 | * @intr_enable - enable interrupts | 243 | * @intr_enable : enable interrupts |
242 | * @intr_disable - disable interrupts | 244 | * @intr_disable : disable interrupts |
243 | 245 | ||
244 | * @hbuf_free_slots - query for write buffer empty slots | 246 | * @hbuf_free_slots : query for write buffer empty slots |
245 | * @hbuf_is_ready - query if write buffer is empty | 247 | * @hbuf_is_ready : query if write buffer is empty |
246 | * @hbuf_max_len - query for write buffer max len | 248 | * @hbuf_max_len : query for write buffer max len |
247 | 249 | ||
248 | * @write - write a message to FW | 250 | * @write : write a message to FW |
249 | 251 | ||
250 | * @rdbuf_full_slots - query how many slots are filled | 252 | * @rdbuf_full_slots : query how many slots are filled |
251 | 253 | ||
252 | * @read_hdr - get first 4 bytes (header) | 254 | * @read_hdr : get first 4 bytes (header) |
253 | * @read - read a buffer from the FW | 255 | * @read : read a buffer from the FW |
254 | */ | 256 | */ |
255 | struct mei_hw_ops { | 257 | struct mei_hw_ops { |
256 | 258 | ||
@@ -330,7 +332,6 @@ void mei_cl_bus_exit(void); | |||
330 | * when being probed and shall use it for doing ME bus I/O. | 332 | * when being probed and shall use it for doing ME bus I/O. |
331 | * | 333 | * |
332 | * @dev: linux driver model device pointer | 334 | * @dev: linux driver model device pointer |
333 | * @uuid: me client uuid | ||
334 | * @cl: mei client | 335 | * @cl: mei client |
335 | * @ops: ME transport ops | 336 | * @ops: ME transport ops |
336 | * @event_cb: Drivers register this callback to get asynchronous ME | 337 | * @event_cb: Drivers register this callback to get asynchronous ME |
@@ -383,21 +384,21 @@ const char *mei_pg_state_str(enum mei_pg_state state); | |||
383 | /** | 384 | /** |
384 | * struct mei_device - MEI private device struct | 385 | * struct mei_device - MEI private device struct |
385 | 386 | ||
386 | * @dev - device on a bus | 387 | * @dev : device on a bus |
387 | * @cdev - character device | 388 | * @cdev : character device |
388 | * @minor - minor number allocated for device | 389 | * @minor : minor number allocated for device |
389 | * | 390 | * |
390 | * @reset_count - limits the number of consecutive resets | 391 | * @reset_count : limits the number of consecutive resets |
391 | * @hbm_state - state of host bus message protocol | 392 | * @hbm_state : state of host bus message protocol |
392 | * | 393 | * |
393 | * @hbm_f_pg_supported - hbm feature pgi protocol | 394 | * @hbm_f_pg_supported : hbm feature pgi protocol |
394 | * | 395 | * |
395 | * @pg_event - power gating event | 396 | * @pg_event : power gating event |
396 | * @mem_addr - mem mapped base register address | 397 | * @mem_addr : mem mapped base register address |
397 | 398 | ||
398 | * @hbuf_depth - depth of hardware host/write buffer is slots | 399 | * @hbuf_depth : depth of hardware host/write buffer is slots |
399 | * @hbuf_is_ready - query if the host host/write buffer is ready | 400 | * @hbuf_is_ready : query if the host host/write buffer is ready |
400 | * @wr_msg - the buffer for hbm control messages | 401 | * @wr_msg : the buffer for hbm control messages |
401 | */ | 402 | */ |
402 | struct mei_device { | 403 | struct mei_device { |
403 | struct device *dev; | 404 | struct device *dev; |
@@ -521,8 +522,9 @@ static inline unsigned long mei_secs_to_jiffies(unsigned long sec) | |||
521 | /** | 522 | /** |
522 | * mei_data2slots - get slots - number of (dwords) from a message length | 523 | * mei_data2slots - get slots - number of (dwords) from a message length |
523 | * + size of the mei header | 524 | * + size of the mei header |
524 | * @length - size of the messages in bytes | 525 | * @length: size of the messages in bytes |
525 | * returns - number of slots | 526 | * |
527 | * Return: number of slots | ||
526 | */ | 528 | */ |
527 | static inline u32 mei_data2slots(size_t length) | 529 | static inline u32 mei_data2slots(size_t length) |
528 | { | 530 | { |
@@ -531,8 +533,8 @@ static inline u32 mei_data2slots(size_t length) | |||
531 | 533 | ||
532 | /** | 534 | /** |
533 | * mei_slots2data- get data in slots - bytes from slots | 535 | * mei_slots2data- get data in slots - bytes from slots |
534 | * @slots - number of available slots | 536 | * @slots: number of available slots |
535 | * returns - number of bytes in slots | 537 | * Return: number of bytes in slots |
536 | */ | 538 | */ |
537 | static inline u32 mei_slots2data(int slots) | 539 | static inline u32 mei_slots2data(int slots) |
538 | { | 540 | { |
@@ -610,12 +612,12 @@ int mei_wd_host_init(struct mei_device *dev); | |||
610 | /* | 612 | /* |
611 | * mei_watchdog_register - Registering watchdog interface | 613 | * mei_watchdog_register - Registering watchdog interface |
612 | * once we got connection to the WD Client | 614 | * once we got connection to the WD Client |
613 | * @dev - mei device | 615 | * @dev: mei device |
614 | */ | 616 | */ |
615 | int mei_watchdog_register(struct mei_device *dev); | 617 | int mei_watchdog_register(struct mei_device *dev); |
616 | /* | 618 | /* |
617 | * mei_watchdog_unregister - Unregistering watchdog interface | 619 | * mei_watchdog_unregister - Unregistering watchdog interface |
618 | * @dev - mei device | 620 | * @dev: mei device |
619 | */ | 621 | */ |
620 | void mei_watchdog_unregister(struct mei_device *dev); | 622 | void mei_watchdog_unregister(struct mei_device *dev); |
621 | 623 | ||
diff --git a/drivers/misc/mei/nfc.c b/drivers/misc/mei/nfc.c index 5b369f4c47de..288665eb4862 100644 --- a/drivers/misc/mei/nfc.c +++ b/drivers/misc/mei/nfc.c | |||
@@ -88,7 +88,8 @@ struct mei_nfc_hci_hdr { | |||
88 | 88 | ||
89 | #define MEI_NFC_HEADER_SIZE 10 | 89 | #define MEI_NFC_HEADER_SIZE 10 |
90 | 90 | ||
91 | /** mei_nfc_dev - NFC mei device | 91 | /** |
92 | * struct mei_nfc_dev - NFC mei device | ||
92 | * | 93 | * |
93 | * @cl: NFC host client | 94 | * @cl: NFC host client |
94 | * @cl_info: NFC info host client | 95 | * @cl_info: NFC info host client |
diff --git a/drivers/misc/mei/pci-me.c b/drivers/misc/mei/pci-me.c index a91071716868..532d39300498 100644 --- a/drivers/misc/mei/pci-me.c +++ b/drivers/misc/mei/pci-me.c | |||
@@ -103,7 +103,7 @@ static inline void mei_me_unset_pm_domain(struct mei_device *dev) {} | |||
103 | * @pdev: PCI device structure | 103 | * @pdev: PCI device structure |
104 | * @cfg: per generation config | 104 | * @cfg: per generation config |
105 | * | 105 | * |
106 | * returns true if ME Interface is valid, false otherwise | 106 | * Return: true if ME Interface is valid, false otherwise |
107 | */ | 107 | */ |
108 | static bool mei_me_quirk_probe(struct pci_dev *pdev, | 108 | static bool mei_me_quirk_probe(struct pci_dev *pdev, |
109 | const struct mei_cfg *cfg) | 109 | const struct mei_cfg *cfg) |
@@ -122,7 +122,7 @@ static bool mei_me_quirk_probe(struct pci_dev *pdev, | |||
122 | * @pdev: PCI device structure | 122 | * @pdev: PCI device structure |
123 | * @ent: entry in kcs_pci_tbl | 123 | * @ent: entry in kcs_pci_tbl |
124 | * | 124 | * |
125 | * returns 0 on success, <0 on failure. | 125 | * Return: 0 on success, <0 on failure. |
126 | */ | 126 | */ |
127 | static int mei_me_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 127 | static int mei_me_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
128 | { | 128 | { |
diff --git a/drivers/misc/mei/pci-txe.c b/drivers/misc/mei/pci-txe.c index 69eb999ae803..2898480ae33f 100644 --- a/drivers/misc/mei/pci-txe.c +++ b/drivers/misc/mei/pci-txe.c | |||
@@ -67,7 +67,7 @@ static void mei_txe_pci_iounmap(struct pci_dev *pdev, struct mei_txe_hw *hw) | |||
67 | * @pdev: PCI device structure | 67 | * @pdev: PCI device structure |
68 | * @ent: entry in mei_txe_pci_tbl | 68 | * @ent: entry in mei_txe_pci_tbl |
69 | * | 69 | * |
70 | * returns 0 on success, <0 on failure. | 70 | * Return: 0 on success, <0 on failure. |
71 | */ | 71 | */ |
72 | static int mei_txe_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | 72 | static int mei_txe_probe(struct pci_dev *pdev, const struct pci_device_id *ent) |
73 | { | 73 | { |
diff --git a/drivers/misc/mei/wd.c b/drivers/misc/mei/wd.c index 626b4c13993b..b836dfffceb5 100644 --- a/drivers/misc/mei/wd.c +++ b/drivers/misc/mei/wd.c | |||
@@ -51,7 +51,7 @@ static void mei_wd_set_start_timeout(struct mei_device *dev, u16 timeout) | |||
51 | * | 51 | * |
52 | * @dev: the device structure | 52 | * @dev: the device structure |
53 | * | 53 | * |
54 | * returns -ENOTTY if wd client cannot be found | 54 | * Return: -ENOTTY if wd client cannot be found |
55 | * -EIO if write has failed | 55 | * -EIO if write has failed |
56 | * 0 on success | 56 | * 0 on success |
57 | */ | 57 | */ |
@@ -105,7 +105,7 @@ int mei_wd_host_init(struct mei_device *dev) | |||
105 | * | 105 | * |
106 | * @dev: the device structure | 106 | * @dev: the device structure |
107 | * | 107 | * |
108 | * returns 0 if success, | 108 | * Return: 0 if success, |
109 | * -EIO when message send fails | 109 | * -EIO when message send fails |
110 | * -EINVAL when invalid message is to be sent | 110 | * -EINVAL when invalid message is to be sent |
111 | * -ENODEV on flow control failure | 111 | * -ENODEV on flow control failure |
@@ -150,9 +150,8 @@ int mei_wd_send(struct mei_device *dev) | |||
150 | * mei_wd_stop - sends watchdog stop message to fw. | 150 | * mei_wd_stop - sends watchdog stop message to fw. |
151 | * | 151 | * |
152 | * @dev: the device structure | 152 | * @dev: the device structure |
153 | * @preserve: indicate if to keep the timeout value | ||
154 | * | 153 | * |
155 | * returns 0 if success | 154 | * Return: 0 if success |
156 | * on error: | 155 | * on error: |
157 | * -EIO when message send fails | 156 | * -EIO when message send fails |
158 | * -EINVAL when invalid message is to be sent | 157 | * -EINVAL when invalid message is to be sent |
@@ -207,7 +206,7 @@ err: | |||
207 | * | 206 | * |
208 | * @wd_dev - watchdog device struct | 207 | * @wd_dev - watchdog device struct |
209 | * | 208 | * |
210 | * returns 0 if success, negative errno code for failure | 209 | * Return: 0 if success, negative errno code for failure |
211 | */ | 210 | */ |
212 | static int mei_wd_ops_start(struct watchdog_device *wd_dev) | 211 | static int mei_wd_ops_start(struct watchdog_device *wd_dev) |
213 | { | 212 | { |
@@ -244,7 +243,7 @@ end_unlock: | |||
244 | * | 243 | * |
245 | * @wd_dev - watchdog device struct | 244 | * @wd_dev - watchdog device struct |
246 | * | 245 | * |
247 | * returns 0 if success, negative errno code for failure | 246 | * Return: 0 if success, negative errno code for failure |
248 | */ | 247 | */ |
249 | static int mei_wd_ops_stop(struct watchdog_device *wd_dev) | 248 | static int mei_wd_ops_stop(struct watchdog_device *wd_dev) |
250 | { | 249 | { |
@@ -266,7 +265,7 @@ static int mei_wd_ops_stop(struct watchdog_device *wd_dev) | |||
266 | * | 265 | * |
267 | * @wd_dev - watchdog device struct | 266 | * @wd_dev - watchdog device struct |
268 | * | 267 | * |
269 | * returns 0 if success, negative errno code for failure | 268 | * Return: 0 if success, negative errno code for failure |
270 | */ | 269 | */ |
271 | static int mei_wd_ops_ping(struct watchdog_device *wd_dev) | 270 | static int mei_wd_ops_ping(struct watchdog_device *wd_dev) |
272 | { | 271 | { |
@@ -314,7 +313,7 @@ end: | |||
314 | * @wd_dev - watchdog device struct | 313 | * @wd_dev - watchdog device struct |
315 | * @timeout - timeout value to set | 314 | * @timeout - timeout value to set |
316 | * | 315 | * |
317 | * returns 0 if success, negative errno code for failure | 316 | * Return: 0 if success, negative errno code for failure |
318 | */ | 317 | */ |
319 | static int mei_wd_ops_set_timeout(struct watchdog_device *wd_dev, | 318 | static int mei_wd_ops_set_timeout(struct watchdog_device *wd_dev, |
320 | unsigned int timeout) | 319 | unsigned int timeout) |