.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-only |
---|
1 | 2 | /* |
---|
2 | 3 | * Copyright (c) 2005-2014 Brocade Communications Systems, Inc. |
---|
3 | 4 | * Copyright (c) 2014- QLogic Corporation. |
---|
.. | .. |
---|
5 | 6 | * www.qlogic.com |
---|
6 | 7 | * |
---|
7 | 8 | * Linux driver for QLogic BR-series Fibre Channel Host Bus Adapter. |
---|
8 | | - * |
---|
9 | | - * This program is free software; you can redistribute it and/or modify it |
---|
10 | | - * under the terms of the GNU General Public License (GPL) Version 2 as |
---|
11 | | - * published by the Free Software Foundation |
---|
12 | | - * |
---|
13 | | - * This program is distributed in the hope that it will be useful, but |
---|
14 | | - * WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
15 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
---|
16 | | - * General Public License for more details. |
---|
17 | 9 | */ |
---|
18 | 10 | |
---|
19 | 11 | #include "bfad_drv.h" |
---|
.. | .. |
---|
2726 | 2718 | case BFA_FCPORT_SM_DPORTDISABLE: |
---|
2727 | 2719 | case BFA_FCPORT_SM_ENABLE: |
---|
2728 | 2720 | case BFA_FCPORT_SM_START: |
---|
2729 | | - /** |
---|
| 2721 | + /* |
---|
2730 | 2722 | * Ignore event for a port that is ddport |
---|
2731 | 2723 | */ |
---|
2732 | 2724 | break; |
---|
.. | .. |
---|
3847 | 3839 | return fcport->topology; |
---|
3848 | 3840 | } |
---|
3849 | 3841 | |
---|
3850 | | -/** |
---|
| 3842 | +/* |
---|
3851 | 3843 | * Get config topology. |
---|
3852 | 3844 | */ |
---|
3853 | 3845 | enum bfa_port_topology |
---|
.. | .. |
---|
4292 | 4284 | bfa_port_set_dportenabled(&bfa->modules.port, BFA_FALSE); |
---|
4293 | 4285 | } |
---|
4294 | 4286 | |
---|
4295 | | -void |
---|
| 4287 | +static void |
---|
4296 | 4288 | bfa_fcport_ddportenable(struct bfa_s *bfa) |
---|
4297 | 4289 | { |
---|
4298 | 4290 | /* |
---|
.. | .. |
---|
4301 | 4293 | bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_DDPORTENABLE); |
---|
4302 | 4294 | } |
---|
4303 | 4295 | |
---|
4304 | | -void |
---|
| 4296 | +static void |
---|
4305 | 4297 | bfa_fcport_ddportdisable(struct bfa_s *bfa) |
---|
4306 | 4298 | { |
---|
4307 | 4299 | /* |
---|
.. | .. |
---|
5525 | 5517 | struct bfa_uf_s *uf = &ufm->uf_list[uf_tag]; |
---|
5526 | 5518 | struct bfa_uf_buf_s *uf_buf; |
---|
5527 | 5519 | uint8_t *buf; |
---|
5528 | | - struct fchs_s *fchs; |
---|
5529 | 5520 | |
---|
5530 | 5521 | uf_buf = (struct bfa_uf_buf_s *) |
---|
5531 | 5522 | bfa_mem_get_dmabuf_kva(ufm, uf_tag, uf->pb_len); |
---|
.. | .. |
---|
5533 | 5524 | |
---|
5534 | 5525 | m->frm_len = be16_to_cpu(m->frm_len); |
---|
5535 | 5526 | m->xfr_len = be16_to_cpu(m->xfr_len); |
---|
5536 | | - |
---|
5537 | | - fchs = (struct fchs_s *)uf_buf; |
---|
5538 | 5527 | |
---|
5539 | 5528 | list_del(&uf->qe); /* dequeue from posted queue */ |
---|
5540 | 5529 | |
---|
.. | .. |
---|
6408 | 6397 | dport->test_state = BFA_DPORT_ST_INP; |
---|
6409 | 6398 | bfa_dport_result_start(dport, BFA_DPORT_OPMODE_MANU); |
---|
6410 | 6399 | } |
---|
6411 | | - /* fall thru */ |
---|
| 6400 | + fallthrough; |
---|
6412 | 6401 | |
---|
6413 | 6402 | case BFA_DPORT_SM_REQFAIL: |
---|
6414 | 6403 | bfa_sm_set_state(dport, bfa_dport_sm_enabled); |
---|