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>
···385385 return 0;386386}387387/******************************************************************/388388-/* ETS section */388388+/* PFC section */389389/******************************************************************/390390391391static void bnx2x_bmac2_get_pfc_stat(struct link_params *params,···13011301 return 0;13021302}1303130313041304-/*13051305- * get_emac_base13041304+/**13051305+ * bnx2x_get_emac_base - retrive emac base address13061306 *13071307- * @param cb13081308- * @param mdc_mdio_access13091309- * @param port13101310- *13111311- * @return u3213071307+ * @bp: driver handle13081308+ * @mdc_mdio_access: access type13091309+ * @port: port id13121310 *13131311 * This function selects the MDC/MDIO access (through emac0 or13141312 * emac1) depend on the mdc_mdio_access, port, port swapped. Each
+33-33
drivers/net/bnx2x/bnx2x_main.c
···60356035}6036603660376037/**60386038- * Sets a MAC in a CAM for a few L2 Clients for E1x chips60386038+ * bnx2x_set_mac_addr_gen - set a MAC in a CAM for a few L2 Clients for E1x chips60396039 *60406040- * @param bp driver descriptor60416041- * @param set set or clear an entry (1 or 0)60426042- * @param mac pointer to a buffer containing a MAC60436043- * @param cl_bit_vec bit vector of clients to register a MAC for60446044- * @param cam_offset offset in a CAM to use60456045- * @param is_bcast is the set MAC a broadcast address (for E1 only)60406040+ * @bp: driver handle60416041+ * @set: set or clear an entry (1 or 0)60426042+ * @mac: pointer to a buffer containing a MAC60436043+ * @cl_bit_vec: bit vector of clients to register a MAC for60446044+ * @cam_offset: offset in a CAM to use60456045+ * @is_bcast: is the set MAC a broadcast address (for E1 only)60466046 */60476047static void bnx2x_set_mac_addr_gen(struct bnx2x *bp, int set, const u8 *mac,60486048 u32 cl_bit_vec, u8 cam_offset,···6402640264036403#ifdef BCM_CNIC64046404/**64056405- * Set iSCSI MAC(s) at the next enties in the CAM after the ETH64066406- * MAC(s). This function will wait until the ramdord completion64076407- * returns.64056405+ * bnx2x_set_iscsi_eth_mac_addr - set iSCSI MAC(s).64086406 *64096409- * @param bp driver handle64106410- * @param set set or clear the CAM entry64076407+ * @bp: driver handle64086408+ * @set: set or clear the CAM entry64116409 *64126412- * @return 0 if cussess, -ENODEV if ramrod doesn't return.64106410+ * This function will wait until the ramdord completion returns.64116411+ * Return 0 if success, -ENODEV if ramrod doesn't return.64136412 */64146413static int bnx2x_set_iscsi_eth_mac_addr(struct bnx2x *bp, int set)64156414{···64296430}6430643164316432/**64326432- * Set FCoE L2 MAC(s) at the next enties in the CAM after the64336433- * ETH MAC(s). This function will wait until the ramdord64346434- * completion returns.64336433+ * bnx2x_set_fip_eth_mac_addr - set FCoE L2 MAC(s)64356434 *64366436- * @param bp driver handle64376437- * @param set set or clear the CAM entry64356435+ * @bp: driver handle64366436+ * @set: set or clear the CAM entry64386437 *64396439- * @return 0 if cussess, -ENODEV if ramrod doesn't return.64386438+ * This function will wait until the ramrod completion returns.64396439+ * Returns 0 if success, -ENODEV if ramrod doesn't return.64406440 */64416441int bnx2x_set_fip_eth_mac_addr(struct bnx2x *bp, int set)64426442{···66396641}6640664266416643/**66426642- * Configure interrupt mode according to current configuration.66446644+ * bnx2x_set_int_mode - configure interrupt mode66456645+ *66466646+ * @bp: driver handle66476647+ *66436648 * In case of MSI-X it will also try to enable MSI-X.66446644- *66456645- * @param bp66466646- *66476647- * @return int66486649 */66496650static int __devinit bnx2x_set_int_mode(struct bnx2x *bp)66506651{···72277230 MF_CFG_WR(bp, shared_mf_config.clp_mb, val | SHARED_MF_CLP_MAGIC);72287231}7229723272307230-/* Restore the value of the `magic' bit.72337233+/**72347234+ * bnx2x_clp_reset_done - restore the value of the `magic' bit.72317235 *72327232- * @param pdev Device handle.72337233- * @param magic_val Old value of the `magic' bit.72367236+ * @bp: driver handle72377237+ * @magic_val: old value of the `magic' bit.72347238 */72357239static void bnx2x_clp_reset_done(struct bnx2x *bp, u32 magic_val)72367240{···72427244}7243724572447246/**72457245- * Prepares for MCP reset: takes care of CLP configurations.72477247+ * bnx2x_reset_mcp_prep - prepare for MCP reset.72467248 *72477247- * @param bp72487248- * @param magic_val Old value of 'magic' bit.72497249+ * @bp: driver handle72507250+ * @magic_val: old value of 'magic' bit.72517251+ *72527252+ * Takes care of CLP configurations.72497253 */72507254static void bnx2x_reset_mcp_prep(struct bnx2x *bp, u32 *magic_val)72517255{···72727272#define MCP_TIMEOUT 5000 /* 5 seconds (in ms) */72737273#define MCP_ONE_TIMEOUT 100 /* 100 ms */7274727472757275-/* Waits for MCP_ONE_TIMEOUT or MCP_ONE_TIMEOUT*10,72767276- * depending on the HW type.72757275+/**72767276+ * bnx2x_mcp_wait_one - wait for MCP_ONE_TIMEOUT72777277 *72787278- * @param bp72787278+ * @bp: driver handle72797279 */72807280static inline void bnx2x_mcp_wait_one(struct bnx2x *bp)72817281{