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

bnx2x: function descriptions format fixed

Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Dmitry Kravkov and committed by
David S. Miller
e8920674 5de92408

+196 -268
+23 -22
drivers/net/bnx2x/bnx2x_cmn.c
··· 308 308 */ 309 309 #define TPA_TSTAMP_OPT_LEN 12 310 310 /** 311 - * Calculate the approximate value of the MSS for this 312 - * aggregation using the first packet of it. 311 + * bnx2x_set_lro_mss - calculate the approximate value of the MSS 313 312 * 314 - * @param bp 315 - * @param parsing_flags Parsing flags from the START CQE 316 - * @param len_on_bd Total length of the first packet for the 317 - * aggregation. 313 + * @bp: driver handle 314 + * @parsing_flags: parsing flags from the START CQE 315 + * @len_on_bd: total length of the first packet for the 316 + * aggregation. 317 + * 318 + * Approximate value of the MSS for this aggregation calculated using 319 + * the first packet of it. 318 320 */ 319 321 static inline u16 bnx2x_set_lro_mss(struct bnx2x *bp, u16 parsing_flags, 320 322 u16 len_on_bd) ··· 2085 2083 } 2086 2084 2087 2085 /** 2088 - * Update PBD in GSO case. 2086 + * bnx2x_set_pbd_gso - update PBD in GSO case. 2089 2087 * 2090 - * @param skb 2091 - * @param tx_start_bd 2092 - * @param pbd 2093 - * @param xmit_type 2088 + * @skb: packet skb 2089 + * @pbd: parse BD 2090 + * @xmit_type: xmit flags 2094 2091 */ 2095 2092 static inline void bnx2x_set_pbd_gso(struct sk_buff *skb, 2096 2093 struct eth_tx_parse_bd_e1x *pbd, ··· 2116 2115 } 2117 2116 2118 2117 /** 2118 + * bnx2x_set_pbd_csum_e2 - update PBD with checksum and return header length 2119 2119 * 2120 - * @param skb 2121 - * @param tx_start_bd 2122 - * @param pbd_e2 2123 - * @param xmit_type 2120 + * @bp: driver handle 2121 + * @skb: packet skb 2122 + * @parsing_data: data to be updated 2123 + * @xmit_type: xmit flags 2124 2124 * 2125 - * @return header len 2125 + * 57712 related 2126 2126 */ 2127 2127 static inline u8 bnx2x_set_pbd_csum_e2(struct bnx2x *bp, struct sk_buff *skb, 2128 2128 u32 *parsing_data, u32 xmit_type) ··· 2148 2146 } 2149 2147 2150 2148 /** 2149 + * bnx2x_set_pbd_csum - update PBD with checksum and return header length 2151 2150 * 2152 - * @param skb 2153 - * @param tx_start_bd 2154 - * @param pbd 2155 - * @param xmit_type 2156 - * 2157 - * @return Header length 2151 + * @bp: driver handle 2152 + * @skb: packet skb 2153 + * @pbd: parse BD to be updated 2154 + * @xmit_type: xmit flags 2158 2155 */ 2159 2156 static inline u8 bnx2x_set_pbd_csum(struct bnx2x *bp, struct sk_buff *skb, 2160 2157 struct eth_tx_parse_bd_e1x *pbd,
+134 -173
drivers/net/bnx2x/bnx2x_cmn.h
··· 63 63 */ 64 64 65 65 /** 66 - * Initialize link parameters structure variables. 66 + * bnx2x_initial_phy_init - initialize link parameters structure variables. 67 67 * 68 - * @param bp 69 - * @param load_mode 70 - * 71 - * @return u8 68 + * @bp: driver handle 69 + * @load_mode: current mode 72 70 */ 73 71 u8 bnx2x_initial_phy_init(struct bnx2x *bp, int load_mode); 74 72 75 73 /** 76 - * Configure hw according to link parameters structure. 74 + * bnx2x_link_set - configure hw according to link parameters structure. 77 75 * 78 - * @param bp 76 + * @bp: driver handle 79 77 */ 80 78 void bnx2x_link_set(struct bnx2x *bp); 81 79 82 80 /** 83 - * Query link status 81 + * bnx2x_link_test - query link status. 84 82 * 85 - * @param bp 86 - * @param is_serdes 83 + * @bp: driver handle 84 + * @is_serdes: bool 87 85 * 88 - * @return 0 - link is UP 86 + * Returns 0 if link is UP. 89 87 */ 90 88 u8 bnx2x_link_test(struct bnx2x *bp, u8 is_serdes); 91 89 92 90 /** 93 - * Handles link status change 91 + * bnx2x__link_status_update - handles link status change. 94 92 * 95 - * @param bp 93 + * @bp: driver handle 96 94 */ 97 95 void bnx2x__link_status_update(struct bnx2x *bp); 98 96 99 97 /** 100 - * Report link status to upper layer 98 + * bnx2x_link_report - report link status to upper layer. 101 99 * 102 - * @param bp 100 + * @bp: driver handle 103 101 */ 104 102 void bnx2x_link_report(struct bnx2x *bp); 105 103 ··· 105 107 void __bnx2x_link_report(struct bnx2x *bp); 106 108 107 109 /** 108 - * calculates MF speed according to current linespeed and MF 109 - * configuration 110 + * bnx2x_get_mf_speed - calculate MF speed. 110 111 * 111 - * @param bp 112 + * @bp: driver handle 112 113 * 113 - * @return u16 114 + * Takes into account current linespeed and MF configuration. 114 115 */ 115 116 u16 bnx2x_get_mf_speed(struct bnx2x *bp); 116 117 117 118 /** 118 - * MSI-X slowpath interrupt handler 119 + * bnx2x_msix_sp_int - MSI-X slowpath interrupt handler 119 120 * 120 - * @param irq 121 - * @param dev_instance 122 - * 123 - * @return irqreturn_t 121 + * @irq: irq number 122 + * @dev_instance: private instance 124 123 */ 125 124 irqreturn_t bnx2x_msix_sp_int(int irq, void *dev_instance); 126 125 127 126 /** 128 - * non MSI-X interrupt handler 127 + * bnx2x_interrupt - non MSI-X interrupt handler 129 128 * 130 - * @param irq 131 - * @param dev_instance 132 - * 133 - * @return irqreturn_t 129 + * @irq: irq number 130 + * @dev_instance: private instance 134 131 */ 135 132 irqreturn_t bnx2x_interrupt(int irq, void *dev_instance); 136 133 #ifdef BCM_CNIC 137 134 138 135 /** 139 - * Send command to cnic driver 136 + * bnx2x_cnic_notify - send command to cnic driver 140 137 * 141 - * @param bp 142 - * @param cmd 138 + * @bp: driver handle 139 + * @cmd: command 143 140 */ 144 141 int bnx2x_cnic_notify(struct bnx2x *bp, int cmd); 145 142 146 143 /** 147 - * Provides cnic information for proper interrupt handling 144 + * bnx2x_setup_cnic_irq_info - provides cnic with IRQ information 148 145 * 149 - * @param bp 146 + * @bp: driver handle 150 147 */ 151 148 void bnx2x_setup_cnic_irq_info(struct bnx2x *bp); 152 149 #endif 153 150 154 151 /** 155 - * Enable HW interrupts. 152 + * bnx2x_int_enable - enable HW interrupts. 156 153 * 157 - * @param bp 154 + * @bp: driver handle 158 155 */ 159 156 void bnx2x_int_enable(struct bnx2x *bp); 160 157 161 158 /** 162 - * Disable interrupts. This function ensures that there are no 163 - * ISRs or SP DPCs (sp_task) are running after it returns. 159 + * bnx2x_int_disable_sync - disable interrupts. 164 160 * 165 - * @param bp 166 - * @param disable_hw if true, disable HW interrupts. 161 + * @bp: driver handle 162 + * @disable_hw: true, disable HW interrupts. 163 + * 164 + * This function ensures that there are no 165 + * ISRs or SP DPCs (sp_task) are running after it returns. 167 166 */ 168 167 void bnx2x_int_disable_sync(struct bnx2x *bp, int disable_hw); 169 168 170 169 /** 171 - * Loads device firmware 170 + * bnx2x_init_firmware - loads device firmware 172 171 * 173 - * @param bp 174 - * 175 - * @return int 172 + * @bp: driver handle 176 173 */ 177 174 int bnx2x_init_firmware(struct bnx2x *bp); 178 175 179 176 /** 180 - * Init HW blocks according to current initialization stage: 181 - * COMMON, PORT or FUNCTION. 177 + * bnx2x_init_hw - init HW blocks according to current initialization stage. 182 178 * 183 - * @param bp 184 - * @param load_code: COMMON, PORT or FUNCTION 185 - * 186 - * @return int 179 + * @bp: driver handle 180 + * @load_code: COMMON, PORT or FUNCTION 187 181 */ 188 182 int bnx2x_init_hw(struct bnx2x *bp, u32 load_code); 189 183 190 184 /** 191 - * Init driver internals: 185 + * bnx2x_nic_init - init driver internals. 186 + * 187 + * @bp: driver handle 188 + * @load_code: COMMON, PORT or FUNCTION 189 + * 190 + * Initializes: 192 191 * - rings 193 192 * - status blocks 194 193 * - etc. 195 - * 196 - * @param bp 197 - * @param load_code COMMON, PORT or FUNCTION 198 194 */ 199 195 void bnx2x_nic_init(struct bnx2x *bp, u32 load_code); 200 196 201 197 /** 202 - * Allocate driver's memory. 198 + * bnx2x_alloc_mem - allocate driver's memory. 203 199 * 204 - * @param bp 205 - * 206 - * @return int 200 + * @bp: driver handle 207 201 */ 208 202 int bnx2x_alloc_mem(struct bnx2x *bp); 209 203 210 204 /** 211 - * Release driver's memory. 205 + * bnx2x_free_mem - release driver's memory. 212 206 * 213 - * @param bp 207 + * @bp: driver handle 214 208 */ 215 209 void bnx2x_free_mem(struct bnx2x *bp); 216 210 217 211 /** 218 - * Setup eth Client. 212 + * bnx2x_setup_client - setup eth client. 219 213 * 220 - * @param bp 221 - * @param fp 222 - * @param is_leading 223 - * 224 - * @return int 214 + * @bp: driver handle 215 + * @fp: pointer to fastpath structure 216 + * @is_leading: boolean 225 217 */ 226 218 int bnx2x_setup_client(struct bnx2x *bp, struct bnx2x_fastpath *fp, 227 219 int is_leading); 228 220 229 221 /** 230 - * Set number of queues according to mode 222 + * bnx2x_set_num_queues - set number of queues according to mode. 231 223 * 232 - * @param bp 233 - * 224 + * @bp: driver handle 234 225 */ 235 226 void bnx2x_set_num_queues(struct bnx2x *bp); 236 227 237 228 /** 238 - * Cleanup chip internals: 239 - * - Cleanup MAC configuration. 240 - * - Close clients. 241 - * - etc. 229 + * bnx2x_chip_cleanup - cleanup chip internals. 242 230 * 243 - * @param bp 244 - * @param unload_mode 231 + * @bp: driver handle 232 + * @unload_mode: COMMON, PORT, FUNCTION 233 + * 234 + * - Cleanup MAC configuration. 235 + * - Closes clients. 236 + * - etc. 245 237 */ 246 238 void bnx2x_chip_cleanup(struct bnx2x *bp, int unload_mode); 247 239 248 240 /** 249 - * Acquire HW lock. 241 + * bnx2x_acquire_hw_lock - acquire HW lock. 250 242 * 251 - * @param bp 252 - * @param resource Resource bit which was locked 253 - * 254 - * @return int 243 + * @bp: driver handle 244 + * @resource: resource bit which was locked 255 245 */ 256 246 int bnx2x_acquire_hw_lock(struct bnx2x *bp, u32 resource); 257 247 258 248 /** 259 - * Release HW lock. 249 + * bnx2x_release_hw_lock - release HW lock. 260 250 * 261 - * @param bp driver handle 262 - * @param resource Resource bit which was locked 263 - * 264 - * @return int 251 + * @bp: driver handle 252 + * @resource: resource bit which was locked 265 253 */ 266 254 int bnx2x_release_hw_lock(struct bnx2x *bp, u32 resource); 267 255 268 256 /** 269 - * Configure eth MAC address in the HW according to the value in 270 - * netdev->dev_addr. 257 + * bnx2x_set_eth_mac - configure eth MAC address in the HW 271 258 * 272 - * @param bp driver handle 273 - * @param set 259 + * @bp: driver handle 260 + * @set: set or clear 261 + * 262 + * Configures according to the value in netdev->dev_addr. 274 263 */ 275 264 void bnx2x_set_eth_mac(struct bnx2x *bp, int set); 276 265 277 266 #ifdef BCM_CNIC 278 267 /** 279 - * Set/Clear FIP MAC(s) at the next enties in the CAM after the ETH 280 - * MAC(s). This function will wait until the ramdord completion 281 - * returns. 268 + * bnx2x_set_fip_eth_mac_addr - Set/Clear FIP MAC(s) 282 269 * 283 - * @param bp driver handle 284 - * @param set set or clear the CAM entry 270 + * @bp: driver handle 271 + * @set: set or clear the CAM entry 285 272 * 286 - * @return 0 if cussess, -ENODEV if ramrod doesn't return. 273 + * Used next enties in the CAM after the ETH MAC(s). 274 + * This function will wait until the ramdord completion returns. 275 + * Return 0 if cussess, -ENODEV if ramrod doesn't return. 287 276 */ 288 277 int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set); 289 278 290 279 /** 291 - * Set/Clear ALL_ENODE mcast MAC. 280 + * bnx2x_set_all_enode_macs - Set/Clear ALL_ENODE mcast MAC. 292 281 * 293 - * @param bp 294 - * @param set 295 - * 296 - * @return int 282 + * @bp: driver handle 283 + * @set: set or clear 297 284 */ 298 285 int bnx2x_set_all_enode_macs(struct bnx2x *bp, int set); 299 286 #endif 300 287 301 288 /** 302 - * Set MAC filtering configurations. 289 + * bnx2x_set_rx_mode - set MAC filtering configurations. 303 290 * 304 - * @remarks called with netif_tx_lock from dev_mcast.c 291 + * @dev: netdevice 305 292 * 306 - * @param dev net_device 293 + * called with netif_tx_lock from dev_mcast.c 307 294 */ 308 295 void bnx2x_set_rx_mode(struct net_device *dev); 309 296 310 297 /** 311 - * Configure MAC filtering rules in a FW. 298 + * bnx2x_set_storm_rx_mode - configure MAC filtering rules in a FW. 312 299 * 313 - * @param bp driver handle 300 + * @bp: driver handle 314 301 */ 315 302 void bnx2x_set_storm_rx_mode(struct bnx2x *bp); 316 303 ··· 307 324 void bnx2x_disable_close_the_gate(struct bnx2x *bp); 308 325 309 326 /** 310 - * Perform statistics handling according to event 327 + * bnx2x_stats_handle - perform statistics handling according to event. 311 328 * 312 - * @param bp driver handle 313 - * @param event bnx2x_stats_event 329 + * @bp: driver handle 330 + * @event: bnx2x_stats_event 314 331 */ 315 332 void bnx2x_stats_handle(struct bnx2x *bp, enum bnx2x_stats_event event); 316 333 317 334 /** 318 - * Handle ramrods completion 335 + * bnx2x_sp_event - handle ramrods completion. 319 336 * 320 - * @param fp fastpath handle for the event 321 - * @param rr_cqe eth_rx_cqe 337 + * @fp: fastpath handle for the event 338 + * @rr_cqe: eth_rx_cqe 322 339 */ 323 340 void bnx2x_sp_event(struct bnx2x_fastpath *fp, union eth_rx_cqe *rr_cqe); 324 341 325 342 /** 326 - * Init/halt function before/after sending 327 - * CLIENT_SETUP/CFC_DEL for the first/last client. 343 + * bnx2x_func_start - init function 328 344 * 329 - * @param bp 345 + * @bp: driver handle 330 346 * 331 - * @return int 347 + * Must be called before sending CLIENT_SETUP for the first client. 332 348 */ 333 349 int bnx2x_func_start(struct bnx2x *bp); 334 350 335 351 /** 336 - * Prepare ILT configurations according to current driver 337 - * parameters. 352 + * bnx2x_ilt_set_info - prepare ILT configurations. 338 353 * 339 - * @param bp 354 + * @bp: driver handle 340 355 */ 341 356 void bnx2x_ilt_set_info(struct bnx2x *bp); 342 357 343 358 /** 344 - * Inintialize dcbx protocol 359 + * bnx2x_dcbx_init - initialize dcbx protocol. 345 360 * 346 - * @param bp 361 + * @bp: driver handle 347 362 */ 348 363 void bnx2x_dcbx_init(struct bnx2x *bp); 349 364 350 365 /** 351 - * Set power state to the requested value. Currently only D0 and 352 - * D3hot are supported. 366 + * bnx2x_set_power_state - set power state to the requested value. 353 367 * 354 - * @param bp 355 - * @param state D0 or D3hot 368 + * @bp: driver handle 369 + * @state: required state D0 or D3hot 356 370 * 357 - * @return int 371 + * Currently only D0 and D3hot are supported. 358 372 */ 359 373 int bnx2x_set_power_state(struct bnx2x *bp, pci_power_t state); 360 374 361 375 /** 362 - * Updates MAX part of MF configuration in HW 363 - * (if required) 376 + * bnx2x_update_max_mf_config - update MAX part of MF configuration in HW. 364 377 * 365 - * @param bp 366 - * @param value 378 + * @bp: driver handle 379 + * @value: new value 367 380 */ 368 381 void bnx2x_update_max_mf_config(struct bnx2x *bp, u32 value); 369 382 ··· 399 420 void bnx2x_netif_start(struct bnx2x *bp); 400 421 401 422 /** 402 - * Fill msix_table, request vectors, update num_queues according 403 - * to number of available vectors 423 + * bnx2x_enable_msix - set msix configuration. 404 424 * 405 - * @param bp 425 + * @bp: driver handle 406 426 * 407 - * @return int 427 + * fills msix_table, requests vectors, updates num_queues 428 + * according to number of available vectors. 408 429 */ 409 430 int bnx2x_enable_msix(struct bnx2x *bp); 410 431 411 432 /** 412 - * Request msi mode from OS, updated internals accordingly 433 + * bnx2x_enable_msi - request msi mode from OS, updated internals accordingly 413 434 * 414 - * @param bp 415 - * 416 - * @return int 435 + * @bp: driver handle 417 436 */ 418 437 int bnx2x_enable_msi(struct bnx2x *bp); 419 438 420 439 /** 421 - * NAPI callback 440 + * bnx2x_poll - NAPI callback 422 441 * 423 - * @param napi 424 - * @param budget 442 + * @napi: napi structure 443 + * @budget: 425 444 * 426 - * @return int 427 445 */ 428 446 int bnx2x_poll(struct napi_struct *napi, int budget); 429 447 430 448 /** 431 - * Allocate/release memories outsize main driver structure 449 + * bnx2x_alloc_mem_bp - allocate memories outsize main driver structure 432 450 * 433 - * @param bp 434 - * 435 - * @return int 451 + * @bp: driver handle 436 452 */ 437 453 int __devinit bnx2x_alloc_mem_bp(struct bnx2x *bp); 454 + 455 + /** 456 + * bnx2x_free_mem_bp - release memories outsize main driver structure 457 + * 458 + * @bp: driver handle 459 + */ 438 460 void bnx2x_free_mem_bp(struct bnx2x *bp); 439 461 440 462 /** 441 - * Change mtu netdev callback 463 + * bnx2x_change_mtu - change mtu netdev callback 442 464 * 443 - * @param dev 444 - * @param new_mtu 465 + * @dev: net device 466 + * @new_mtu: requested mtu 445 467 * 446 - * @return int 447 468 */ 448 469 int bnx2x_change_mtu(struct net_device *dev, int new_mtu); 449 470 ··· 451 472 int bnx2x_set_features(struct net_device *dev, u32 features); 452 473 453 474 /** 454 - * tx timeout netdev callback 475 + * bnx2x_tx_timeout - tx timeout netdev callback 455 476 * 456 - * @param dev 457 - * @param new_mtu 458 - * 459 - * @return int 477 + * @dev: net device 460 478 */ 461 479 void bnx2x_tx_timeout(struct net_device *dev); 462 - 463 - #ifdef BCM_VLAN 464 - /** 465 - * vlan rx register netdev callback 466 - * 467 - * @param dev 468 - * @param new_mtu 469 - * 470 - * @return int 471 - */ 472 - void bnx2x_vlan_rx_register(struct net_device *dev, 473 - struct vlan_group *vlgrp); 474 - 475 - #endif 476 480 477 481 static inline void bnx2x_update_fpsb_idx(struct bnx2x_fastpath *fp) 478 482 { ··· 707 745 /** 708 746 * disables tx from stack point of view 709 747 * 710 - * @param bp 748 + * @bp: driver handle 711 749 */ 712 750 static inline void bnx2x_tx_disable(struct bnx2x *bp) 713 751 { ··· 1111 1149 void bnx2x_release_phy_lock(struct bnx2x *bp); 1112 1150 1113 1151 /** 1114 - * Extracts MAX BW part from MF configuration. 1152 + * bnx2x_extract_max_cfg - extract MAX BW part from MF configuration. 1115 1153 * 1116 - * @param bp 1117 - * @param mf_cfg 1154 + * @bp: driver handle 1155 + * @mf_cfg: MF configuration 1118 1156 * 1119 - * @return u16 1120 1157 */ 1121 1158 static inline u16 bnx2x_extract_max_cfg(struct bnx2x *bp, u32 mf_cfg) 1122 1159 {
-26
drivers/net/bnx2x/bnx2x_dcb.c
··· 1079 1079 } 1080 1080 } 1081 1081 1082 - 1083 - /******************************************************************************* 1084 - * Description: single priority group 1085 - * 1086 - * Return: 1087 - ******************************************************************************/ 1088 1082 static void bnx2x_dcbx_ets_disabled_entry_data(struct bnx2x *bp, 1089 1083 struct cos_help_data *cos_data, 1090 1084 u32 pri_join_mask) ··· 1091 1097 cos_data->num_of_cos = 1; 1092 1098 } 1093 1099 1094 - /******************************************************************************* 1095 - * Description: updating the cos bw 1096 - * 1097 - * Return: 1098 - ******************************************************************************/ 1099 1100 static inline void bnx2x_dcbx_add_to_cos_bw(struct bnx2x *bp, 1100 1101 struct cos_entry_help_data *data, 1101 1102 u8 pg_bw) ··· 1101 1112 data->cos_bw += pg_bw; 1102 1113 } 1103 1114 1104 - /******************************************************************************* 1105 - * Description: single priority group 1106 - * 1107 - * Return: 1108 - ******************************************************************************/ 1109 1115 static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp, 1110 1116 struct cos_help_data *cos_data, 1111 1117 u32 *pg_pri_orginal_spread, ··· 1353 1369 } 1354 1370 } 1355 1371 1356 - /******************************************************************************* 1357 - * Description: Still 1358 - * 1359 - * Return: 1360 - ******************************************************************************/ 1361 1372 static void bnx2x_dcbx_three_pg_to_cos_params( 1362 1373 struct bnx2x *bp, 1363 1374 struct pg_help_data *pg_help_data, ··· 1540 1561 } 1541 1562 } 1542 1563 1543 - /******************************************************************************* 1544 - * Description: Fill pfc_config struct that will be sent in DCBX start ramrod 1545 - * 1546 - * Return: 1547 - ******************************************************************************/ 1548 1564 static void bnx2x_pfc_fw_struct_e2(struct bnx2x *bp) 1549 1565 { 1550 1566 struct flow_control_configuration *pfc_fw_cfg = NULL;
-6
drivers/net/bnx2x/bnx2x_dcb.h
··· 61 61 #define BNX2X_DCBX_OVERWRITE_SETTINGS_ENABLE 1 62 62 #define BNX2X_DCBX_OVERWRITE_SETTINGS_INVALID (BNX2X_DCBX_CONFIG_INV_VALUE) 63 63 64 - /******************************************************************************* 65 - * LLDP protocol configuration parameters. 66 - ******************************************************************************/ 67 64 struct bnx2x_config_lldp_params { 68 65 u32 overwrite_settings; 69 66 u32 msg_tx_hold; ··· 80 83 u32 app_id; 81 84 }; 82 85 83 - /******************************************************************************* 84 - * DCBX protocol configuration parameters. 85 - ******************************************************************************/ 86 86 struct bnx2x_config_dcbx_params { 87 87 u32 overwrite_settings; 88 88 u32 admin_dcbx_version;
+6 -8
drivers/net/bnx2x/bnx2x_link.c
··· 385 385 return 0; 386 386 } 387 387 /******************************************************************/ 388 - /* ETS section */ 388 + /* PFC section */ 389 389 /******************************************************************/ 390 390 391 391 static void bnx2x_bmac2_get_pfc_stat(struct link_params *params, ··· 1301 1301 return 0; 1302 1302 } 1303 1303 1304 - /* 1305 - * get_emac_base 1304 + /** 1305 + * bnx2x_get_emac_base - retrive emac base address 1306 1306 * 1307 - * @param cb 1308 - * @param mdc_mdio_access 1309 - * @param port 1310 - * 1311 - * @return u32 1307 + * @bp: driver handle 1308 + * @mdc_mdio_access: access type 1309 + * @port: port id 1312 1310 * 1313 1311 * This function selects the MDC/MDIO access (through emac0 or 1314 1312 * emac1) depend on the mdc_mdio_access, port, port swapped. Each
+33 -33
drivers/net/bnx2x/bnx2x_main.c
··· 6035 6035 } 6036 6036 6037 6037 /** 6038 - * Sets a MAC in a CAM for a few L2 Clients for E1x chips 6038 + * bnx2x_set_mac_addr_gen - set a MAC in a CAM for a few L2 Clients for E1x chips 6039 6039 * 6040 - * @param bp driver descriptor 6041 - * @param set set or clear an entry (1 or 0) 6042 - * @param mac pointer to a buffer containing a MAC 6043 - * @param cl_bit_vec bit vector of clients to register a MAC for 6044 - * @param cam_offset offset in a CAM to use 6045 - * @param is_bcast is the set MAC a broadcast address (for E1 only) 6040 + * @bp: driver handle 6041 + * @set: set or clear an entry (1 or 0) 6042 + * @mac: pointer to a buffer containing a MAC 6043 + * @cl_bit_vec: bit vector of clients to register a MAC for 6044 + * @cam_offset: offset in a CAM to use 6045 + * @is_bcast: is the set MAC a broadcast address (for E1 only) 6046 6046 */ 6047 6047 static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac, 6048 6048 u32 cl_bit_vec, u8 cam_offset, ··· 6402 6402 6403 6403 #ifdef BCM_CNIC 6404 6404 /** 6405 - * Set iSCSI MAC(s) at the next enties in the CAM after the ETH 6406 - * MAC(s). This function will wait until the ramdord completion 6407 - * returns. 6405 + * bnx2x_set_iscsi_eth_mac_addr - set iSCSI MAC(s). 6408 6406 * 6409 - * @param bp driver handle 6410 - * @param set set or clear the CAM entry 6407 + * @bp: driver handle 6408 + * @set: set or clear the CAM entry 6411 6409 * 6412 - * @return 0 if cussess, -ENODEV if ramrod doesn't return. 6410 + * This function will wait until the ramdord completion returns. 6411 + * Return 0 if success, -ENODEV if ramrod doesn't return. 6413 6412 */ 6414 6413 static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set) 6415 6414 { ··· 6429 6430 } 6430 6431 6431 6432 /** 6432 - * Set FCoE L2 MAC(s) at the next enties in the CAM after the 6433 - * ETH MAC(s). This function will wait until the ramdord 6434 - * completion returns. 6433 + * bnx2x_set_fip_eth_mac_addr - set FCoE L2 MAC(s) 6435 6434 * 6436 - * @param bp driver handle 6437 - * @param set set or clear the CAM entry 6435 + * @bp: driver handle 6436 + * @set: set or clear the CAM entry 6438 6437 * 6439 - * @return 0 if cussess, -ENODEV if ramrod doesn't return. 6438 + * This function will wait until the ramrod completion returns. 6439 + * Returns 0 if success, -ENODEV if ramrod doesn't return. 6440 6440 */ 6441 6441 int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set) 6442 6442 { ··· 6639 6641 } 6640 6642 6641 6643 /** 6642 - * Configure interrupt mode according to current configuration. 6644 + * bnx2x_set_int_mode - configure interrupt mode 6645 + * 6646 + * @bp: driver handle 6647 + * 6643 6648 * In case of MSI-X it will also try to enable MSI-X. 6644 - * 6645 - * @param bp 6646 - * 6647 - * @return int 6648 6649 */ 6649 6650 static int __devinit bnx2x_set_int_mode(struct bnx2x *bp) 6650 6651 { ··· 7227 7230 MF_CFG_WR(bp, shared_mf_config.clp_mb, val | SHARED_MF_CLP_MAGIC); 7228 7231 } 7229 7232 7230 - /* Restore the value of the `magic' bit. 7233 + /** 7234 + * bnx2x_clp_reset_done - restore the value of the `magic' bit. 7231 7235 * 7232 - * @param pdev Device handle. 7233 - * @param magic_val Old value of the `magic' bit. 7236 + * @bp: driver handle 7237 + * @magic_val: old value of the `magic' bit. 7234 7238 */ 7235 7239 static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) 7236 7240 { ··· 7242 7244 } 7243 7245 7244 7246 /** 7245 - * Prepares for MCP reset: takes care of CLP configurations. 7247 + * bnx2x_reset_mcp_prep - prepare for MCP reset. 7246 7248 * 7247 - * @param bp 7248 - * @param magic_val Old value of 'magic' bit. 7249 + * @bp: driver handle 7250 + * @magic_val: old value of 'magic' bit. 7251 + * 7252 + * Takes care of CLP configurations. 7249 7253 */ 7250 7254 static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) 7251 7255 { ··· 7272 7272 #define MCP_TIMEOUT 5000 /* 5 seconds (in ms) */ 7273 7273 #define MCP_ONE_TIMEOUT 100 /* 100 ms */ 7274 7274 7275 - /* Waits for MCP_ONE_TIMEOUT or MCP_ONE_TIMEOUT*10, 7276 - * depending on the HW type. 7275 + /** 7276 + * bnx2x_mcp_wait_one - wait for MCP_ONE_TIMEOUT 7277 7277 * 7278 - * @param bp 7278 + * @bp: driver handle 7279 7279 */ 7280 7280 static inline void bnx2x_mcp_wait_one(struct bnx2x *bp) 7281 7281 {