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

drivers/net/ethernet: Fix non-kernel-doc comments with kernel-doc start markers

Convert doxygen (or similar) formatted comments to kernel-doc or
unformatted comment. Delete a few that are content-free.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Acked-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Ben Hutchings and committed by
David S. Miller
1aa8b471 49ce9c2c

+342 -892
-9
drivers/net/ethernet/broadcom/bnx2x/bnx2x.h
··· 1741 1741 struct bnx2x_vlan_mac_obj *obj, bool set, 1742 1742 int mac_type, unsigned long *ramrod_flags); 1743 1743 /** 1744 - * Deletes all MACs configured for the specific MAC object. 1745 - * 1746 - * @param bp Function driver instance 1747 - * @param mac_obj MAC object to cleanup 1748 - * 1749 - * @return zero if all MACs were cleaned 1750 - */ 1751 - 1752 - /** 1753 1744 * bnx2x_del_all_macs - delete all MACs configured for the specific MAC object 1754 1745 * 1755 1746 * @bp: driver handle
+1 -3
drivers/net/ethernet/broadcom/bnx2x/bnx2x_fw_defs.h
··· 321 321 #define DISABLE_STATISTIC_COUNTER_ID_VALUE 0 322 322 323 323 324 - /** 325 - * This file defines HSI constants common to all microcode flows 326 - */ 324 + /* This file defines HSI constants common to all microcode flows */ 327 325 328 326 #define PROTOCOL_STATE_BIT_OFFSET 6 329 327
+1 -2
drivers/net/ethernet/broadcom/bnx2x/bnx2x_link.h
··· 493 493 struct bnx2x_ets_cos_params cos[DCBX_MAX_NUM_COS]; 494 494 }; 495 495 496 - /** 497 - * Used to update the PFC attributes in EMAC, BMAC, NIG and BRB 496 + /* Used to update the PFC attributes in EMAC, BMAC, NIG and BRB 498 497 * when link is already up 499 498 */ 500 499 int bnx2x_update_pfc(struct link_params *params,
+1 -2
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c
··· 11560 11560 } 11561 11561 } 11562 11562 11563 - /** 11564 - * IRO array is stored in the following format: 11563 + /* IRO array is stored in the following format: 11565 11564 * {base(24bit), m1(16bit), m2(16bit), m3(16bit), size(16bit) } 11566 11565 */ 11567 11566 static void bnx2x_prep_iro(const u8 *_source, u8 *_target, u32 n)
+1 -2
drivers/net/ethernet/broadcom/bnx2x/bnx2x_reg.h
··· 7275 7275 #define CDU_REGION_NUMBER_UCM_AG 4 7276 7276 7277 7277 7278 - /** 7279 - * String-to-compress [31:8] = CID (all 24 bits) 7278 + /* String-to-compress [31:8] = CID (all 24 bits) 7280 7279 * String-to-compress [7:4] = Region 7281 7280 * String-to-compress [3:0] = Type 7282 7281 */
+15 -21
drivers/net/ethernet/broadcom/bnx2x/bnx2x_sp.h
··· 167 167 union bnx2x_qable_obj *o, 168 168 struct bnx2x_exeq_elem *elem); 169 169 170 - /** 171 - * @return positive is entry was optimized, 0 - if not, negative 172 - * in case of an error. 170 + /* Return positive if entry was optimized, 0 - if not, negative 171 + * in case of an error. 173 172 */ 174 173 typedef int (*exe_q_optimize)(struct bnx2x *bp, 175 174 union bnx2x_qable_obj *o, ··· 1285 1286 struct bnx2x_rx_mode_obj *o); 1286 1287 1287 1288 /** 1288 - * Send and RX_MODE ramrod according to the provided parameters. 1289 + * bnx2x_config_rx_mode - Send and RX_MODE ramrod according to the provided parameters. 1289 1290 * 1290 - * @param bp 1291 - * @param p Command parameters 1291 + * @p: Command parameters 1292 1292 * 1293 - * @return 0 - if operation was successfull and there is no pending completions, 1293 + * Return: 0 - if operation was successfull and there is no pending completions, 1294 1294 * positive number - if there are pending completions, 1295 1295 * negative - if there were errors 1296 1296 */ ··· 1306 1308 bnx2x_obj_type type); 1307 1309 1308 1310 /** 1309 - * Configure multicast MACs list. May configure a new list 1311 + * bnx2x_config_mcast - Configure multicast MACs list. 1312 + * 1313 + * @cmd: command to execute: BNX2X_MCAST_CMD_X 1314 + * 1315 + * May configure a new list 1310 1316 * provided in p->mcast_list (BNX2X_MCAST_CMD_ADD), clean up 1311 1317 * (BNX2X_MCAST_CMD_DEL) or restore (BNX2X_MCAST_CMD_RESTORE) a current 1312 1318 * configuration, continue to execute the pending commands ··· 1321 1319 * the current command will be enqueued to the tail of the 1322 1320 * pending commands list. 1323 1321 * 1324 - * @param bp 1325 - * @param p 1326 - * @param command to execute: BNX2X_MCAST_CMD_X 1327 - * 1328 - * @return 0 is operation was sucessfull and there are no pending completions, 1322 + * Return: 0 is operation was sucessfull and there are no pending completions, 1329 1323 * negative if there were errors, positive if there are pending 1330 1324 * completions. 1331 1325 */ ··· 1346 1348 bnx2x_obj_type type); 1347 1349 1348 1350 /** 1349 - * Updates RSS configuration according to provided parameters. 1351 + * bnx2x_config_rss - Updates RSS configuration according to provided parameters 1350 1352 * 1351 - * @param bp 1352 - * @param p 1353 - * 1354 - * @return 0 in case of success 1353 + * Return: 0 in case of success 1355 1354 */ 1356 1355 int bnx2x_config_rss(struct bnx2x *bp, 1357 1356 struct bnx2x_config_rss_params *p); 1358 1357 1359 1358 /** 1360 - * Return the current ind_table configuration. 1359 + * bnx2x_get_rss_ind_table - Return the current ind_table configuration. 1361 1360 * 1362 - * @param bp 1363 - * @param ind_table buffer to fill with the current indirection 1361 + * @ind_table: buffer to fill with the current indirection 1364 1362 * table content. Should be at least 1365 1363 * T_ETH_INDIRECTION_TABLE_SIZE bytes long. 1366 1364 */
+1 -4
drivers/net/ethernet/broadcom/bnx2x/bnx2x_stats.c
··· 1321 1321 bnx2x_stats_comp(bp); 1322 1322 } 1323 1323 1324 - /** 1325 - * This function will prepare the statistics ramrod data the way 1324 + /* This function will prepare the statistics ramrod data the way 1326 1325 * we will only have to increment the statistics counter and 1327 1326 * send the ramrod each time we have to. 1328 - * 1329 - * @param bp 1330 1327 */ 1331 1328 static void bnx2x_prep_fw_stats_req(struct bnx2x *bp) 1332 1329 {
+1 -3
drivers/net/ethernet/broadcom/cnic.c
··· 5542 5542 rcu_read_unlock(); 5543 5543 } 5544 5544 5545 - /** 5546 - * netdev event handler 5547 - */ 5545 + /* netdev event handler */ 5548 5546 static int cnic_netdev_event(struct notifier_block *this, unsigned long event, 5549 5547 void *ptr) 5550 5548 {
+17 -44
drivers/net/ethernet/brocade/bna/bfa_cee.c
··· 127 127 cee->cbfn.reset_stats_cbfn(cee->cbfn.reset_stats_cbarg, status); 128 128 } 129 129 /** 130 - * bfa_nw_cee_meminfo() 131 - * 132 - * @brief Returns the size of the DMA memory needed by CEE module 133 - * 134 - * @param[in] void 135 - * 136 - * @return Size of DMA region 130 + * bfa_nw_cee_meminfo - Returns the size of the DMA memory needed by CEE module 137 131 */ 138 132 u32 139 133 bfa_nw_cee_meminfo(void) ··· 136 142 } 137 143 138 144 /** 139 - * bfa_nw_cee_mem_claim() 145 + * bfa_nw_cee_mem_claim - Initialized CEE DMA Memory 140 146 * 141 - * @brief Initialized CEE DMA Memory 142 - * 143 - * @param[in] cee CEE module pointer 144 - * dma_kva Kernel Virtual Address of CEE DMA Memory 145 - * dma_pa Physical Address of CEE DMA Memory 146 - * 147 - * @return void 147 + * @cee: CEE module pointer 148 + * @dma_kva: Kernel Virtual Address of CEE DMA Memory 149 + * @dma_pa: Physical Address of CEE DMA Memory 148 150 */ 149 151 void 150 152 bfa_nw_cee_mem_claim(struct bfa_cee *cee, u8 *dma_kva, u64 dma_pa) ··· 155 165 } 156 166 157 167 /** 158 - * bfa_cee_get_attr() 168 + * bfa_cee_get_attr - Send the request to the f/w to fetch CEE attributes. 159 169 * 160 - * @brief Send the request to the f/w to fetch CEE attributes. 170 + * @cee: Pointer to the CEE module data structure. 161 171 * 162 - * @param[in] Pointer to the CEE module data structure. 163 - * 164 - * @return Status 172 + * Return: status 165 173 */ 166 174 enum bfa_status 167 175 bfa_nw_cee_get_attr(struct bfa_cee *cee, struct bfa_cee_attr *attr, ··· 188 200 } 189 201 190 202 /** 191 - * bfa_cee_isrs() 192 - * 193 - * @brief Handles Mail-box interrupts for CEE module. 194 - * 195 - * @param[in] Pointer to the CEE module data structure. 196 - * 197 - * @return void 203 + * bfa_cee_isrs - Handles Mail-box interrupts for CEE module. 198 204 */ 199 205 200 206 static void ··· 215 233 } 216 234 217 235 /** 218 - * bfa_cee_notify() 236 + * bfa_cee_notify - CEE module heart-beat failure handler. 219 237 * 220 - * @brief CEE module heart-beat failure handler. 221 - * @brief CEE module IOC event handler. 222 - * 223 - * @param[in] IOC event type 224 - * 225 - * @return void 238 + * @event: IOC event type 226 239 */ 227 240 228 241 static void ··· 264 287 } 265 288 266 289 /** 267 - * bfa_nw_cee_attach() 290 + * bfa_nw_cee_attach - CEE module-attach API 268 291 * 269 - * @brief CEE module-attach API 270 - * 271 - * @param[in] cee - Pointer to the CEE module data structure 272 - * ioc - Pointer to the ioc module data structure 273 - * dev - Pointer to the device driver module data structure 274 - * The device driver specific mbox ISR functions have 275 - * this pointer as one of the parameters. 276 - * 277 - * @return void 292 + * @cee: Pointer to the CEE module data structure 293 + * @ioc: Pointer to the ioc module data structure 294 + * @dev: Pointer to the device driver module data structure. 295 + * The device driver specific mbox ISR functions have 296 + * this pointer as one of the parameters. 278 297 */ 279 298 void 280 299 bfa_nw_cee_attach(struct bfa_cee *cee, struct bfa_ioc *ioc,
+9 -25
drivers/net/ethernet/brocade/bna/bfa_cs.h
··· 16 16 * www.brocade.com 17 17 */ 18 18 19 - /** 20 - * @file bfa_cs.h BFA common services 21 - */ 19 + /* BFA common services */ 22 20 23 21 #ifndef __BFA_CS_H__ 24 22 #define __BFA_CS_H__ 25 23 26 24 #include "cna.h" 27 25 28 - /** 29 - * @ BFA state machine interfaces 30 - */ 26 + /* BFA state machine interfaces */ 31 27 32 28 typedef void (*bfa_sm_t)(void *sm, int event); 33 29 34 - /** 35 - * oc - object class eg. bfa_ioc 30 + /* oc - object class eg. bfa_ioc 36 31 * st - state, eg. reset 37 32 * otype - object type, eg. struct bfa_ioc 38 33 * etype - object type, eg. enum ioc_event ··· 40 45 #define bfa_sm_get_state(_sm) ((_sm)->sm) 41 46 #define bfa_sm_cmp_state(_sm, _state) ((_sm)->sm == (bfa_sm_t)(_state)) 42 47 43 - /** 44 - * For converting from state machine function to state encoding. 45 - */ 48 + /* For converting from state machine function to state encoding. */ 46 49 struct bfa_sm_table { 47 50 bfa_sm_t sm; /*!< state machine function */ 48 51 int state; /*!< state machine encoding */ ··· 48 55 }; 49 56 #define BFA_SM(_sm) ((bfa_sm_t)(_sm)) 50 57 51 - /** 52 - * State machine with entry actions. 53 - */ 58 + /* State machine with entry actions. */ 54 59 typedef void (*bfa_fsm_t)(void *fsm, int event); 55 60 56 - /** 57 - * oc - object class eg. bfa_ioc 61 + /* oc - object class eg. bfa_ioc 58 62 * st - state, eg. reset 59 63 * otype - object type, eg. struct bfa_ioc 60 64 * etype - object type, eg. enum ioc_event ··· 80 90 return smt[i].state; 81 91 } 82 92 83 - /** 84 - * @ Generic wait counter. 85 - */ 93 + /* Generic wait counter. */ 86 94 87 95 typedef void (*bfa_wc_resume_t) (void *cbarg); 88 96 ··· 104 116 wc->wc_resume(wc->wc_cbarg); 105 117 } 106 118 107 - /** 108 - * Initialize a waiting counter. 109 - */ 119 + /* Initialize a waiting counter. */ 110 120 static inline void 111 121 bfa_wc_init(struct bfa_wc *wc, bfa_wc_resume_t wc_resume, void *wc_cbarg) 112 122 { ··· 114 128 bfa_wc_up(wc); 115 129 } 116 130 117 - /** 118 - * Wait for counter to reach zero 119 - */ 131 + /* Wait for counter to reach zero */ 120 132 static inline void 121 133 bfa_wc_wait(struct bfa_wc *wc) 122 134 {
+16 -47
drivers/net/ethernet/brocade/bna/bfa_defs.h
··· 26 26 #define BFA_STRING_32 32 27 27 #define BFA_VERSION_LEN 64 28 28 29 - /** 30 - * ---------------------- adapter definitions ------------ 31 - */ 29 + /* ---------------------- adapter definitions ------------ */ 32 30 33 - /** 34 - * BFA adapter level attributes. 35 - */ 31 + /* BFA adapter level attributes. */ 36 32 enum { 37 33 BFA_ADAPTER_SERIAL_NUM_LEN = STRSZ(BFA_MFG_SERIALNUM_SIZE), 38 34 /* ··· 70 74 u8 trunk_capable; 71 75 }; 72 76 73 - /** 74 - * ---------------------- IOC definitions ------------ 75 - */ 77 + /* ---------------------- IOC definitions ------------ */ 76 78 77 79 enum { 78 80 BFA_IOC_DRIVER_LEN = 16, 79 81 BFA_IOC_CHIP_REV_LEN = 8, 80 82 }; 81 83 82 - /** 83 - * Driver and firmware versions. 84 - */ 84 + /* Driver and firmware versions. */ 85 85 struct bfa_ioc_driver_attr { 86 86 char driver[BFA_IOC_DRIVER_LEN]; /*!< driver name */ 87 87 char driver_ver[BFA_VERSION_LEN]; /*!< driver version */ ··· 87 95 char ob_ver[BFA_VERSION_LEN]; /*!< openboot version */ 88 96 }; 89 97 90 - /** 91 - * IOC PCI device attributes 92 - */ 98 + /* IOC PCI device attributes */ 93 99 struct bfa_ioc_pci_attr { 94 100 u16 vendor_id; /*!< PCI vendor ID */ 95 101 u16 device_id; /*!< PCI device ID */ ··· 98 108 char chip_rev[BFA_IOC_CHIP_REV_LEN]; /*!< chip revision */ 99 109 }; 100 110 101 - /** 102 - * IOC states 103 - */ 111 + /* IOC states */ 104 112 enum bfa_ioc_state { 105 113 BFA_IOC_UNINIT = 1, /*!< IOC is in uninit state */ 106 114 BFA_IOC_RESET = 2, /*!< IOC is in reset state */ ··· 115 127 BFA_IOC_HWFAIL = 13, /*!< PCI mapping doesn't exist */ 116 128 }; 117 129 118 - /** 119 - * IOC firmware stats 120 - */ 130 + /* IOC firmware stats */ 121 131 struct bfa_fw_ioc_stats { 122 132 u32 enable_reqs; 123 133 u32 disable_reqs; ··· 125 139 u32 unknown_reqs; 126 140 }; 127 141 128 - /** 129 - * IOC driver stats 130 - */ 142 + /* IOC driver stats */ 131 143 struct bfa_ioc_drv_stats { 132 144 u32 ioc_isrs; 133 145 u32 ioc_enables; ··· 141 157 u32 rsvd; 142 158 }; 143 159 144 - /** 145 - * IOC statistics 146 - */ 160 + /* IOC statistics */ 147 161 struct bfa_ioc_stats { 148 162 struct bfa_ioc_drv_stats drv_stats; /*!< driver IOC stats */ 149 163 struct bfa_fw_ioc_stats fw_stats; /*!< firmware IOC stats */ ··· 153 171 BFA_IOC_TYPE_LL = 3, 154 172 }; 155 173 156 - /** 157 - * IOC attributes returned in queries 158 - */ 174 + /* IOC attributes returned in queries */ 159 175 struct bfa_ioc_attr { 160 176 enum bfa_ioc_type ioc_type; 161 177 enum bfa_ioc_state state; /*!< IOC state */ ··· 167 187 u8 rsvd[4]; /*!< 64bit align */ 168 188 }; 169 189 170 - /** 171 - * Adapter capability mask definition 172 - */ 190 + /* Adapter capability mask definition */ 173 191 enum { 174 192 BFA_CM_HBA = 0x01, 175 193 BFA_CM_CNA = 0x02, 176 194 BFA_CM_NIC = 0x04, 177 195 }; 178 196 179 - /** 180 - * ---------------------- mfg definitions ------------ 181 - */ 197 + /* ---------------------- mfg definitions ------------ */ 182 198 183 - /** 184 - * Checksum size 185 - */ 199 + /* Checksum size */ 186 200 #define BFA_MFG_CHKSUM_SIZE 16 187 201 188 202 #define BFA_MFG_PARTNUM_SIZE 14 ··· 187 213 188 214 #pragma pack(1) 189 215 190 - /** 191 - * @brief BFA adapter manufacturing block definition. 216 + /* BFA adapter manufacturing block definition. 192 217 * 193 218 * All numerical fields are in big-endian format. 194 219 */ ··· 229 256 230 257 #pragma pack() 231 258 232 - /** 233 - * ---------------------- pci definitions ------------ 234 - */ 259 + /* ---------------------- pci definitions ------------ */ 235 260 236 261 /* 237 262 * PCI device ID information ··· 246 275 #define bfa_asic_id_ctc(device) \ 247 276 (bfa_asic_id_ct(device) || bfa_asic_id_ct2(device)) 248 277 249 - /** 250 - * PCI sub-system device and vendor ID information 251 - */ 278 + /* PCI sub-system device and vendor ID information */ 252 279 enum { 253 280 BFA_PCI_FCOE_SSDEVICE_ID = 0x14, 254 281 BFA_PCI_CT2_SSID_FCoE = 0x22,
+3 -12
drivers/net/ethernet/brocade/bna/bfa_defs_cna.h
··· 20 20 21 21 #include "bfa_defs.h" 22 22 23 - /** 24 - * @brief 25 - * FC physical port statistics. 26 - */ 23 + /* FC physical port statistics. */ 27 24 struct bfa_port_fc_stats { 28 25 u64 secs_reset; /*!< Seconds since stats is reset */ 29 26 u64 tx_frames; /*!< Tx frames */ ··· 56 59 u64 bbsc_link_resets; /*!< Credit Recovery-Link Resets */ 57 60 }; 58 61 59 - /** 60 - * @brief 61 - * Eth Physical Port statistics. 62 - */ 62 + /* Eth Physical Port statistics. */ 63 63 struct bfa_port_eth_stats { 64 64 u64 secs_reset; /*!< Seconds since stats is reset */ 65 65 u64 frame_64; /*!< Frames 64 bytes */ ··· 102 108 u64 tx_iscsi_zero_pause; /*!< Tx iSCSI zero pause */ 103 109 }; 104 110 105 - /** 106 - * @brief 107 - * Port statistics. 108 - */ 111 + /* Port statistics. */ 109 112 union bfa_port_stats_u { 110 113 struct bfa_port_fc_stats fc; 111 114 struct bfa_port_eth_stats eth;
+9 -26
drivers/net/ethernet/brocade/bna/bfa_defs_mfg_comm.h
··· 20 20 21 21 #include "bfa_defs.h" 22 22 23 - /** 24 - * Manufacturing block version 25 - */ 23 + /* Manufacturing block version */ 26 24 #define BFA_MFG_VERSION 3 27 25 #define BFA_MFG_VERSION_UNINIT 0xFF 28 26 29 - /** 30 - * Manufacturing block encrypted version 31 - */ 27 + /* Manufacturing block encrypted version */ 32 28 #define BFA_MFG_ENC_VER 2 33 29 34 - /** 35 - * Manufacturing block version 1 length 36 - */ 30 + /* Manufacturing block version 1 length */ 37 31 #define BFA_MFG_VER1_LEN 128 38 32 39 - /** 40 - * Manufacturing block header length 41 - */ 33 + /* Manufacturing block header length */ 42 34 #define BFA_MFG_HDR_LEN 4 43 35 44 36 #define BFA_MFG_SERIALNUM_SIZE 11 45 37 #define STRSZ(_n) (((_n) + 4) & ~3) 46 38 47 - /** 48 - * Manufacturing card type 49 - */ 39 + /* Manufacturing card type */ 50 40 enum { 51 41 BFA_MFG_TYPE_CB_MAX = 825, /*!< Crossbow card type max */ 52 42 BFA_MFG_TYPE_FC8P2 = 825, /*!< 8G 2port FC card */ ··· 60 70 61 71 #pragma pack(1) 62 72 63 - /** 64 - * Check if Mezz card 65 - */ 73 + /* Check if Mezz card */ 66 74 #define bfa_mfg_is_mezz(type) (( \ 67 75 (type) == BFA_MFG_TYPE_JAYHAWK || \ 68 76 (type) == BFA_MFG_TYPE_WANCHESE || \ ··· 115 127 } \ 116 128 } while (0) 117 129 118 - /** 119 - * VPD data length 120 - */ 130 + /* VPD data length */ 121 131 #define BFA_MFG_VPD_LEN 512 122 132 #define BFA_MFG_VPD_LEN_INVALID 0 123 133 ··· 123 137 #define BFA_MFG_VPD_PCI_VER_MASK 0x07 /*!< version mask 3 bits */ 124 138 #define BFA_MFG_VPD_PCI_VDR_MASK 0xf8 /*!< vendor mask 5 bits */ 125 139 126 - /** 127 - * VPD vendor tag 128 - */ 140 + /* VPD vendor tag */ 129 141 enum { 130 142 BFA_MFG_VPD_UNKNOWN = 0, /*!< vendor unknown */ 131 143 BFA_MFG_VPD_IBM = 1, /*!< vendor IBM */ ··· 135 151 BFA_MFG_VPD_PCI_BRCD = 0xf8, /*!< PCI VPD Brocade */ 136 152 }; 137 153 138 - /** 139 - * @brief BFA adapter flash vpd data definition. 154 + /* BFA adapter flash vpd data definition. 140 155 * 141 156 * All numerical fields are in big-endian format. 142 157 */
+1 -2
drivers/net/ethernet/brocade/bna/bfa_defs_status.h
··· 18 18 #ifndef __BFA_DEFS_STATUS_H__ 19 19 #define __BFA_DEFS_STATUS_H__ 20 20 21 - /** 22 - * API status return values 21 + /* API status return values 23 22 * 24 23 * NOTE: The error msgs are auto generated from the comments. Only singe line 25 24 * comments are supported
+128 -265
drivers/net/ethernet/brocade/bna/bfa_ioc.c
··· 20 20 #include "bfi_reg.h" 21 21 #include "bfa_defs.h" 22 22 23 - /** 24 - * IOC local definitions 25 - */ 23 + /* IOC local definitions */ 26 24 27 - /** 28 - * Asic specific macros : see bfa_hw_cb.c and bfa_hw_ct.c for details. 29 - */ 25 + /* Asic specific macros : see bfa_hw_cb.c and bfa_hw_ct.c for details. */ 30 26 31 27 #define bfa_ioc_firmware_lock(__ioc) \ 32 28 ((__ioc)->ioc_hwif->ioc_firmware_lock(__ioc)) ··· 92 96 static void bfa_ioc_get_adapter_model(struct bfa_ioc *ioc, char *model); 93 97 static u64 bfa_ioc_get_pwwn(struct bfa_ioc *ioc); 94 98 95 - /** 96 - * IOC state machine definitions/declarations 97 - */ 99 + /* IOC state machine definitions/declarations */ 98 100 enum ioc_event { 99 101 IOC_E_RESET = 1, /*!< IOC reset request */ 100 102 IOC_E_ENABLE = 2, /*!< IOC enable request */ ··· 142 148 static void bfa_iocpf_getattrfail(struct bfa_ioc *ioc); 143 149 static void bfa_iocpf_stop(struct bfa_ioc *ioc); 144 150 145 - /** 146 - * IOCPF state machine events 147 - */ 151 + /* IOCPF state machine events */ 148 152 enum iocpf_event { 149 153 IOCPF_E_ENABLE = 1, /*!< IOCPF enable request */ 150 154 IOCPF_E_DISABLE = 2, /*!< IOCPF disable request */ ··· 158 166 IOCPF_E_SEM_ERROR = 12, /*!< h/w sem mapping error */ 159 167 }; 160 168 161 - /** 162 - * IOCPF states 163 - */ 169 + /* IOCPF states */ 164 170 enum bfa_iocpf_state { 165 171 BFA_IOCPF_RESET = 1, /*!< IOC is in reset state */ 166 172 BFA_IOCPF_SEMWAIT = 2, /*!< Waiting for IOC h/w semaphore */ ··· 205 215 {BFA_SM(bfa_iocpf_sm_disabled), BFA_IOCPF_DISABLED}, 206 216 }; 207 217 208 - /** 209 - * IOC State Machine 210 - */ 218 + /* IOC State Machine */ 211 219 212 - /** 213 - * Beginning state. IOC uninit state. 214 - */ 220 + /* Beginning state. IOC uninit state. */ 215 221 static void 216 222 bfa_ioc_sm_uninit_entry(struct bfa_ioc *ioc) 217 223 { 218 224 } 219 225 220 - /** 221 - * IOC is in uninit state. 222 - */ 226 + /* IOC is in uninit state. */ 223 227 static void 224 228 bfa_ioc_sm_uninit(struct bfa_ioc *ioc, enum ioc_event event) 225 229 { ··· 227 243 } 228 244 } 229 245 230 - /** 231 - * Reset entry actions -- initialize state machine 232 - */ 246 + /* Reset entry actions -- initialize state machine */ 233 247 static void 234 248 bfa_ioc_sm_reset_entry(struct bfa_ioc *ioc) 235 249 { 236 250 bfa_fsm_set_state(&ioc->iocpf, bfa_iocpf_sm_reset); 237 251 } 238 252 239 - /** 240 - * IOC is in reset state. 241 - */ 253 + /* IOC is in reset state. */ 242 254 static void 243 255 bfa_ioc_sm_reset(struct bfa_ioc *ioc, enum ioc_event event) 244 256 { ··· 262 282 bfa_iocpf_enable(ioc); 263 283 } 264 284 265 - /** 266 - * Host IOC function is being enabled, awaiting response from firmware. 285 + /* Host IOC function is being enabled, awaiting response from firmware. 267 286 * Semaphore is acquired. 268 287 */ 269 288 static void ··· 304 325 } 305 326 } 306 327 307 - /** 308 - * Semaphore should be acquired for version check. 309 - */ 328 + /* Semaphore should be acquired for version check. */ 310 329 static void 311 330 bfa_ioc_sm_getattr_entry(struct bfa_ioc *ioc) 312 331 { ··· 313 336 bfa_ioc_send_getattr(ioc); 314 337 } 315 338 316 - /** 317 - * IOC configuration in progress. Timer is active. 318 - */ 339 + /* IOC configuration in progress. Timer is active. */ 319 340 static void 320 341 bfa_ioc_sm_getattr(struct bfa_ioc *ioc, enum ioc_event event) 321 342 { ··· 394 419 bfa_iocpf_disable(ioc); 395 420 } 396 421 397 - /** 398 - * IOC is being disabled 399 - */ 422 + /* IOC is being disabled */ 400 423 static void 401 424 bfa_ioc_sm_disabling(struct bfa_ioc *ioc, enum ioc_event event) 402 425 { ··· 422 449 } 423 450 } 424 451 425 - /** 426 - * IOC disable completion entry. 427 - */ 452 + /* IOC disable completion entry. */ 428 453 static void 429 454 bfa_ioc_sm_disabled_entry(struct bfa_ioc *ioc) 430 455 { ··· 456 485 { 457 486 } 458 487 459 - /** 460 - * Hardware initialization retry. 461 - */ 488 + /* Hardware initialization retry. */ 462 489 static void 463 490 bfa_ioc_sm_fail_retry(struct bfa_ioc *ioc, enum ioc_event event) 464 491 { ··· 503 534 { 504 535 } 505 536 506 - /** 507 - * IOC failure. 508 - */ 537 + /* IOC failure. */ 509 538 static void 510 539 bfa_ioc_sm_fail(struct bfa_ioc *ioc, enum ioc_event event) 511 540 { ··· 535 568 { 536 569 } 537 570 538 - /** 539 - * IOC failure. 540 - */ 571 + /* IOC failure. */ 541 572 static void 542 573 bfa_ioc_sm_hwfail(struct bfa_ioc *ioc, enum ioc_event event) 543 574 { ··· 558 593 } 559 594 } 560 595 561 - /** 562 - * IOCPF State Machine 563 - */ 596 + /* IOCPF State Machine */ 564 597 565 - /** 566 - * Reset entry actions -- initialize state machine 567 - */ 598 + /* Reset entry actions -- initialize state machine */ 568 599 static void 569 600 bfa_iocpf_sm_reset_entry(struct bfa_iocpf *iocpf) 570 601 { ··· 568 607 iocpf->auto_recover = bfa_nw_auto_recover; 569 608 } 570 609 571 - /** 572 - * Beginning state. IOC is in reset state. 573 - */ 610 + /* Beginning state. IOC is in reset state. */ 574 611 static void 575 612 bfa_iocpf_sm_reset(struct bfa_iocpf *iocpf, enum iocpf_event event) 576 613 { ··· 585 626 } 586 627 } 587 628 588 - /** 589 - * Semaphore should be acquired for version check. 590 - */ 629 + /* Semaphore should be acquired for version check. */ 591 630 static void 592 631 bfa_iocpf_sm_fwcheck_entry(struct bfa_iocpf *iocpf) 593 632 { ··· 593 636 bfa_ioc_hw_sem_get(iocpf->ioc); 594 637 } 595 638 596 - /** 597 - * Awaiting h/w semaphore to continue with version check. 598 - */ 639 + /* Awaiting h/w semaphore to continue with version check. */ 599 640 static void 600 641 bfa_iocpf_sm_fwcheck(struct bfa_iocpf *iocpf, enum iocpf_event event) 601 642 { ··· 638 683 } 639 684 } 640 685 641 - /** 642 - * Notify enable completion callback 643 - */ 686 + /* Notify enable completion callback */ 644 687 static void 645 688 bfa_iocpf_sm_mismatch_entry(struct bfa_iocpf *iocpf) 646 689 { ··· 651 698 msecs_to_jiffies(BFA_IOC_TOV)); 652 699 } 653 700 654 - /** 655 - * Awaiting firmware version match. 656 - */ 701 + /* Awaiting firmware version match. */ 657 702 static void 658 703 bfa_iocpf_sm_mismatch(struct bfa_iocpf *iocpf, enum iocpf_event event) 659 704 { ··· 678 727 } 679 728 } 680 729 681 - /** 682 - * Request for semaphore. 683 - */ 730 + /* Request for semaphore. */ 684 731 static void 685 732 bfa_iocpf_sm_semwait_entry(struct bfa_iocpf *iocpf) 686 733 { 687 734 bfa_ioc_hw_sem_get(iocpf->ioc); 688 735 } 689 736 690 - /** 691 - * Awaiting semaphore for h/w initialzation. 692 - */ 737 + /* Awaiting semaphore for h/w initialzation. */ 693 738 static void 694 739 bfa_iocpf_sm_semwait(struct bfa_iocpf *iocpf, enum iocpf_event event) 695 740 { ··· 725 778 bfa_ioc_reset(iocpf->ioc, false); 726 779 } 727 780 728 - /** 729 - * Hardware is being initialized. Interrupts are enabled. 781 + /* Hardware is being initialized. Interrupts are enabled. 730 782 * Holding hardware semaphore lock. 731 783 */ 732 784 static void ··· 768 822 bfa_ioc_send_enable(iocpf->ioc); 769 823 } 770 824 771 - /** 772 - * Host IOC function is being enabled, awaiting response from firmware. 825 + /* Host IOC function is being enabled, awaiting response from firmware. 773 826 * Semaphore is acquired. 774 827 */ 775 828 static void ··· 841 896 bfa_ioc_send_disable(iocpf->ioc); 842 897 } 843 898 844 - /** 845 - * IOC is being disabled 846 - */ 899 + /* IOC is being disabled */ 847 900 static void 848 901 bfa_iocpf_sm_disabling(struct bfa_iocpf *iocpf, enum iocpf_event event) 849 902 { ··· 878 935 bfa_ioc_hw_sem_get(iocpf->ioc); 879 936 } 880 937 881 - /** 882 - * IOC hb ack request is being removed. 883 - */ 938 + /* IOC hb ack request is being removed. */ 884 939 static void 885 940 bfa_iocpf_sm_disabling_sync(struct bfa_iocpf *iocpf, enum iocpf_event event) 886 941 { ··· 904 963 } 905 964 } 906 965 907 - /** 908 - * IOC disable completion entry. 909 - */ 966 + /* IOC disable completion entry. */ 910 967 static void 911 968 bfa_iocpf_sm_disabled_entry(struct bfa_iocpf *iocpf) 912 969 { ··· 939 1000 bfa_ioc_hw_sem_get(iocpf->ioc); 940 1001 } 941 1002 942 - /** 943 - * Hardware initialization failed. 944 - */ 1003 + /* Hardware initialization failed. */ 945 1004 static void 946 1005 bfa_iocpf_sm_initfail_sync(struct bfa_iocpf *iocpf, enum iocpf_event event) 947 1006 { ··· 983 1046 { 984 1047 } 985 1048 986 - /** 987 - * Hardware initialization failed. 988 - */ 1049 + /* Hardware initialization failed. */ 989 1050 static void 990 1051 bfa_iocpf_sm_initfail(struct bfa_iocpf *iocpf, enum iocpf_event event) 991 1052 { ··· 1019 1084 bfa_ioc_hw_sem_get(iocpf->ioc); 1020 1085 } 1021 1086 1022 - /** 1023 - * IOC is in failed state. 1024 - */ 1087 + /* IOC is in failed state. */ 1025 1088 static void 1026 1089 bfa_iocpf_sm_fail_sync(struct bfa_iocpf *iocpf, enum iocpf_event event) 1027 1090 { ··· 1067 1134 { 1068 1135 } 1069 1136 1070 - /** 1071 - * @brief 1072 - * IOC is in failed state. 1073 - */ 1137 + /* IOC is in failed state. */ 1074 1138 static void 1075 1139 bfa_iocpf_sm_fail(struct bfa_iocpf *iocpf, enum iocpf_event event) 1076 1140 { ··· 1081 1151 } 1082 1152 } 1083 1153 1084 - /** 1085 - * BFA IOC private functions 1086 - */ 1154 + /* BFA IOC private functions */ 1087 1155 1088 - /** 1089 - * Notify common modules registered for notification. 1090 - */ 1156 + /* Notify common modules registered for notification. */ 1091 1157 static void 1092 1158 bfa_ioc_event_notify(struct bfa_ioc *ioc, enum bfa_ioc_event event) 1093 1159 { ··· 1224 1298 del_timer(&ioc->sem_timer); 1225 1299 } 1226 1300 1227 - /** 1228 - * @brief 1229 - * Initialize LPU local memory (aka secondary memory / SRAM) 1230 - */ 1301 + /* Initialize LPU local memory (aka secondary memory / SRAM) */ 1231 1302 static void 1232 1303 bfa_ioc_lmem_init(struct bfa_ioc *ioc) 1233 1304 { ··· 1289 1366 writel(pss_ctl, ioc->ioc_regs.pss_ctl_reg); 1290 1367 } 1291 1368 1292 - /** 1293 - * Get driver and firmware versions. 1294 - */ 1369 + /* Get driver and firmware versions. */ 1295 1370 void 1296 1371 bfa_nw_ioc_fwver_get(struct bfa_ioc *ioc, struct bfi_ioc_image_hdr *fwhdr) 1297 1372 { ··· 1309 1388 } 1310 1389 } 1311 1390 1312 - /** 1313 - * Returns TRUE if same. 1314 - */ 1391 + /* Returns TRUE if same. */ 1315 1392 bool 1316 1393 bfa_nw_ioc_fwver_cmp(struct bfa_ioc *ioc, struct bfi_ioc_image_hdr *fwhdr) 1317 1394 { ··· 1327 1408 return true; 1328 1409 } 1329 1410 1330 - /** 1331 - * Return true if current running version is valid. Firmware signature and 1411 + /* Return true if current running version is valid. Firmware signature and 1332 1412 * execution context (driver/bios) must match. 1333 1413 */ 1334 1414 static bool ··· 1348 1430 return bfa_nw_ioc_fwver_cmp(ioc, &fwhdr); 1349 1431 } 1350 1432 1351 - /** 1352 - * Conditionally flush any pending message from firmware at start. 1353 - */ 1433 + /* Conditionally flush any pending message from firmware at start. */ 1354 1434 static void 1355 1435 bfa_ioc_msgflush(struct bfa_ioc *ioc) 1356 1436 { ··· 1359 1443 writel(1, ioc->ioc_regs.lpu_mbox_cmd); 1360 1444 } 1361 1445 1362 - /** 1363 - * @img ioc_init_logic.jpg 1364 - */ 1365 1446 static void 1366 1447 bfa_ioc_hwinit(struct bfa_ioc *ioc, bool force) 1367 1448 { ··· 1516 1603 del_timer(&ioc->hb_timer); 1517 1604 } 1518 1605 1519 - /** 1520 - * @brief 1521 - * Initiate a full firmware download. 1522 - */ 1606 + /* Initiate a full firmware download. */ 1523 1607 static void 1524 1608 bfa_ioc_download_fw(struct bfa_ioc *ioc, u32 boot_type, 1525 1609 u32 boot_env) ··· 1582 1672 bfa_ioc_hwinit(ioc, force); 1583 1673 } 1584 1674 1585 - /** 1586 - * BFA ioc enable reply by firmware 1587 - */ 1675 + /* BFA ioc enable reply by firmware */ 1588 1676 static void 1589 1677 bfa_ioc_enable_reply(struct bfa_ioc *ioc, enum bfa_mode port_mode, 1590 1678 u8 cap_bm) ··· 1594 1686 bfa_fsm_send_event(iocpf, IOCPF_E_FWRSP_ENABLE); 1595 1687 } 1596 1688 1597 - /** 1598 - * @brief 1599 - * Update BFA configuration from firmware configuration. 1600 - */ 1689 + /* Update BFA configuration from firmware configuration. */ 1601 1690 static void 1602 1691 bfa_ioc_getattr_reply(struct bfa_ioc *ioc) 1603 1692 { ··· 1607 1702 bfa_fsm_send_event(ioc, IOC_E_FWRSP_GETATTR); 1608 1703 } 1609 1704 1610 - /** 1611 - * Attach time initialization of mbox logic. 1612 - */ 1705 + /* Attach time initialization of mbox logic. */ 1613 1706 static void 1614 1707 bfa_ioc_mbox_attach(struct bfa_ioc *ioc) 1615 1708 { ··· 1621 1718 } 1622 1719 } 1623 1720 1624 - /** 1625 - * Mbox poll timer -- restarts any pending mailbox requests. 1626 - */ 1721 + /* Mbox poll timer -- restarts any pending mailbox requests. */ 1627 1722 static void 1628 1723 bfa_ioc_mbox_poll(struct bfa_ioc *ioc) 1629 1724 { ··· 1661 1760 } 1662 1761 } 1663 1762 1664 - /** 1665 - * Cleanup any pending requests. 1666 - */ 1763 + /* Cleanup any pending requests. */ 1667 1764 static void 1668 1765 bfa_ioc_mbox_flush(struct bfa_ioc *ioc) 1669 1766 { ··· 1673 1774 } 1674 1775 1675 1776 /** 1676 - * Read data from SMEM to host through PCI memmap 1777 + * bfa_nw_ioc_smem_read - Read data from SMEM to host through PCI memmap 1677 1778 * 1678 - * @param[in] ioc memory for IOC 1679 - * @param[in] tbuf app memory to store data from smem 1680 - * @param[in] soff smem offset 1681 - * @param[in] sz size of smem in bytes 1779 + * @ioc: memory for IOC 1780 + * @tbuf: app memory to store data from smem 1781 + * @soff: smem offset 1782 + * @sz: size of smem in bytes 1682 1783 */ 1683 1784 static int 1684 1785 bfa_nw_ioc_smem_read(struct bfa_ioc *ioc, void *tbuf, u32 soff, u32 sz) ··· 1725 1826 return 0; 1726 1827 } 1727 1828 1728 - /** 1729 - * Retrieve saved firmware trace from a prior IOC failure. 1730 - */ 1829 + /* Retrieve saved firmware trace from a prior IOC failure. */ 1731 1830 int 1732 1831 bfa_nw_ioc_debug_fwtrc(struct bfa_ioc *ioc, void *trcdata, int *trclen) 1733 1832 { ··· 1741 1844 return status; 1742 1845 } 1743 1846 1744 - /** 1745 - * Save firmware trace if configured. 1746 - */ 1847 + /* Save firmware trace if configured. */ 1747 1848 static void 1748 1849 bfa_nw_ioc_debug_save_ftrc(struct bfa_ioc *ioc) 1749 1850 { ··· 1756 1861 } 1757 1862 } 1758 1863 1759 - /** 1760 - * Retrieve saved firmware trace from a prior IOC failure. 1761 - */ 1864 + /* Retrieve saved firmware trace from a prior IOC failure. */ 1762 1865 int 1763 1866 bfa_nw_ioc_debug_fwsave(struct bfa_ioc *ioc, void *trcdata, int *trclen) 1764 1867 { ··· 1785 1892 bfa_nw_ioc_debug_save_ftrc(ioc); 1786 1893 } 1787 1894 1788 - /** 1789 - * IOCPF to IOC interface 1790 - */ 1895 + /* IOCPF to IOC interface */ 1791 1896 static void 1792 1897 bfa_ioc_pf_enabled(struct bfa_ioc *ioc) 1793 1898 { ··· 1819 1928 ioc->cbfn->enable_cbfn(ioc->bfa, BFA_STATUS_IOC_FAILURE); 1820 1929 } 1821 1930 1822 - /** 1823 - * IOC public 1824 - */ 1931 + /* IOC public */ 1825 1932 static enum bfa_status 1826 1933 bfa_ioc_pll_init(struct bfa_ioc *ioc) 1827 1934 { ··· 1843 1954 return BFA_STATUS_OK; 1844 1955 } 1845 1956 1846 - /** 1847 - * Interface used by diag module to do firmware boot with memory test 1957 + /* Interface used by diag module to do firmware boot with memory test 1848 1958 * as the entry vector. 1849 1959 */ 1850 1960 static void ··· 1871 1983 bfa_ioc_lpu_start(ioc); 1872 1984 } 1873 1985 1874 - /** 1875 - * Enable/disable IOC failure auto recovery. 1876 - */ 1986 + /* Enable/disable IOC failure auto recovery. */ 1877 1987 void 1878 1988 bfa_nw_ioc_auto_recover(bool auto_recover) 1879 1989 { ··· 1942 2056 } 1943 2057 1944 2058 /** 1945 - * IOC attach time initialization and setup. 2059 + * bfa_nw_ioc_attach - IOC attach time initialization and setup. 1946 2060 * 1947 - * @param[in] ioc memory for IOC 1948 - * @param[in] bfa driver instance structure 2061 + * @ioc: memory for IOC 2062 + * @bfa: driver instance structure 1949 2063 */ 1950 2064 void 1951 2065 bfa_nw_ioc_attach(struct bfa_ioc *ioc, void *bfa, struct bfa_ioc_cbfn *cbfn) ··· 1964 2078 bfa_fsm_send_event(ioc, IOC_E_RESET); 1965 2079 } 1966 2080 1967 - /** 1968 - * Driver detach time IOC cleanup. 1969 - */ 2081 + /* Driver detach time IOC cleanup. */ 1970 2082 void 1971 2083 bfa_nw_ioc_detach(struct bfa_ioc *ioc) 1972 2084 { ··· 1975 2091 } 1976 2092 1977 2093 /** 1978 - * Setup IOC PCI properties. 2094 + * bfa_nw_ioc_pci_init - Setup IOC PCI properties. 1979 2095 * 1980 - * @param[in] pcidev PCI device information for this IOC 2096 + * @pcidev: PCI device information for this IOC 1981 2097 */ 1982 2098 void 1983 2099 bfa_nw_ioc_pci_init(struct bfa_ioc *ioc, struct bfa_pcidev *pcidev, ··· 2044 2160 } 2045 2161 2046 2162 /** 2047 - * Initialize IOC dma memory 2163 + * bfa_nw_ioc_mem_claim - Initialize IOC dma memory 2048 2164 * 2049 - * @param[in] dm_kva kernel virtual address of IOC dma memory 2050 - * @param[in] dm_pa physical address of IOC dma memory 2165 + * @dm_kva: kernel virtual address of IOC dma memory 2166 + * @dm_pa: physical address of IOC dma memory 2051 2167 */ 2052 2168 void 2053 2169 bfa_nw_ioc_mem_claim(struct bfa_ioc *ioc, u8 *dm_kva, u64 dm_pa) ··· 2060 2176 ioc->attr = (struct bfi_ioc_attr *) dm_kva; 2061 2177 } 2062 2178 2063 - /** 2064 - * Return size of dma memory required. 2065 - */ 2179 + /* Return size of dma memory required. */ 2066 2180 u32 2067 2181 bfa_nw_ioc_meminfo(void) 2068 2182 { ··· 2083 2201 bfa_fsm_send_event(ioc, IOC_E_DISABLE); 2084 2202 } 2085 2203 2086 - /** 2087 - * Initialize memory for saving firmware trace. 2088 - */ 2204 + /* Initialize memory for saving firmware trace. */ 2089 2205 void 2090 2206 bfa_nw_ioc_debug_memclaim(struct bfa_ioc *ioc, void *dbg_fwsave) 2091 2207 { ··· 2097 2217 return PSS_SMEM_PGNUM(ioc->ioc_regs.smem_pg0, fmaddr); 2098 2218 } 2099 2219 2100 - /** 2101 - * Register mailbox message handler function, to be called by common modules 2102 - */ 2220 + /* Register mailbox message handler function, to be called by common modules */ 2103 2221 void 2104 2222 bfa_nw_ioc_mbox_regisr(struct bfa_ioc *ioc, enum bfi_mclass mc, 2105 2223 bfa_ioc_mbox_mcfunc_t cbfn, void *cbarg) ··· 2109 2231 } 2110 2232 2111 2233 /** 2112 - * Queue a mailbox command request to firmware. Waits if mailbox is busy. 2113 - * Responsibility of caller to serialize 2234 + * bfa_nw_ioc_mbox_queue - Queue a mailbox command request to firmware. 2114 2235 * 2115 - * @param[in] ioc IOC instance 2116 - * @param[i] cmd Mailbox command 2236 + * @ioc: IOC instance 2237 + * @cmd: Mailbox command 2238 + * 2239 + * Waits if mailbox is busy. Responsibility of caller to serialize 2117 2240 */ 2118 2241 bool 2119 2242 bfa_nw_ioc_mbox_queue(struct bfa_ioc *ioc, struct bfa_mbox_cmd *cmd, ··· 2151 2272 return false; 2152 2273 } 2153 2274 2154 - /** 2155 - * Handle mailbox interrupts 2156 - */ 2275 + /* Handle mailbox interrupts */ 2157 2276 void 2158 2277 bfa_nw_ioc_mbox_isr(struct bfa_ioc *ioc) 2159 2278 { ··· 2191 2314 bfa_fsm_send_event(ioc, IOC_E_HWERROR); 2192 2315 } 2193 2316 2194 - /** 2195 - * return true if IOC is disabled 2196 - */ 2317 + /* return true if IOC is disabled */ 2197 2318 bool 2198 2319 bfa_nw_ioc_is_disabled(struct bfa_ioc *ioc) 2199 2320 { ··· 2199 2324 bfa_fsm_cmp_state(ioc, bfa_ioc_sm_disabled); 2200 2325 } 2201 2326 2202 - /** 2203 - * return true if IOC is operational 2204 - */ 2327 + /* return true if IOC is operational */ 2205 2328 bool 2206 2329 bfa_nw_ioc_is_operational(struct bfa_ioc *ioc) 2207 2330 { 2208 2331 return bfa_fsm_cmp_state(ioc, bfa_ioc_sm_op); 2209 2332 } 2210 2333 2211 - /** 2212 - * Add to IOC heartbeat failure notification queue. To be used by common 2334 + /* Add to IOC heartbeat failure notification queue. To be used by common 2213 2335 * modules such as cee, port, diag. 2214 2336 */ 2215 2337 void ··· 2390 2518 bfa_ioc_get_pci_chip_rev(ioc, ioc_attr->pci_attr.chip_rev); 2391 2519 } 2392 2520 2393 - /** 2394 - * WWN public 2395 - */ 2521 + /* WWN public */ 2396 2522 static u64 2397 2523 bfa_ioc_get_pwwn(struct bfa_ioc *ioc) 2398 2524 { ··· 2403 2533 return ioc->attr->mac; 2404 2534 } 2405 2535 2406 - /** 2407 - * Firmware failure detected. Start recovery actions. 2408 - */ 2536 + /* Firmware failure detected. Start recovery actions. */ 2409 2537 static void 2410 2538 bfa_ioc_recover(struct bfa_ioc *ioc) 2411 2539 { ··· 2413 2545 bfa_fsm_send_event(ioc, IOC_E_HBFAIL); 2414 2546 } 2415 2547 2416 - /** 2417 - * @dg hal_iocpf_pvt BFA IOC PF private functions 2418 - * @{ 2419 - */ 2548 + /* BFA IOC PF private functions */ 2420 2549 2421 2550 static void 2422 2551 bfa_iocpf_enable(struct bfa_ioc *ioc) ··· 2534 2669 2535 2670 /* 2536 2671 * Send flash write request. 2537 - * 2538 - * @param[in] cbarg - callback argument 2539 2672 */ 2540 2673 static void 2541 2674 bfa_flash_write_send(struct bfa_flash *flash) ··· 2562 2699 flash->offset += len; 2563 2700 } 2564 2701 2565 - /* 2566 - * Send flash read request. 2702 + /** 2703 + * bfa_flash_read_send - Send flash read request. 2567 2704 * 2568 - * @param[in] cbarg - callback argument 2705 + * @cbarg: callback argument 2569 2706 */ 2570 2707 static void 2571 2708 bfa_flash_read_send(void *cbarg) ··· 2587 2724 bfa_nw_ioc_mbox_queue(flash->ioc, &flash->mb, NULL, NULL); 2588 2725 } 2589 2726 2590 - /* 2591 - * Process flash response messages upon receiving interrupts. 2727 + /** 2728 + * bfa_flash_intr - Process flash response messages upon receiving interrupts. 2592 2729 * 2593 - * @param[in] flasharg - flash structure 2594 - * @param[in] msg - message structure 2730 + * @flasharg: flash structure 2731 + * @msg: message structure 2595 2732 */ 2596 2733 static void 2597 2734 bfa_flash_intr(void *flasharg, struct bfi_mbmsg *msg) ··· 2684 2821 return roundup(BFA_FLASH_DMA_BUF_SZ, BFA_DMA_ALIGN_SZ); 2685 2822 } 2686 2823 2687 - /* 2688 - * Flash attach API. 2824 + /** 2825 + * bfa_nw_flash_attach - Flash attach API. 2689 2826 * 2690 - * @param[in] flash - flash structure 2691 - * @param[in] ioc - ioc structure 2692 - * @param[in] dev - device structure 2827 + * @flash: flash structure 2828 + * @ioc: ioc structure 2829 + * @dev: device structure 2693 2830 */ 2694 2831 void 2695 2832 bfa_nw_flash_attach(struct bfa_flash *flash, struct bfa_ioc *ioc, void *dev) ··· 2705 2842 list_add_tail(&flash->ioc_notify.qe, &flash->ioc->notify_q); 2706 2843 } 2707 2844 2708 - /* 2709 - * Claim memory for flash 2845 + /** 2846 + * bfa_nw_flash_memclaim - Claim memory for flash 2710 2847 * 2711 - * @param[in] flash - flash structure 2712 - * @param[in] dm_kva - pointer to virtual memory address 2713 - * @param[in] dm_pa - physical memory address 2848 + * @flash: flash structure 2849 + * @dm_kva: pointer to virtual memory address 2850 + * @dm_pa: physical memory address 2714 2851 */ 2715 2852 void 2716 2853 bfa_nw_flash_memclaim(struct bfa_flash *flash, u8 *dm_kva, u64 dm_pa) ··· 2722 2859 dm_pa += roundup(BFA_FLASH_DMA_BUF_SZ, BFA_DMA_ALIGN_SZ); 2723 2860 } 2724 2861 2725 - /* 2726 - * Get flash attribute. 2862 + /** 2863 + * bfa_nw_flash_get_attr - Get flash attribute. 2727 2864 * 2728 - * @param[in] flash - flash structure 2729 - * @param[in] attr - flash attribute structure 2730 - * @param[in] cbfn - callback function 2731 - * @param[in] cbarg - callback argument 2865 + * @flash: flash structure 2866 + * @attr: flash attribute structure 2867 + * @cbfn: callback function 2868 + * @cbarg: callback argument 2732 2869 * 2733 2870 * Return status. 2734 2871 */ ··· 2758 2895 return BFA_STATUS_OK; 2759 2896 } 2760 2897 2761 - /* 2762 - * Update flash partition. 2898 + /** 2899 + * bfa_nw_flash_update_part - Update flash partition. 2763 2900 * 2764 - * @param[in] flash - flash structure 2765 - * @param[in] type - flash partition type 2766 - * @param[in] instance - flash partition instance 2767 - * @param[in] buf - update data buffer 2768 - * @param[in] len - data buffer length 2769 - * @param[in] offset - offset relative to the partition starting address 2770 - * @param[in] cbfn - callback function 2771 - * @param[in] cbarg - callback argument 2901 + * @flash: flash structure 2902 + * @type: flash partition type 2903 + * @instance: flash partition instance 2904 + * @buf: update data buffer 2905 + * @len: data buffer length 2906 + * @offset: offset relative to the partition starting address 2907 + * @cbfn: callback function 2908 + * @cbarg: callback argument 2772 2909 * 2773 2910 * Return status. 2774 2911 */ ··· 2807 2944 return BFA_STATUS_OK; 2808 2945 } 2809 2946 2810 - /* 2811 - * Read flash partition. 2947 + /** 2948 + * bfa_nw_flash_read_part - Read flash partition. 2812 2949 * 2813 - * @param[in] flash - flash structure 2814 - * @param[in] type - flash partition type 2815 - * @param[in] instance - flash partition instance 2816 - * @param[in] buf - read data buffer 2817 - * @param[in] len - data buffer length 2818 - * @param[in] offset - offset relative to the partition starting address 2819 - * @param[in] cbfn - callback function 2820 - * @param[in] cbarg - callback argument 2950 + * @flash: flash structure 2951 + * @type: flash partition type 2952 + * @instance: flash partition instance 2953 + * @buf: read data buffer 2954 + * @len: data buffer length 2955 + * @offset: offset relative to the partition starting address 2956 + * @cbfn: callback function 2957 + * @cbarg: callback argument 2821 2958 * 2822 2959 * Return status. 2823 2960 */
+11 -32
drivers/net/ethernet/brocade/bna/bfa_ioc.h
··· 30 30 #define BNA_DBG_FWTRC_LEN (BFI_IOC_TRC_ENTS * BFI_IOC_TRC_ENT_SZ + \ 31 31 BFI_IOC_TRC_HDR_SZ) 32 32 33 - /** 34 - * PCI device information required by IOC 35 - */ 33 + /* PCI device information required by IOC */ 36 34 struct bfa_pcidev { 37 35 int pci_slot; 38 36 u8 pci_func; ··· 39 41 void __iomem *pci_bar_kva; 40 42 }; 41 43 42 - /** 43 - * Structure used to remember the DMA-able memory block's KVA and Physical 44 + /* Structure used to remember the DMA-able memory block's KVA and Physical 44 45 * Address 45 46 */ 46 47 struct bfa_dma { ··· 49 52 50 53 #define BFA_DMA_ALIGN_SZ 256 51 54 52 - /** 53 - * smem size for Crossbow and Catapult 54 - */ 55 + /* smem size for Crossbow and Catapult */ 55 56 #define BFI_SMEM_CB_SIZE 0x200000U /* ! 2MB for crossbow */ 56 57 #define BFI_SMEM_CT_SIZE 0x280000U /* ! 2.5MB for catapult */ 57 58 58 - /** 59 - * @brief BFA dma address assignment macro. (big endian format) 60 - */ 59 + /* BFA dma address assignment macro. (big endian format) */ 61 60 #define bfa_dma_be_addr_set(dma_addr, pa) \ 62 61 __bfa_dma_be_addr_set(&dma_addr, (u64)pa) 63 62 static inline void ··· 101 108 u32 smem_pg0; 102 109 }; 103 110 104 - /** 105 - * IOC Mailbox structures 106 - */ 111 + /* IOC Mailbox structures */ 107 112 typedef void (*bfa_mbox_cmd_cbfn_t)(void *cbarg); 108 113 struct bfa_mbox_cmd { 109 114 struct list_head qe; ··· 110 119 u32 msg[BFI_IOC_MSGSZ]; 111 120 }; 112 121 113 - /** 114 - * IOC mailbox module 115 - */ 122 + /* IOC mailbox module */ 116 123 typedef void (*bfa_ioc_mbox_mcfunc_t)(void *cbarg, struct bfi_mbmsg *m); 117 124 struct bfa_ioc_mbox_mod { 118 125 struct list_head cmd_q; /*!< pending mbox queue */ ··· 121 132 } mbhdlr[BFI_MC_MAX]; 122 133 }; 123 134 124 - /** 125 - * IOC callback function interfaces 126 - */ 135 + /* IOC callback function interfaces */ 127 136 typedef void (*bfa_ioc_enable_cbfn_t)(void *bfa, enum bfa_status status); 128 137 typedef void (*bfa_ioc_disable_cbfn_t)(void *bfa); 129 138 typedef void (*bfa_ioc_hbfail_cbfn_t)(void *bfa); ··· 133 146 bfa_ioc_reset_cbfn_t reset_cbfn; 134 147 }; 135 148 136 - /** 137 - * IOC event notification mechanism. 138 - */ 149 + /* IOC event notification mechanism. */ 139 150 enum bfa_ioc_event { 140 151 BFA_IOC_E_ENABLED = 1, 141 152 BFA_IOC_E_DISABLED = 2, ··· 148 163 void *cbarg; 149 164 }; 150 165 151 - /** 152 - * Initialize a IOC event notification structure 153 - */ 166 + /* Initialize a IOC event notification structure */ 154 167 #define bfa_ioc_notify_init(__notify, __cbfn, __cbarg) do { \ 155 168 (__notify)->cbfn = (__cbfn); \ 156 169 (__notify)->cbarg = (__cbarg); \ ··· 244 261 #define BFA_IOC_FLASH_OFFSET_IN_CHUNK(off) (off % BFI_FLASH_CHUNK_SZ_WORDS) 245 262 #define BFA_IOC_FLASH_CHUNK_ADDR(chunkno) (chunkno * BFI_FLASH_CHUNK_SZ_WORDS) 246 263 247 - /** 248 - * IOC mailbox interface 249 - */ 264 + /* IOC mailbox interface */ 250 265 bool bfa_nw_ioc_mbox_queue(struct bfa_ioc *ioc, 251 266 struct bfa_mbox_cmd *cmd, 252 267 bfa_mbox_cmd_cbfn_t cbfn, void *cbarg); ··· 252 271 void bfa_nw_ioc_mbox_regisr(struct bfa_ioc *ioc, enum bfi_mclass mc, 253 272 bfa_ioc_mbox_mcfunc_t cbfn, void *cbarg); 254 273 255 - /** 256 - * IOC interfaces 257 - */ 274 + /* IOC interfaces */ 258 275 259 276 #define bfa_ioc_pll_init_asic(__ioc) \ 260 277 ((__ioc)->ioc_hwif->ioc_pll_init((__ioc)->pcidev.pci_bar_kva, \
+12 -36
drivers/net/ethernet/brocade/bna/bfa_ioc_ct.c
··· 87 87 .ioc_sync_complete = bfa_ioc_ct_sync_complete, 88 88 }; 89 89 90 - /** 91 - * Called from bfa_ioc_attach() to map asic specific calls. 92 - */ 90 + /* Called from bfa_ioc_attach() to map asic specific calls. */ 93 91 void 94 92 bfa_nw_ioc_set_ct_hwif(struct bfa_ioc *ioc) 95 93 { ··· 100 102 ioc->ioc_hwif = &nw_hwif_ct2; 101 103 } 102 104 103 - /** 104 - * Return true if firmware of current driver matches the running firmware. 105 - */ 105 + /* Return true if firmware of current driver matches the running firmware. */ 106 106 static bool 107 107 bfa_ioc_ct_firmware_lock(struct bfa_ioc *ioc) 108 108 { ··· 178 182 bfa_nw_ioc_sem_release(ioc->ioc_regs.ioc_usage_sem_reg); 179 183 } 180 184 181 - /** 182 - * Notify other functions on HB failure. 183 - */ 185 + /* Notify other functions on HB failure. */ 184 186 static void 185 187 bfa_ioc_ct_notify_fail(struct bfa_ioc *ioc) 186 188 { ··· 189 195 readl(ioc->ioc_regs.alt_ll_halt); 190 196 } 191 197 192 - /** 193 - * Host to LPU mailbox message addresses 194 - */ 198 + /* Host to LPU mailbox message addresses */ 195 199 static const struct { 196 200 u32 hfn_mbox; 197 201 u32 lpu_mbox; ··· 201 209 { HOSTFN3_LPU_MBOX0_8, LPU_HOSTFN3_MBOX0_8, HOST_PAGE_NUM_FN3 } 202 210 }; 203 211 204 - /** 205 - * Host <-> LPU mailbox command/status registers - port 0 206 - */ 212 + /* Host <-> LPU mailbox command/status registers - port 0 */ 207 213 static const struct { 208 214 u32 hfn; 209 215 u32 lpu; ··· 212 222 { HOSTFN3_LPU0_CMD_STAT, LPU0_HOSTFN3_CMD_STAT } 213 223 }; 214 224 215 - /** 216 - * Host <-> LPU mailbox command/status registers - port 1 217 - */ 225 + /* Host <-> LPU mailbox command/status registers - port 1 */ 218 226 static const struct { 219 227 u32 hfn; 220 228 u32 lpu; ··· 356 368 ioc->ioc_regs.err_set = rb + ERR_SET_REG; 357 369 } 358 370 359 - /** 360 - * Initialize IOC to port mapping. 361 - */ 371 + /* Initialize IOC to port mapping. */ 362 372 363 373 #define FNC_PERS_FN_SHIFT(__fn) ((__fn) * 8) 364 374 static void ··· 384 398 ioc->port_id = ((r32 & __FC_LL_PORT_MAP__MK) >> __FC_LL_PORT_MAP__SH); 385 399 } 386 400 387 - /** 388 - * Set interrupt mode for a function: INTX or MSIX 389 - */ 401 + /* Set interrupt mode for a function: INTX or MSIX */ 390 402 static void 391 403 bfa_ioc_ct_isr_mode_set(struct bfa_ioc *ioc, bool msix) 392 404 { ··· 427 443 return false; 428 444 } 429 445 430 - /** 431 - * MSI-X resource allocation for 1860 with no asic block 432 - */ 446 + /* MSI-X resource allocation for 1860 with no asic block */ 433 447 #define HOSTFN_MSIX_DEFAULT 64 434 448 #define HOSTFN_MSIX_VT_INDEX_MBOX_ERR 0x30138 435 449 #define HOSTFN_MSIX_VT_OFST_NUMVT 0x3013c ··· 455 473 rb + HOSTFN_MSIX_VT_INDEX_MBOX_ERR); 456 474 } 457 475 458 - /** 459 - * Cleanup hw semaphore and usecnt registers 460 - */ 476 + /* Cleanup hw semaphore and usecnt registers */ 461 477 static void 462 478 bfa_ioc_ct_ownership_reset(struct bfa_ioc *ioc) 463 479 { ··· 472 492 bfa_nw_ioc_hw_sem_release(ioc); 473 493 } 474 494 475 - /** 476 - * Synchronized IOC failure processing routines 477 - */ 495 + /* Synchronized IOC failure processing routines */ 478 496 static bool 479 497 bfa_ioc_ct_sync_start(struct bfa_ioc *ioc) 480 498 { ··· 496 518 497 519 return bfa_ioc_ct_sync_complete(ioc); 498 520 } 499 - /** 500 - * Synchronized IOC failure processing routines 501 - */ 521 + /* Synchronized IOC failure processing routines */ 502 522 static void 503 523 bfa_ioc_ct_sync_join(struct bfa_ioc *ioc) 504 524 {
+1 -3
drivers/net/ethernet/brocade/bna/bfa_msgq.c
··· 16 16 * www.brocade.com 17 17 */ 18 18 19 - /** 20 - * @file bfa_msgq.c MSGQ module source file. 21 - */ 19 + /* MSGQ module source file. */ 22 20 23 21 #include "bfi.h" 24 22 #include "bfa_msgq.h"
+21 -60
drivers/net/ethernet/brocade/bna/bfi.h
··· 22 22 23 23 #pragma pack(1) 24 24 25 - /** 26 - * BFI FW image type 27 - */ 25 + /* BFI FW image type */ 28 26 #define BFI_FLASH_CHUNK_SZ 256 /*!< Flash chunk size */ 29 27 #define BFI_FLASH_CHUNK_SZ_WORDS (BFI_FLASH_CHUNK_SZ/sizeof(u32)) 30 28 31 - /** 32 - * Msg header common to all msgs 33 - */ 29 + /* Msg header common to all msgs */ 34 30 struct bfi_mhdr { 35 31 u8 msg_class; /*!< @ref enum bfi_mclass */ 36 32 u8 msg_id; /*!< msg opcode with in the class */ ··· 61 65 #define BFI_I2H_OPCODE_BASE 128 62 66 #define BFA_I2HM(_x) ((_x) + BFI_I2H_OPCODE_BASE) 63 67 64 - /** 65 - **************************************************************************** 68 + /**************************************************************************** 66 69 * 67 70 * Scatter Gather Element and Page definition 68 71 * 69 72 **************************************************************************** 70 73 */ 71 74 72 - /** 73 - * DMA addresses 74 - */ 75 + /* DMA addresses */ 75 76 union bfi_addr_u { 76 77 struct { 77 78 u32 addr_lo; ··· 76 83 } a32; 77 84 }; 78 85 79 - /** 80 - * Generic DMA addr-len pair. 81 - */ 86 + /* Generic DMA addr-len pair. */ 82 87 struct bfi_alen { 83 88 union bfi_addr_u al_addr; /* DMA addr of buffer */ 84 89 u32 al_len; /* length of buffer */ ··· 89 98 #define BFI_LMSG_PL_WSZ \ 90 99 ((BFI_LMSG_SZ - sizeof(struct bfi_mhdr)) / 4) 91 100 92 - /** 93 - * Mailbox message structure 94 - */ 101 + /* Mailbox message structure */ 95 102 #define BFI_MBMSG_SZ 7 96 103 struct bfi_mbmsg { 97 104 struct bfi_mhdr mh; 98 105 u32 pl[BFI_MBMSG_SZ]; 99 106 }; 100 107 101 - /** 102 - * Supported PCI function class codes (personality) 103 - */ 108 + /* Supported PCI function class codes (personality) */ 104 109 enum bfi_pcifn_class { 105 110 BFI_PCIFN_CLASS_FC = 0x0c04, 106 111 BFI_PCIFN_CLASS_ETH = 0x0200, 107 112 }; 108 113 109 - /** 110 - * Message Classes 111 - */ 114 + /* Message Classes */ 112 115 enum bfi_mclass { 113 116 BFI_MC_IOC = 1, /*!< IO Controller (IOC) */ 114 117 BFI_MC_DIAG = 2, /*!< Diagnostic Msgs */ ··· 144 159 145 160 #define BFI_FWBOOT_ENV_OS 0 146 161 147 - /** 148 - *---------------------------------------------------------------------- 162 + /*---------------------------------------------------------------------- 149 163 * IOC 150 164 *---------------------------------------------------------------------- 151 165 */ 152 166 153 - /** 154 - * Different asic generations 155 - */ 167 + /* Different asic generations */ 156 168 enum bfi_asic_gen { 157 169 BFI_ASIC_GEN_CB = 1, 158 170 BFI_ASIC_GEN_CT = 2, ··· 178 196 BFI_IOC_I2H_HBEAT = BFA_I2HM(4), 179 197 }; 180 198 181 - /** 182 - * BFI_IOC_H2I_GETATTR_REQ message 183 - */ 199 + /* BFI_IOC_H2I_GETATTR_REQ message */ 184 200 struct bfi_ioc_getattr_req { 185 201 struct bfi_mhdr mh; 186 202 union bfi_addr_u attr_addr; ··· 211 231 u32 card_type; /*!< card type */ 212 232 }; 213 233 214 - /** 215 - * BFI_IOC_I2H_GETATTR_REPLY message 216 - */ 234 + /* BFI_IOC_I2H_GETATTR_REPLY message */ 217 235 struct bfi_ioc_getattr_reply { 218 236 struct bfi_mhdr mh; /*!< Common msg header */ 219 237 u8 status; /*!< cfg reply status */ 220 238 u8 rsvd[3]; 221 239 }; 222 240 223 - /** 224 - * Firmware memory page offsets 225 - */ 241 + /* Firmware memory page offsets */ 226 242 #define BFI_IOC_SMEM_PG0_CB (0x40) 227 243 #define BFI_IOC_SMEM_PG0_CT (0x180) 228 244 229 - /** 230 - * Firmware statistic offset 231 - */ 245 + /* Firmware statistic offset */ 232 246 #define BFI_IOC_FWSTATS_OFF (0x6B40) 233 247 #define BFI_IOC_FWSTATS_SZ (4096) 234 248 235 - /** 236 - * Firmware trace offset 237 - */ 249 + /* Firmware trace offset */ 238 250 #define BFI_IOC_TRC_OFF (0x4b00) 239 251 #define BFI_IOC_TRC_ENTS 256 240 252 #define BFI_IOC_TRC_ENT_SZ 16 ··· 271 299 u32 hb_count; /*!< current heart beat count */ 272 300 }; 273 301 274 - /** 275 - * IOC hardware/firmware state 276 - */ 302 + /* IOC hardware/firmware state */ 277 303 enum bfi_ioc_state { 278 304 BFI_IOC_UNINIT = 0, /*!< not initialized */ 279 305 BFI_IOC_INITING = 1, /*!< h/w is being initialized */ ··· 315 345 ((__adap_type) & (BFI_ADAPTER_TTV | BFI_ADAPTER_PROTO | \ 316 346 BFI_ADAPTER_UNSUPP)) 317 347 318 - /** 319 - * BFI_IOC_H2I_ENABLE_REQ & BFI_IOC_H2I_DISABLE_REQ messages 320 - */ 348 + /* BFI_IOC_H2I_ENABLE_REQ & BFI_IOC_H2I_DISABLE_REQ messages */ 321 349 struct bfi_ioc_ctrl_req { 322 350 struct bfi_mhdr mh; 323 351 u16 clscode; ··· 323 355 u32 tv_sec; 324 356 }; 325 357 326 - /** 327 - * BFI_IOC_I2H_ENABLE_REPLY & BFI_IOC_I2H_DISABLE_REPLY messages 328 - */ 358 + /* BFI_IOC_I2H_ENABLE_REPLY & BFI_IOC_I2H_DISABLE_REPLY messages */ 329 359 struct bfi_ioc_ctrl_reply { 330 360 struct bfi_mhdr mh; /*!< Common msg header */ 331 361 u8 status; /*!< enable/disable status */ ··· 333 367 }; 334 368 335 369 #define BFI_IOC_MSGSZ 8 336 - /** 337 - * H2I Messages 338 - */ 370 + /* H2I Messages */ 339 371 union bfi_ioc_h2i_msg_u { 340 372 struct bfi_mhdr mh; 341 373 struct bfi_ioc_ctrl_req enable_req; ··· 342 378 u32 mboxmsg[BFI_IOC_MSGSZ]; 343 379 }; 344 380 345 - /** 346 - * I2H Messages 347 - */ 381 + /* I2H Messages */ 348 382 union bfi_ioc_i2h_msg_u { 349 383 struct bfi_mhdr mh; 350 384 struct bfi_ioc_ctrl_reply fw_event; 351 385 u32 mboxmsg[BFI_IOC_MSGSZ]; 352 386 }; 353 387 354 - /** 355 - *---------------------------------------------------------------------- 388 + /*---------------------------------------------------------------------- 356 389 * MSGQ 357 390 *---------------------------------------------------------------------- 358 391 */
+3 -39
drivers/net/ethernet/brocade/bna/bfi_cna.h
··· 37 37 BFI_PORT_I2H_CLEAR_STATS_RSP = BFA_I2HM(4), 38 38 }; 39 39 40 - /** 41 - * Generic REQ type 42 - */ 40 + /* Generic REQ type */ 43 41 struct bfi_port_generic_req { 44 42 struct bfi_mhdr mh; /*!< msg header */ 45 43 u32 msgtag; /*!< msgtag for reply */ 46 44 u32 rsvd; 47 45 }; 48 46 49 - /** 50 - * Generic RSP type 51 - */ 47 + /* Generic RSP type */ 52 48 struct bfi_port_generic_rsp { 53 49 struct bfi_mhdr mh; /*!< common msg header */ 54 50 u8 status; /*!< port enable status */ ··· 52 56 u32 msgtag; /*!< msgtag for reply */ 53 57 }; 54 58 55 - /** 56 - * @todo 57 - * BFI_PORT_H2I_ENABLE_REQ 58 - */ 59 - 60 - /** 61 - * @todo 62 - * BFI_PORT_I2H_ENABLE_RSP 63 - */ 64 - 65 - /** 66 - * BFI_PORT_H2I_DISABLE_REQ 67 - */ 68 - 69 - /** 70 - * BFI_PORT_I2H_DISABLE_RSP 71 - */ 72 - 73 - /** 74 - * BFI_PORT_H2I_GET_STATS_REQ 75 - */ 59 + /* BFI_PORT_H2I_GET_STATS_REQ */ 76 60 struct bfi_port_get_stats_req { 77 61 struct bfi_mhdr mh; /*!< common msg header */ 78 62 union bfi_addr_u dma_addr; 79 63 }; 80 - 81 - /** 82 - * BFI_PORT_I2H_GET_STATS_RSP 83 - */ 84 - 85 - /** 86 - * BFI_PORT_H2I_CLEAR_STATS_REQ 87 - */ 88 - 89 - /** 90 - * BFI_PORT_I2H_CLEAR_STATS_RSP 91 - */ 92 64 93 65 union bfi_port_h2i_msg_u { 94 66 struct bfi_mhdr mh;
+31 -76
drivers/net/ethernet/brocade/bna/bfi_enet.h
··· 16 16 * www.brocade.com 17 17 */ 18 18 19 - /** 20 - * @file bfi_enet.h BNA Hardware and Firmware Interface 21 - */ 19 + /* BNA Hardware and Firmware Interface */ 22 20 23 - /** 24 - * Skipping statistics collection to avoid clutter. 21 + /* Skipping statistics collection to avoid clutter. 25 22 * Command is no longer needed: 26 23 * MTU 27 24 * TxQ Stop ··· 61 64 } a32; 62 65 }; 63 66 64 - /** 65 - * T X Q U E U E D E F I N E S 66 - */ 67 + /* T X Q U E U E D E F I N E S */ 67 68 /* TxQ Vector (a.k.a. Tx-Buffer Descriptor) */ 68 69 /* TxQ Entry Opcodes */ 69 70 #define BFI_ENET_TXQ_WI_SEND (0x402) /* Single Frame Transmission */ ··· 101 106 union bfi_addr_be_u addr; 102 107 }; 103 108 104 - /** 105 - * TxQ Entry Structure 106 - * 107 - */ 109 + /* TxQ Entry Structure */ 108 110 struct bfi_enet_txq_entry { 109 111 union { 110 112 struct bfi_enet_txq_wi_base base; ··· 116 124 #define BFI_ENET_TXQ_WI_L4_HDR_N_OFFSET(_hdr_size, _offset) \ 117 125 (((_hdr_size) << 10) | ((_offset) & 0x3FF)) 118 126 119 - /** 120 - * R X Q U E U E D E F I N E S 121 - */ 127 + /* R X Q U E U E D E F I N E S */ 122 128 struct bfi_enet_rxq_entry { 123 129 union bfi_addr_be_u rx_buffer; 124 130 }; 125 131 126 - /** 127 - * R X C O M P L E T I O N Q U E U E D E F I N E S 128 - */ 132 + /* R X C O M P L E T I O N Q U E U E D E F I N E S */ 129 133 /* CQ Entry Flags */ 130 134 #define BFI_ENET_CQ_EF_MAC_ERROR (1 << 0) 131 135 #define BFI_ENET_CQ_EF_FCS_ERROR (1 << 1) ··· 162 174 u8 rxq_id; 163 175 }; 164 176 165 - /** 166 - * E N E T C O N T R O L P A T H C O M M A N D S 167 - */ 177 + /* E N E T C O N T R O L P A T H C O M M A N D S */ 168 178 struct bfi_enet_q { 169 179 union bfi_addr_u pg_tbl; 170 180 union bfi_addr_u first_entry; ··· 208 222 u16 rsvd; 209 223 }; 210 224 211 - /** 212 - * ENET command messages 213 - */ 225 + /* ENET command messages */ 214 226 enum bfi_enet_h2i_msgs { 215 227 /* Rx Commands */ 216 228 BFI_ENET_H2I_RX_CFG_SET_REQ = 1, ··· 334 350 BFI_ENET_I2H_BW_UPDATE_AEN = BFA_I2HM(BFI_ENET_H2I_MAX + 4), 335 351 }; 336 352 337 - /** 338 - * The following error codes can be returned by the enet commands 339 - */ 353 + /* The following error codes can be returned by the enet commands */ 340 354 enum bfi_enet_err { 341 355 BFI_ENET_CMD_OK = 0, 342 356 BFI_ENET_CMD_FAIL = 1, ··· 346 364 BFI_ENET_CMD_PORT_DISABLED = 7, /* !< port in disabled state */ 347 365 }; 348 366 349 - /** 350 - * Generic Request 367 + /* Generic Request 351 368 * 352 369 * bfi_enet_req is used by: 353 370 * BFI_ENET_H2I_RX_CFG_CLR_REQ ··· 356 375 struct bfi_msgq_mhdr mh; 357 376 }; 358 377 359 - /** 360 - * Enable/Disable Request 378 + /* Enable/Disable Request 361 379 * 362 380 * bfi_enet_enable_req is used by: 363 381 * BFI_ENET_H2I_RSS_ENABLE_REQ (enet_id must be zero) ··· 371 391 u8 rsvd[3]; 372 392 }; 373 393 374 - /** 375 - * Generic Response 376 - */ 394 + /* Generic Response */ 377 395 struct bfi_enet_rsp { 378 396 struct bfi_msgq_mhdr mh; 379 397 u8 error; /*!< if error see cmd_offset */ ··· 379 401 u16 cmd_offset; /*!< offset to invalid parameter */ 380 402 }; 381 403 382 - /** 383 - * GLOBAL CONFIGURATION 384 - */ 404 + /* GLOBAL CONFIGURATION */ 385 405 386 - /** 387 - * bfi_enet_attr_req is used by: 406 + /* bfi_enet_attr_req is used by: 388 407 * BFI_ENET_H2I_GET_ATTR_REQ 389 408 */ 390 409 struct bfi_enet_attr_req { 391 410 struct bfi_msgq_mhdr mh; 392 411 }; 393 412 394 - /** 395 - * bfi_enet_attr_rsp is used by: 413 + /* bfi_enet_attr_rsp is used by: 396 414 * BFI_ENET_I2H_GET_ATTR_RSP 397 415 */ 398 416 struct bfi_enet_attr_rsp { ··· 401 427 u32 rit_size; 402 428 }; 403 429 404 - /** 405 - * Tx Configuration 430 + /* Tx Configuration 406 431 * 407 432 * bfi_enet_tx_cfg is used by: 408 433 * BFI_ENET_H2I_TX_CFG_SET_REQ ··· 450 477 } q_handles[BFI_ENET_TXQ_PRIO_MAX]; 451 478 }; 452 479 453 - /** 454 - * Rx Configuration 480 + /* Rx Configuration 455 481 * 456 482 * bfi_enet_rx_cfg is used by: 457 483 * BFI_ENET_H2I_RX_CFG_SET_REQ ··· 525 553 } q_handles[BFI_ENET_RX_QSET_MAX]; 526 554 }; 527 555 528 - /** 529 - * RIT 556 + /* RIT 530 557 * 531 558 * bfi_enet_rit_req is used by: 532 559 * BFI_ENET_H2I_RIT_CFG_REQ ··· 537 566 u8 table[BFI_ENET_RSS_RIT_MAX]; 538 567 }; 539 568 540 - /** 541 - * RSS 569 + /* RSS 542 570 * 543 571 * bfi_enet_rss_cfg_req is used by: 544 572 * BFI_ENET_H2I_RSS_CFG_REQ ··· 561 591 struct bfi_enet_rss_cfg cfg; 562 592 }; 563 593 564 - /** 565 - * MAC Unicast 594 + /* MAC Unicast 566 595 * 567 596 * bfi_enet_rx_vlan_req is used by: 568 597 * BFI_ENET_H2I_MAC_UCAST_SET_REQ ··· 575 606 u8 rsvd[2]; 576 607 }; 577 608 578 - /** 579 - * MAC Unicast + VLAN 580 - */ 609 + /* MAC Unicast + VLAN */ 581 610 struct bfi_enet_mac_n_vlan_req { 582 611 struct bfi_msgq_mhdr mh; 583 612 u16 vlan_id; 584 613 mac_t mac_addr; 585 614 }; 586 615 587 - /** 588 - * MAC Multicast 616 + /* MAC Multicast 589 617 * 590 618 * bfi_enet_mac_mfilter_add_req is used by: 591 619 * BFI_ENET_H2I_MAC_MCAST_ADD_REQ ··· 593 627 u8 rsvd[2]; 594 628 }; 595 629 596 - /** 597 - * bfi_enet_mac_mfilter_add_rsp is used by: 630 + /* bfi_enet_mac_mfilter_add_rsp is used by: 598 631 * BFI_ENET_I2H_MAC_MCAST_ADD_RSP 599 632 */ 600 633 struct bfi_enet_mcast_add_rsp { ··· 605 640 u8 rsvd1[2]; 606 641 }; 607 642 608 - /** 609 - * bfi_enet_mac_mfilter_del_req is used by: 643 + /* bfi_enet_mac_mfilter_del_req is used by: 610 644 * BFI_ENET_H2I_MAC_MCAST_DEL_REQ 611 645 */ 612 646 struct bfi_enet_mcast_del_req { ··· 614 650 u8 rsvd[2]; 615 651 }; 616 652 617 - /** 618 - * VLAN 653 + /* VLAN 619 654 * 620 655 * bfi_enet_rx_vlan_req is used by: 621 656 * BFI_ENET_H2I_RX_VLAN_SET_REQ ··· 626 663 u32 bit_mask[BFI_ENET_VLAN_WORDS_MAX]; 627 664 }; 628 665 629 - /** 630 - * PAUSE 666 + /* PAUSE 631 667 * 632 668 * bfi_enet_set_pause_req is used by: 633 669 * BFI_ENET_H2I_SET_PAUSE_REQ ··· 638 676 u8 rx_pause; /* 1 = enable; 0 = disable */ 639 677 }; 640 678 641 - /** 642 - * DIAGNOSTICS 679 + /* DIAGNOSTICS 643 680 * 644 681 * bfi_enet_diag_lb_req is used by: 645 682 * BFI_ENET_H2I_DIAG_LOOPBACK ··· 650 689 u8 enable; /* 1 = enable; 0 = disable */ 651 690 }; 652 691 653 - /** 654 - * enum for Loopback opmodes 655 - */ 692 + /* enum for Loopback opmodes */ 656 693 enum { 657 694 BFI_ENET_DIAG_LB_OPMODE_EXT = 0, 658 695 BFI_ENET_DIAG_LB_OPMODE_CBL = 1, 659 696 }; 660 697 661 - /** 662 - * STATISTICS 698 + /* STATISTICS 663 699 * 664 700 * bfi_enet_stats_req is used by: 665 701 * BFI_ENET_H2I_STATS_GET_REQ ··· 671 713 union bfi_addr_u host_buffer; 672 714 }; 673 715 674 - /** 675 - * defines for "stats_mask" above. 676 - */ 716 + /* defines for "stats_mask" above. */ 677 717 #define BFI_ENET_STATS_MAC (1 << 0) /* !< MAC Statistics */ 678 718 #define BFI_ENET_STATS_BPC (1 << 1) /* !< Pause Stats from BPC */ 679 719 #define BFI_ENET_STATS_RAD (1 << 2) /* !< Rx Admission Statistics */ ··· 837 881 u64 tx_fragments; 838 882 }; 839 883 840 - /** 841 - * Complete statistics, DMAed from fw to host followed by 884 + /* Complete statistics, DMAed from fw to host followed by 842 885 * BFI_ENET_I2H_STATS_GET_RSP 843 886 */ 844 887 struct bfi_enet_stats {
+1 -3
drivers/net/ethernet/brocade/bna/bfi_reg.h
··· 221 221 #define __PMM_1T_RESET_P 0x00000001 222 222 #define PMM_1T_RESET_REG_P1 0x00023c1c 223 223 224 - /** 225 - * Brocade 1860 Adapter specific defines 226 - */ 224 + /* Brocade 1860 Adapter specific defines */ 227 225 #define CT2_PCI_CPQ_BASE 0x00030000 228 226 #define CT2_PCI_APP_BASE 0x00030100 229 227 #define CT2_PCI_ETH_BASE 0x00030400
+12 -39
drivers/net/ethernet/brocade/bna/bna.h
··· 25 25 26 26 extern const u32 bna_napi_dim_vector[][BNA_BIAS_T_MAX]; 27 27 28 - /** 29 - * 30 - * Macros and constants 31 - * 32 - */ 28 + /* Macros and constants */ 33 29 34 30 #define BNA_IOC_TIMER_FREQ 200 35 31 ··· 352 356 } \ 353 357 } while (0) 354 358 355 - /** 356 - * 357 - * Inline functions 358 - * 359 - */ 359 + /* Inline functions */ 360 360 361 361 static inline struct bna_mac *bna_mac_find(struct list_head *q, u8 *addr) 362 362 { ··· 369 377 370 378 #define bna_attr(_bna) (&(_bna)->ioceth.attr) 371 379 372 - /** 373 - * 374 - * Function prototypes 375 - * 376 - */ 380 + /* Function prototypes */ 377 381 378 - /** 379 - * BNA 380 - */ 382 + /* BNA */ 381 383 382 384 /* FW response handlers */ 383 385 void bna_bfi_stats_clr_rsp(struct bna *bna, struct bfi_msgq_mhdr *msghdr); ··· 399 413 void bna_mcam_mod_handle_put(struct bna_mcam_mod *mcam_mod, 400 414 struct bna_mcam_handle *handle); 401 415 402 - /** 403 - * MBOX 404 - */ 416 + /* MBOX */ 405 417 406 418 /* API for BNAD */ 407 419 void bna_mbox_handler(struct bna *bna, u32 intr_status); 408 420 409 - /** 410 - * ETHPORT 411 - */ 421 + /* ETHPORT */ 412 422 413 423 /* Callbacks for RX */ 414 424 void bna_ethport_cb_rx_started(struct bna_ethport *ethport); 415 425 void bna_ethport_cb_rx_stopped(struct bna_ethport *ethport); 416 426 417 - /** 418 - * TX MODULE AND TX 419 - */ 427 + /* TX MODULE AND TX */ 428 + 420 429 /* FW response handelrs */ 421 430 void bna_bfi_tx_enet_start_rsp(struct bna_tx *tx, 422 431 struct bfi_msgq_mhdr *msghdr); ··· 443 462 void bna_tx_cleanup_complete(struct bna_tx *tx); 444 463 void bna_tx_coalescing_timeo_set(struct bna_tx *tx, int coalescing_timeo); 445 464 446 - /** 447 - * RX MODULE, RX, RXF 448 - */ 465 + /* RX MODULE, RX, RXF */ 449 466 450 467 /* FW response handlers */ 451 468 void bna_bfi_rx_enet_start_rsp(struct bna_rx *rx, ··· 501 522 void bna_rx_vlan_add(struct bna_rx *rx, int vlan_id); 502 523 void bna_rx_vlan_del(struct bna_rx *rx, int vlan_id); 503 524 void bna_rx_vlanfilter_enable(struct bna_rx *rx); 504 - /** 505 - * ENET 506 - */ 525 + /* ENET */ 507 526 508 527 /* API for RX */ 509 528 int bna_enet_mtu_get(struct bna_enet *enet); ··· 521 544 void (*cbfn)(struct bnad *)); 522 545 void bna_enet_perm_mac_get(struct bna_enet *enet, mac_t *mac); 523 546 524 - /** 525 - * IOCETH 526 - */ 547 + /* IOCETH */ 527 548 528 549 /* APIs for BNAD */ 529 550 void bna_ioceth_enable(struct bna_ioceth *ioceth); 530 551 void bna_ioceth_disable(struct bna_ioceth *ioceth, 531 552 enum bna_cleanup_type type); 532 553 533 - /** 534 - * BNAD 535 - */ 554 + /* BNAD */ 536 555 537 556 /* Callbacks for ENET */ 538 557 void bnad_cb_ethport_link_status(struct bnad *bnad,
+6 -9
drivers/net/ethernet/brocade/bna/bna_enet.c
··· 378 378 } 379 379 } 380 380 381 - /** 382 - * ETHPORT 383 - */ 381 + /* ETHPORT */ 382 + 384 383 #define call_ethport_stop_cbfn(_ethport) \ 385 384 do { \ 386 385 if ((_ethport)->stop_cbfn) { \ ··· 803 804 } 804 805 } 805 806 806 - /** 807 - * ENET 808 - */ 807 + /* ENET */ 808 + 809 809 #define bna_enet_chld_start(enet) \ 810 810 do { \ 811 811 enum bna_tx_type tx_type = \ ··· 1326 1328 *mac = bfa_nw_ioc_get_mac(&enet->bna->ioceth.ioc); 1327 1329 } 1328 1330 1329 - /** 1330 - * IOCETH 1331 - */ 1331 + /* IOCETH */ 1332 + 1332 1333 #define enable_mbox_intr(_ioceth) \ 1333 1334 do { \ 1334 1335 u32 intr_status; \
+8 -25
drivers/net/ethernet/brocade/bna/bna_hw_defs.h
··· 16 16 * www.brocade.com 17 17 */ 18 18 19 - /** 20 - * File for interrupt macros and functions 21 - */ 19 + /* File for interrupt macros and functions */ 22 20 23 21 #ifndef __BNA_HW_DEFS_H__ 24 22 #define __BNA_HW_DEFS_H__ 25 23 26 24 #include "bfi_reg.h" 27 25 28 - /** 29 - * 30 - * SW imposed limits 31 - * 32 - */ 26 + /* SW imposed limits */ 27 + 33 28 #define BFI_ENET_DEF_TXQ 1 34 29 #define BFI_ENET_DEF_RXP 1 35 30 #define BFI_ENET_DEF_UCAM 1 ··· 136 141 } 137 142 138 143 #define bna_port_id_get(_bna) ((_bna)->ioceth.ioc.port_id) 139 - /** 140 - * 141 - * Interrupt related bits, flags and macros 142 - * 143 - */ 144 + 145 + /* Interrupt related bits, flags and macros */ 144 146 145 147 #define IB_STATUS_BITS 0x0000ffff 146 148 ··· 272 280 (writel(BNA_DOORBELL_Q_PRD_IDX((_rcb)->producer_index), \ 273 281 (_rcb)->q_dbell)); 274 282 275 - /** 276 - * 277 - * TxQ, RxQ, CQ related bits, offsets, macros 278 - * 279 - */ 283 + /* TxQ, RxQ, CQ related bits, offsets, macros */ 280 284 281 285 /* TxQ Entry Opcodes */ 282 286 #define BNA_TXQ_WI_SEND (0x402) /* Single Frame Transmission */ ··· 322 334 323 335 #define BNA_CQ_EF_LOCAL (1 << 20) 324 336 325 - /** 326 - * 327 - * Data structures 328 - * 329 - */ 337 + /* Data structures */ 330 338 331 339 struct bna_reg_offset { 332 340 u32 fn_int_status; ··· 355 371 struct bna_dma_addr host_addr; /* Tx-Buf DMA addr */ 356 372 }; 357 373 358 - /** 359 - * TxQ Entry Structure 374 + /* TxQ Entry Structure 360 375 * 361 376 * BEWARE: Load values into this structure with correct endianess. 362 377 */
+5 -12
drivers/net/ethernet/brocade/bna/bna_tx_rx.c
··· 18 18 #include "bna.h" 19 19 #include "bfi.h" 20 20 21 - /** 22 - * IB 23 - */ 21 + /* IB */ 24 22 static void 25 23 bna_ib_coalescing_timeo_set(struct bna_ib *ib, u8 coalescing_timeo) 26 24 { ··· 27 29 (u32)ib->coalescing_timeo, 0); 28 30 } 29 31 30 - /** 31 - * RXF 32 - */ 32 + /* RXF */ 33 33 34 34 #define bna_rxf_vlan_cfg_soft_reset(rxf) \ 35 35 do { \ ··· 1308 1312 return 0; 1309 1313 } 1310 1314 1311 - /** 1312 - * RX 1313 - */ 1315 + /* RX */ 1314 1316 1315 1317 #define BNA_GET_RXQS(qcfg) (((qcfg)->rxp_type == BNA_RXP_SINGLE) ? \ 1316 1318 (qcfg)->num_paths : ((qcfg)->num_paths * 2)) ··· 2785 2791 {1, 2}, 2786 2792 }; 2787 2793 2788 - /** 2789 - * TX 2790 - */ 2794 + /* TX */ 2795 + 2791 2796 #define call_tx_stop_cbfn(tx) \ 2792 2797 do { \ 2793 2798 if ((tx)->stop_cbfn) { \
+11 -55
drivers/net/ethernet/brocade/bna/bna_types.h
··· 23 23 #include "bfa_cee.h" 24 24 #include "bfa_msgq.h" 25 25 26 - /** 27 - * 28 - * Forward declarations 29 - * 30 - */ 26 + /* Forward declarations */ 31 27 32 28 struct bna_mcam_handle; 33 29 struct bna_txq; ··· 36 40 struct bna; 37 41 struct bnad; 38 42 39 - /** 40 - * 41 - * Enums, primitive data types 42 - * 43 - */ 43 + /* Enums, primitive data types */ 44 44 45 45 enum bna_status { 46 46 BNA_STATUS_T_DISABLED = 0, ··· 323 331 int max_rit_size; 324 332 }; 325 333 326 - /** 327 - * 328 - * IOCEth 329 - * 330 - */ 334 + /* IOCEth */ 331 335 332 336 struct bna_ioceth { 333 337 bfa_fsm_t fsm; ··· 339 351 struct bna *bna; 340 352 }; 341 353 342 - /** 343 - * 344 - * Enet 345 - * 346 - */ 354 + /* Enet */ 347 355 348 356 /* Pause configuration */ 349 357 struct bna_pause_config { ··· 374 390 struct bna *bna; 375 391 }; 376 392 377 - /** 378 - * 379 - * Ethport 380 - * 381 - */ 393 + /* Ethport */ 382 394 383 395 struct bna_ethport { 384 396 bfa_fsm_t fsm; ··· 399 419 struct bna *bna; 400 420 }; 401 421 402 - /** 403 - * 404 - * Interrupt Block 405 - * 406 - */ 422 + /* Interrupt Block */ 407 423 408 424 /* Doorbell structure */ 409 425 struct bna_ib_dbell { ··· 423 447 int interpkt_timeo; 424 448 }; 425 449 426 - /** 427 - * 428 - * Tx object 429 - * 430 - */ 450 + /* Tx object */ 431 451 432 452 /* Tx datapath control structure */ 433 453 #define BNA_Q_NAME_SIZE 16 ··· 557 585 struct bna *bna; 558 586 }; 559 587 560 - /** 561 - * 562 - * Rx object 563 - * 564 - */ 588 + /* Rx object */ 565 589 566 590 /* Rx datapath control structure */ 567 591 struct bna_rcb { ··· 866 898 u32 rid_mask; 867 899 }; 868 900 869 - /** 870 - * 871 - * CAM 872 - * 873 - */ 901 + /* CAM */ 874 902 875 903 struct bna_ucam_mod { 876 904 struct bna_mac *ucmac; /* BFI_MAX_UCMAC entries */ ··· 891 927 struct bna *bna; 892 928 }; 893 929 894 - /** 895 - * 896 - * Statistics 897 - * 898 - */ 930 + /* Statistics */ 899 931 900 932 struct bna_stats { 901 933 struct bna_dma_addr hw_stats_dma; ··· 909 949 struct bfi_enet_stats_req stats_clr; 910 950 }; 911 951 912 - /** 913 - * 914 - * BNA 915 - * 916 - */ 952 + /* BNA */ 917 953 918 954 struct bna { 919 955 struct bna_ident ident;
+4 -8
drivers/net/ethernet/brocade/bna/bnad.c
··· 1302 1302 return 0; 1303 1303 } 1304 1304 1305 - /** 1306 - * NOTE: Should be called for MSIX only 1305 + /* NOTE: Should be called for MSIX only 1307 1306 * Unregisters Tx MSIX vector(s) from the kernel 1308 1307 */ 1309 1308 static void ··· 1321 1322 } 1322 1323 } 1323 1324 1324 - /** 1325 - * NOTE: Should be called for MSIX only 1325 + /* NOTE: Should be called for MSIX only 1326 1326 * Registers Tx MSIX vector(s) and ISR(s), cookie with the kernel 1327 1327 */ 1328 1328 static int ··· 1352 1354 return -1; 1353 1355 } 1354 1356 1355 - /** 1356 - * NOTE: Should be called for MSIX only 1357 + /* NOTE: Should be called for MSIX only 1357 1358 * Unregisters Rx MSIX vector(s) from the kernel 1358 1359 */ 1359 1360 static void ··· 1372 1375 } 1373 1376 } 1374 1377 1375 - /** 1376 - * NOTE: Should be called for MSIX only 1378 + /* NOTE: Should be called for MSIX only 1377 1379 * Registers Tx MSIX vector(s) and ISR(s), cookie with the kernel 1378 1380 */ 1379 1381 static int
+1 -3
drivers/net/ethernet/brocade/bna/bnad.h
··· 389 389 void bnad_debugfs_init(struct bnad *bnad); 390 390 void bnad_debugfs_uninit(struct bnad *bnad); 391 391 392 - /** 393 - * MACROS 394 - */ 392 + /* MACROS */ 395 393 /* To set & get the stats counters */ 396 394 #define BNAD_UPDATE_CTR(_bnad, _ctr) \ 397 395 (((_bnad)->stats.drv_stats._ctr)++)
+1 -3
drivers/net/ethernet/ibm/ehea/ehea_qmr.c
··· 376 376 return 0; 377 377 } 378 378 379 - /** 380 - * allocates memory for a queue and registers pages in phyp 381 - */ 379 + /* allocates memory for a queue and registers pages in phyp */ 382 380 static int ehea_qp_alloc_register(struct ehea_qp *qp, struct hw_queue *hw_queue, 383 381 int nr_pages, int wqe_size, int act_nr_sges, 384 382 struct ehea_adapter *adapter, int h_call_q_selector)
+3 -6
drivers/net/ethernet/intel/e1000/e1000_main.c
··· 721 721 e1000_release_manageability(adapter); 722 722 } 723 723 724 - /** 725 - * Dump the eeprom for users having checksum issues 726 - **/ 724 + /* Dump the eeprom for users having checksum issues */ 727 725 static void e1000_dump_eeprom(struct e1000_adapter *adapter) 728 726 { 729 727 struct net_device *netdev = adapter->netdev; ··· 3054 3056 mmiowb(); 3055 3057 } 3056 3058 3057 - /** 3058 - * 82547 workaround to avoid controller hang in half-duplex environment. 3059 + /* 82547 workaround to avoid controller hang in half-duplex environment. 3059 3060 * The workaround is to avoid queuing a large packet that would span 3060 3061 * the internal Tx FIFO ring boundary by notifying the stack to resend 3061 3062 * the packet at a later time. This gives the Tx FIFO an opportunity to 3062 3063 * flush all packets. When that occurs, we reset the Tx FIFO pointers 3063 3064 * to the beginning of the Tx FIFO. 3064 - **/ 3065 + */ 3065 3066 3066 3067 #define E1000_FIFO_HDR 0x10 3067 3068 #define E1000_82547_PAD_LEN 0x3E0
+2 -4
drivers/net/ethernet/micrel/ks8851_mll.c
··· 16 16 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 17 17 */ 18 18 19 - /** 20 - * Supports: 19 + /* Supports: 21 20 * KS8851 16bit MLL chip from Micrel Inc. 22 21 */ 23 22 ··· 464 465 #define BE1 0x2000 /* Byte Enable 1 */ 465 466 #define BE0 0x1000 /* Byte Enable 0 */ 466 467 467 - /** 468 - * register read/write calls. 468 + /* register read/write calls. 469 469 * 470 470 * All these calls issue transactions to access the chip's registers. They 471 471 * all require that the necessary lock is held to prevent accesses when the
+1 -2
drivers/net/ethernet/neterion/vxge/vxge-main.h
··· 430 430 enum vxge_hw_status vxge_reset_all_vpaths(struct vxgedev *vdev); 431 431 int vxge_fw_upgrade(struct vxgedev *vdev, char *fw_name, int override); 432 432 433 - /** 434 - * #define VXGE_DEBUG_INIT: debug for initialization functions 433 + /* #define VXGE_DEBUG_INIT: debug for initialization functions 435 434 * #define VXGE_DEBUG_TX : debug transmit related functions 436 435 * #define VXGE_DEBUG_RX : debug recevice related functions 437 436 * #define VXGE_DEBUG_MEM : debug memory module
+1 -2
drivers/net/ethernet/nvidia/forcedeth.c
··· 3552 3552 return IRQ_HANDLED; 3553 3553 } 3554 3554 3555 - /** 3556 - * All _optimized functions are used to help increase performance 3555 + /* All _optimized functions are used to help increase performance 3557 3556 * (reduce CPU and increase throughput). They use descripter version 3, 3558 3557 * compiler directives, and reduce memory accesses. 3559 3558 */
+1 -2
drivers/net/ethernet/sfc/mcdi_pcol.h
··· 48 48 49 49 /* Unused commands: 0x23, 0x27, 0x30, 0x31 */ 50 50 51 - /** 52 - * MCDI version 1 51 + /* MCDI version 1 53 52 * 54 53 * Each MCDI request starts with an MCDI_HEADER, which is a 32byte 55 54 * structure, filled in by the client.
+2 -6
drivers/net/ethernet/ti/davinci_emac.c
··· 614 614 } 615 615 616 616 617 - /** 618 - * ethtool_ops: DaVinci EMAC Ethtool structure 617 + /* ethtool_ops: DaVinci EMAC Ethtool structure 619 618 * 620 619 * Ethtool support for EMAC adapter 621 - * 622 620 */ 623 621 static const struct ethtool_ops ethtool_ops = { 624 622 .get_drvinfo = emac_get_drvinfo, ··· 2013 2015 .resume = davinci_emac_resume, 2014 2016 }; 2015 2017 2016 - /** 2017 - * davinci_emac_driver: EMAC platform driver structure 2018 - */ 2018 + /* davinci_emac_driver: EMAC platform driver structure */ 2019 2019 static struct platform_driver davinci_emac_driver = { 2020 2020 .driver = { 2021 2021 .name = "davinci_emac",