Commit e8920674 authored by Dmitry Kravkov's avatar Dmitry Kravkov Committed by David S. Miller

bnx2x: function descriptions format fixed

Signed-off-by: default avatarDmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: default avatarEilon Greenstein <eilong@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 5de92408
...@@ -308,13 +308,15 @@ static void bnx2x_tpa_start(struct bnx2x_fastpath *fp, u16 queue, ...@@ -308,13 +308,15 @@ static void bnx2x_tpa_start(struct bnx2x_fastpath *fp, u16 queue,
*/ */
#define TPA_TSTAMP_OPT_LEN 12 #define TPA_TSTAMP_OPT_LEN 12
/** /**
* Calculate the approximate value of the MSS for this * bnx2x_set_lro_mss - calculate the approximate value of the MSS
* aggregation using the first packet of it.
* *
* @param bp * @bp: driver handle
* @param parsing_flags Parsing flags from the START CQE * @parsing_flags: parsing flags from the START CQE
* @param len_on_bd Total length of the first packet for the * @len_on_bd: total length of the first packet for the
* aggregation. * aggregation.
*
* Approximate value of the MSS for this aggregation calculated using
* the first packet of it.
*/ */
static inline u16 bnx2x_set_lro_mss(struct bnx2x *bp, u16 parsing_flags, static inline u16 bnx2x_set_lro_mss(struct bnx2x *bp, u16 parsing_flags,
u16 len_on_bd) u16 len_on_bd)
...@@ -2083,12 +2085,11 @@ static inline void bnx2x_set_pbd_gso_e2(struct sk_buff *skb, u32 *parsing_data, ...@@ -2083,12 +2085,11 @@ static inline void bnx2x_set_pbd_gso_e2(struct sk_buff *skb, u32 *parsing_data,
} }
/** /**
* Update PBD in GSO case. * bnx2x_set_pbd_gso - update PBD in GSO case.
* *
* @param skb * @skb: packet skb
* @param tx_start_bd * @pbd: parse BD
* @param pbd * @xmit_type: xmit flags
* @param xmit_type
*/ */
static inline void bnx2x_set_pbd_gso(struct sk_buff *skb, static inline void bnx2x_set_pbd_gso(struct sk_buff *skb,
struct eth_tx_parse_bd_e1x *pbd, struct eth_tx_parse_bd_e1x *pbd,
...@@ -2115,13 +2116,14 @@ static inline void bnx2x_set_pbd_gso(struct sk_buff *skb, ...@@ -2115,13 +2116,14 @@ static inline void bnx2x_set_pbd_gso(struct sk_buff *skb,
} }
/** /**
* bnx2x_set_pbd_csum_e2 - update PBD with checksum and return header length
* *
* @param skb * @bp: driver handle
* @param tx_start_bd * @skb: packet skb
* @param pbd_e2 * @parsing_data: data to be updated
* @param xmit_type * @xmit_type: xmit flags
* *
* @return header len * 57712 related
*/ */
static inline u8 bnx2x_set_pbd_csum_e2(struct bnx2x *bp, struct sk_buff *skb, static inline u8 bnx2x_set_pbd_csum_e2(struct bnx2x *bp, struct sk_buff *skb,
u32 *parsing_data, u32 xmit_type) u32 *parsing_data, u32 xmit_type)
...@@ -2146,13 +2148,12 @@ static inline u8 bnx2x_set_pbd_csum_e2(struct bnx2x *bp, struct sk_buff *skb, ...@@ -2146,13 +2148,12 @@ static inline u8 bnx2x_set_pbd_csum_e2(struct bnx2x *bp, struct sk_buff *skb,
} }
/** /**
* bnx2x_set_pbd_csum - update PBD with checksum and return header length
* *
* @param skb * @bp: driver handle
* @param tx_start_bd * @skb: packet skb
* @param pbd * @pbd: parse BD to be updated
* @param xmit_type * @xmit_type: xmit flags
*
* @return Header length
*/ */
static inline u8 bnx2x_set_pbd_csum(struct bnx2x *bp, struct sk_buff *skb, static inline u8 bnx2x_set_pbd_csum(struct bnx2x *bp, struct sk_buff *skb,
struct eth_tx_parse_bd_e1x *pbd, struct eth_tx_parse_bd_e1x *pbd,
......
This diff is collapsed.
...@@ -1079,12 +1079,6 @@ static void bnx2x_dcbx_get_num_pg_traf_type(struct bnx2x *bp, ...@@ -1079,12 +1079,6 @@ static void bnx2x_dcbx_get_num_pg_traf_type(struct bnx2x *bp,
} }
} }
/*******************************************************************************
* Description: single priority group
*
* Return:
******************************************************************************/
static void bnx2x_dcbx_ets_disabled_entry_data(struct bnx2x *bp, static void bnx2x_dcbx_ets_disabled_entry_data(struct bnx2x *bp,
struct cos_help_data *cos_data, struct cos_help_data *cos_data,
u32 pri_join_mask) u32 pri_join_mask)
...@@ -1097,11 +1091,6 @@ static void bnx2x_dcbx_ets_disabled_entry_data(struct bnx2x *bp, ...@@ -1097,11 +1091,6 @@ static void bnx2x_dcbx_ets_disabled_entry_data(struct bnx2x *bp,
cos_data->num_of_cos = 1; cos_data->num_of_cos = 1;
} }
/*******************************************************************************
* Description: updating the cos bw
*
* Return:
******************************************************************************/
static inline void bnx2x_dcbx_add_to_cos_bw(struct bnx2x *bp, static inline void bnx2x_dcbx_add_to_cos_bw(struct bnx2x *bp,
struct cos_entry_help_data *data, struct cos_entry_help_data *data,
u8 pg_bw) u8 pg_bw)
...@@ -1112,11 +1101,6 @@ static inline void bnx2x_dcbx_add_to_cos_bw(struct bnx2x *bp, ...@@ -1112,11 +1101,6 @@ static inline void bnx2x_dcbx_add_to_cos_bw(struct bnx2x *bp,
data->cos_bw += pg_bw; data->cos_bw += pg_bw;
} }
/*******************************************************************************
* Description: single priority group
*
* Return:
******************************************************************************/
static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp, static void bnx2x_dcbx_separate_pauseable_from_non(struct bnx2x *bp,
struct cos_help_data *cos_data, struct cos_help_data *cos_data,
u32 *pg_pri_orginal_spread, u32 *pg_pri_orginal_spread,
...@@ -1369,11 +1353,6 @@ static void bnx2x_dcbx_two_pg_to_cos_params( ...@@ -1369,11 +1353,6 @@ static void bnx2x_dcbx_two_pg_to_cos_params(
} }
} }
/*******************************************************************************
* Description: Still
*
* Return:
******************************************************************************/
static void bnx2x_dcbx_three_pg_to_cos_params( static void bnx2x_dcbx_three_pg_to_cos_params(
struct bnx2x *bp, struct bnx2x *bp,
struct pg_help_data *pg_help_data, struct pg_help_data *pg_help_data,
...@@ -1561,11 +1540,6 @@ static void bnx2x_dcbx_get_ets_pri_pg_tbl(struct bnx2x *bp, ...@@ -1561,11 +1540,6 @@ static void bnx2x_dcbx_get_ets_pri_pg_tbl(struct bnx2x *bp,
} }
} }
/*******************************************************************************
* Description: Fill pfc_config struct that will be sent in DCBX start ramrod
*
* Return:
******************************************************************************/
static void bnx2x_pfc_fw_struct_e2(struct bnx2x *bp) static void bnx2x_pfc_fw_struct_e2(struct bnx2x *bp)
{ {
struct flow_control_configuration *pfc_fw_cfg = NULL; struct flow_control_configuration *pfc_fw_cfg = NULL;
......
...@@ -61,9 +61,6 @@ struct bnx2x_dcbx_port_params { ...@@ -61,9 +61,6 @@ struct bnx2x_dcbx_port_params {
#define BNX2X_DCBX_OVERWRITE_SETTINGS_ENABLE 1 #define BNX2X_DCBX_OVERWRITE_SETTINGS_ENABLE 1
#define BNX2X_DCBX_OVERWRITE_SETTINGS_INVALID (BNX2X_DCBX_CONFIG_INV_VALUE) #define BNX2X_DCBX_OVERWRITE_SETTINGS_INVALID (BNX2X_DCBX_CONFIG_INV_VALUE)
/*******************************************************************************
* LLDP protocol configuration parameters.
******************************************************************************/
struct bnx2x_config_lldp_params { struct bnx2x_config_lldp_params {
u32 overwrite_settings; u32 overwrite_settings;
u32 msg_tx_hold; u32 msg_tx_hold;
...@@ -83,9 +80,6 @@ struct bnx2x_admin_priority_app_table { ...@@ -83,9 +80,6 @@ struct bnx2x_admin_priority_app_table {
u32 app_id; u32 app_id;
}; };
/*******************************************************************************
* DCBX protocol configuration parameters.
******************************************************************************/
struct bnx2x_config_dcbx_params { struct bnx2x_config_dcbx_params {
u32 overwrite_settings; u32 overwrite_settings;
u32 admin_dcbx_version; u32 admin_dcbx_version;
......
...@@ -385,7 +385,7 @@ u8 bnx2x_ets_strict(const struct link_params *params, const u8 strict_cos) ...@@ -385,7 +385,7 @@ u8 bnx2x_ets_strict(const struct link_params *params, const u8 strict_cos)
return 0; return 0;
} }
/******************************************************************/ /******************************************************************/
/* ETS section */ /* PFC section */
/******************************************************************/ /******************************************************************/
static void bnx2x_bmac2_get_pfc_stat(struct link_params *params, static void bnx2x_bmac2_get_pfc_stat(struct link_params *params,
...@@ -1301,14 +1301,12 @@ static u8 bnx2x_pbf_update(struct link_params *params, u32 flow_ctrl, ...@@ -1301,14 +1301,12 @@ static u8 bnx2x_pbf_update(struct link_params *params, u32 flow_ctrl,
return 0; return 0;
} }
/* /**
* get_emac_base * bnx2x_get_emac_base - retrive emac base address
*
* @param cb
* @param mdc_mdio_access
* @param port
* *
* @return u32 * @bp: driver handle
* @mdc_mdio_access: access type
* @port: port id
* *
* This function selects the MDC/MDIO access (through emac0 or * This function selects the MDC/MDIO access (through emac0 or
* emac1) depend on the mdc_mdio_access, port, port swapped. Each * emac1) depend on the mdc_mdio_access, port, port swapped. Each
......
...@@ -6035,14 +6035,14 @@ static int bnx2x_func_stop(struct bnx2x *bp) ...@@ -6035,14 +6035,14 @@ static int bnx2x_func_stop(struct bnx2x *bp)
} }
/** /**
* Sets a MAC in a CAM for a few L2 Clients for E1x chips * bnx2x_set_mac_addr_gen - set a MAC in a CAM for a few L2 Clients for E1x chips
* *
* @param bp driver descriptor * @bp: driver handle
* @param set set or clear an entry (1 or 0) * @set: set or clear an entry (1 or 0)
* @param mac pointer to a buffer containing a MAC * @mac: pointer to a buffer containing a MAC
* @param cl_bit_vec bit vector of clients to register a MAC for * @cl_bit_vec: bit vector of clients to register a MAC for
* @param cam_offset offset in a CAM to use * @cam_offset: offset in a CAM to use
* @param is_bcast is the set MAC a broadcast address (for E1 only) * @is_bcast: is the set MAC a broadcast address (for E1 only)
*/ */
static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac, static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac,
u32 cl_bit_vec, u8 cam_offset, u32 cl_bit_vec, u8 cam_offset,
...@@ -6402,14 +6402,13 @@ void bnx2x_invalidate_e1h_mc_list(struct bnx2x *bp) ...@@ -6402,14 +6402,13 @@ void bnx2x_invalidate_e1h_mc_list(struct bnx2x *bp)
#ifdef BCM_CNIC #ifdef BCM_CNIC
/** /**
* Set iSCSI MAC(s) at the next enties in the CAM after the ETH * bnx2x_set_iscsi_eth_mac_addr - set iSCSI MAC(s).
* MAC(s). This function will wait until the ramdord completion
* returns.
* *
* @param bp driver handle * @bp: driver handle
* @param set set or clear the CAM entry * @set: set or clear the CAM entry
* *
* @return 0 if cussess, -ENODEV if ramrod doesn't return. * This function will wait until the ramdord completion returns.
* Return 0 if success, -ENODEV if ramrod doesn't return.
*/ */
static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set) static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set)
{ {
...@@ -6430,14 +6429,13 @@ static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set) ...@@ -6430,14 +6429,13 @@ static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set)
} }
/** /**
* Set FCoE L2 MAC(s) at the next enties in the CAM after the * bnx2x_set_fip_eth_mac_addr - set FCoE L2 MAC(s)
* ETH MAC(s). This function will wait until the ramdord
* completion returns.
* *
* @param bp driver handle * @bp: driver handle
* @param set set or clear the CAM entry * @set: set or clear the CAM entry
* *
* @return 0 if cussess, -ENODEV if ramrod doesn't return. * This function will wait until the ramrod completion returns.
* Returns 0 if success, -ENODEV if ramrod doesn't return.
*/ */
int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set) int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set)
{ {
...@@ -6641,12 +6639,11 @@ static int bnx2x_setup_fw_client(struct bnx2x *bp, ...@@ -6641,12 +6639,11 @@ static int bnx2x_setup_fw_client(struct bnx2x *bp,
} }
/** /**
* Configure interrupt mode according to current configuration. * bnx2x_set_int_mode - configure interrupt mode
* In case of MSI-X it will also try to enable MSI-X.
* *
* @param bp * @bp: driver handle
* *
* @return int * In case of MSI-X it will also try to enable MSI-X.
*/ */
static int __devinit bnx2x_set_int_mode(struct bnx2x *bp) static int __devinit bnx2x_set_int_mode(struct bnx2x *bp)
{ {
...@@ -7230,10 +7227,11 @@ static void bnx2x_clp_reset_prep(struct bnx2x *bp, u32 *magic_val) ...@@ -7230,10 +7227,11 @@ static void bnx2x_clp_reset_prep(struct bnx2x *bp, u32 *magic_val)
MF_CFG_WR(bp, shared_mf_config.clp_mb, val | SHARED_MF_CLP_MAGIC); MF_CFG_WR(bp, shared_mf_config.clp_mb, val | SHARED_MF_CLP_MAGIC);
} }
/* Restore the value of the `magic' bit. /**
* bnx2x_clp_reset_done - restore the value of the `magic' bit.
* *
* @param pdev Device handle. * @bp: driver handle
* @param magic_val Old value of the `magic' bit. * @magic_val: old value of the `magic' bit.
*/ */
static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val)
{ {
...@@ -7244,10 +7242,12 @@ static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val) ...@@ -7244,10 +7242,12 @@ static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val)
} }
/** /**
* Prepares for MCP reset: takes care of CLP configurations. * bnx2x_reset_mcp_prep - prepare for MCP reset.
* *
* @param bp * @bp: driver handle
* @param magic_val Old value of 'magic' bit. * @magic_val: old value of 'magic' bit.
*
* Takes care of CLP configurations.
*/ */
static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val)
{ {
...@@ -7272,10 +7272,10 @@ static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val) ...@@ -7272,10 +7272,10 @@ static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val)
#define MCP_TIMEOUT 5000 /* 5 seconds (in ms) */ #define MCP_TIMEOUT 5000 /* 5 seconds (in ms) */
#define MCP_ONE_TIMEOUT 100 /* 100 ms */ #define MCP_ONE_TIMEOUT 100 /* 100 ms */
/* Waits for MCP_ONE_TIMEOUT or MCP_ONE_TIMEOUT*10, /**
* depending on the HW type. * bnx2x_mcp_wait_one - wait for MCP_ONE_TIMEOUT
* *
* @param bp * @bp: driver handle
*/ */
static inline void bnx2x_mcp_wait_one(struct bnx2x *bp) static inline void bnx2x_mcp_wait_one(struct bnx2x *bp)
{ {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment