diff options
author | Dmitry Kravkov <dmitry@broadcom.com> | 2011-05-04 19:52:40 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-05 13:44:36 -0400 |
commit | e8920674979705392abc4db4ebbe78feb68a4da1 (patch) | |
tree | 338d02748999d14b8c9a9a412bba5f22ded7c516 /drivers/net/bnx2x/bnx2x_main.c | |
parent | 5de924086aca9f17eee9ad569e0af2f699f591b3 (diff) |
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>
Diffstat (limited to 'drivers/net/bnx2x/bnx2x_main.c')
-rw-r--r-- | drivers/net/bnx2x/bnx2x_main.c | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/drivers/net/bnx2x/bnx2x_main.c b/drivers/net/bnx2x/bnx2x_main.c index 0c31b912763..2762edf956e 100644 --- a/drivers/net/bnx2x/bnx2x_main.c +++ b/drivers/net/bnx2x/bnx2x_main.c | |||
@@ -6035,14 +6035,14 @@ static int bnx2x_func_stop(struct bnx2x *bp) | |||
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 | 6040 | * @bp: driver handle |
6041 | * @param set set or clear an entry (1 or 0) | 6041 | * @set: set or clear an entry (1 or 0) |
6042 | * @param mac pointer to a buffer containing a MAC | 6042 | * @mac: pointer to a buffer containing a MAC |
6043 | * @param cl_bit_vec bit vector of clients to register a MAC for | 6043 | * @cl_bit_vec: bit vector of clients to register a MAC for |
6044 | * @param cam_offset offset in a CAM to use | 6044 | * @cam_offset: offset in a CAM to use |
6045 | * @param is_bcast is the set MAC a broadcast address (for E1 only) | 6045 | * @is_bcast: is the set MAC a broadcast address (for E1 only) |
6046 | */ | 6046 | */ |
6047 | static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac, | 6047 | static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac, |
6048 | u32 cl_bit_vec, u8 cam_offset, | 6048 | u32 cl_bit_vec, u8 cam_offset, |
@@ -6402,14 +6402,13 @@ void bnx2x_invalidate_e1h_mc_list(struct bnx2x *bp) | |||
6402 | 6402 | ||
6403 | #ifdef BCM_CNIC | 6403 | #ifdef BCM_CNIC |
6404 | /** | 6404 | /** |
6405 | * Set iSCSI MAC(s) at the next enties in the CAM after the ETH | 6405 | * bnx2x_set_iscsi_eth_mac_addr - set iSCSI MAC(s). |
6406 | * MAC(s). This function will wait until the ramdord completion | ||
6407 | * returns. | ||
6408 | * | 6406 | * |
6409 | * @param bp driver handle | 6407 | * @bp: driver handle |
6410 | * @param set set or clear the CAM entry | 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 | static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set) | 6413 | static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set) |
6415 | { | 6414 | { |
@@ -6430,14 +6429,13 @@ static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set) | |||
6430 | } | 6429 | } |
6431 | 6430 | ||
6432 | /** | 6431 | /** |
6433 | * Set FCoE L2 MAC(s) at the next enties in the CAM after the | 6432 | * bnx2x_set_fip_eth_mac_addr - set FCoE L2 MAC(s) |
6434 | * ETH MAC(s). This function will wait until the ramdord | ||
6435 | * completion returns. | ||
6436 | * | 6433 | * |
6437 | * @param bp driver handle | 6434 | * @bp: driver handle |
6438 | * @param set set or clear the CAM entry | 6435 | * @set: set or clear the CAM entry |
6439 | * | 6436 | * |
6440 | * @return 0 if cussess, -ENODEV if ramrod doesn't return. | 6437 | * This function will wait until the ramrod completion returns. |
6438 | * Returns 0 if success, -ENODEV if ramrod doesn't return. | ||
6441 | */ | 6439 | */ |
6442 | int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set) | 6440 | int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set) |
6443 | { | 6441 | { |
@@ -6641,12 +6639,11 @@ static int bnx2x_setup_fw_client(struct bnx2x *bp, | |||
6641 | } | 6639 | } |
6642 | 6640 | ||
6643 | /** | 6641 | /** |
6644 | * Configure interrupt mode according to current configuration. | 6642 | * bnx2x_set_int_mode - configure interrupt mode |
6645 | * In case of MSI-X it will also try to enable MSI-X. | ||
6646 | * | 6643 | * |
6647 | * @param bp | 6644 | * @bp: driver handle |
6648 | * | 6645 | * |
6649 | * @return int | 6646 | * In case of MSI-X it will also try to enable MSI-X. |
6650 | */ | 6647 | */ |
6651 | static int __devinit bnx2x_set_int_mode(struct bnx2x *bp) | 6648 | static int __devinit bnx2x_set_int_mode(struct bnx2x *bp) |
6652 | { | 6649 | { |
@@ -7230,10 +7227,11 @@ static void bnx2x_clp_reset_prep(struct bnx2x *bp, u32 *magic_val) | |||
7230 | MF_CFG_WR(bp, shared_mf_config.clp_mb, val | SHARED_MF_CLP_MAGIC); | 7227 | MF_CFG_WR(bp, shared_mf_config.clp_mb, val | SHARED_MF_CLP_MAGIC); |
7231 | } | 7228 | } |
7232 | 7229 | ||
7233 | /* Restore the value of the `magic' bit. | 7230 | /** |
7231 | * bnx2x_clp_reset_done - restore the value of the `magic' bit. | ||
7234 | * | 7232 | * |
7235 | * @param pdev Device handle. | 7233 | * @bp: driver handle |
7236 | * @param magic_val Old value of the `magic' bit. | 7234 | * @magic_val: old value of the `magic' bit. |
7237 | */ | 7235 | */ |
7238 | static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) | 7236 | static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) |
7239 | { | 7237 | { |
@@ -7244,10 +7242,12 @@ static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) | |||
7244 | } | 7242 | } |
7245 | 7243 | ||
7246 | /** | 7244 | /** |
7247 | * Prepares for MCP reset: takes care of CLP configurations. | 7245 | * bnx2x_reset_mcp_prep - prepare for MCP reset. |
7248 | * | 7246 | * |
7249 | * @param bp | 7247 | * @bp: driver handle |
7250 | * @param magic_val Old value of 'magic' bit. | 7248 | * @magic_val: old value of 'magic' bit. |
7249 | * | ||
7250 | * Takes care of CLP configurations. | ||
7251 | */ | 7251 | */ |
7252 | static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) | 7252 | static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) |
7253 | { | 7253 | { |
@@ -7272,10 +7272,10 @@ static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) | |||
7272 | #define MCP_TIMEOUT 5000 /* 5 seconds (in ms) */ | 7272 | #define MCP_TIMEOUT 5000 /* 5 seconds (in ms) */ |
7273 | #define MCP_ONE_TIMEOUT 100 /* 100 ms */ | 7273 | #define MCP_ONE_TIMEOUT 100 /* 100 ms */ |
7274 | 7274 | ||
7275 | /* Waits for MCP_ONE_TIMEOUT or MCP_ONE_TIMEOUT*10, | 7275 | /** |
7276 | * depending on the HW type. | 7276 | * bnx2x_mcp_wait_one - wait for MCP_ONE_TIMEOUT |
7277 | * | 7277 | * |
7278 | * @param bp | 7278 | * @bp: driver handle |
7279 | */ | 7279 | */ |
7280 | static inline void bnx2x_mcp_wait_one(struct bnx2x *bp) | 7280 | static inline void bnx2x_mcp_wait_one(struct bnx2x *bp) |
7281 | { | 7281 | { |