.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (C) 2008, cozybit Inc. |
---|
3 | 4 | * Copyright (C) 2003-2006, Marvell International Ltd. |
---|
4 | | - * |
---|
5 | | - * This program is free software; you can redistribute it and/or modify |
---|
6 | | - * it under the terms of the GNU General Public License as published by |
---|
7 | | - * the Free Software Foundation; either version 2 of the License, or (at |
---|
8 | | - * your option) any later version. |
---|
9 | 5 | */ |
---|
10 | 6 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt |
---|
11 | 7 | |
---|
.. | .. |
---|
36 | 32 | /** |
---|
37 | 33 | * lbtf_cmd_copyback - Simple callback that copies response back into command |
---|
38 | 34 | * |
---|
39 | | - * @priv A pointer to struct lbtf_private structure |
---|
40 | | - * @extra A pointer to the original command structure for which |
---|
| 35 | + * @priv: A pointer to struct lbtf_private structure |
---|
| 36 | + * @extra: A pointer to the original command structure for which |
---|
41 | 37 | * 'resp' is a response |
---|
42 | | - * @resp A pointer to the command response |
---|
| 38 | + * @resp: A pointer to the command response |
---|
43 | 39 | * |
---|
44 | 40 | * Returns: 0 on success, error on failure |
---|
45 | 41 | */ |
---|
.. | .. |
---|
76 | 72 | /** |
---|
77 | 73 | * lbtf_update_hw_spec: Updates the hardware details. |
---|
78 | 74 | * |
---|
79 | | - * @priv A pointer to struct lbtf_private structure |
---|
| 75 | + * @priv: A pointer to struct lbtf_private structure |
---|
80 | 76 | * |
---|
81 | 77 | * Returns: 0 on success, error on failure |
---|
82 | 78 | */ |
---|
.. | .. |
---|
145 | 141 | /** |
---|
146 | 142 | * lbtf_set_channel: Set the radio channel |
---|
147 | 143 | * |
---|
148 | | - * @priv A pointer to struct lbtf_private structure |
---|
149 | | - * @channel The desired channel, or 0 to clear a locked channel |
---|
| 144 | + * @priv: A pointer to struct lbtf_private structure |
---|
| 145 | + * @channel: The desired channel, or 0 to clear a locked channel |
---|
150 | 146 | * |
---|
151 | 147 | * Returns: 0 on success, error on failure |
---|
152 | 148 | */ |
---|
.. | .. |
---|
256 | 252 | command, le16_to_cpu(cmd->seqnum), cmdsize); |
---|
257 | 253 | lbtf_deb_hex(LBTF_DEB_CMD, "DNLD_CMD", (void *) cmdnode->cmdbuf, cmdsize); |
---|
258 | 254 | |
---|
259 | | - ret = priv->hw_host_to_card(priv, MVMS_CMD, (u8 *) cmd, cmdsize); |
---|
| 255 | + ret = priv->ops->hw_host_to_card(priv, MVMS_CMD, (u8 *)cmd, cmdsize); |
---|
260 | 256 | spin_unlock_irqrestore(&priv->driver_lock, flags); |
---|
261 | 257 | |
---|
262 | 258 | if (ret) { |
---|
.. | .. |
---|
272 | 268 | lbtf_deb_leave(LBTF_DEB_HOST); |
---|
273 | 269 | } |
---|
274 | 270 | |
---|
275 | | -/** |
---|
| 271 | +/* |
---|
276 | 272 | * This function inserts command node to cmdfreeq |
---|
277 | 273 | * after cleans it. Requires priv->driver_lock held. |
---|
278 | 274 | */ |
---|
.. | .. |
---|
438 | 434 | /** |
---|
439 | 435 | * lbtf_allocate_cmd_buffer - Allocates cmd buffer, links it to free cmd queue |
---|
440 | 436 | * |
---|
441 | | - * @priv A pointer to struct lbtf_private structure |
---|
| 437 | + * @priv: A pointer to struct lbtf_private structure |
---|
442 | 438 | * |
---|
443 | 439 | * Returns: 0 on success. |
---|
444 | 440 | */ |
---|
.. | .. |
---|
486 | 482 | /** |
---|
487 | 483 | * lbtf_free_cmd_buffer - Frees the cmd buffer. |
---|
488 | 484 | * |
---|
489 | | - * @priv A pointer to struct lbtf_private structure |
---|
| 485 | + * @priv: A pointer to struct lbtf_private structure |
---|
490 | 486 | * |
---|
491 | 487 | * Returns: 0 |
---|
492 | 488 | */ |
---|
.. | .. |
---|
523 | 519 | /** |
---|
524 | 520 | * lbtf_get_cmd_ctrl_node - Gets free cmd node from free cmd queue. |
---|
525 | 521 | * |
---|
526 | | - * @priv A pointer to struct lbtf_private structure |
---|
| 522 | + * @priv: A pointer to struct lbtf_private structure |
---|
527 | 523 | * |
---|
528 | 524 | * Returns: pointer to a struct cmd_ctrl_node or NULL if none available. |
---|
529 | 525 | */ |
---|
.. | .. |
---|
557 | 553 | /** |
---|
558 | 554 | * lbtf_execute_next_command: execute next command in cmd pending queue. |
---|
559 | 555 | * |
---|
560 | | - * @priv A pointer to struct lbtf_private structure |
---|
| 556 | + * @priv: A pointer to struct lbtf_private structure |
---|
561 | 557 | * |
---|
562 | 558 | * Returns: 0 on success. |
---|
563 | 559 | */ |
---|
.. | .. |
---|
737 | 733 | respcmd = le16_to_cpu(resp->command); |
---|
738 | 734 | result = le16_to_cpu(resp->result); |
---|
739 | 735 | |
---|
740 | | - if (net_ratelimit()) |
---|
741 | | - pr_info("libertastf: cmd response 0x%04x, seq %d, size %d\n", |
---|
742 | | - respcmd, le16_to_cpu(resp->seqnum), |
---|
743 | | - le16_to_cpu(resp->size)); |
---|
| 736 | + lbtf_deb_cmd("libertastf: cmd response 0x%04x, seq %d, size %d\n", |
---|
| 737 | + respcmd, le16_to_cpu(resp->seqnum), |
---|
| 738 | + le16_to_cpu(resp->size)); |
---|
744 | 739 | |
---|
745 | 740 | if (resp->seqnum != priv->cur_cmd->cmdbuf->seqnum) { |
---|
746 | 741 | spin_unlock_irqrestore(&priv->driver_lock, flags); |
---|