aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/misc/mei/client.c
diff options
context:
space:
mode:
authorAlexander Usyskin <alexander.usyskin@intel.com>2014-09-29 09:31:49 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-09-29 11:56:02 -0400
commita8605ea2c20c2b97a54d7746c16ebef5ba29632a (patch)
tree5381189bc33345ce3c89c36c733b50c73ab37419 /drivers/misc/mei/client.c
parent764c065a65c31a09340e71d2c41652e7e05bf083 (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>
Diffstat (limited to 'drivers/misc/mei/client.c')
-rw-r--r--drivers/misc/mei/client.c70
1 files changed, 41 insertions, 29 deletions
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 */
38struct mei_me_client *mei_me_cl_by_uuid(const struct mei_device *dev, 39struct 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
61struct mei_me_client *mei_me_cl_by_id(struct mei_device *dev, u8 client_id) 61struct 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 */
72struct mei_me_client *mei_me_cl_by_uuid_id(struct mei_device *dev, 83struct 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 */
115static inline bool mei_cl_cmp_id(const struct mei_cl *cl1, 126static 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 */
192struct mei_cl_cb *mei_io_cb_init(struct mei_cl *cl, struct file *fp) 203struct 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 */
310struct mei_cl *mei_cl_allocate(struct mei_device *dev) 321struct 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 */
330struct mei_cl_cb *mei_cl_find_read_cb(struct mei_cl *cl) 341struct 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 */
463bool mei_hbuf_acquire(struct mei_device *dev) 474bool 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 */
490int mei_cl_disconnect(struct mei_cl *cl) 501int 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 */
571bool mei_cl_is_other_connecting(struct mei_cl *cl) 582bool 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 */
601int mei_cl_connect(struct mei_cl *cl, struct file *file) 613int 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 */
750int mei_cl_read_start(struct mei_cl *cl, size_t length) 762int 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 */
828int mei_cl_irq_write(struct mei_cl *cl, struct mei_cl_cb *cb, 840int 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 */
910int mei_cl_write(struct mei_cl *cl, struct mei_cl_cb *cb, bool blocking) 922int 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
1048void mei_cl_all_disconnect(struct mei_device *dev) 1060void 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 */
1065void mei_cl_all_wakeup(struct mei_device *dev) 1077void 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 */
1086void mei_cl_all_write_clear(struct mei_device *dev) 1098void mei_cl_all_write_clear(struct mei_device *dev)
1087{ 1099{