Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] bfa: remove unused defintions and misc cleanups

This patch removes unused functions, data strucutres, and definitions. It
also includes misc comment and formatting cleanups.

Signed-off-by: Jing Huang <huangj@brocade.com>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>

authored by

Jing Huang and committed by
James Bottomley
8f4bfadd 2f2f40a4

+158 -514
-2
drivers/scsi/bfa/bfa.h
··· 334 334 void bfa_iocfc_get_bootwwns(struct bfa_s *bfa, u8 *nwwns, wwn_t *wwns); 335 335 wwn_t bfa_iocfc_get_pwwn(struct bfa_s *bfa); 336 336 wwn_t bfa_iocfc_get_nwwn(struct bfa_s *bfa); 337 - void bfa_iocfc_get_pbc_boot_cfg(struct bfa_s *bfa, 338 - struct bfa_boot_pbc_s *pbcfg); 339 337 int bfa_iocfc_get_pbc_vports(struct bfa_s *bfa, 340 338 struct bfi_pbc_vport_s *pbc_vport); 341 339
-12
drivers/scsi/bfa/bfa_core.c
··· 998 998 memcpy(wwns, cfgrsp->bootwwns.wwn, sizeof(cfgrsp->bootwwns.wwn)); 999 999 } 1000 1000 1001 - void 1002 - bfa_iocfc_get_pbc_boot_cfg(struct bfa_s *bfa, struct bfa_boot_pbc_s *pbcfg) 1003 - { 1004 - struct bfa_iocfc_s *iocfc = &bfa->iocfc; 1005 - struct bfi_iocfc_cfgrsp_s *cfgrsp = iocfc->cfgrsp; 1006 - 1007 - pbcfg->enable = cfgrsp->pbc_cfg.boot_enabled; 1008 - pbcfg->nbluns = cfgrsp->pbc_cfg.nbluns; 1009 - pbcfg->speed = cfgrsp->pbc_cfg.port_speed; 1010 - memcpy(pbcfg->pblun, cfgrsp->pbc_cfg.blun, sizeof(pbcfg->pblun)); 1011 - } 1012 - 1013 1001 int 1014 1002 bfa_iocfc_get_pbc_vports(struct bfa_s *bfa, struct bfi_pbc_vport_s *pbc_vport) 1015 1003 {
+140 -448
drivers/scsi/bfa/bfa_fc.h
··· 24 24 25 25 #define WWN_NULL (0) 26 26 #define FC_SYMNAME_MAX 256 /* max name server symbolic name size */ 27 - #define FC_ALPA_MAX 128 28 27 29 28 #pragma pack(1) 30 29 ··· 38 39 struct scsi_cdb_s { 39 40 u8 scsi_cdb[SCSI_MAX_CDBLEN]; 40 41 }; 41 - #define scsi_cdb_t struct scsi_cdb_s 42 42 43 43 /* ------------------------------------------------------------ 44 44 * SCSI status byte values ··· 72 74 u32 cs_ctl:8; /* class specific control */ 73 75 u32 s_id:24; /* source identifier */ 74 76 75 - u32 type:8; /* data structure type */ 77 + u32 type:8; /* data structure type */ 76 78 u32 f_ctl:24; /* initial frame control */ 77 79 78 - u8 seq_id; /* sequence identifier */ 79 - u8 df_ctl; /* data field control */ 80 + u8 seq_id; /* sequence identifier */ 81 + u8 df_ctl; /* data field control */ 80 82 u16 seq_cnt; /* sequence count */ 81 83 82 - __be16 ox_id; /* originator exchange ID */ 83 - u16 rx_id; /* responder exchange ID */ 84 + __be16 ox_id; /* originator exchange ID */ 85 + u16 rx_id; /* responder exchange ID */ 84 86 85 87 u32 ro; /* relative offset */ 86 88 }; 87 - 88 - #define FC_SOF_LEN 4 89 - #define FC_EOF_LEN 4 90 - #define FC_CRC_LEN 4 91 - 92 - /* 93 - * Fibre Channel BB_E Header Structure 94 - */ 95 - struct fcbbehs_s { 96 - u16 ver_rsvd; 97 - u32 rsvd[2]; 98 - u32 rsvd__sof; 99 - }; 100 - 101 - #define FC_SEQ_ID_MAX 256 102 89 103 90 /* 104 91 * routing bit definitions ··· 131 148 }; 132 149 133 150 /* 134 - * information category for Link Control 135 - */ 136 - enum { 137 - FC_CAT_ACK_1 = 0x00, 138 - FC_CAT_ACK_0_N = 0x01, 139 - FC_CAT_P_RJT = 0x02, 140 - FC_CAT_F_RJT = 0x03, 141 - FC_CAT_P_BSY = 0x04, 142 - FC_CAT_F_BSY_DATA = 0x05, 143 - FC_CAT_F_BSY_LINK_CTL = 0x06, 144 - FC_CAT_F_LCR = 0x07, 145 - FC_CAT_NTY = 0x08, 146 - FC_CAT_END = 0x09, 147 - }; 148 - 149 - /* 150 151 * Type Field Definitions. FC-PH Section 18.5 pg. 165 151 152 */ 152 153 enum { ··· 146 179 FC_TYPE_FC_SPINFAB = 0xEE, /* SPINFAB */ 147 180 FC_TYPE_FC_DIAG = 0xEF, /* DIAG */ 148 181 FC_TYPE_MAX = 256, /* 256 FC-4 types */ 149 - }; 150 - 151 - struct fc_fc4types_s { 152 - u8 bits[FC_TYPE_MAX / 8]; 153 182 }; 154 183 155 184 /* ··· 250 287 FC_ELS_AUTH = 0x90, /* Authentication. Ref FC-SP */ 251 288 FC_ELS_RFCN = 0x97, /* Request Fabric Change Notification. Ref 252 289 *FC-SP */ 253 - 254 290 }; 255 291 256 292 /* ··· 275 313 * FC-PH-x. Figure-76. pg. 308. 276 314 */ 277 315 struct fc_plogi_csp_s { 278 - u8 verhi; /* FC-PH high version */ 279 - u8 verlo; /* FC-PH low version */ 280 - __be16 bbcred; /* BB_Credit */ 316 + u8 verhi; /* FC-PH high version */ 317 + u8 verlo; /* FC-PH low version */ 318 + __be16 bbcred; /* BB_Credit */ 281 319 282 320 #ifdef __BIG_ENDIAN 283 - u8 ciro:1, /* continuously increasing RO */ 321 + u8 ciro:1, /* continuously increasing RO */ 284 322 rro:1, /* random relative offset */ 285 323 npiv_supp:1, /* NPIV supported */ 286 324 port_type:1, /* N_Port/F_port */ ··· 289 327 vvl_info:1, /* VVL Info included */ 290 328 reserved1:1; 291 329 292 - u8 hg_supp:1, 330 + u8 hg_supp:1, 293 331 query_dbc:1, 294 332 security:1, 295 333 sync_cap:1, ··· 298 336 cisc:1, /* continuously increasing seq count */ 299 337 payload:1; 300 338 #else 301 - u8 reserved2:2, 339 + u8 reserved2:2, 302 340 resolution:1, /* ms/ns ED_TOV resolution */ 303 341 altbbcred:1, /* alternate BB_Credit */ 304 342 port_type:1, /* N_Port/F_port */ ··· 306 344 rro:1, /* random relative offset */ 307 345 ciro:1; /* continuously increasing RO */ 308 346 309 - u8 payload:1, 347 + u8 payload:1, 310 348 cisc:1, /* continuously increasing seq count */ 311 349 dh_dup_supp:1, 312 350 r_t_tov:1, ··· 315 353 query_dbc:1, 316 354 hg_supp:1; 317 355 #endif 318 - 319 - __be16 rxsz; /* recieve data_field size */ 320 - 321 - __be16 conseq; 322 - __be16 ro_bitmap; 323 - 324 - __be32 e_d_tov; 356 + __be16 rxsz; /* recieve data_field size */ 357 + __be16 conseq; 358 + __be16 ro_bitmap; 359 + __be32 e_d_tov; 325 360 }; 326 361 327 362 /* ··· 329 370 #ifdef __BIG_ENDIAN 330 371 u32 class_valid:1; 331 372 u32 intermix:1; /* class intermix supported if set =1. 332 - * valid only for class1. Reserved for 333 - * class2 & class3 334 - */ 373 + * valid only for class1. Reserved for 374 + * class2 & class3 */ 335 375 u32 reserved1:2; 336 376 u32 sequential:1; 337 377 u32 reserved2:3; ··· 339 381 u32 sequential:1; 340 382 u32 reserved1:2; 341 383 u32 intermix:1; /* class intermix supported if set =1. 342 - * valid only for class1. Reserved for 343 - * class2 & class3 344 - */ 384 + * valid only for class1. Reserved for 385 + * class2 & class3 */ 345 386 u32 class_valid:1; 346 387 #endif 347 - 348 388 u32 reserved3:24; 349 389 350 390 u32 reserved4:16; ··· 350 394 351 395 u32 reserved5:8; 352 396 u32 conseq:8; 353 - u32 e2e_credit:16; /* end to end credit */ 397 + u32 e2e_credit:16; /* end to end credit */ 354 398 355 399 u32 reserved7:8; 356 400 u32 ospx:8; ··· 364 408 * PLOGI els command and reply payload 365 409 */ 366 410 struct fc_logi_s { 367 - struct fc_els_cmd_s els_cmd; /* ELS command code */ 368 - struct fc_plogi_csp_s csp; /* common service params */ 369 - wwn_t port_name; 370 - wwn_t node_name; 371 - struct fc_plogi_clp_s class1; /* class 1 service parameters */ 372 - struct fc_plogi_clp_s class2; /* class 2 service parameters */ 373 - struct fc_plogi_clp_s class3; /* class 3 service parameters */ 374 - struct fc_plogi_clp_s class4; /* class 4 service parameters */ 375 - u8 vvl[16]; /* vendor version level */ 411 + struct fc_els_cmd_s els_cmd; /* ELS command code */ 412 + struct fc_plogi_csp_s csp; /* common service params */ 413 + wwn_t port_name; 414 + wwn_t node_name; 415 + struct fc_plogi_clp_s class1; /* class 1 service parameters */ 416 + struct fc_plogi_clp_s class2; /* class 2 service parameters */ 417 + struct fc_plogi_clp_s class3; /* class 3 service parameters */ 418 + struct fc_plogi_clp_s class4; /* class 4 service parameters */ 419 + u8 vvl[16]; /* vendor version level */ 376 420 }; 377 421 378 422 /* 379 423 * LOGO els command payload 380 424 */ 381 425 struct fc_logo_s { 382 - struct fc_els_cmd_s els_cmd; /* ELS command code */ 383 - u32 res1:8; 384 - u32 nport_id:24; /* N_Port identifier of source */ 426 + struct fc_els_cmd_s els_cmd; /* ELS command code */ 427 + u32 res1:8; 428 + u32 nport_id:24; /* N_Port identifier of source */ 385 429 wwn_t orig_port_name; /* Port name of the LOGO originator */ 386 430 }; 387 431 ··· 390 434 */ 391 435 struct fc_adisc_s { 392 436 struct fc_els_cmd_s els_cmd; /* ELS command code */ 393 - u32 res1:8; 394 - u32 orig_HA:24; /* originator hard address */ 395 - wwn_t orig_port_name; /* originator port name */ 396 - wwn_t orig_node_name; /* originator node name */ 397 - u32 res2:8; 398 - u32 nport_id:24; /* originator NPortID */ 437 + u32 res1:8; 438 + u32 orig_HA:24; /* originator hard address */ 439 + wwn_t orig_port_name; /* originator port name */ 440 + wwn_t orig_node_name; /* originator node name */ 441 + u32 res2:8; 442 + u32 nport_id:24; /* originator NPortID */ 399 443 }; 400 444 401 445 /* ··· 421 465 struct fc_res_s { 422 466 struct fc_els_cmd_s els_cmd; /* ELS command code */ 423 467 u32 res1:8; 424 - u32 nport_id:24; /* N_Port identifier of source */ 468 + u32 nport_id:24; /* N_Port identifier of source */ 425 469 u32 oxid:16; 426 470 u32 rxid:16; 427 471 u8 assoc_hdr[32]; ··· 467 511 u32 orig_id:24; /* N_Port id of exchange originator */ 468 512 u32 res2:8; 469 513 u32 resp_id:24; /* N_Port id of exchange responder */ 470 - u32 count; /* data transfer count */ 471 - u32 e_stat; /* exchange status */ 514 + u32 count; /* data transfer count */ 515 + u32 e_stat; /* exchange status */ 472 516 }; 473 517 474 518 /* ··· 567 611 u32 type:8; 568 612 u32 type_ext:8; 569 613 #ifdef __BIG_ENDIAN 570 - u32 opa_valid:1; /* originator process associator 571 - * valid 572 - */ 614 + u32 opa_valid:1; /* originator process associator valid */ 573 615 u32 rpa_valid:1; /* responder process associator valid */ 574 616 u32 res1:14; 575 617 #else 576 618 u32 res1:14; 577 619 u32 rpa_valid:1; /* responder process associator valid */ 578 - u32 opa_valid:1; /* originator process associator 579 - * valid 580 - */ 620 + u32 opa_valid:1; /* originator process associator valid */ 581 621 #endif 582 622 u32 orig_process_assc; 583 623 u32 resp_process_assc; ··· 599 647 u32 type_ext:8; 600 648 601 649 #ifdef __BIG_ENDIAN 602 - u32 opa_valid:1; /* originator process associator 603 - * valid 604 - */ 650 + u32 opa_valid:1; /* originator process associator valid */ 605 651 u32 rpa_valid:1; /* responder process associator valid */ 606 652 u32 res1:14; 607 653 #else 608 654 u32 res1:14; 609 655 u32 rpa_valid:1; /* responder process associator valid */ 610 - u32 opa_valid:1; /* originator process associator 611 - * valid 612 - */ 656 + u32 opa_valid:1; /* originator process associator valid */ 613 657 #endif 614 658 u32 orig_process_assc; 615 659 u32 resp_process_assc; ··· 662 714 * LS_RJT els reply payload 663 715 */ 664 716 struct fc_ls_rjt_s { 665 - struct fc_els_cmd_s els_cmd; /* ELS command code */ 717 + struct fc_els_cmd_s els_cmd; /* ELS command code */ 666 718 u32 res1:8; 667 - u32 reason_code:8; /* Reason code for reject */ 719 + u32 reason_code:8; /* Reason code for reject */ 668 720 u32 reason_code_expl:8; /* Reason code explanation */ 669 721 u32 vendor_unique:8; /* Vendor specific */ 670 722 }; ··· 726 778 */ 727 779 struct fc_ba_acc_s { 728 780 u32 seq_id_valid:8; /* set to 0x00 for Abort Exchange */ 729 - u32 seq_id:8; /* invalid for Abort Exchange */ 781 + u32 seq_id:8; /* invalid for Abort Exchange */ 730 782 u32 res2:16; 731 - u32 ox_id:16; /* OX_ID from ABTS frame */ 732 - u32 rx_id:16; /* RX_ID from ABTS frame */ 783 + u32 ox_id:16; /* OX_ID from ABTS frame */ 784 + u32 rx_id:16; /* RX_ID from ABTS frame */ 733 785 u32 low_seq_cnt:16; /* set to 0x0000 for Abort Exchange */ 734 - u32 high_seq_cnt:16;/* set to 0xFFFF for Abort Exchange */ 786 + u32 high_seq_cnt:16; /* set to 0xFFFF for Abort Exchange */ 735 787 }; 736 788 737 789 /* ··· 741 793 u32 res1:8; /* Reserved */ 742 794 u32 reason_code:8; /* reason code for reject */ 743 795 u32 reason_expl:8; /* reason code explanation */ 744 - u32 vendor_unique:8;/* vendor unique reason code,set to 0 */ 796 + u32 vendor_unique:8; /* vendor unique reason code,set to 0 */ 745 797 }; 746 798 747 799 /* 748 800 * TPRLO logout parameter page 749 801 */ 750 802 struct fc_tprlo_params_page_s { 751 - u32 type:8; 752 - u32 type_ext:8; 803 + u32 type:8; 804 + u32 type_ext:8; 753 805 754 806 #ifdef __BIG_ENDIAN 755 807 u32 opa_valid:1; ··· 811 863 }; 812 864 813 865 struct fc_rscn_event_s { 814 - u32 format:2; 815 - u32 qualifier:4; 816 - u32 resvd:2; 817 - u32 portid:24; 866 + u32 format:2; 867 + u32 qualifier:4; 868 + u32 resvd:2; 869 + u32 portid:24; 818 870 }; 819 871 820 872 struct fc_rscn_pl_s { 821 - u8 command; 822 - u8 pagelen; 823 - __be16 payldlen; 873 + u8 command; 874 + u8 pagelen; 875 + __be16 payldlen; 824 876 struct fc_rscn_event_s event[1]; 825 877 }; 826 878 ··· 834 886 /* 835 887 * RNID els command 836 888 */ 837 - 838 889 #define RNID_NODEID_DATA_FORMAT_COMMON 0x00 839 890 #define RNID_NODEID_DATA_FORMAT_FCP3 0x08 840 891 #define RNID_NODEID_DATA_FORMAT_DISCOVERY 0xDF ··· 866 919 */ 867 920 868 921 struct fc_rnid_common_id_data_s { 869 - wwn_t port_name; 922 + wwn_t port_name; 870 923 wwn_t node_name; 871 924 }; 872 925 873 926 struct fc_rnid_general_topology_data_s { 874 927 u32 vendor_unique[4]; 875 - __be32 asso_type; 928 + __be32 asso_type; 876 929 u32 phy_port_num; 877 - __be32 num_attached_nodes; 930 + __be32 num_attached_nodes; 878 931 u32 node_mgmt:8; 879 932 u32 ip_version:8; 880 933 u32 udp_tcp_port_num:16; ··· 926 979 RPSC_OP_SPEED_8G = 0x0800, 927 980 RPSC_OP_SPEED_16G = 0x0400, 928 981 929 - RPSC_OP_SPEED_NOT_EST = 0x0001, /*! speed not established */ 982 + RPSC_OP_SPEED_NOT_EST = 0x0001, /* speed not established */ 930 983 }; 931 984 932 985 struct fc_rpsc_speed_info_s { 933 - __be16 port_speed_cap; /*! see enum fc_rpsc_speed_cap */ 934 - __be16 port_op_speed; /*! see enum fc_rpsc_op_speed */ 935 - }; 936 - 937 - enum link_e2e_beacon_subcmd { 938 - LINK_E2E_BEACON_ON = 1, 939 - LINK_E2E_BEACON_OFF = 2 940 - }; 941 - 942 - enum beacon_type { 943 - BEACON_TYPE_NORMAL = 1, /*! Normal Beaconing. Green */ 944 - BEACON_TYPE_WARN = 2, /*! Warning Beaconing. Yellow/Amber */ 945 - BEACON_TYPE_CRITICAL = 3 /*! Critical Beaconing. Red */ 946 - }; 947 - 948 - struct link_e2e_beacon_param_s { 949 - u8 beacon_type; /* Beacon Type. See enum beacon_type */ 950 - u8 beacon_frequency; 951 - /* Beacon frequency. Number of blinks 952 - * per 10 seconds 953 - */ 954 - u16 beacon_duration;/* Beacon duration (in Seconds). The 955 - * command operation should be 956 - * terminated at the end of this 957 - * timeout value. 958 - * 959 - * Ignored if diag_sub_cmd is 960 - * LINK_E2E_BEACON_OFF. 961 - * 962 - * If 0, beaconing will continue till a 963 - * BEACON OFF request is received 964 - */ 965 - }; 966 - 967 - /* 968 - * Link E2E beacon request/good response format. 969 - * For LS_RJTs use struct fc_ls_rjt_s 970 - */ 971 - struct link_e2e_beacon_req_s { 972 - u32 ls_code; /*! FC_ELS_E2E_LBEACON in requests * 973 - *or FC_ELS_ACC in good replies */ 974 - u32 ls_sub_cmd; /*! See enum link_e2e_beacon_subcmd */ 975 - struct link_e2e_beacon_param_s beacon_parm; 986 + __be16 port_speed_cap; /* see enum fc_rpsc_speed_cap */ 987 + __be16 port_op_speed; /* see enum fc_rpsc_op_speed */ 976 988 }; 977 989 978 990 /* 979 991 * If RPSC request is sent to the Domain Controller, the request is for 980 - * all the ports within that domain (TODO - I don't think FOS implements 981 - * this...). 992 + * all the ports within that domain. 982 993 */ 983 994 struct fc_rpsc_cmd_s { 984 995 struct fc_els_cmd_s els_cmd; ··· 962 1057 struct fc_els_cmd_s els_cmd; 963 1058 __be32 token; 964 1059 u16 resvd; 965 - __be16 num_pids; /* Number of pids in the request */ 1060 + __be16 num_pids; /* Number of pids in the request */ 966 1061 struct { 967 1062 u32 rsvd1:8; 968 1063 u32 pid:24; /* port identifier */ ··· 976 1071 RPSC2_PORT_TYPE_NPIV_PORT = 0x5f, 977 1072 RPSC2_PORT_TYPE_NPORT_TRUNK = 0x6f, 978 1073 }; 1074 + 979 1075 /* 980 1076 * RPSC2 portInfo entry structure 981 1077 */ 982 1078 struct fc_rpsc2_port_info_s { 983 - __be32 pid; /* PID */ 1079 + __be32 pid; /* PID */ 984 1080 u16 resvd1; 985 - __be16 index; /* port number / index */ 1081 + __be16 index; /* port number / index */ 986 1082 u8 resvd2; 987 - u8 type; /* port type N/NL/... */ 988 - __be16 speed; /* port Operating Speed */ 1083 + u8 type; /* port type N/NL/... */ 1084 + __be16 speed; /* port Operating Speed */ 989 1085 }; 990 1086 991 1087 /* ··· 995 1089 struct fc_rpsc2_acc_s { 996 1090 u8 els_cmd; 997 1091 u8 resvd; 998 - __be16 num_pids; /* Number of pids in the request */ 999 - struct fc_rpsc2_port_info_s port_info[1]; /* port information */ 1092 + __be16 num_pids; /* Number of pids in the request */ 1093 + struct fc_rpsc2_port_info_s port_info[1]; /* port information */ 1000 1094 }; 1001 1095 1002 1096 /* ··· 1015 1109 u8 symname[FC_SYMNAME_MAX]; 1016 1110 }; 1017 1111 1018 - struct fc_alpabm_s { 1019 - u8 alpa_bm[FC_ALPA_MAX / 8]; 1020 - }; 1021 - 1022 1112 /* 1023 1113 * protocol default timeout values 1024 1114 */ 1025 - #define FC_ED_TOV 2 1026 - #define FC_REC_TOV (FC_ED_TOV + 1) 1027 - #define FC_RA_TOV 10 1028 - #define FC_ELS_TOV (2 * FC_RA_TOV) 1029 - #define FC_FCCT_TOV (3 * FC_RA_TOV) 1115 + #define FC_ED_TOV 2 1116 + #define FC_REC_TOV (FC_ED_TOV + 1) 1117 + #define FC_RA_TOV 10 1118 + #define FC_ELS_TOV (2 * FC_RA_TOV) 1119 + #define FC_FCCT_TOV (3 * FC_RA_TOV) 1030 1120 1031 1121 /* 1032 1122 * virtual fabric related defines ··· 1058 1156 }; 1059 1157 1060 1158 /* 1061 - * SRR FC-4 LS payload 1062 - */ 1063 - struct fc_srr_s { 1064 - u32 ls_cmd; 1065 - u32 ox_id:16; /* ox-id */ 1066 - u32 rx_id:16; /* rx-id */ 1067 - u32 ro; /* relative offset */ 1068 - u32 r_ctl:8; /* R_CTL for I.U. */ 1069 - u32 res:24; 1070 - }; 1071 - 1072 - 1073 - /* 1074 1159 * FCP_CMND definitions 1075 1160 */ 1076 1161 #define FCP_CMND_CDB_LEN 16 1077 1162 #define FCP_CMND_LUN_LEN 8 1078 1163 1079 1164 struct fcp_cmnd_s { 1080 - struct scsi_lun lun; /* 64-bit LU number */ 1081 - u8 crn; /* command reference number */ 1165 + struct scsi_lun lun; /* 64-bit LU number */ 1166 + u8 crn; /* command reference number */ 1082 1167 #ifdef __BIG_ENDIAN 1083 - u8 resvd:1, 1168 + u8 resvd:1, 1084 1169 priority:4, /* FCP-3: SAM-3 priority */ 1085 1170 taskattr:3; /* scsi task attribute */ 1086 1171 #else 1087 - u8 taskattr:3, /* scsi task attribute */ 1172 + u8 taskattr:3, /* scsi task attribute */ 1088 1173 priority:4, /* FCP-3: SAM-3 priority */ 1089 1174 resvd:1; 1090 1175 #endif 1091 - u8 tm_flags; /* task management flags */ 1176 + u8 tm_flags; /* task management flags */ 1092 1177 #ifdef __BIG_ENDIAN 1093 - u8 addl_cdb_len:6, /* additional CDB length words */ 1178 + u8 addl_cdb_len:6, /* additional CDB length words */ 1094 1179 iodir:2; /* read/write FCP_DATA IUs */ 1095 1180 #else 1096 - u8 iodir:2, /* read/write FCP_DATA IUs */ 1181 + u8 iodir:2, /* read/write FCP_DATA IUs */ 1097 1182 addl_cdb_len:6; /* additional CDB length */ 1098 1183 #endif 1099 - scsi_cdb_t cdb; 1184 + struct scsi_cdb_s cdb; 1100 1185 1101 - /* 1102 - * !!! additional cdb bytes follows here!!! 1103 - */ 1104 1186 __be32 fcp_dl; /* bytes to be transferred */ 1105 1187 }; 1106 1188 ··· 1095 1209 * struct fcp_cmnd_s .iodir field values 1096 1210 */ 1097 1211 enum fcp_iodir { 1098 - FCP_IODIR_NONE = 0, 1212 + FCP_IODIR_NONE = 0, 1099 1213 FCP_IODIR_WRITE = 1, 1100 - FCP_IODIR_READ = 2, 1101 - FCP_IODIR_RW = 3, 1102 - }; 1103 - 1104 - /* 1105 - * Task attribute field 1106 - */ 1107 - enum { 1108 - FCP_TASK_ATTR_SIMPLE = 0, 1109 - FCP_TASK_ATTR_HOQ = 1, 1110 - FCP_TASK_ATTR_ORDERED = 2, 1111 - FCP_TASK_ATTR_ACA = 4, 1112 - FCP_TASK_ATTR_UNTAGGED = 5, /* obsolete in FCP-3 */ 1214 + FCP_IODIR_READ = 2, 1215 + FCP_IODIR_RW = 3, 1113 1216 }; 1114 1217 1115 1218 /* ··· 1113 1238 }; 1114 1239 1115 1240 /* 1116 - * FCP_XFER_RDY IU defines 1117 - */ 1118 - struct fcp_xfer_rdy_s { 1119 - u32 data_ro; 1120 - u32 burst_len; 1121 - u32 reserved; 1122 - }; 1123 - 1124 - /* 1125 1241 * FCP_RSP residue flags 1126 1242 */ 1127 1243 enum fcp_residue { 1128 - FCP_NO_RESIDUE = 0, /* no residue */ 1129 - FCP_RESID_OVER = 1, /* more data left that was not sent */ 1130 - FCP_RESID_UNDER = 2, /* less data than requested */ 1131 - }; 1132 - 1133 - enum { 1134 - FCP_RSPINFO_GOOD = 0, 1135 - FCP_RSPINFO_DATALEN_MISMATCH = 1, 1136 - FCP_RSPINFO_CMND_INVALID = 2, 1137 - FCP_RSPINFO_ROLEN_MISMATCH = 3, 1138 - FCP_RSPINFO_TM_NOT_SUPP = 4, 1139 - FCP_RSPINFO_TM_FAILED = 5, 1244 + FCP_NO_RESIDUE = 0, /* no residue */ 1245 + FCP_RESID_OVER = 1, /* more data left that was not sent */ 1246 + FCP_RESID_UNDER = 2, /* less data than requested */ 1140 1247 }; 1141 1248 1142 1249 struct fcp_rspinfo_s { 1143 1250 u32 res0:24; 1144 - u32 rsp_code:8; /* response code (as above) */ 1251 + u32 rsp_code:8; /* response code (as above) */ 1145 1252 u32 res1; 1146 1253 }; 1147 1254 1148 1255 struct fcp_resp_s { 1149 - u32 reserved[2]; /* 2 words reserved */ 1256 + u32 reserved[2]; /* 2 words reserved */ 1150 1257 u16 reserved2; 1151 1258 #ifdef __BIG_ENDIAN 1152 1259 u8 reserved3:3; 1153 1260 u8 fcp_conf_req:1; /* FCP_CONF is requested */ 1154 1261 u8 resid_flags:2; /* underflow/overflow */ 1155 - u8 sns_len_valid:1;/* sense len is valid */ 1156 - u8 rsp_len_valid:1;/* response len is valid */ 1262 + u8 sns_len_valid:1; /* sense len is valid */ 1263 + u8 rsp_len_valid:1; /* response len is valid */ 1157 1264 #else 1158 - u8 rsp_len_valid:1;/* response len is valid */ 1159 - u8 sns_len_valid:1;/* sense len is valid */ 1265 + u8 rsp_len_valid:1; /* response len is valid */ 1266 + u8 sns_len_valid:1; /* sense len is valid */ 1160 1267 u8 resid_flags:2; /* underflow/overflow */ 1161 1268 u8 fcp_conf_req:1; /* FCP_CONF is requested */ 1162 1269 u8 reserved3:3; 1163 1270 #endif 1164 - u8 scsi_status; /* one byte SCSI status */ 1165 - u32 residue; /* residual data bytes */ 1166 - u32 sns_len; /* length od sense info */ 1167 - u32 rsp_len; /* length of response info */ 1271 + u8 scsi_status; /* one byte SCSI status */ 1272 + u32 residue; /* residual data bytes */ 1273 + u32 sns_len; /* length od sense info */ 1274 + u32 rsp_len; /* length of response info */ 1168 1275 }; 1169 1276 1170 1277 #define fcp_snslen(__fcprsp) ((__fcprsp)->sns_len_valid ? \ ··· 1156 1299 #define fcp_rspinfo(__fcprsp) ((struct fcp_rspinfo_s *)((__fcprsp) + 1)) 1157 1300 #define fcp_snsinfo(__fcprsp) (((u8 *)fcp_rspinfo(__fcprsp)) + \ 1158 1301 fcp_rsplen(__fcprsp)) 1159 - 1160 - struct fcp_cmnd_fr_s { 1161 - struct fchs_s fchs; 1162 - struct fcp_cmnd_s fcp; 1163 - }; 1164 - 1165 1302 /* 1166 1303 * CT 1167 1304 */ ··· 1229 1378 CT_RSN_LOGICAL_BUSY = 0x05, 1230 1379 CT_RSN_PROTO_ERR = 0x07, 1231 1380 CT_RSN_UNABLE_TO_PERF = 0x09, 1232 - CT_RSN_NOT_SUPP = 0x0B, 1381 + CT_RSN_NOT_SUPP = 0x0B, 1233 1382 CT_RSN_SERVER_NOT_AVBL = 0x0D, 1234 1383 CT_RSN_SESSION_COULD_NOT_BE_ESTBD = 0x0E, 1235 1384 CT_RSN_VENDOR_SPECIFIC = 0xFF, ··· 1269 1418 * defintions for the explanation code for all servers 1270 1419 */ 1271 1420 enum { 1272 - CT_EXP_AUTH_EXCEPTION = 0xF1, 1273 - CT_EXP_DB_FULL = 0xF2, 1274 - CT_EXP_DB_EMPTY = 0xF3, 1275 - CT_EXP_PROCESSING_REQ = 0xF4, 1421 + CT_EXP_AUTH_EXCEPTION = 0xF1, 1422 + CT_EXP_DB_FULL = 0xF2, 1423 + CT_EXP_DB_EMPTY = 0xF3, 1424 + CT_EXP_PROCESSING_REQ = 0xF4, 1276 1425 CT_EXP_UNABLE_TO_VERIFY_CONN = 0xF5, 1277 1426 CT_EXP_DEVICES_NOT_IN_CMN_ZONE = 0xF6 1278 1427 }; ··· 1296 1445 GS_RFF_ID = 0x021F, /* Register FC4 Feature */ 1297 1446 }; 1298 1447 1299 - struct fcgs_id_req_s{ 1448 + struct fcgs_id_req_s { 1300 1449 u32 rsvd:8; 1301 1450 u32 dap:24; /* port identifier */ 1302 1451 }; ··· 1310 1459 1311 1460 struct fcgs_gidpn_resp_s { 1312 1461 u32 rsvd:8; 1313 - u32 dap:24; /* port identifier */ 1462 + u32 dap:24; /* port identifier */ 1314 1463 }; 1315 1464 1316 1465 /* ··· 1325 1474 /* 1326 1475 * RFF_ID : Register FC4 features. 1327 1476 */ 1328 - 1329 1477 #define FC_GS_FCP_FC4_FEATURE_INITIATOR 0x02 1330 1478 #define FC_GS_FCP_FC4_FEATURE_TARGET 0x01 1331 1479 1332 1480 struct fcgs_rffid_req_s { 1333 - u32 rsvd:8; 1334 - u32 dap:24; /* port identifier */ 1335 - u32 rsvd1:16; 1336 - u32 fc4ftr_bits:8; /* fc4 feature bits */ 1337 - u32 fc4_type:8; /* corresponding FC4 Type */ 1481 + u32 rsvd:8; 1482 + u32 dap:24; /* port identifier */ 1483 + u32 rsvd1:16; 1484 + u32 fc4ftr_bits:8; /* fc4 feature bits */ 1485 + u32 fc4_type:8; /* corresponding FC4 Type */ 1338 1486 }; 1339 1487 1340 1488 /* ··· 1344 1494 u8 domain_id; /* domain, 0 - all fabric */ 1345 1495 u8 area_id; /* area, 0 - whole domain */ 1346 1496 u8 fc4_type; /* FC_TYPE_FCP for SCSI devices */ 1347 - }; /* GID_FT Request */ 1497 + }; 1348 1498 1349 1499 /* 1350 1500 * GID_FT Response 1351 1501 */ 1352 1502 struct fcgs_gidft_resp_s { 1353 - u8 last:1; /* last port identifier flag */ 1354 - u8 reserved:7; 1355 - u32 pid:24; /* port identifier */ 1356 - }; /* GID_FT Response */ 1503 + u8 last:1; /* last port identifier flag */ 1504 + u8 reserved:7; 1505 + u32 pid:24; /* port identifier */ 1506 + }; 1357 1507 1358 1508 /* 1359 1509 * RSPN_ID ··· 1361 1511 struct fcgs_rspnid_req_s { 1362 1512 u32 rsvd:8; 1363 1513 u32 dap:24; /* port identifier */ 1364 - u8 spn_len; /* symbolic port name length */ 1365 - u8 spn[256]; /* symbolic port name */ 1514 + u8 spn_len; /* symbolic port name length */ 1515 + u8 spn[256]; /* symbolic port name */ 1366 1516 }; 1367 1517 1368 1518 /* ··· 1371 1521 struct fcgs_rpnid_req_s { 1372 1522 u32 rsvd:8; 1373 1523 u32 port_id:24; 1374 - wwn_t port_name; 1524 + wwn_t port_name; 1375 1525 }; 1376 1526 1377 1527 /* ··· 1380 1530 struct fcgs_rnnid_req_s { 1381 1531 u32 rsvd:8; 1382 1532 u32 port_id:24; 1383 - wwn_t node_name; 1533 + wwn_t node_name; 1384 1534 }; 1385 1535 1386 1536 /* ··· 1414 1564 * GA_NXT Response 1415 1565 */ 1416 1566 struct fcgs_ganxt_rsp_s { 1417 - u32 port_type:8; /* Port Type */ 1418 - u32 port_id:24; /* Port Identifier */ 1567 + u32 port_type:8; /* Port Type */ 1568 + u32 port_id:24; /* Port Identifier */ 1419 1569 wwn_t port_name; /* Port Name */ 1420 1570 u8 spn_len; /* Length of Symbolic Port Name */ 1421 1571 char spn[255]; /* Symbolic Port Name */ ··· 1424 1574 char snn[255]; /* Symbolic Node Name */ 1425 1575 u8 ipa[8]; /* Initial Process Associator */ 1426 1576 u8 ip[16]; /* IP Address */ 1427 - u32 cos; /* Class of Service */ 1428 - u32 fc4types[8]; /* FC-4 TYPEs */ 1429 - wwn_t fabric_port_name; 1430 - /* Fabric Port Name */ 1431 - u32 rsvd:8; /* Reserved */ 1432 - u32 hard_addr:24; /* Hard Address */ 1577 + u32 cos; /* Class of Service */ 1578 + u32 fc4types[8]; /* FC-4 TYPEs */ 1579 + wwn_t fabric_port_name; /* Fabric Port Name */ 1580 + u32 rsvd:8; /* Reserved */ 1581 + u32 hard_addr:24; /* Hard Address */ 1433 1582 }; 1434 - 1435 - /* 1436 - * Fabric Config Server 1437 - */ 1438 1583 1439 1584 /* 1440 1585 * Command codes for Fabric Configuration Server ··· 1442 1597 }; 1443 1598 1444 1599 /* 1445 - * Source or Destination Port Tags. 1446 - */ 1447 - enum { 1448 - GS_FTRACE_TAG_NPORT_ID = 1, 1449 - GS_FTRACE_TAG_NPORT_NAME = 2, 1450 - }; 1451 - 1452 - /* 1453 - * Port Value : Could be a Port id or wwn 1454 - */ 1455 - union fcgs_port_val_u { 1456 - u32 nport_id; 1457 - wwn_t nport_wwn; 1458 - }; 1459 - 1460 - #define GS_FTRACE_MAX_HOP_COUNT 20 1461 - #define GS_FTRACE_REVISION 1 1462 - 1463 - /* 1464 - * Ftrace Related Structures. 1465 - */ 1466 - 1467 - /* 1468 - * STR (Switch Trace) Reject Reason Codes. From FC-SW. 1469 - */ 1470 - enum { 1471 - GS_FTRACE_STR_CMD_COMPLETED_SUCC = 0, 1472 - GS_FTRACE_STR_CMD_NOT_SUPP_IN_NEXT_SWITCH, 1473 - GS_FTRACE_STR_NO_RESP_FROM_NEXT_SWITCH, 1474 - GS_FTRACE_STR_MAX_HOP_CNT_REACHED, 1475 - GS_FTRACE_STR_SRC_PORT_NOT_FOUND, 1476 - GS_FTRACE_STR_DST_PORT_NOT_FOUND, 1477 - GS_FTRACE_STR_DEVICES_NOT_IN_COMMON_ZONE, 1478 - GS_FTRACE_STR_NO_ROUTE_BW_PORTS, 1479 - GS_FTRACE_STR_NO_ADDL_EXPLN, 1480 - GS_FTRACE_STR_FABRIC_BUSY, 1481 - GS_FTRACE_STR_FABRIC_BUILD_IN_PROGRESS, 1482 - GS_FTRACE_STR_VENDOR_SPECIFIC_ERR_START = 0xf0, 1483 - GS_FTRACE_STR_VENDOR_SPECIFIC_ERR_END = 0xff, 1484 - }; 1485 - 1486 - /* 1487 - * Ftrace Request 1488 - */ 1489 - struct fcgs_ftrace_req_s { 1490 - u32 revision; 1491 - u16 src_port_tag; /* Source Port tag */ 1492 - u16 src_port_len; /* Source Port len */ 1493 - union fcgs_port_val_u src_port_val; /* Source Port value */ 1494 - u16 dst_port_tag; /* Destination Port tag */ 1495 - u16 dst_port_len; /* Destination Port len */ 1496 - union fcgs_port_val_u dst_port_val; /* Destination Port value */ 1497 - u32 token; 1498 - u8 vendor_id[8]; /* T10 Vendor Identifier */ 1499 - u8 vendor_info[8]; /* Vendor specific Info */ 1500 - u32 max_hop_cnt; /* Max Hop Count */ 1501 - }; 1502 - 1503 - /* 1504 - * Path info structure 1505 - */ 1506 - struct fcgs_ftrace_path_info_s { 1507 - wwn_t switch_name; /* Switch WWN */ 1508 - u32 domain_id; 1509 - wwn_t ingress_port_name; /* Ingress ports wwn */ 1510 - u32 ingress_phys_port_num; /* Ingress ports physical port 1511 - * number 1512 - */ 1513 - wwn_t egress_port_name; /* Ingress ports wwn */ 1514 - u32 egress_phys_port_num; /* Ingress ports physical port 1515 - * number 1516 - */ 1517 - }; 1518 - 1519 - /* 1520 - * Ftrace Acc Response 1521 - */ 1522 - struct fcgs_ftrace_resp_s { 1523 - u32 revision; 1524 - u32 token; 1525 - u8 vendor_id[8]; /* T10 Vendor Identifier */ 1526 - u8 vendor_info[8]; /* Vendor specific Info */ 1527 - u32 str_rej_reason_code; /* STR Reject Reason Code */ 1528 - u32 num_path_info_entries; /* No. of path info entries */ 1529 - /* 1530 - * path info entry/entries. 1531 - */ 1532 - struct fcgs_ftrace_path_info_s path_info[1]; 1533 - 1534 - }; 1535 - 1536 - /* 1537 - * Fabric Config Server : FCPing 1538 - */ 1539 - 1540 - /* 1541 - * FC Ping Request 1542 - */ 1543 - struct fcgs_fcping_req_s { 1544 - u32 revision; 1545 - u16 port_tag; 1546 - u16 port_len; /* Port len */ 1547 - union fcgs_port_val_u port_val; /* Port value */ 1548 - u32 token; 1549 - }; 1550 - 1551 - /* 1552 - * FC Ping Response 1553 - */ 1554 - struct fcgs_fcping_resp_s { 1555 - u32 token; 1556 - }; 1557 - 1558 - /* 1559 - * Command codes for zone server query. 1560 - */ 1561 - enum { 1562 - ZS_GZME = 0x0124, /* Get zone member extended */ 1563 - }; 1564 - 1565 - /* 1566 - * ZS GZME request 1567 - */ 1568 - #define ZS_GZME_ZNAMELEN 32 1569 - struct zs_gzme_req_s { 1570 - u8 znamelen; 1571 - u8 rsvd[3]; 1572 - u8 zname[ZS_GZME_ZNAMELEN]; 1573 - }; 1574 - 1575 - enum zs_mbr_type { 1576 - ZS_MBR_TYPE_PWWN = 1, 1577 - ZS_MBR_TYPE_DOMPORT = 2, 1578 - ZS_MBR_TYPE_PORTID = 3, 1579 - ZS_MBR_TYPE_NWWN = 4, 1580 - }; 1581 - 1582 - struct zs_mbr_wwn_s { 1583 - u8 mbr_type; 1584 - u8 rsvd[3]; 1585 - wwn_t wwn; 1586 - }; 1587 - 1588 - struct zs_query_resp_s { 1589 - u32 nmbrs; /* number of zone members */ 1590 - struct zs_mbr_wwn_s mbr[1]; 1591 - }; 1592 - 1593 - /* 1594 1600 * GMAL Command ( Get ( interconnect Element) Management Address List) 1595 1601 * To retrieve the IP Address of a Switch. 1596 1602 */ 1597 - 1598 1603 #define CT_GMAL_RESP_PREFIX_TELNET "telnet://" 1599 1604 #define CT_GMAL_RESP_PREFIX_HTTP "http://" 1600 1605 ··· 1468 1773 u8 ip_addr[248]; 1469 1774 }; 1470 1775 1471 - /* 1472 - * FDMI 1473 - */ 1474 1776 /* 1475 1777 * FDMI Command Codes 1476 1778 */ ··· 1564 1872 * Registered Port List 1565 1873 */ 1566 1874 struct fdmi_port_list_s { 1567 - __be32 num_ports; /* number Of Port Entries */ 1568 - wwn_t port_entry; /* one or more */ 1875 + __be32 num_ports; /* number Of Port Entries */ 1876 + wwn_t port_entry; /* one or more */ 1569 1877 }; 1570 1878 1571 1879 /* ··· 1580 1888 * FDMI Register HBA Attributes 1581 1889 */ 1582 1890 struct fdmi_rhba_s { 1583 - wwn_t hba_id; /* HBA Identifier */ 1891 + wwn_t hba_id; /* HBA Identifier */ 1584 1892 struct fdmi_port_list_s port_list; /* Registered Port List */ 1585 1893 struct fdmi_hba_attr_s hba_attr_blk; /* HBA attribute block */ 1586 1894 }; ··· 1589 1897 * FDMI Register Port 1590 1898 */ 1591 1899 struct fdmi_rprt_s { 1592 - wwn_t hba_id; /* HBA Identifier */ 1593 - wwn_t port_name; /* Port wwn */ 1900 + wwn_t hba_id; /* HBA Identifier */ 1901 + wwn_t port_name; /* Port wwn */ 1594 1902 struct fdmi_port_attr_s port_attr_blk; /* Port Attr Block */ 1595 1903 }; 1596 1904 ··· 1598 1906 * FDMI Register Port Attributes 1599 1907 */ 1600 1908 struct fdmi_rpa_s { 1601 - wwn_t port_name; /* port wwn */ 1909 + wwn_t port_name; /* port wwn */ 1602 1910 struct fdmi_port_attr_s port_attr_blk; /* Port Attr Block */ 1603 1911 }; 1604 1912
+1 -1
drivers/scsi/bfa/bfa_fcpim.c
··· 2180 2180 else 2181 2181 m->cmnd.iodir = FCP_IODIR_NONE; 2182 2182 2183 - m->cmnd.cdb = *(scsi_cdb_t *) cmnd->cmnd; 2183 + m->cmnd.cdb = *(struct scsi_cdb_s *) cmnd->cmnd; 2184 2184 fcp_dl = scsi_bufflen(cmnd); 2185 2185 m->cmnd.fcp_dl = cpu_to_be32(fcp_dl); 2186 2186
+7 -31
drivers/scsi/bfa/bfa_ioc.c
··· 957 957 bfa_ioc_hw_sem_get(iocpf->ioc); 958 958 } 959 959 960 - /** 960 + /* 961 961 * IOC hb ack request is being removed. 962 962 */ 963 963 static void ··· 1020 1020 bfa_ioc_hw_sem_get(iocpf->ioc); 1021 1021 } 1022 1022 1023 - /** 1024 - * @brief 1023 + /* 1025 1024 * Hardware initialization failed. 1026 1025 */ 1027 1026 static void ··· 1102 1103 static void 1103 1104 bfa_iocpf_sm_fail_sync_entry(struct bfa_iocpf_s *iocpf) 1104 1105 { 1105 - /** 1106 + /* 1106 1107 * Mark IOC as failed in hardware and stop firmware. 1107 1108 */ 1108 1109 bfa_ioc_lpu_stop(iocpf->ioc); 1109 1110 1110 - /** 1111 + /* 1111 1112 * Flush any queued up mailbox requests. 1112 1113 */ 1113 1114 bfa_ioc_mbox_hbfail(iocpf->ioc); ··· 1365 1366 { 1366 1367 struct bfi_ioc_image_hdr_s fwhdr, *drv_fwhdr; 1367 1368 1368 - /* 1369 - * If bios/efi boot (flash based) -- return true 1370 - */ 1371 - if (bfa_ioc_is_bios_optrom(ioc)) 1372 - return BFA_TRUE; 1373 - 1374 1369 bfa_ioc_fwver_get(ioc, &fwhdr); 1375 1370 drv_fwhdr = (struct bfi_ioc_image_hdr_s *) 1376 1371 bfa_cb_image_get_chunk(BFA_IOC_FWIMG_TYPE(ioc), 0); ··· 1416 1423 boot_env = BFI_BOOT_LOADER_OS; 1417 1424 1418 1425 /* 1419 - * Flash based firmware boot BIOS env. 1420 - */ 1421 - if (bfa_ioc_is_bios_optrom(ioc)) { 1422 - boot_type = BFI_BOOT_TYPE_FLASH; 1423 - boot_env = BFI_BOOT_LOADER_BIOS; 1424 - } 1425 - 1426 - /* 1427 - * Flash based firmware boot UEFI env. 1428 - */ 1429 - if (bfa_ioc_is_uefi(ioc)) { 1430 - boot_type = BFI_BOOT_TYPE_FLASH; 1431 - boot_env = BFI_BOOT_LOADER_UEFI; 1432 - } 1433 - 1434 - /* 1435 1426 * check if firmware is valid 1436 1427 */ 1437 1428 fwvalid = (ioc_fwstate == BFI_IOC_UNINIT) ? ··· 1443 1466 * convergence, IOC will be in operational state when 2nd driver 1444 1467 * is loaded. 1445 1468 */ 1446 - if (ioc_fwstate == BFI_IOC_DISABLED || 1447 - (!bfa_ioc_is_bios_optrom(ioc) && ioc_fwstate == BFI_IOC_OP)) { 1469 + if (ioc_fwstate == BFI_IOC_DISABLED || ioc_fwstate == BFI_IOC_OP) { 1448 1470 1449 1471 /* 1450 1472 * When using MSI-X any pending firmware ready event should ··· 1818 1842 struct bfa_ioc_hbfail_notify_s *notify; 1819 1843 struct bfad_s *bfad = (struct bfad_s *)ioc->bfa->bfad; 1820 1844 1821 - /** 1845 + /* 1822 1846 * Notify driver and common modules registered for notification. 1823 1847 */ 1824 1848 ioc->cbfn->hbfail_cbfn(ioc->bfa); ··· 2255 2279 return BFA_TRUE; 2256 2280 } 2257 2281 2258 - /** 2282 + /* 2259 2283 * Reset IOC fwstate registers. 2260 2284 */ 2261 2285 void
-9
drivers/scsi/bfa/bfa_ioc.h
··· 296 296 #define BFA_IOC_FLASH_OFFSET_IN_CHUNK(off) (off % BFI_FLASH_CHUNK_SZ_WORDS) 297 297 #define BFA_IOC_FLASH_CHUNK_ADDR(chunkno) (chunkno * BFI_FLASH_CHUNK_SZ_WORDS) 298 298 299 - #ifdef BFA_IOC_IS_UEFI 300 - #define bfa_ioc_is_bios_optrom(__ioc) (0) 301 - #define bfa_ioc_is_uefi(__ioc) BFA_IOC_IS_UEFI 302 - #else 303 - #define bfa_ioc_is_bios_optrom(__ioc) \ 304 - (bfa_cb_image_get_size(BFA_IOC_FWIMG_TYPE(__ioc)) < BFA_IOC_FWIMG_MINSZ) 305 - #define bfa_ioc_is_uefi(__ioc) (0) 306 - #endif 307 - 308 299 /* 309 300 * IOC mailbox interface 310 301 */
+4 -5
drivers/scsi/bfa/bfa_ioc_cb.c
··· 61 61 ioc->ioc_hwif = &hwif_cb; 62 62 } 63 63 64 - /** 64 + /* 65 65 * Return true if firmware of current driver matches the running firmware. 66 66 */ 67 67 static bfa_boolean_t ··· 70 70 struct bfi_ioc_image_hdr_s fwhdr; 71 71 uint32_t fwstate = readl(ioc->ioc_regs.ioc_fwstate); 72 72 73 - if ((fwstate == BFI_IOC_UNINIT) || bfa_ioc_is_uefi(ioc) || 74 - bfa_ioc_is_bios_optrom(ioc)) 73 + if (fwstate == BFI_IOC_UNINIT) 75 74 return BFA_TRUE; 76 75 77 76 bfa_ioc_fwver_get(ioc, &fwhdr); ··· 210 211 writel(1, ioc->ioc_regs.ioc_sem_reg); 211 212 } 212 213 213 - /** 214 + /* 214 215 * Synchronized IOC failure processing routines 215 216 */ 216 217 static void ··· 235 236 uint32_t fwstate, alt_fwstate; 236 237 fwstate = readl(ioc->ioc_regs.ioc_fwstate); 237 238 238 - /** 239 + /* 239 240 * At this point, this IOC is hoding the hw sem in the 240 241 * start path (fwcheck) OR in the disable/enable path 241 242 * OR to check if the other IOC has acknowledged failure.
+3 -3
drivers/scsi/bfa/bfa_ioc_ct.c
··· 351 351 writel(1, ioc->ioc_regs.ioc_sem_reg); 352 352 } 353 353 354 - /** 354 + /* 355 355 * Synchronized IOC failure processing routines 356 356 */ 357 357 static void ··· 393 393 if (sync_ackd == 0) 394 394 return BFA_TRUE; 395 395 396 - /** 396 + /* 397 397 * The check below is to see whether any other PCI fn 398 398 * has reinitialized the ASIC (reset sync_ackd bits) 399 399 * and failed again while this IOC was waiting for hw ··· 412 412 return BFA_TRUE; 413 413 } 414 414 415 - /** 415 + /* 416 416 * If another PCI fn reinitialized and failed again while 417 417 * this IOC was waiting for hw sem, the sync_ackd bit for 418 418 * this IOC need to be set again to allow reinitialization.
+3 -3
drivers/scsi/bfa/bfa_svc.c
··· 1372 1372 } 1373 1373 } 1374 1374 1375 - /** 1375 + /* 1376 1376 * login complete 1377 1377 */ 1378 1378 static void ··· 1691 1691 bfa_reqq_produce(lps->bfa, lps->reqq); 1692 1692 } 1693 1693 1694 - /** 1694 + /* 1695 1695 * send n2n pid set request to firmware 1696 1696 */ 1697 1697 static void ··· 1930 1930 return BFA_LPS_FROM_TAG(mod, 0)->lp_pid; 1931 1931 } 1932 1932 1933 - /** 1933 + /* 1934 1934 * Set PID in case of n2n (which is assigned during PLOGI) 1935 1935 */ 1936 1936 void