diff options
Diffstat (limited to 'drivers/scsi/bfa/bfa_svc.c')
-rw-r--r-- | drivers/scsi/bfa/bfa_svc.c | 378 |
1 files changed, 189 insertions, 189 deletions
diff --git a/drivers/scsi/bfa/bfa_svc.c b/drivers/scsi/bfa/bfa_svc.c index 4d13688c76d6..c768143f4805 100644 --- a/drivers/scsi/bfa/bfa_svc.c +++ b/drivers/scsi/bfa/bfa_svc.c | |||
@@ -29,7 +29,7 @@ BFA_MODULE(fcport); | |||
29 | BFA_MODULE(rport); | 29 | BFA_MODULE(rport); |
30 | BFA_MODULE(uf); | 30 | BFA_MODULE(uf); |
31 | 31 | ||
32 | /** | 32 | /* |
33 | * LPS related definitions | 33 | * LPS related definitions |
34 | */ | 34 | */ |
35 | #define BFA_LPS_MIN_LPORTS (1) | 35 | #define BFA_LPS_MIN_LPORTS (1) |
@@ -41,7 +41,7 @@ BFA_MODULE(uf); | |||
41 | #define BFA_LPS_MAX_VPORTS_SUPP_CB 255 | 41 | #define BFA_LPS_MAX_VPORTS_SUPP_CB 255 |
42 | #define BFA_LPS_MAX_VPORTS_SUPP_CT 190 | 42 | #define BFA_LPS_MAX_VPORTS_SUPP_CT 190 |
43 | 43 | ||
44 | /** | 44 | /* |
45 | * lps_pvt BFA LPS private functions | 45 | * lps_pvt BFA LPS private functions |
46 | */ | 46 | */ |
47 | 47 | ||
@@ -55,7 +55,7 @@ enum bfa_lps_event { | |||
55 | BFA_LPS_SM_RX_CVL = 7, /* Rx clear virtual link */ | 55 | BFA_LPS_SM_RX_CVL = 7, /* Rx clear virtual link */ |
56 | }; | 56 | }; |
57 | 57 | ||
58 | /** | 58 | /* |
59 | * FC PORT related definitions | 59 | * FC PORT related definitions |
60 | */ | 60 | */ |
61 | /* | 61 | /* |
@@ -67,7 +67,7 @@ enum bfa_lps_event { | |||
67 | (bfa_ioc_is_disabled(&bfa->ioc) == BFA_TRUE)) | 67 | (bfa_ioc_is_disabled(&bfa->ioc) == BFA_TRUE)) |
68 | 68 | ||
69 | 69 | ||
70 | /** | 70 | /* |
71 | * BFA port state machine events | 71 | * BFA port state machine events |
72 | */ | 72 | */ |
73 | enum bfa_fcport_sm_event { | 73 | enum bfa_fcport_sm_event { |
@@ -82,7 +82,7 @@ enum bfa_fcport_sm_event { | |||
82 | BFA_FCPORT_SM_HWFAIL = 9, /* IOC h/w failure */ | 82 | BFA_FCPORT_SM_HWFAIL = 9, /* IOC h/w failure */ |
83 | }; | 83 | }; |
84 | 84 | ||
85 | /** | 85 | /* |
86 | * BFA port link notification state machine events | 86 | * BFA port link notification state machine events |
87 | */ | 87 | */ |
88 | 88 | ||
@@ -92,7 +92,7 @@ enum bfa_fcport_ln_sm_event { | |||
92 | BFA_FCPORT_LN_SM_NOTIFICATION = 3 /* done notification */ | 92 | BFA_FCPORT_LN_SM_NOTIFICATION = 3 /* done notification */ |
93 | }; | 93 | }; |
94 | 94 | ||
95 | /** | 95 | /* |
96 | * RPORT related definitions | 96 | * RPORT related definitions |
97 | */ | 97 | */ |
98 | #define bfa_rport_offline_cb(__rp) do { \ | 98 | #define bfa_rport_offline_cb(__rp) do { \ |
@@ -126,7 +126,7 @@ enum bfa_rport_event { | |||
126 | BFA_RPORT_SM_QRESUME = 9, /* space in requeue queue */ | 126 | BFA_RPORT_SM_QRESUME = 9, /* space in requeue queue */ |
127 | }; | 127 | }; |
128 | 128 | ||
129 | /** | 129 | /* |
130 | * forward declarations FCXP related functions | 130 | * forward declarations FCXP related functions |
131 | */ | 131 | */ |
132 | static void __bfa_fcxp_send_cbfn(void *cbarg, bfa_boolean_t complete); | 132 | static void __bfa_fcxp_send_cbfn(void *cbarg, bfa_boolean_t complete); |
@@ -138,7 +138,7 @@ static void bfa_fcxp_qresume(void *cbarg); | |||
138 | static void bfa_fcxp_queue(struct bfa_fcxp_s *fcxp, | 138 | static void bfa_fcxp_queue(struct bfa_fcxp_s *fcxp, |
139 | struct bfi_fcxp_send_req_s *send_req); | 139 | struct bfi_fcxp_send_req_s *send_req); |
140 | 140 | ||
141 | /** | 141 | /* |
142 | * forward declarations for LPS functions | 142 | * forward declarations for LPS functions |
143 | */ | 143 | */ |
144 | static void bfa_lps_meminfo(struct bfa_iocfc_cfg_s *cfg, u32 *ndm_len, | 144 | static void bfa_lps_meminfo(struct bfa_iocfc_cfg_s *cfg, u32 *ndm_len, |
@@ -163,7 +163,7 @@ static void bfa_lps_login_comp(struct bfa_lps_s *lps); | |||
163 | static void bfa_lps_logout_comp(struct bfa_lps_s *lps); | 163 | static void bfa_lps_logout_comp(struct bfa_lps_s *lps); |
164 | static void bfa_lps_cvl_event(struct bfa_lps_s *lps); | 164 | static void bfa_lps_cvl_event(struct bfa_lps_s *lps); |
165 | 165 | ||
166 | /** | 166 | /* |
167 | * forward declaration for LPS state machine | 167 | * forward declaration for LPS state machine |
168 | */ | 168 | */ |
169 | static void bfa_lps_sm_init(struct bfa_lps_s *lps, enum bfa_lps_event event); | 169 | static void bfa_lps_sm_init(struct bfa_lps_s *lps, enum bfa_lps_event event); |
@@ -175,7 +175,7 @@ static void bfa_lps_sm_logout(struct bfa_lps_s *lps, enum bfa_lps_event event); | |||
175 | static void bfa_lps_sm_logowait(struct bfa_lps_s *lps, enum bfa_lps_event | 175 | static void bfa_lps_sm_logowait(struct bfa_lps_s *lps, enum bfa_lps_event |
176 | event); | 176 | event); |
177 | 177 | ||
178 | /** | 178 | /* |
179 | * forward declaration for FC Port functions | 179 | * forward declaration for FC Port functions |
180 | */ | 180 | */ |
181 | static bfa_boolean_t bfa_fcport_send_enable(struct bfa_fcport_s *fcport); | 181 | static bfa_boolean_t bfa_fcport_send_enable(struct bfa_fcport_s *fcport); |
@@ -193,7 +193,7 @@ static void bfa_fcport_stats_get_timeout(void *cbarg); | |||
193 | static void bfa_fcport_stats_clr_timeout(void *cbarg); | 193 | static void bfa_fcport_stats_clr_timeout(void *cbarg); |
194 | static void bfa_trunk_iocdisable(struct bfa_s *bfa); | 194 | static void bfa_trunk_iocdisable(struct bfa_s *bfa); |
195 | 195 | ||
196 | /** | 196 | /* |
197 | * forward declaration for FC PORT state machine | 197 | * forward declaration for FC PORT state machine |
198 | */ | 198 | */ |
199 | static void bfa_fcport_sm_uninit(struct bfa_fcport_s *fcport, | 199 | static void bfa_fcport_sm_uninit(struct bfa_fcport_s *fcport, |
@@ -252,7 +252,7 @@ static struct bfa_sm_table_s hal_port_sm_table[] = { | |||
252 | }; | 252 | }; |
253 | 253 | ||
254 | 254 | ||
255 | /** | 255 | /* |
256 | * forward declaration for RPORT related functions | 256 | * forward declaration for RPORT related functions |
257 | */ | 257 | */ |
258 | static struct bfa_rport_s *bfa_rport_alloc(struct bfa_rport_mod_s *rp_mod); | 258 | static struct bfa_rport_s *bfa_rport_alloc(struct bfa_rport_mod_s *rp_mod); |
@@ -265,7 +265,7 @@ static void __bfa_cb_rport_online(void *cbarg, | |||
265 | static void __bfa_cb_rport_offline(void *cbarg, | 265 | static void __bfa_cb_rport_offline(void *cbarg, |
266 | bfa_boolean_t complete); | 266 | bfa_boolean_t complete); |
267 | 267 | ||
268 | /** | 268 | /* |
269 | * forward declaration for RPORT state machine | 269 | * forward declaration for RPORT state machine |
270 | */ | 270 | */ |
271 | static void bfa_rport_sm_uninit(struct bfa_rport_s *rp, | 271 | static void bfa_rport_sm_uninit(struct bfa_rport_s *rp, |
@@ -295,7 +295,7 @@ static void bfa_rport_sm_fwdelete_qfull(struct bfa_rport_s *rp, | |||
295 | static void bfa_rport_sm_deleting_qfull(struct bfa_rport_s *rp, | 295 | static void bfa_rport_sm_deleting_qfull(struct bfa_rport_s *rp, |
296 | enum bfa_rport_event event); | 296 | enum bfa_rport_event event); |
297 | 297 | ||
298 | /** | 298 | /* |
299 | * PLOG related definitions | 299 | * PLOG related definitions |
300 | */ | 300 | */ |
301 | static int | 301 | static int |
@@ -461,7 +461,7 @@ bfa_plog_get_setting(struct bfa_plog_s *plog) | |||
461 | return (bfa_boolean_t)plog->plog_enabled; | 461 | return (bfa_boolean_t)plog->plog_enabled; |
462 | } | 462 | } |
463 | 463 | ||
464 | /** | 464 | /* |
465 | * fcxp_pvt BFA FCXP private functions | 465 | * fcxp_pvt BFA FCXP private functions |
466 | */ | 466 | */ |
467 | 467 | ||
@@ -562,7 +562,7 @@ bfa_fcxp_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, | |||
562 | mod->bfa = bfa; | 562 | mod->bfa = bfa; |
563 | mod->num_fcxps = cfg->fwcfg.num_fcxp_reqs; | 563 | mod->num_fcxps = cfg->fwcfg.num_fcxp_reqs; |
564 | 564 | ||
565 | /** | 565 | /* |
566 | * Initialize FCXP request and response payload sizes. | 566 | * Initialize FCXP request and response payload sizes. |
567 | */ | 567 | */ |
568 | mod->req_pld_sz = mod->rsp_pld_sz = BFA_FCXP_MAX_IBUF_SZ; | 568 | mod->req_pld_sz = mod->rsp_pld_sz = BFA_FCXP_MAX_IBUF_SZ; |
@@ -746,7 +746,7 @@ hal_fcxp_send_comp(struct bfa_s *bfa, struct bfi_fcxp_send_rsp_s *fcxp_rsp) | |||
746 | 746 | ||
747 | fcxp_rsp->rsp_len = be32_to_cpu(fcxp_rsp->rsp_len); | 747 | fcxp_rsp->rsp_len = be32_to_cpu(fcxp_rsp->rsp_len); |
748 | 748 | ||
749 | /** | 749 | /* |
750 | * @todo f/w should not set residue to non-0 when everything | 750 | * @todo f/w should not set residue to non-0 when everything |
751 | * is received. | 751 | * is received. |
752 | */ | 752 | */ |
@@ -855,7 +855,7 @@ hal_fcxp_rx_plog(struct bfa_s *bfa, struct bfa_fcxp_s *fcxp, | |||
855 | } | 855 | } |
856 | } | 856 | } |
857 | 857 | ||
858 | /** | 858 | /* |
859 | * Handler to resume sending fcxp when space in available in cpe queue. | 859 | * Handler to resume sending fcxp when space in available in cpe queue. |
860 | */ | 860 | */ |
861 | static void | 861 | static void |
@@ -870,7 +870,7 @@ bfa_fcxp_qresume(void *cbarg) | |||
870 | bfa_fcxp_queue(fcxp, send_req); | 870 | bfa_fcxp_queue(fcxp, send_req); |
871 | } | 871 | } |
872 | 872 | ||
873 | /** | 873 | /* |
874 | * Queue fcxp send request to foimrware. | 874 | * Queue fcxp send request to foimrware. |
875 | */ | 875 | */ |
876 | static void | 876 | static void |
@@ -954,11 +954,11 @@ bfa_fcxp_queue(struct bfa_fcxp_s *fcxp, struct bfi_fcxp_send_req_s *send_req) | |||
954 | bfa_trc(bfa, bfa_reqq_ci(bfa, BFA_REQQ_FCXP)); | 954 | bfa_trc(bfa, bfa_reqq_ci(bfa, BFA_REQQ_FCXP)); |
955 | } | 955 | } |
956 | 956 | ||
957 | /** | 957 | /* |
958 | * hal_fcxp_api BFA FCXP API | 958 | * hal_fcxp_api BFA FCXP API |
959 | */ | 959 | */ |
960 | 960 | ||
961 | /** | 961 | /* |
962 | * Allocate an FCXP instance to send a response or to send a request | 962 | * Allocate an FCXP instance to send a response or to send a request |
963 | * that has a response. Request/response buffers are allocated by caller. | 963 | * that has a response. Request/response buffers are allocated by caller. |
964 | * | 964 | * |
@@ -1004,7 +1004,7 @@ bfa_fcxp_alloc(void *caller, struct bfa_s *bfa, int nreq_sgles, | |||
1004 | return fcxp; | 1004 | return fcxp; |
1005 | } | 1005 | } |
1006 | 1006 | ||
1007 | /** | 1007 | /* |
1008 | * Get the internal request buffer pointer | 1008 | * Get the internal request buffer pointer |
1009 | * | 1009 | * |
1010 | * @param[in] fcxp BFA fcxp pointer | 1010 | * @param[in] fcxp BFA fcxp pointer |
@@ -1031,7 +1031,7 @@ bfa_fcxp_get_reqbufsz(struct bfa_fcxp_s *fcxp) | |||
1031 | return mod->req_pld_sz; | 1031 | return mod->req_pld_sz; |
1032 | } | 1032 | } |
1033 | 1033 | ||
1034 | /** | 1034 | /* |
1035 | * Get the internal response buffer pointer | 1035 | * Get the internal response buffer pointer |
1036 | * | 1036 | * |
1037 | * @param[in] fcxp BFA fcxp pointer | 1037 | * @param[in] fcxp BFA fcxp pointer |
@@ -1051,7 +1051,7 @@ bfa_fcxp_get_rspbuf(struct bfa_fcxp_s *fcxp) | |||
1051 | return rspbuf; | 1051 | return rspbuf; |
1052 | } | 1052 | } |
1053 | 1053 | ||
1054 | /** | 1054 | /* |
1055 | * Free the BFA FCXP | 1055 | * Free the BFA FCXP |
1056 | * | 1056 | * |
1057 | * @param[in] fcxp BFA fcxp pointer | 1057 | * @param[in] fcxp BFA fcxp pointer |
@@ -1068,7 +1068,7 @@ bfa_fcxp_free(struct bfa_fcxp_s *fcxp) | |||
1068 | bfa_fcxp_put(fcxp); | 1068 | bfa_fcxp_put(fcxp); |
1069 | } | 1069 | } |
1070 | 1070 | ||
1071 | /** | 1071 | /* |
1072 | * Send a FCXP request | 1072 | * Send a FCXP request |
1073 | * | 1073 | * |
1074 | * @param[in] fcxp BFA fcxp pointer | 1074 | * @param[in] fcxp BFA fcxp pointer |
@@ -1102,7 +1102,7 @@ bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport, | |||
1102 | 1102 | ||
1103 | bfa_trc(bfa, fcxp->fcxp_tag); | 1103 | bfa_trc(bfa, fcxp->fcxp_tag); |
1104 | 1104 | ||
1105 | /** | 1105 | /* |
1106 | * setup request/response info | 1106 | * setup request/response info |
1107 | */ | 1107 | */ |
1108 | reqi->bfa_rport = rport; | 1108 | reqi->bfa_rport = rport; |
@@ -1117,7 +1117,7 @@ bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport, | |||
1117 | fcxp->send_cbfn = cbfn ? cbfn : bfa_fcxp_null_comp; | 1117 | fcxp->send_cbfn = cbfn ? cbfn : bfa_fcxp_null_comp; |
1118 | fcxp->send_cbarg = cbarg; | 1118 | fcxp->send_cbarg = cbarg; |
1119 | 1119 | ||
1120 | /** | 1120 | /* |
1121 | * If no room in CPE queue, wait for space in request queue | 1121 | * If no room in CPE queue, wait for space in request queue |
1122 | */ | 1122 | */ |
1123 | send_req = bfa_reqq_next(bfa, BFA_REQQ_FCXP); | 1123 | send_req = bfa_reqq_next(bfa, BFA_REQQ_FCXP); |
@@ -1131,7 +1131,7 @@ bfa_fcxp_send(struct bfa_fcxp_s *fcxp, struct bfa_rport_s *rport, | |||
1131 | bfa_fcxp_queue(fcxp, send_req); | 1131 | bfa_fcxp_queue(fcxp, send_req); |
1132 | } | 1132 | } |
1133 | 1133 | ||
1134 | /** | 1134 | /* |
1135 | * Abort a BFA FCXP | 1135 | * Abort a BFA FCXP |
1136 | * | 1136 | * |
1137 | * @param[in] fcxp BFA fcxp pointer | 1137 | * @param[in] fcxp BFA fcxp pointer |
@@ -1185,7 +1185,7 @@ bfa_fcxp_walloc_cancel(struct bfa_s *bfa, struct bfa_fcxp_wqe_s *wqe) | |||
1185 | void | 1185 | void |
1186 | bfa_fcxp_discard(struct bfa_fcxp_s *fcxp) | 1186 | bfa_fcxp_discard(struct bfa_fcxp_s *fcxp) |
1187 | { | 1187 | { |
1188 | /** | 1188 | /* |
1189 | * If waiting for room in request queue, cancel reqq wait | 1189 | * If waiting for room in request queue, cancel reqq wait |
1190 | * and free fcxp. | 1190 | * and free fcxp. |
1191 | */ | 1191 | */ |
@@ -1201,7 +1201,7 @@ bfa_fcxp_discard(struct bfa_fcxp_s *fcxp) | |||
1201 | 1201 | ||
1202 | 1202 | ||
1203 | 1203 | ||
1204 | /** | 1204 | /* |
1205 | * hal_fcxp_public BFA FCXP public functions | 1205 | * hal_fcxp_public BFA FCXP public functions |
1206 | */ | 1206 | */ |
1207 | 1207 | ||
@@ -1228,11 +1228,11 @@ bfa_fcxp_get_maxrsp(struct bfa_s *bfa) | |||
1228 | } | 1228 | } |
1229 | 1229 | ||
1230 | 1230 | ||
1231 | /** | 1231 | /* |
1232 | * BFA LPS state machine functions | 1232 | * BFA LPS state machine functions |
1233 | */ | 1233 | */ |
1234 | 1234 | ||
1235 | /** | 1235 | /* |
1236 | * Init state -- no login | 1236 | * Init state -- no login |
1237 | */ | 1237 | */ |
1238 | static void | 1238 | static void |
@@ -1284,7 +1284,7 @@ bfa_lps_sm_init(struct bfa_lps_s *lps, enum bfa_lps_event event) | |||
1284 | } | 1284 | } |
1285 | } | 1285 | } |
1286 | 1286 | ||
1287 | /** | 1287 | /* |
1288 | * login is in progress -- awaiting response from firmware | 1288 | * login is in progress -- awaiting response from firmware |
1289 | */ | 1289 | */ |
1290 | static void | 1290 | static void |
@@ -1326,7 +1326,7 @@ bfa_lps_sm_login(struct bfa_lps_s *lps, enum bfa_lps_event event) | |||
1326 | } | 1326 | } |
1327 | } | 1327 | } |
1328 | 1328 | ||
1329 | /** | 1329 | /* |
1330 | * login pending - awaiting space in request queue | 1330 | * login pending - awaiting space in request queue |
1331 | */ | 1331 | */ |
1332 | static void | 1332 | static void |
@@ -1358,7 +1358,7 @@ bfa_lps_sm_loginwait(struct bfa_lps_s *lps, enum bfa_lps_event event) | |||
1358 | } | 1358 | } |
1359 | } | 1359 | } |
1360 | 1360 | ||
1361 | /** | 1361 | /* |
1362 | * login complete | 1362 | * login complete |
1363 | */ | 1363 | */ |
1364 | static void | 1364 | static void |
@@ -1399,7 +1399,7 @@ bfa_lps_sm_online(struct bfa_lps_s *lps, enum bfa_lps_event event) | |||
1399 | } | 1399 | } |
1400 | } | 1400 | } |
1401 | 1401 | ||
1402 | /** | 1402 | /* |
1403 | * logout in progress - awaiting firmware response | 1403 | * logout in progress - awaiting firmware response |
1404 | */ | 1404 | */ |
1405 | static void | 1405 | static void |
@@ -1423,7 +1423,7 @@ bfa_lps_sm_logout(struct bfa_lps_s *lps, enum bfa_lps_event event) | |||
1423 | } | 1423 | } |
1424 | } | 1424 | } |
1425 | 1425 | ||
1426 | /** | 1426 | /* |
1427 | * logout pending -- awaiting space in request queue | 1427 | * logout pending -- awaiting space in request queue |
1428 | */ | 1428 | */ |
1429 | static void | 1429 | static void |
@@ -1450,11 +1450,11 @@ bfa_lps_sm_logowait(struct bfa_lps_s *lps, enum bfa_lps_event event) | |||
1450 | 1450 | ||
1451 | 1451 | ||
1452 | 1452 | ||
1453 | /** | 1453 | /* |
1454 | * lps_pvt BFA LPS private functions | 1454 | * lps_pvt BFA LPS private functions |
1455 | */ | 1455 | */ |
1456 | 1456 | ||
1457 | /** | 1457 | /* |
1458 | * return memory requirement | 1458 | * return memory requirement |
1459 | */ | 1459 | */ |
1460 | static void | 1460 | static void |
@@ -1467,7 +1467,7 @@ bfa_lps_meminfo(struct bfa_iocfc_cfg_s *cfg, u32 *ndm_len, | |||
1467 | *ndm_len += sizeof(struct bfa_lps_s) * BFA_LPS_MAX_LPORTS; | 1467 | *ndm_len += sizeof(struct bfa_lps_s) * BFA_LPS_MAX_LPORTS; |
1468 | } | 1468 | } |
1469 | 1469 | ||
1470 | /** | 1470 | /* |
1471 | * bfa module attach at initialization time | 1471 | * bfa module attach at initialization time |
1472 | */ | 1472 | */ |
1473 | static void | 1473 | static void |
@@ -1515,7 +1515,7 @@ bfa_lps_stop(struct bfa_s *bfa) | |||
1515 | { | 1515 | { |
1516 | } | 1516 | } |
1517 | 1517 | ||
1518 | /** | 1518 | /* |
1519 | * IOC in disabled state -- consider all lps offline | 1519 | * IOC in disabled state -- consider all lps offline |
1520 | */ | 1520 | */ |
1521 | static void | 1521 | static void |
@@ -1531,7 +1531,7 @@ bfa_lps_iocdisable(struct bfa_s *bfa) | |||
1531 | } | 1531 | } |
1532 | } | 1532 | } |
1533 | 1533 | ||
1534 | /** | 1534 | /* |
1535 | * Firmware login response | 1535 | * Firmware login response |
1536 | */ | 1536 | */ |
1537 | static void | 1537 | static void |
@@ -1578,7 +1578,7 @@ bfa_lps_login_rsp(struct bfa_s *bfa, struct bfi_lps_login_rsp_s *rsp) | |||
1578 | bfa_sm_send_event(lps, BFA_LPS_SM_FWRSP); | 1578 | bfa_sm_send_event(lps, BFA_LPS_SM_FWRSP); |
1579 | } | 1579 | } |
1580 | 1580 | ||
1581 | /** | 1581 | /* |
1582 | * Firmware logout response | 1582 | * Firmware logout response |
1583 | */ | 1583 | */ |
1584 | static void | 1584 | static void |
@@ -1593,7 +1593,7 @@ bfa_lps_logout_rsp(struct bfa_s *bfa, struct bfi_lps_logout_rsp_s *rsp) | |||
1593 | bfa_sm_send_event(lps, BFA_LPS_SM_FWRSP); | 1593 | bfa_sm_send_event(lps, BFA_LPS_SM_FWRSP); |
1594 | } | 1594 | } |
1595 | 1595 | ||
1596 | /** | 1596 | /* |
1597 | * Firmware received a Clear virtual link request (for FCoE) | 1597 | * Firmware received a Clear virtual link request (for FCoE) |
1598 | */ | 1598 | */ |
1599 | static void | 1599 | static void |
@@ -1607,7 +1607,7 @@ bfa_lps_rx_cvl_event(struct bfa_s *bfa, struct bfi_lps_cvl_event_s *cvl) | |||
1607 | bfa_sm_send_event(lps, BFA_LPS_SM_RX_CVL); | 1607 | bfa_sm_send_event(lps, BFA_LPS_SM_RX_CVL); |
1608 | } | 1608 | } |
1609 | 1609 | ||
1610 | /** | 1610 | /* |
1611 | * Space is available in request queue, resume queueing request to firmware. | 1611 | * Space is available in request queue, resume queueing request to firmware. |
1612 | */ | 1612 | */ |
1613 | static void | 1613 | static void |
@@ -1618,7 +1618,7 @@ bfa_lps_reqq_resume(void *lps_arg) | |||
1618 | bfa_sm_send_event(lps, BFA_LPS_SM_RESUME); | 1618 | bfa_sm_send_event(lps, BFA_LPS_SM_RESUME); |
1619 | } | 1619 | } |
1620 | 1620 | ||
1621 | /** | 1621 | /* |
1622 | * lps is freed -- triggered by vport delete | 1622 | * lps is freed -- triggered by vport delete |
1623 | */ | 1623 | */ |
1624 | static void | 1624 | static void |
@@ -1631,7 +1631,7 @@ bfa_lps_free(struct bfa_lps_s *lps) | |||
1631 | list_add_tail(&lps->qe, &mod->lps_free_q); | 1631 | list_add_tail(&lps->qe, &mod->lps_free_q); |
1632 | } | 1632 | } |
1633 | 1633 | ||
1634 | /** | 1634 | /* |
1635 | * send login request to firmware | 1635 | * send login request to firmware |
1636 | */ | 1636 | */ |
1637 | static void | 1637 | static void |
@@ -1656,7 +1656,7 @@ bfa_lps_send_login(struct bfa_lps_s *lps) | |||
1656 | bfa_reqq_produce(lps->bfa, lps->reqq); | 1656 | bfa_reqq_produce(lps->bfa, lps->reqq); |
1657 | } | 1657 | } |
1658 | 1658 | ||
1659 | /** | 1659 | /* |
1660 | * send logout request to firmware | 1660 | * send logout request to firmware |
1661 | */ | 1661 | */ |
1662 | static void | 1662 | static void |
@@ -1675,7 +1675,7 @@ bfa_lps_send_logout(struct bfa_lps_s *lps) | |||
1675 | bfa_reqq_produce(lps->bfa, lps->reqq); | 1675 | bfa_reqq_produce(lps->bfa, lps->reqq); |
1676 | } | 1676 | } |
1677 | 1677 | ||
1678 | /** | 1678 | /* |
1679 | * Indirect login completion handler for non-fcs | 1679 | * Indirect login completion handler for non-fcs |
1680 | */ | 1680 | */ |
1681 | static void | 1681 | static void |
@@ -1692,7 +1692,7 @@ bfa_lps_login_comp_cb(void *arg, bfa_boolean_t complete) | |||
1692 | bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); | 1692 | bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); |
1693 | } | 1693 | } |
1694 | 1694 | ||
1695 | /** | 1695 | /* |
1696 | * Login completion handler -- direct call for fcs, queue for others | 1696 | * Login completion handler -- direct call for fcs, queue for others |
1697 | */ | 1697 | */ |
1698 | static void | 1698 | static void |
@@ -1710,7 +1710,7 @@ bfa_lps_login_comp(struct bfa_lps_s *lps) | |||
1710 | bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); | 1710 | bfa_cb_lps_flogi_comp(lps->bfa->bfad, lps->uarg, lps->status); |
1711 | } | 1711 | } |
1712 | 1712 | ||
1713 | /** | 1713 | /* |
1714 | * Indirect logout completion handler for non-fcs | 1714 | * Indirect logout completion handler for non-fcs |
1715 | */ | 1715 | */ |
1716 | static void | 1716 | static void |
@@ -1725,7 +1725,7 @@ bfa_lps_logout_comp_cb(void *arg, bfa_boolean_t complete) | |||
1725 | bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); | 1725 | bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); |
1726 | } | 1726 | } |
1727 | 1727 | ||
1728 | /** | 1728 | /* |
1729 | * Logout completion handler -- direct call for fcs, queue for others | 1729 | * Logout completion handler -- direct call for fcs, queue for others |
1730 | */ | 1730 | */ |
1731 | static void | 1731 | static void |
@@ -1740,7 +1740,7 @@ bfa_lps_logout_comp(struct bfa_lps_s *lps) | |||
1740 | bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); | 1740 | bfa_cb_lps_fdisclogo_comp(lps->bfa->bfad, lps->uarg); |
1741 | } | 1741 | } |
1742 | 1742 | ||
1743 | /** | 1743 | /* |
1744 | * Clear virtual link completion handler for non-fcs | 1744 | * Clear virtual link completion handler for non-fcs |
1745 | */ | 1745 | */ |
1746 | static void | 1746 | static void |
@@ -1756,7 +1756,7 @@ bfa_lps_cvl_event_cb(void *arg, bfa_boolean_t complete) | |||
1756 | bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); | 1756 | bfa_cb_lps_cvl_event(lps->bfa->bfad, lps->uarg); |
1757 | } | 1757 | } |
1758 | 1758 | ||
1759 | /** | 1759 | /* |
1760 | * Received Clear virtual link event --direct call for fcs, | 1760 | * Received Clear virtual link event --direct call for fcs, |
1761 | * queue for others | 1761 | * queue for others |
1762 | */ | 1762 | */ |
@@ -1776,7 +1776,7 @@ bfa_lps_cvl_event(struct bfa_lps_s *lps) | |||
1776 | 1776 | ||
1777 | 1777 | ||
1778 | 1778 | ||
1779 | /** | 1779 | /* |
1780 | * lps_public BFA LPS public functions | 1780 | * lps_public BFA LPS public functions |
1781 | */ | 1781 | */ |
1782 | 1782 | ||
@@ -1789,7 +1789,7 @@ bfa_lps_get_max_vport(struct bfa_s *bfa) | |||
1789 | return BFA_LPS_MAX_VPORTS_SUPP_CB; | 1789 | return BFA_LPS_MAX_VPORTS_SUPP_CB; |
1790 | } | 1790 | } |
1791 | 1791 | ||
1792 | /** | 1792 | /* |
1793 | * Allocate a lport srvice tag. | 1793 | * Allocate a lport srvice tag. |
1794 | */ | 1794 | */ |
1795 | struct bfa_lps_s * | 1795 | struct bfa_lps_s * |
@@ -1809,7 +1809,7 @@ bfa_lps_alloc(struct bfa_s *bfa) | |||
1809 | return lps; | 1809 | return lps; |
1810 | } | 1810 | } |
1811 | 1811 | ||
1812 | /** | 1812 | /* |
1813 | * Free lport service tag. This can be called anytime after an alloc. | 1813 | * Free lport service tag. This can be called anytime after an alloc. |
1814 | * No need to wait for any pending login/logout completions. | 1814 | * No need to wait for any pending login/logout completions. |
1815 | */ | 1815 | */ |
@@ -1819,7 +1819,7 @@ bfa_lps_delete(struct bfa_lps_s *lps) | |||
1819 | bfa_sm_send_event(lps, BFA_LPS_SM_DELETE); | 1819 | bfa_sm_send_event(lps, BFA_LPS_SM_DELETE); |
1820 | } | 1820 | } |
1821 | 1821 | ||
1822 | /** | 1822 | /* |
1823 | * Initiate a lport login. | 1823 | * Initiate a lport login. |
1824 | */ | 1824 | */ |
1825 | void | 1825 | void |
@@ -1836,7 +1836,7 @@ bfa_lps_flogi(struct bfa_lps_s *lps, void *uarg, u8 alpa, u16 pdusz, | |||
1836 | bfa_sm_send_event(lps, BFA_LPS_SM_LOGIN); | 1836 | bfa_sm_send_event(lps, BFA_LPS_SM_LOGIN); |
1837 | } | 1837 | } |
1838 | 1838 | ||
1839 | /** | 1839 | /* |
1840 | * Initiate a lport fdisc login. | 1840 | * Initiate a lport fdisc login. |
1841 | */ | 1841 | */ |
1842 | void | 1842 | void |
@@ -1853,7 +1853,7 @@ bfa_lps_fdisc(struct bfa_lps_s *lps, void *uarg, u16 pdusz, wwn_t pwwn, | |||
1853 | bfa_sm_send_event(lps, BFA_LPS_SM_LOGIN); | 1853 | bfa_sm_send_event(lps, BFA_LPS_SM_LOGIN); |
1854 | } | 1854 | } |
1855 | 1855 | ||
1856 | /** | 1856 | /* |
1857 | * Initiate a lport logout (flogi). | 1857 | * Initiate a lport logout (flogi). |
1858 | */ | 1858 | */ |
1859 | void | 1859 | void |
@@ -1862,7 +1862,7 @@ bfa_lps_flogo(struct bfa_lps_s *lps) | |||
1862 | bfa_sm_send_event(lps, BFA_LPS_SM_LOGOUT); | 1862 | bfa_sm_send_event(lps, BFA_LPS_SM_LOGOUT); |
1863 | } | 1863 | } |
1864 | 1864 | ||
1865 | /** | 1865 | /* |
1866 | * Initiate a lport FDSIC logout. | 1866 | * Initiate a lport FDSIC logout. |
1867 | */ | 1867 | */ |
1868 | void | 1868 | void |
@@ -1871,7 +1871,7 @@ bfa_lps_fdisclogo(struct bfa_lps_s *lps) | |||
1871 | bfa_sm_send_event(lps, BFA_LPS_SM_LOGOUT); | 1871 | bfa_sm_send_event(lps, BFA_LPS_SM_LOGOUT); |
1872 | } | 1872 | } |
1873 | 1873 | ||
1874 | /** | 1874 | /* |
1875 | * Discard a pending login request -- should be called only for | 1875 | * Discard a pending login request -- should be called only for |
1876 | * link down handling. | 1876 | * link down handling. |
1877 | */ | 1877 | */ |
@@ -1881,7 +1881,7 @@ bfa_lps_discard(struct bfa_lps_s *lps) | |||
1881 | bfa_sm_send_event(lps, BFA_LPS_SM_OFFLINE); | 1881 | bfa_sm_send_event(lps, BFA_LPS_SM_OFFLINE); |
1882 | } | 1882 | } |
1883 | 1883 | ||
1884 | /** | 1884 | /* |
1885 | * Return lport services tag | 1885 | * Return lport services tag |
1886 | */ | 1886 | */ |
1887 | u8 | 1887 | u8 |
@@ -1890,7 +1890,7 @@ bfa_lps_get_tag(struct bfa_lps_s *lps) | |||
1890 | return lps->lp_tag; | 1890 | return lps->lp_tag; |
1891 | } | 1891 | } |
1892 | 1892 | ||
1893 | /** | 1893 | /* |
1894 | * Return lport services tag given the pid | 1894 | * Return lport services tag given the pid |
1895 | */ | 1895 | */ |
1896 | u8 | 1896 | u8 |
@@ -1909,7 +1909,7 @@ bfa_lps_get_tag_from_pid(struct bfa_s *bfa, u32 pid) | |||
1909 | return 0; | 1909 | return 0; |
1910 | } | 1910 | } |
1911 | 1911 | ||
1912 | /** | 1912 | /* |
1913 | * return if fabric login indicates support for NPIV | 1913 | * return if fabric login indicates support for NPIV |
1914 | */ | 1914 | */ |
1915 | bfa_boolean_t | 1915 | bfa_boolean_t |
@@ -1918,7 +1918,7 @@ bfa_lps_is_npiv_en(struct bfa_lps_s *lps) | |||
1918 | return lps->npiv_en; | 1918 | return lps->npiv_en; |
1919 | } | 1919 | } |
1920 | 1920 | ||
1921 | /** | 1921 | /* |
1922 | * Return TRUE if attached to F-Port, else return FALSE | 1922 | * Return TRUE if attached to F-Port, else return FALSE |
1923 | */ | 1923 | */ |
1924 | bfa_boolean_t | 1924 | bfa_boolean_t |
@@ -1927,7 +1927,7 @@ bfa_lps_is_fport(struct bfa_lps_s *lps) | |||
1927 | return lps->fport; | 1927 | return lps->fport; |
1928 | } | 1928 | } |
1929 | 1929 | ||
1930 | /** | 1930 | /* |
1931 | * Return TRUE if attached to a Brocade Fabric | 1931 | * Return TRUE if attached to a Brocade Fabric |
1932 | */ | 1932 | */ |
1933 | bfa_boolean_t | 1933 | bfa_boolean_t |
@@ -1935,7 +1935,7 @@ bfa_lps_is_brcd_fabric(struct bfa_lps_s *lps) | |||
1935 | { | 1935 | { |
1936 | return lps->brcd_switch; | 1936 | return lps->brcd_switch; |
1937 | } | 1937 | } |
1938 | /** | 1938 | /* |
1939 | * return TRUE if authentication is required | 1939 | * return TRUE if authentication is required |
1940 | */ | 1940 | */ |
1941 | bfa_boolean_t | 1941 | bfa_boolean_t |
@@ -1950,7 +1950,7 @@ bfa_lps_get_extstatus(struct bfa_lps_s *lps) | |||
1950 | return lps->ext_status; | 1950 | return lps->ext_status; |
1951 | } | 1951 | } |
1952 | 1952 | ||
1953 | /** | 1953 | /* |
1954 | * return port id assigned to the lport | 1954 | * return port id assigned to the lport |
1955 | */ | 1955 | */ |
1956 | u32 | 1956 | u32 |
@@ -1959,7 +1959,7 @@ bfa_lps_get_pid(struct bfa_lps_s *lps) | |||
1959 | return lps->lp_pid; | 1959 | return lps->lp_pid; |
1960 | } | 1960 | } |
1961 | 1961 | ||
1962 | /** | 1962 | /* |
1963 | * return port id assigned to the base lport | 1963 | * return port id assigned to the base lport |
1964 | */ | 1964 | */ |
1965 | u32 | 1965 | u32 |
@@ -1970,7 +1970,7 @@ bfa_lps_get_base_pid(struct bfa_s *bfa) | |||
1970 | return BFA_LPS_FROM_TAG(mod, 0)->lp_pid; | 1970 | return BFA_LPS_FROM_TAG(mod, 0)->lp_pid; |
1971 | } | 1971 | } |
1972 | 1972 | ||
1973 | /** | 1973 | /* |
1974 | * Return bb_credit assigned in FLOGI response | 1974 | * Return bb_credit assigned in FLOGI response |
1975 | */ | 1975 | */ |
1976 | u16 | 1976 | u16 |
@@ -1979,7 +1979,7 @@ bfa_lps_get_peer_bbcredit(struct bfa_lps_s *lps) | |||
1979 | return lps->pr_bbcred; | 1979 | return lps->pr_bbcred; |
1980 | } | 1980 | } |
1981 | 1981 | ||
1982 | /** | 1982 | /* |
1983 | * Return peer port name | 1983 | * Return peer port name |
1984 | */ | 1984 | */ |
1985 | wwn_t | 1985 | wwn_t |
@@ -1988,7 +1988,7 @@ bfa_lps_get_peer_pwwn(struct bfa_lps_s *lps) | |||
1988 | return lps->pr_pwwn; | 1988 | return lps->pr_pwwn; |
1989 | } | 1989 | } |
1990 | 1990 | ||
1991 | /** | 1991 | /* |
1992 | * Return peer node name | 1992 | * Return peer node name |
1993 | */ | 1993 | */ |
1994 | wwn_t | 1994 | wwn_t |
@@ -1997,7 +1997,7 @@ bfa_lps_get_peer_nwwn(struct bfa_lps_s *lps) | |||
1997 | return lps->pr_nwwn; | 1997 | return lps->pr_nwwn; |
1998 | } | 1998 | } |
1999 | 1999 | ||
2000 | /** | 2000 | /* |
2001 | * return reason code if login request is rejected | 2001 | * return reason code if login request is rejected |
2002 | */ | 2002 | */ |
2003 | u8 | 2003 | u8 |
@@ -2006,7 +2006,7 @@ bfa_lps_get_lsrjt_rsn(struct bfa_lps_s *lps) | |||
2006 | return lps->lsrjt_rsn; | 2006 | return lps->lsrjt_rsn; |
2007 | } | 2007 | } |
2008 | 2008 | ||
2009 | /** | 2009 | /* |
2010 | * return explanation code if login request is rejected | 2010 | * return explanation code if login request is rejected |
2011 | */ | 2011 | */ |
2012 | u8 | 2012 | u8 |
@@ -2015,7 +2015,7 @@ bfa_lps_get_lsrjt_expl(struct bfa_lps_s *lps) | |||
2015 | return lps->lsrjt_expl; | 2015 | return lps->lsrjt_expl; |
2016 | } | 2016 | } |
2017 | 2017 | ||
2018 | /** | 2018 | /* |
2019 | * Return fpma/spma MAC for lport | 2019 | * Return fpma/spma MAC for lport |
2020 | */ | 2020 | */ |
2021 | mac_t | 2021 | mac_t |
@@ -2024,7 +2024,7 @@ bfa_lps_get_lp_mac(struct bfa_lps_s *lps) | |||
2024 | return lps->lp_mac; | 2024 | return lps->lp_mac; |
2025 | } | 2025 | } |
2026 | 2026 | ||
2027 | /** | 2027 | /* |
2028 | * LPS firmware message class handler. | 2028 | * LPS firmware message class handler. |
2029 | */ | 2029 | */ |
2030 | void | 2030 | void |
@@ -2054,7 +2054,7 @@ bfa_lps_isr(struct bfa_s *bfa, struct bfi_msg_s *m) | |||
2054 | } | 2054 | } |
2055 | } | 2055 | } |
2056 | 2056 | ||
2057 | /** | 2057 | /* |
2058 | * FC PORT state machine functions | 2058 | * FC PORT state machine functions |
2059 | */ | 2059 | */ |
2060 | static void | 2060 | static void |
@@ -2065,7 +2065,7 @@ bfa_fcport_sm_uninit(struct bfa_fcport_s *fcport, | |||
2065 | 2065 | ||
2066 | switch (event) { | 2066 | switch (event) { |
2067 | case BFA_FCPORT_SM_START: | 2067 | case BFA_FCPORT_SM_START: |
2068 | /** | 2068 | /* |
2069 | * Start event after IOC is configured and BFA is started. | 2069 | * Start event after IOC is configured and BFA is started. |
2070 | */ | 2070 | */ |
2071 | if (bfa_fcport_send_enable(fcport)) { | 2071 | if (bfa_fcport_send_enable(fcport)) { |
@@ -2079,7 +2079,7 @@ bfa_fcport_sm_uninit(struct bfa_fcport_s *fcport, | |||
2079 | break; | 2079 | break; |
2080 | 2080 | ||
2081 | case BFA_FCPORT_SM_ENABLE: | 2081 | case BFA_FCPORT_SM_ENABLE: |
2082 | /** | 2082 | /* |
2083 | * Port is persistently configured to be in enabled state. Do | 2083 | * Port is persistently configured to be in enabled state. Do |
2084 | * not change state. Port enabling is done when START event is | 2084 | * not change state. Port enabling is done when START event is |
2085 | * received. | 2085 | * received. |
@@ -2087,7 +2087,7 @@ bfa_fcport_sm_uninit(struct bfa_fcport_s *fcport, | |||
2087 | break; | 2087 | break; |
2088 | 2088 | ||
2089 | case BFA_FCPORT_SM_DISABLE: | 2089 | case BFA_FCPORT_SM_DISABLE: |
2090 | /** | 2090 | /* |
2091 | * If a port is persistently configured to be disabled, the | 2091 | * If a port is persistently configured to be disabled, the |
2092 | * first event will a port disable request. | 2092 | * first event will a port disable request. |
2093 | */ | 2093 | */ |
@@ -2123,13 +2123,13 @@ bfa_fcport_sm_enabling_qwait(struct bfa_fcport_s *fcport, | |||
2123 | break; | 2123 | break; |
2124 | 2124 | ||
2125 | case BFA_FCPORT_SM_ENABLE: | 2125 | case BFA_FCPORT_SM_ENABLE: |
2126 | /** | 2126 | /* |
2127 | * Already enable is in progress. | 2127 | * Already enable is in progress. |
2128 | */ | 2128 | */ |
2129 | break; | 2129 | break; |
2130 | 2130 | ||
2131 | case BFA_FCPORT_SM_DISABLE: | 2131 | case BFA_FCPORT_SM_DISABLE: |
2132 | /** | 2132 | /* |
2133 | * Just send disable request to firmware when room becomes | 2133 | * Just send disable request to firmware when room becomes |
2134 | * available in request queue. | 2134 | * available in request queue. |
2135 | */ | 2135 | */ |
@@ -2144,7 +2144,7 @@ bfa_fcport_sm_enabling_qwait(struct bfa_fcport_s *fcport, | |||
2144 | 2144 | ||
2145 | case BFA_FCPORT_SM_LINKUP: | 2145 | case BFA_FCPORT_SM_LINKUP: |
2146 | case BFA_FCPORT_SM_LINKDOWN: | 2146 | case BFA_FCPORT_SM_LINKDOWN: |
2147 | /** | 2147 | /* |
2148 | * Possible to get link events when doing back-to-back | 2148 | * Possible to get link events when doing back-to-back |
2149 | * enable/disables. | 2149 | * enable/disables. |
2150 | */ | 2150 | */ |
@@ -2183,7 +2183,7 @@ bfa_fcport_sm_enabling(struct bfa_fcport_s *fcport, | |||
2183 | break; | 2183 | break; |
2184 | 2184 | ||
2185 | case BFA_FCPORT_SM_ENABLE: | 2185 | case BFA_FCPORT_SM_ENABLE: |
2186 | /** | 2186 | /* |
2187 | * Already being enabled. | 2187 | * Already being enabled. |
2188 | */ | 2188 | */ |
2189 | break; | 2189 | break; |
@@ -2256,13 +2256,13 @@ bfa_fcport_sm_linkdown(struct bfa_fcport_s *fcport, | |||
2256 | break; | 2256 | break; |
2257 | 2257 | ||
2258 | case BFA_FCPORT_SM_LINKDOWN: | 2258 | case BFA_FCPORT_SM_LINKDOWN: |
2259 | /** | 2259 | /* |
2260 | * Possible to get link down event. | 2260 | * Possible to get link down event. |
2261 | */ | 2261 | */ |
2262 | break; | 2262 | break; |
2263 | 2263 | ||
2264 | case BFA_FCPORT_SM_ENABLE: | 2264 | case BFA_FCPORT_SM_ENABLE: |
2265 | /** | 2265 | /* |
2266 | * Already enabled. | 2266 | * Already enabled. |
2267 | */ | 2267 | */ |
2268 | break; | 2268 | break; |
@@ -2305,7 +2305,7 @@ bfa_fcport_sm_linkup(struct bfa_fcport_s *fcport, | |||
2305 | 2305 | ||
2306 | switch (event) { | 2306 | switch (event) { |
2307 | case BFA_FCPORT_SM_ENABLE: | 2307 | case BFA_FCPORT_SM_ENABLE: |
2308 | /** | 2308 | /* |
2309 | * Already enabled. | 2309 | * Already enabled. |
2310 | */ | 2310 | */ |
2311 | break; | 2311 | break; |
@@ -2398,14 +2398,14 @@ bfa_fcport_sm_disabling_qwait(struct bfa_fcport_s *fcport, | |||
2398 | break; | 2398 | break; |
2399 | 2399 | ||
2400 | case BFA_FCPORT_SM_DISABLE: | 2400 | case BFA_FCPORT_SM_DISABLE: |
2401 | /** | 2401 | /* |
2402 | * Already being disabled. | 2402 | * Already being disabled. |
2403 | */ | 2403 | */ |
2404 | break; | 2404 | break; |
2405 | 2405 | ||
2406 | case BFA_FCPORT_SM_LINKUP: | 2406 | case BFA_FCPORT_SM_LINKUP: |
2407 | case BFA_FCPORT_SM_LINKDOWN: | 2407 | case BFA_FCPORT_SM_LINKDOWN: |
2408 | /** | 2408 | /* |
2409 | * Possible to get link events when doing back-to-back | 2409 | * Possible to get link events when doing back-to-back |
2410 | * enable/disables. | 2410 | * enable/disables. |
2411 | */ | 2411 | */ |
@@ -2452,7 +2452,7 @@ bfa_fcport_sm_toggling_qwait(struct bfa_fcport_s *fcport, | |||
2452 | 2452 | ||
2453 | case BFA_FCPORT_SM_LINKUP: | 2453 | case BFA_FCPORT_SM_LINKUP: |
2454 | case BFA_FCPORT_SM_LINKDOWN: | 2454 | case BFA_FCPORT_SM_LINKDOWN: |
2455 | /** | 2455 | /* |
2456 | * Possible to get link events when doing back-to-back | 2456 | * Possible to get link events when doing back-to-back |
2457 | * enable/disables. | 2457 | * enable/disables. |
2458 | */ | 2458 | */ |
@@ -2482,7 +2482,7 @@ bfa_fcport_sm_disabling(struct bfa_fcport_s *fcport, | |||
2482 | break; | 2482 | break; |
2483 | 2483 | ||
2484 | case BFA_FCPORT_SM_DISABLE: | 2484 | case BFA_FCPORT_SM_DISABLE: |
2485 | /** | 2485 | /* |
2486 | * Already being disabled. | 2486 | * Already being disabled. |
2487 | */ | 2487 | */ |
2488 | break; | 2488 | break; |
@@ -2507,7 +2507,7 @@ bfa_fcport_sm_disabling(struct bfa_fcport_s *fcport, | |||
2507 | 2507 | ||
2508 | case BFA_FCPORT_SM_LINKUP: | 2508 | case BFA_FCPORT_SM_LINKUP: |
2509 | case BFA_FCPORT_SM_LINKDOWN: | 2509 | case BFA_FCPORT_SM_LINKDOWN: |
2510 | /** | 2510 | /* |
2511 | * Possible to get link events when doing back-to-back | 2511 | * Possible to get link events when doing back-to-back |
2512 | * enable/disables. | 2512 | * enable/disables. |
2513 | */ | 2513 | */ |
@@ -2532,7 +2532,7 @@ bfa_fcport_sm_disabled(struct bfa_fcport_s *fcport, | |||
2532 | 2532 | ||
2533 | switch (event) { | 2533 | switch (event) { |
2534 | case BFA_FCPORT_SM_START: | 2534 | case BFA_FCPORT_SM_START: |
2535 | /** | 2535 | /* |
2536 | * Ignore start event for a port that is disabled. | 2536 | * Ignore start event for a port that is disabled. |
2537 | */ | 2537 | */ |
2538 | break; | 2538 | break; |
@@ -2556,7 +2556,7 @@ bfa_fcport_sm_disabled(struct bfa_fcport_s *fcport, | |||
2556 | break; | 2556 | break; |
2557 | 2557 | ||
2558 | case BFA_FCPORT_SM_DISABLE: | 2558 | case BFA_FCPORT_SM_DISABLE: |
2559 | /** | 2559 | /* |
2560 | * Already disabled. | 2560 | * Already disabled. |
2561 | */ | 2561 | */ |
2562 | break; | 2562 | break; |
@@ -2586,14 +2586,14 @@ bfa_fcport_sm_stopped(struct bfa_fcport_s *fcport, | |||
2586 | break; | 2586 | break; |
2587 | 2587 | ||
2588 | default: | 2588 | default: |
2589 | /** | 2589 | /* |
2590 | * Ignore all other events. | 2590 | * Ignore all other events. |
2591 | */ | 2591 | */ |
2592 | ; | 2592 | ; |
2593 | } | 2593 | } |
2594 | } | 2594 | } |
2595 | 2595 | ||
2596 | /** | 2596 | /* |
2597 | * Port is enabled. IOC is down/failed. | 2597 | * Port is enabled. IOC is down/failed. |
2598 | */ | 2598 | */ |
2599 | static void | 2599 | static void |
@@ -2612,14 +2612,14 @@ bfa_fcport_sm_iocdown(struct bfa_fcport_s *fcport, | |||
2612 | break; | 2612 | break; |
2613 | 2613 | ||
2614 | default: | 2614 | default: |
2615 | /** | 2615 | /* |
2616 | * Ignore all events. | 2616 | * Ignore all events. |
2617 | */ | 2617 | */ |
2618 | ; | 2618 | ; |
2619 | } | 2619 | } |
2620 | } | 2620 | } |
2621 | 2621 | ||
2622 | /** | 2622 | /* |
2623 | * Port is disabled. IOC is down/failed. | 2623 | * Port is disabled. IOC is down/failed. |
2624 | */ | 2624 | */ |
2625 | static void | 2625 | static void |
@@ -2638,14 +2638,14 @@ bfa_fcport_sm_iocfail(struct bfa_fcport_s *fcport, | |||
2638 | break; | 2638 | break; |
2639 | 2639 | ||
2640 | default: | 2640 | default: |
2641 | /** | 2641 | /* |
2642 | * Ignore all events. | 2642 | * Ignore all events. |
2643 | */ | 2643 | */ |
2644 | ; | 2644 | ; |
2645 | } | 2645 | } |
2646 | } | 2646 | } |
2647 | 2647 | ||
2648 | /** | 2648 | /* |
2649 | * Link state is down | 2649 | * Link state is down |
2650 | */ | 2650 | */ |
2651 | static void | 2651 | static void |
@@ -2665,7 +2665,7 @@ bfa_fcport_ln_sm_dn(struct bfa_fcport_ln_s *ln, | |||
2665 | } | 2665 | } |
2666 | } | 2666 | } |
2667 | 2667 | ||
2668 | /** | 2668 | /* |
2669 | * Link state is waiting for down notification | 2669 | * Link state is waiting for down notification |
2670 | */ | 2670 | */ |
2671 | static void | 2671 | static void |
@@ -2688,7 +2688,7 @@ bfa_fcport_ln_sm_dn_nf(struct bfa_fcport_ln_s *ln, | |||
2688 | } | 2688 | } |
2689 | } | 2689 | } |
2690 | 2690 | ||
2691 | /** | 2691 | /* |
2692 | * Link state is waiting for down notification and there is a pending up | 2692 | * Link state is waiting for down notification and there is a pending up |
2693 | */ | 2693 | */ |
2694 | static void | 2694 | static void |
@@ -2712,7 +2712,7 @@ bfa_fcport_ln_sm_dn_up_nf(struct bfa_fcport_ln_s *ln, | |||
2712 | } | 2712 | } |
2713 | } | 2713 | } |
2714 | 2714 | ||
2715 | /** | 2715 | /* |
2716 | * Link state is up | 2716 | * Link state is up |
2717 | */ | 2717 | */ |
2718 | static void | 2718 | static void |
@@ -2732,7 +2732,7 @@ bfa_fcport_ln_sm_up(struct bfa_fcport_ln_s *ln, | |||
2732 | } | 2732 | } |
2733 | } | 2733 | } |
2734 | 2734 | ||
2735 | /** | 2735 | /* |
2736 | * Link state is waiting for up notification | 2736 | * Link state is waiting for up notification |
2737 | */ | 2737 | */ |
2738 | static void | 2738 | static void |
@@ -2755,7 +2755,7 @@ bfa_fcport_ln_sm_up_nf(struct bfa_fcport_ln_s *ln, | |||
2755 | } | 2755 | } |
2756 | } | 2756 | } |
2757 | 2757 | ||
2758 | /** | 2758 | /* |
2759 | * Link state is waiting for up notification and there is a pending down | 2759 | * Link state is waiting for up notification and there is a pending down |
2760 | */ | 2760 | */ |
2761 | static void | 2761 | static void |
@@ -2779,7 +2779,7 @@ bfa_fcport_ln_sm_up_dn_nf(struct bfa_fcport_ln_s *ln, | |||
2779 | } | 2779 | } |
2780 | } | 2780 | } |
2781 | 2781 | ||
2782 | /** | 2782 | /* |
2783 | * Link state is waiting for up notification and there are pending down and up | 2783 | * Link state is waiting for up notification and there are pending down and up |
2784 | */ | 2784 | */ |
2785 | static void | 2785 | static void |
@@ -2805,7 +2805,7 @@ bfa_fcport_ln_sm_up_dn_up_nf(struct bfa_fcport_ln_s *ln, | |||
2805 | 2805 | ||
2806 | 2806 | ||
2807 | 2807 | ||
2808 | /** | 2808 | /* |
2809 | * hal_port_private | 2809 | * hal_port_private |
2810 | */ | 2810 | */ |
2811 | 2811 | ||
@@ -2820,7 +2820,7 @@ __bfa_cb_fcport_event(void *cbarg, bfa_boolean_t complete) | |||
2820 | bfa_sm_send_event(ln, BFA_FCPORT_LN_SM_NOTIFICATION); | 2820 | bfa_sm_send_event(ln, BFA_FCPORT_LN_SM_NOTIFICATION); |
2821 | } | 2821 | } |
2822 | 2822 | ||
2823 | /** | 2823 | /* |
2824 | * Send SCN notification to upper layers. | 2824 | * Send SCN notification to upper layers. |
2825 | * trunk - false if caller is fcport to ignore fcport event in trunked mode | 2825 | * trunk - false if caller is fcport to ignore fcport event in trunked mode |
2826 | */ | 2826 | */ |
@@ -2896,7 +2896,7 @@ bfa_fcport_mem_claim(struct bfa_fcport_s *fcport, struct bfa_meminfo_s *meminfo) | |||
2896 | bfa_meminfo_dma_phys(meminfo) = dm_pa; | 2896 | bfa_meminfo_dma_phys(meminfo) = dm_pa; |
2897 | } | 2897 | } |
2898 | 2898 | ||
2899 | /** | 2899 | /* |
2900 | * Memory initialization. | 2900 | * Memory initialization. |
2901 | */ | 2901 | */ |
2902 | static void | 2902 | static void |
@@ -2917,13 +2917,13 @@ bfa_fcport_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, | |||
2917 | bfa_sm_set_state(fcport, bfa_fcport_sm_uninit); | 2917 | bfa_sm_set_state(fcport, bfa_fcport_sm_uninit); |
2918 | bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn); | 2918 | bfa_sm_set_state(ln, bfa_fcport_ln_sm_dn); |
2919 | 2919 | ||
2920 | /** | 2920 | /* |
2921 | * initialize time stamp for stats reset | 2921 | * initialize time stamp for stats reset |
2922 | */ | 2922 | */ |
2923 | bfa_os_gettimeofday(&tv); | 2923 | bfa_os_gettimeofday(&tv); |
2924 | fcport->stats_reset_time = tv.tv_sec; | 2924 | fcport->stats_reset_time = tv.tv_sec; |
2925 | 2925 | ||
2926 | /** | 2926 | /* |
2927 | * initialize and set default configuration | 2927 | * initialize and set default configuration |
2928 | */ | 2928 | */ |
2929 | port_cfg->topology = BFA_PORT_TOPOLOGY_P2P; | 2929 | port_cfg->topology = BFA_PORT_TOPOLOGY_P2P; |
@@ -2941,7 +2941,7 @@ bfa_fcport_detach(struct bfa_s *bfa) | |||
2941 | { | 2941 | { |
2942 | } | 2942 | } |
2943 | 2943 | ||
2944 | /** | 2944 | /* |
2945 | * Called when IOC is ready. | 2945 | * Called when IOC is ready. |
2946 | */ | 2946 | */ |
2947 | static void | 2947 | static void |
@@ -2950,7 +2950,7 @@ bfa_fcport_start(struct bfa_s *bfa) | |||
2950 | bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_START); | 2950 | bfa_sm_send_event(BFA_FCPORT_MOD(bfa), BFA_FCPORT_SM_START); |
2951 | } | 2951 | } |
2952 | 2952 | ||
2953 | /** | 2953 | /* |
2954 | * Called before IOC is stopped. | 2954 | * Called before IOC is stopped. |
2955 | */ | 2955 | */ |
2956 | static void | 2956 | static void |
@@ -2960,7 +2960,7 @@ bfa_fcport_stop(struct bfa_s *bfa) | |||
2960 | bfa_trunk_iocdisable(bfa); | 2960 | bfa_trunk_iocdisable(bfa); |
2961 | } | 2961 | } |
2962 | 2962 | ||
2963 | /** | 2963 | /* |
2964 | * Called when IOC failure is detected. | 2964 | * Called when IOC failure is detected. |
2965 | */ | 2965 | */ |
2966 | static void | 2966 | static void |
@@ -2988,7 +2988,7 @@ bfa_fcport_update_linkinfo(struct bfa_fcport_s *fcport) | |||
2988 | fcport->qos_attr = pevent->link_state.qos_attr; | 2988 | fcport->qos_attr = pevent->link_state.qos_attr; |
2989 | fcport->qos_vc_attr = pevent->link_state.vc_fcf.qos_vc_attr; | 2989 | fcport->qos_vc_attr = pevent->link_state.vc_fcf.qos_vc_attr; |
2990 | 2990 | ||
2991 | /** | 2991 | /* |
2992 | * update trunk state if applicable | 2992 | * update trunk state if applicable |
2993 | */ | 2993 | */ |
2994 | if (!fcport->cfg.trunked) | 2994 | if (!fcport->cfg.trunked) |
@@ -3008,7 +3008,7 @@ bfa_fcport_reset_linkinfo(struct bfa_fcport_s *fcport) | |||
3008 | fcport->topology = BFA_PORT_TOPOLOGY_NONE; | 3008 | fcport->topology = BFA_PORT_TOPOLOGY_NONE; |
3009 | } | 3009 | } |
3010 | 3010 | ||
3011 | /** | 3011 | /* |
3012 | * Send port enable message to firmware. | 3012 | * Send port enable message to firmware. |
3013 | */ | 3013 | */ |
3014 | static bfa_boolean_t | 3014 | static bfa_boolean_t |
@@ -3016,13 +3016,13 @@ bfa_fcport_send_enable(struct bfa_fcport_s *fcport) | |||
3016 | { | 3016 | { |
3017 | struct bfi_fcport_enable_req_s *m; | 3017 | struct bfi_fcport_enable_req_s *m; |
3018 | 3018 | ||
3019 | /** | 3019 | /* |
3020 | * Increment message tag before queue check, so that responses to old | 3020 | * Increment message tag before queue check, so that responses to old |
3021 | * requests are discarded. | 3021 | * requests are discarded. |
3022 | */ | 3022 | */ |
3023 | fcport->msgtag++; | 3023 | fcport->msgtag++; |
3024 | 3024 | ||
3025 | /** | 3025 | /* |
3026 | * check for room in queue to send request now | 3026 | * check for room in queue to send request now |
3027 | */ | 3027 | */ |
3028 | m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); | 3028 | m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); |
@@ -3043,14 +3043,14 @@ bfa_fcport_send_enable(struct bfa_fcport_s *fcport) | |||
3043 | bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_lo); | 3043 | bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_lo); |
3044 | bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_hi); | 3044 | bfa_trc(fcport->bfa, m->stats_dma_addr.a32.addr_hi); |
3045 | 3045 | ||
3046 | /** | 3046 | /* |
3047 | * queue I/O message to firmware | 3047 | * queue I/O message to firmware |
3048 | */ | 3048 | */ |
3049 | bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); | 3049 | bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); |
3050 | return BFA_TRUE; | 3050 | return BFA_TRUE; |
3051 | } | 3051 | } |
3052 | 3052 | ||
3053 | /** | 3053 | /* |
3054 | * Send port disable message to firmware. | 3054 | * Send port disable message to firmware. |
3055 | */ | 3055 | */ |
3056 | static bfa_boolean_t | 3056 | static bfa_boolean_t |
@@ -3058,13 +3058,13 @@ bfa_fcport_send_disable(struct bfa_fcport_s *fcport) | |||
3058 | { | 3058 | { |
3059 | struct bfi_fcport_req_s *m; | 3059 | struct bfi_fcport_req_s *m; |
3060 | 3060 | ||
3061 | /** | 3061 | /* |
3062 | * Increment message tag before queue check, so that responses to old | 3062 | * Increment message tag before queue check, so that responses to old |
3063 | * requests are discarded. | 3063 | * requests are discarded. |
3064 | */ | 3064 | */ |
3065 | fcport->msgtag++; | 3065 | fcport->msgtag++; |
3066 | 3066 | ||
3067 | /** | 3067 | /* |
3068 | * check for room in queue to send request now | 3068 | * check for room in queue to send request now |
3069 | */ | 3069 | */ |
3070 | m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); | 3070 | m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); |
@@ -3078,7 +3078,7 @@ bfa_fcport_send_disable(struct bfa_fcport_s *fcport) | |||
3078 | bfa_lpuid(fcport->bfa)); | 3078 | bfa_lpuid(fcport->bfa)); |
3079 | m->msgtag = fcport->msgtag; | 3079 | m->msgtag = fcport->msgtag; |
3080 | 3080 | ||
3081 | /** | 3081 | /* |
3082 | * queue I/O message to firmware | 3082 | * queue I/O message to firmware |
3083 | */ | 3083 | */ |
3084 | bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); | 3084 | bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); |
@@ -3103,7 +3103,7 @@ bfa_fcport_send_txcredit(void *port_cbarg) | |||
3103 | struct bfa_fcport_s *fcport = port_cbarg; | 3103 | struct bfa_fcport_s *fcport = port_cbarg; |
3104 | struct bfi_fcport_set_svc_params_req_s *m; | 3104 | struct bfi_fcport_set_svc_params_req_s *m; |
3105 | 3105 | ||
3106 | /** | 3106 | /* |
3107 | * check for room in queue to send request now | 3107 | * check for room in queue to send request now |
3108 | */ | 3108 | */ |
3109 | m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); | 3109 | m = bfa_reqq_next(fcport->bfa, BFA_REQQ_PORT); |
@@ -3116,7 +3116,7 @@ bfa_fcport_send_txcredit(void *port_cbarg) | |||
3116 | bfa_lpuid(fcport->bfa)); | 3116 | bfa_lpuid(fcport->bfa)); |
3117 | m->tx_bbcredit = cpu_to_be16((u16)fcport->cfg.tx_bbcredit); | 3117 | m->tx_bbcredit = cpu_to_be16((u16)fcport->cfg.tx_bbcredit); |
3118 | 3118 | ||
3119 | /** | 3119 | /* |
3120 | * queue I/O message to firmware | 3120 | * queue I/O message to firmware |
3121 | */ | 3121 | */ |
3122 | bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); | 3122 | bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); |
@@ -3235,7 +3235,7 @@ __bfa_cb_fcport_stats_clr(void *cbarg, bfa_boolean_t complete) | |||
3235 | if (complete) { | 3235 | if (complete) { |
3236 | struct bfa_timeval_s tv; | 3236 | struct bfa_timeval_s tv; |
3237 | 3237 | ||
3238 | /** | 3238 | /* |
3239 | * re-initialize time stamp for stats reset | 3239 | * re-initialize time stamp for stats reset |
3240 | */ | 3240 | */ |
3241 | bfa_os_gettimeofday(&tv); | 3241 | bfa_os_gettimeofday(&tv); |
@@ -3289,7 +3289,7 @@ bfa_fcport_send_stats_clear(void *cbarg) | |||
3289 | bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); | 3289 | bfa_reqq_produce(fcport->bfa, BFA_REQQ_PORT); |
3290 | } | 3290 | } |
3291 | 3291 | ||
3292 | /** | 3292 | /* |
3293 | * Handle trunk SCN event from firmware. | 3293 | * Handle trunk SCN event from firmware. |
3294 | */ | 3294 | */ |
3295 | static void | 3295 | static void |
@@ -3310,7 +3310,7 @@ bfa_trunk_scn(struct bfa_fcport_s *fcport, struct bfi_fcport_trunk_scn_s *scn) | |||
3310 | bfa_trc(fcport->bfa, scn->trunk_state); | 3310 | bfa_trc(fcport->bfa, scn->trunk_state); |
3311 | bfa_trc(fcport->bfa, scn->trunk_speed); | 3311 | bfa_trc(fcport->bfa, scn->trunk_speed); |
3312 | 3312 | ||
3313 | /** | 3313 | /* |
3314 | * Save off new state for trunk attribute query | 3314 | * Save off new state for trunk attribute query |
3315 | */ | 3315 | */ |
3316 | state_prev = trunk->attr.state; | 3316 | state_prev = trunk->attr.state; |
@@ -3358,7 +3358,7 @@ bfa_trunk_scn(struct bfa_fcport_s *fcport, struct bfi_fcport_trunk_scn_s *scn) | |||
3358 | BFA_PL_EID_TRUNK_SCN, 0, "Trunk down"); | 3358 | BFA_PL_EID_TRUNK_SCN, 0, "Trunk down"); |
3359 | } | 3359 | } |
3360 | 3360 | ||
3361 | /** | 3361 | /* |
3362 | * Notify upper layers if trunk state changed. | 3362 | * Notify upper layers if trunk state changed. |
3363 | */ | 3363 | */ |
3364 | if ((state_prev != trunk->attr.state) || | 3364 | if ((state_prev != trunk->attr.state) || |
@@ -3374,7 +3374,7 @@ bfa_trunk_iocdisable(struct bfa_s *bfa) | |||
3374 | struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); | 3374 | struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); |
3375 | int i = 0; | 3375 | int i = 0; |
3376 | 3376 | ||
3377 | /** | 3377 | /* |
3378 | * In trunked mode, notify upper layers that link is down | 3378 | * In trunked mode, notify upper layers that link is down |
3379 | */ | 3379 | */ |
3380 | if (fcport->cfg.trunked) { | 3380 | if (fcport->cfg.trunked) { |
@@ -3398,11 +3398,11 @@ bfa_trunk_iocdisable(struct bfa_s *bfa) | |||
3398 | 3398 | ||
3399 | 3399 | ||
3400 | 3400 | ||
3401 | /** | 3401 | /* |
3402 | * hal_port_public | 3402 | * hal_port_public |
3403 | */ | 3403 | */ |
3404 | 3404 | ||
3405 | /** | 3405 | /* |
3406 | * Called to initialize port attributes | 3406 | * Called to initialize port attributes |
3407 | */ | 3407 | */ |
3408 | void | 3408 | void |
@@ -3410,7 +3410,7 @@ bfa_fcport_init(struct bfa_s *bfa) | |||
3410 | { | 3410 | { |
3411 | struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); | 3411 | struct bfa_fcport_s *fcport = BFA_FCPORT_MOD(bfa); |
3412 | 3412 | ||
3413 | /** | 3413 | /* |
3414 | * Initialize port attributes from IOC hardware data. | 3414 | * Initialize port attributes from IOC hardware data. |
3415 | */ | 3415 | */ |
3416 | bfa_fcport_set_wwns(fcport); | 3416 | bfa_fcport_set_wwns(fcport); |
@@ -3424,7 +3424,7 @@ bfa_fcport_init(struct bfa_s *bfa) | |||
3424 | bfa_assert(fcport->speed_sup); | 3424 | bfa_assert(fcport->speed_sup); |
3425 | } | 3425 | } |
3426 | 3426 | ||
3427 | /** | 3427 | /* |
3428 | * Firmware message handler. | 3428 | * Firmware message handler. |
3429 | */ | 3429 | */ |
3430 | void | 3430 | void |
@@ -3505,11 +3505,11 @@ bfa_fcport_isr(struct bfa_s *bfa, struct bfi_msg_s *msg) | |||
3505 | 3505 | ||
3506 | 3506 | ||
3507 | 3507 | ||
3508 | /** | 3508 | /* |
3509 | * hal_port_api | 3509 | * hal_port_api |
3510 | */ | 3510 | */ |
3511 | 3511 | ||
3512 | /** | 3512 | /* |
3513 | * Registered callback for port events. | 3513 | * Registered callback for port events. |
3514 | */ | 3514 | */ |
3515 | void | 3515 | void |
@@ -3550,7 +3550,7 @@ bfa_fcport_disable(struct bfa_s *bfa) | |||
3550 | return BFA_STATUS_OK; | 3550 | return BFA_STATUS_OK; |
3551 | } | 3551 | } |
3552 | 3552 | ||
3553 | /** | 3553 | /* |
3554 | * Configure port speed. | 3554 | * Configure port speed. |
3555 | */ | 3555 | */ |
3556 | bfa_status_t | 3556 | bfa_status_t |
@@ -3572,7 +3572,7 @@ bfa_fcport_cfg_speed(struct bfa_s *bfa, enum bfa_port_speed speed) | |||
3572 | return BFA_STATUS_OK; | 3572 | return BFA_STATUS_OK; |
3573 | } | 3573 | } |
3574 | 3574 | ||
3575 | /** | 3575 | /* |
3576 | * Get current speed. | 3576 | * Get current speed. |
3577 | */ | 3577 | */ |
3578 | enum bfa_port_speed | 3578 | enum bfa_port_speed |
@@ -3583,7 +3583,7 @@ bfa_fcport_get_speed(struct bfa_s *bfa) | |||
3583 | return fcport->speed; | 3583 | return fcport->speed; |
3584 | } | 3584 | } |
3585 | 3585 | ||
3586 | /** | 3586 | /* |
3587 | * Configure port topology. | 3587 | * Configure port topology. |
3588 | */ | 3588 | */ |
3589 | bfa_status_t | 3589 | bfa_status_t |
@@ -3608,7 +3608,7 @@ bfa_fcport_cfg_topology(struct bfa_s *bfa, enum bfa_port_topology topology) | |||
3608 | return BFA_STATUS_OK; | 3608 | return BFA_STATUS_OK; |
3609 | } | 3609 | } |
3610 | 3610 | ||
3611 | /** | 3611 | /* |
3612 | * Get current topology. | 3612 | * Get current topology. |
3613 | */ | 3613 | */ |
3614 | enum bfa_port_topology | 3614 | enum bfa_port_topology |
@@ -3708,7 +3708,7 @@ bfa_fcport_set_tx_bbcredit(struct bfa_s *bfa, u16 tx_bbcredit) | |||
3708 | bfa_fcport_send_txcredit(fcport); | 3708 | bfa_fcport_send_txcredit(fcport); |
3709 | } | 3709 | } |
3710 | 3710 | ||
3711 | /** | 3711 | /* |
3712 | * Get port attributes. | 3712 | * Get port attributes. |
3713 | */ | 3713 | */ |
3714 | 3714 | ||
@@ -3768,7 +3768,7 @@ bfa_fcport_get_attr(struct bfa_s *bfa, struct bfa_port_attr_s *attr) | |||
3768 | 3768 | ||
3769 | #define BFA_FCPORT_STATS_TOV 1000 | 3769 | #define BFA_FCPORT_STATS_TOV 1000 |
3770 | 3770 | ||
3771 | /** | 3771 | /* |
3772 | * Fetch port statistics (FCQoS or FCoE). | 3772 | * Fetch port statistics (FCQoS or FCoE). |
3773 | */ | 3773 | */ |
3774 | bfa_status_t | 3774 | bfa_status_t |
@@ -3794,7 +3794,7 @@ bfa_fcport_get_stats(struct bfa_s *bfa, union bfa_fcport_stats_u *stats, | |||
3794 | return BFA_STATUS_OK; | 3794 | return BFA_STATUS_OK; |
3795 | } | 3795 | } |
3796 | 3796 | ||
3797 | /** | 3797 | /* |
3798 | * Reset port statistics (FCQoS or FCoE). | 3798 | * Reset port statistics (FCQoS or FCoE). |
3799 | */ | 3799 | */ |
3800 | bfa_status_t | 3800 | bfa_status_t |
@@ -3818,7 +3818,7 @@ bfa_fcport_clear_stats(struct bfa_s *bfa, bfa_cb_port_t cbfn, void *cbarg) | |||
3818 | return BFA_STATUS_OK; | 3818 | return BFA_STATUS_OK; |
3819 | } | 3819 | } |
3820 | 3820 | ||
3821 | /** | 3821 | /* |
3822 | * Fetch FCQoS port statistics | 3822 | * Fetch FCQoS port statistics |
3823 | */ | 3823 | */ |
3824 | bfa_status_t | 3824 | bfa_status_t |
@@ -3831,7 +3831,7 @@ bfa_fcport_get_qos_stats(struct bfa_s *bfa, union bfa_fcport_stats_u *stats, | |||
3831 | return bfa_fcport_get_stats(bfa, stats, cbfn, cbarg); | 3831 | return bfa_fcport_get_stats(bfa, stats, cbfn, cbarg); |
3832 | } | 3832 | } |
3833 | 3833 | ||
3834 | /** | 3834 | /* |
3835 | * Reset FCoE port statistics | 3835 | * Reset FCoE port statistics |
3836 | */ | 3836 | */ |
3837 | bfa_status_t | 3837 | bfa_status_t |
@@ -3843,7 +3843,7 @@ bfa_fcport_clear_qos_stats(struct bfa_s *bfa, bfa_cb_port_t cbfn, void *cbarg) | |||
3843 | return bfa_fcport_clear_stats(bfa, cbfn, cbarg); | 3843 | return bfa_fcport_clear_stats(bfa, cbfn, cbarg); |
3844 | } | 3844 | } |
3845 | 3845 | ||
3846 | /** | 3846 | /* |
3847 | * Fetch FCQoS port statistics | 3847 | * Fetch FCQoS port statistics |
3848 | */ | 3848 | */ |
3849 | bfa_status_t | 3849 | bfa_status_t |
@@ -3856,7 +3856,7 @@ bfa_fcport_get_fcoe_stats(struct bfa_s *bfa, union bfa_fcport_stats_u *stats, | |||
3856 | return bfa_fcport_get_stats(bfa, stats, cbfn, cbarg); | 3856 | return bfa_fcport_get_stats(bfa, stats, cbfn, cbarg); |
3857 | } | 3857 | } |
3858 | 3858 | ||
3859 | /** | 3859 | /* |
3860 | * Reset FCoE port statistics | 3860 | * Reset FCoE port statistics |
3861 | */ | 3861 | */ |
3862 | bfa_status_t | 3862 | bfa_status_t |
@@ -3902,7 +3902,7 @@ bfa_fcport_qos_get_vc_attr(struct bfa_s *bfa, | |||
3902 | } | 3902 | } |
3903 | } | 3903 | } |
3904 | 3904 | ||
3905 | /** | 3905 | /* |
3906 | * Fetch port attributes. | 3906 | * Fetch port attributes. |
3907 | */ | 3907 | */ |
3908 | bfa_boolean_t | 3908 | bfa_boolean_t |
@@ -3937,7 +3937,7 @@ bfa_fcport_cfg_qos(struct bfa_s *bfa, bfa_boolean_t on_off) | |||
3937 | 3937 | ||
3938 | if (ioc_type == BFA_IOC_TYPE_FC) { | 3938 | if (ioc_type == BFA_IOC_TYPE_FC) { |
3939 | fcport->cfg.qos_enabled = on_off; | 3939 | fcport->cfg.qos_enabled = on_off; |
3940 | /** | 3940 | /* |
3941 | * Notify fcpim of the change in QoS state | 3941 | * Notify fcpim of the change in QoS state |
3942 | */ | 3942 | */ |
3943 | bfa_fcpim_update_ioredirect(bfa); | 3943 | bfa_fcpim_update_ioredirect(bfa); |
@@ -3957,7 +3957,7 @@ bfa_fcport_cfg_ratelim(struct bfa_s *bfa, bfa_boolean_t on_off) | |||
3957 | fcport->cfg.trl_def_speed = BFA_PORT_SPEED_1GBPS; | 3957 | fcport->cfg.trl_def_speed = BFA_PORT_SPEED_1GBPS; |
3958 | } | 3958 | } |
3959 | 3959 | ||
3960 | /** | 3960 | /* |
3961 | * Configure default minimum ratelim speed | 3961 | * Configure default minimum ratelim speed |
3962 | */ | 3962 | */ |
3963 | bfa_status_t | 3963 | bfa_status_t |
@@ -3978,7 +3978,7 @@ bfa_fcport_cfg_ratelim_speed(struct bfa_s *bfa, enum bfa_port_speed speed) | |||
3978 | return BFA_STATUS_OK; | 3978 | return BFA_STATUS_OK; |
3979 | } | 3979 | } |
3980 | 3980 | ||
3981 | /** | 3981 | /* |
3982 | * Get default minimum ratelim speed | 3982 | * Get default minimum ratelim speed |
3983 | */ | 3983 | */ |
3984 | enum bfa_port_speed | 3984 | enum bfa_port_speed |
@@ -4093,10 +4093,10 @@ bfa_trunk_disable(struct bfa_s *bfa) | |||
4093 | } | 4093 | } |
4094 | 4094 | ||
4095 | 4095 | ||
4096 | /** | 4096 | /* |
4097 | * Rport State machine functions | 4097 | * Rport State machine functions |
4098 | */ | 4098 | */ |
4099 | /** | 4099 | /* |
4100 | * Beginning state, only online event expected. | 4100 | * Beginning state, only online event expected. |
4101 | */ | 4101 | */ |
4102 | static void | 4102 | static void |
@@ -4149,7 +4149,7 @@ bfa_rport_sm_created(struct bfa_rport_s *rp, enum bfa_rport_event event) | |||
4149 | } | 4149 | } |
4150 | } | 4150 | } |
4151 | 4151 | ||
4152 | /** | 4152 | /* |
4153 | * Waiting for rport create response from firmware. | 4153 | * Waiting for rport create response from firmware. |
4154 | */ | 4154 | */ |
4155 | static void | 4155 | static void |
@@ -4186,7 +4186,7 @@ bfa_rport_sm_fwcreate(struct bfa_rport_s *rp, enum bfa_rport_event event) | |||
4186 | } | 4186 | } |
4187 | } | 4187 | } |
4188 | 4188 | ||
4189 | /** | 4189 | /* |
4190 | * Request queue is full, awaiting queue resume to send create request. | 4190 | * Request queue is full, awaiting queue resume to send create request. |
4191 | */ | 4191 | */ |
4192 | static void | 4192 | static void |
@@ -4227,7 +4227,7 @@ bfa_rport_sm_fwcreate_qfull(struct bfa_rport_s *rp, enum bfa_rport_event event) | |||
4227 | } | 4227 | } |
4228 | } | 4228 | } |
4229 | 4229 | ||
4230 | /** | 4230 | /* |
4231 | * Online state - normal parking state. | 4231 | * Online state - normal parking state. |
4232 | */ | 4232 | */ |
4233 | static void | 4233 | static void |
@@ -4295,7 +4295,7 @@ bfa_rport_sm_online(struct bfa_rport_s *rp, enum bfa_rport_event event) | |||
4295 | } | 4295 | } |
4296 | } | 4296 | } |
4297 | 4297 | ||
4298 | /** | 4298 | /* |
4299 | * Firmware rport is being deleted - awaiting f/w response. | 4299 | * Firmware rport is being deleted - awaiting f/w response. |
4300 | */ | 4300 | */ |
4301 | static void | 4301 | static void |
@@ -4358,7 +4358,7 @@ bfa_rport_sm_fwdelete_qfull(struct bfa_rport_s *rp, enum bfa_rport_event event) | |||
4358 | } | 4358 | } |
4359 | } | 4359 | } |
4360 | 4360 | ||
4361 | /** | 4361 | /* |
4362 | * Offline state. | 4362 | * Offline state. |
4363 | */ | 4363 | */ |
4364 | static void | 4364 | static void |
@@ -4393,7 +4393,7 @@ bfa_rport_sm_offline(struct bfa_rport_s *rp, enum bfa_rport_event event) | |||
4393 | } | 4393 | } |
4394 | } | 4394 | } |
4395 | 4395 | ||
4396 | /** | 4396 | /* |
4397 | * Rport is deleted, waiting for firmware response to delete. | 4397 | * Rport is deleted, waiting for firmware response to delete. |
4398 | */ | 4398 | */ |
4399 | static void | 4399 | static void |
@@ -4445,7 +4445,7 @@ bfa_rport_sm_deleting_qfull(struct bfa_rport_s *rp, enum bfa_rport_event event) | |||
4445 | } | 4445 | } |
4446 | } | 4446 | } |
4447 | 4447 | ||
4448 | /** | 4448 | /* |
4449 | * Waiting for rport create response from firmware. A delete is pending. | 4449 | * Waiting for rport create response from firmware. A delete is pending. |
4450 | */ | 4450 | */ |
4451 | static void | 4451 | static void |
@@ -4476,7 +4476,7 @@ bfa_rport_sm_delete_pending(struct bfa_rport_s *rp, | |||
4476 | } | 4476 | } |
4477 | } | 4477 | } |
4478 | 4478 | ||
4479 | /** | 4479 | /* |
4480 | * Waiting for rport create response from firmware. Rport offline is pending. | 4480 | * Waiting for rport create response from firmware. Rport offline is pending. |
4481 | */ | 4481 | */ |
4482 | static void | 4482 | static void |
@@ -4511,7 +4511,7 @@ bfa_rport_sm_offline_pending(struct bfa_rport_s *rp, | |||
4511 | } | 4511 | } |
4512 | } | 4512 | } |
4513 | 4513 | ||
4514 | /** | 4514 | /* |
4515 | * IOC h/w failed. | 4515 | * IOC h/w failed. |
4516 | */ | 4516 | */ |
4517 | static void | 4517 | static void |
@@ -4551,7 +4551,7 @@ bfa_rport_sm_iocdisable(struct bfa_rport_s *rp, enum bfa_rport_event event) | |||
4551 | 4551 | ||
4552 | 4552 | ||
4553 | 4553 | ||
4554 | /** | 4554 | /* |
4555 | * bfa_rport_private BFA rport private functions | 4555 | * bfa_rport_private BFA rport private functions |
4556 | */ | 4556 | */ |
4557 | 4557 | ||
@@ -4615,7 +4615,7 @@ bfa_rport_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, | |||
4615 | rp->rport_tag = i; | 4615 | rp->rport_tag = i; |
4616 | bfa_sm_set_state(rp, bfa_rport_sm_uninit); | 4616 | bfa_sm_set_state(rp, bfa_rport_sm_uninit); |
4617 | 4617 | ||
4618 | /** | 4618 | /* |
4619 | * - is unused | 4619 | * - is unused |
4620 | */ | 4620 | */ |
4621 | if (i) | 4621 | if (i) |
@@ -4624,7 +4624,7 @@ bfa_rport_attach(struct bfa_s *bfa, void *bfad, struct bfa_iocfc_cfg_s *cfg, | |||
4624 | bfa_reqq_winit(&rp->reqq_wait, bfa_rport_qresume, rp); | 4624 | bfa_reqq_winit(&rp->reqq_wait, bfa_rport_qresume, rp); |
4625 | } | 4625 | } |
4626 | 4626 | ||
4627 | /** | 4627 | /* |
4628 | * consume memory | 4628 | * consume memory |
4629 | */ | 4629 | */ |
4630 | bfa_meminfo_kva(meminfo) = (u8 *) rp; | 4630 | bfa_meminfo_kva(meminfo) = (u8 *) rp; |
@@ -4685,7 +4685,7 @@ bfa_rport_send_fwcreate(struct bfa_rport_s *rp) | |||
4685 | { | 4685 | { |
4686 | struct bfi_rport_create_req_s *m; | 4686 | struct bfi_rport_create_req_s *m; |
4687 | 4687 | ||
4688 | /** | 4688 | /* |
4689 | * check for room in queue to send request now | 4689 | * check for room in queue to send request now |
4690 | */ | 4690 | */ |
4691 | m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); | 4691 | m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); |
@@ -4706,7 +4706,7 @@ bfa_rport_send_fwcreate(struct bfa_rport_s *rp) | |||
4706 | m->vf_id = rp->rport_info.vf_id; | 4706 | m->vf_id = rp->rport_info.vf_id; |
4707 | m->cisc = rp->rport_info.cisc; | 4707 | m->cisc = rp->rport_info.cisc; |
4708 | 4708 | ||
4709 | /** | 4709 | /* |
4710 | * queue I/O message to firmware | 4710 | * queue I/O message to firmware |
4711 | */ | 4711 | */ |
4712 | bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT); | 4712 | bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT); |
@@ -4718,7 +4718,7 @@ bfa_rport_send_fwdelete(struct bfa_rport_s *rp) | |||
4718 | { | 4718 | { |
4719 | struct bfi_rport_delete_req_s *m; | 4719 | struct bfi_rport_delete_req_s *m; |
4720 | 4720 | ||
4721 | /** | 4721 | /* |
4722 | * check for room in queue to send request now | 4722 | * check for room in queue to send request now |
4723 | */ | 4723 | */ |
4724 | m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); | 4724 | m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); |
@@ -4731,7 +4731,7 @@ bfa_rport_send_fwdelete(struct bfa_rport_s *rp) | |||
4731 | bfa_lpuid(rp->bfa)); | 4731 | bfa_lpuid(rp->bfa)); |
4732 | m->fw_handle = rp->fw_handle; | 4732 | m->fw_handle = rp->fw_handle; |
4733 | 4733 | ||
4734 | /** | 4734 | /* |
4735 | * queue I/O message to firmware | 4735 | * queue I/O message to firmware |
4736 | */ | 4736 | */ |
4737 | bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT); | 4737 | bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT); |
@@ -4743,7 +4743,7 @@ bfa_rport_send_fwspeed(struct bfa_rport_s *rp) | |||
4743 | { | 4743 | { |
4744 | struct bfa_rport_speed_req_s *m; | 4744 | struct bfa_rport_speed_req_s *m; |
4745 | 4745 | ||
4746 | /** | 4746 | /* |
4747 | * check for room in queue to send request now | 4747 | * check for room in queue to send request now |
4748 | */ | 4748 | */ |
4749 | m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); | 4749 | m = bfa_reqq_next(rp->bfa, BFA_REQQ_RPORT); |
@@ -4757,7 +4757,7 @@ bfa_rport_send_fwspeed(struct bfa_rport_s *rp) | |||
4757 | m->fw_handle = rp->fw_handle; | 4757 | m->fw_handle = rp->fw_handle; |
4758 | m->speed = (u8)rp->rport_info.speed; | 4758 | m->speed = (u8)rp->rport_info.speed; |
4759 | 4759 | ||
4760 | /** | 4760 | /* |
4761 | * queue I/O message to firmware | 4761 | * queue I/O message to firmware |
4762 | */ | 4762 | */ |
4763 | bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT); | 4763 | bfa_reqq_produce(rp->bfa, BFA_REQQ_RPORT); |
@@ -4766,11 +4766,11 @@ bfa_rport_send_fwspeed(struct bfa_rport_s *rp) | |||
4766 | 4766 | ||
4767 | 4767 | ||
4768 | 4768 | ||
4769 | /** | 4769 | /* |
4770 | * bfa_rport_public | 4770 | * bfa_rport_public |
4771 | */ | 4771 | */ |
4772 | 4772 | ||
4773 | /** | 4773 | /* |
4774 | * Rport interrupt processing. | 4774 | * Rport interrupt processing. |
4775 | */ | 4775 | */ |
4776 | void | 4776 | void |
@@ -4812,7 +4812,7 @@ bfa_rport_isr(struct bfa_s *bfa, struct bfi_msg_s *m) | |||
4812 | 4812 | ||
4813 | 4813 | ||
4814 | 4814 | ||
4815 | /** | 4815 | /* |
4816 | * bfa_rport_api | 4816 | * bfa_rport_api |
4817 | */ | 4817 | */ |
4818 | 4818 | ||
@@ -4847,7 +4847,7 @@ bfa_rport_online(struct bfa_rport_s *rport, struct bfa_rport_info_s *rport_info) | |||
4847 | { | 4847 | { |
4848 | bfa_assert(rport_info->max_frmsz != 0); | 4848 | bfa_assert(rport_info->max_frmsz != 0); |
4849 | 4849 | ||
4850 | /** | 4850 | /* |
4851 | * Some JBODs are seen to be not setting PDU size correctly in PLOGI | 4851 | * Some JBODs are seen to be not setting PDU size correctly in PLOGI |
4852 | * responses. Default to minimum size. | 4852 | * responses. Default to minimum size. |
4853 | */ | 4853 | */ |
@@ -4899,11 +4899,11 @@ bfa_rport_clear_stats(struct bfa_rport_s *rport) | |||
4899 | } | 4899 | } |
4900 | 4900 | ||
4901 | 4901 | ||
4902 | /** | 4902 | /* |
4903 | * SGPG related functions | 4903 | * SGPG related functions |
4904 | */ | 4904 | */ |
4905 | 4905 | ||
4906 | /** | 4906 | /* |
4907 | * Compute and return memory needed by FCP(im) module. | 4907 | * Compute and return memory needed by FCP(im) module. |
4908 | */ | 4908 | */ |
4909 | static void | 4909 | static void |
@@ -4995,7 +4995,7 @@ bfa_sgpg_iocdisable(struct bfa_s *bfa) | |||
4995 | 4995 | ||
4996 | 4996 | ||
4997 | 4997 | ||
4998 | /** | 4998 | /* |
4999 | * hal_sgpg_public BFA SGPG public functions | 4999 | * hal_sgpg_public BFA SGPG public functions |
5000 | */ | 5000 | */ |
5001 | 5001 | ||
@@ -5037,7 +5037,7 @@ bfa_sgpg_mfree(struct bfa_s *bfa, struct list_head *sgpg_q, int nsgpg) | |||
5037 | if (list_empty(&mod->sgpg_wait_q)) | 5037 | if (list_empty(&mod->sgpg_wait_q)) |
5038 | return; | 5038 | return; |
5039 | 5039 | ||
5040 | /** | 5040 | /* |
5041 | * satisfy as many waiting requests as possible | 5041 | * satisfy as many waiting requests as possible |
5042 | */ | 5042 | */ |
5043 | do { | 5043 | do { |
@@ -5065,11 +5065,11 @@ bfa_sgpg_wait(struct bfa_s *bfa, struct bfa_sgpg_wqe_s *wqe, int nsgpg) | |||
5065 | 5065 | ||
5066 | wqe->nsgpg_total = wqe->nsgpg = nsgpg; | 5066 | wqe->nsgpg_total = wqe->nsgpg = nsgpg; |
5067 | 5067 | ||
5068 | /** | 5068 | /* |
5069 | * allocate any left to this one first | 5069 | * allocate any left to this one first |
5070 | */ | 5070 | */ |
5071 | if (mod->free_sgpgs) { | 5071 | if (mod->free_sgpgs) { |
5072 | /** | 5072 | /* |
5073 | * no one else is waiting for SGPG | 5073 | * no one else is waiting for SGPG |
5074 | */ | 5074 | */ |
5075 | bfa_assert(list_empty(&mod->sgpg_wait_q)); | 5075 | bfa_assert(list_empty(&mod->sgpg_wait_q)); |
@@ -5103,7 +5103,7 @@ bfa_sgpg_winit(struct bfa_sgpg_wqe_s *wqe, void (*cbfn) (void *cbarg), | |||
5103 | wqe->cbarg = cbarg; | 5103 | wqe->cbarg = cbarg; |
5104 | } | 5104 | } |
5105 | 5105 | ||
5106 | /** | 5106 | /* |
5107 | * UF related functions | 5107 | * UF related functions |
5108 | */ | 5108 | */ |
5109 | /* | 5109 | /* |
@@ -5171,7 +5171,7 @@ claim_uf_post_msgs(struct bfa_uf_mod_s *ufm, struct bfa_meminfo_s *mi) | |||
5171 | bfa_sge_to_be(&sge[1]); | 5171 | bfa_sge_to_be(&sge[1]); |
5172 | } | 5172 | } |
5173 | 5173 | ||
5174 | /** | 5174 | /* |
5175 | * advance pointer beyond consumed memory | 5175 | * advance pointer beyond consumed memory |
5176 | */ | 5176 | */ |
5177 | bfa_meminfo_kva(mi) = (u8 *) uf_bp_msg; | 5177 | bfa_meminfo_kva(mi) = (u8 *) uf_bp_msg; |
@@ -5201,7 +5201,7 @@ claim_ufs(struct bfa_uf_mod_s *ufm, struct bfa_meminfo_s *mi) | |||
5201 | list_add_tail(&uf->qe, &ufm->uf_free_q); | 5201 | list_add_tail(&uf->qe, &ufm->uf_free_q); |
5202 | } | 5202 | } |
5203 | 5203 | ||
5204 | /** | 5204 | /* |
5205 | * advance memory pointer | 5205 | * advance memory pointer |
5206 | */ | 5206 | */ |
5207 | bfa_meminfo_kva(mi) = (u8 *) uf; | 5207 | bfa_meminfo_kva(mi) = (u8 *) uf; |
@@ -5363,11 +5363,11 @@ bfa_uf_start(struct bfa_s *bfa) | |||
5363 | 5363 | ||
5364 | 5364 | ||
5365 | 5365 | ||
5366 | /** | 5366 | /* |
5367 | * hal_uf_api | 5367 | * hal_uf_api |
5368 | */ | 5368 | */ |
5369 | 5369 | ||
5370 | /** | 5370 | /* |
5371 | * Register handler for all unsolicted recieve frames. | 5371 | * Register handler for all unsolicted recieve frames. |
5372 | * | 5372 | * |
5373 | * @param[in] bfa BFA instance | 5373 | * @param[in] bfa BFA instance |
@@ -5383,7 +5383,7 @@ bfa_uf_recv_register(struct bfa_s *bfa, bfa_cb_uf_recv_t ufrecv, void *cbarg) | |||
5383 | ufm->cbarg = cbarg; | 5383 | ufm->cbarg = cbarg; |
5384 | } | 5384 | } |
5385 | 5385 | ||
5386 | /** | 5386 | /* |
5387 | * Free an unsolicited frame back to BFA. | 5387 | * Free an unsolicited frame back to BFA. |
5388 | * | 5388 | * |
5389 | * @param[in] uf unsolicited frame to be freed | 5389 | * @param[in] uf unsolicited frame to be freed |
@@ -5399,7 +5399,7 @@ bfa_uf_free(struct bfa_uf_s *uf) | |||
5399 | 5399 | ||
5400 | 5400 | ||
5401 | 5401 | ||
5402 | /** | 5402 | /* |
5403 | * uf_pub BFA uf module public functions | 5403 | * uf_pub BFA uf module public functions |
5404 | */ | 5404 | */ |
5405 | void | 5405 | void |