intel: whitespace alignment
Subsystems (3)
RFC PATCH 1/1 intel: whitespace alignment
I tried out a new checkpatch alignment test which prefers argument alignment of multi-line statements over long line lengths on the intel drivers.
This is the result (with some emacsing)
git diff -w is uninteresting.
It adds several long line warnings I don't care about.
unsigned...
--- drivers/net/ethernet/intel/e1000/e1000_ethtool.c | 24 +- drivers/net/ethernet/intel/e1000/e1000_hw.c | 12 +- drivers/net/ethernet/intel/e1000/e1000_main.c | 84 +++---- drivers/net/ethernet/intel/e1000/e1000_param.c | 2 +- drivers/net/ethernet/intel/i40e/i40e.h | 2 +- drivers/net/ethernet/intel/i40e/i40e_adminq.c | 34 +-- drivers/net/ethernet/intel/i40e/i40e_alloc.h | 13 +- drivers/net/ethernet/intel/i40e/i40e_common.c | 238 ++++++++++---------- drivers/net/ethernet/intel/i40e/i40e_dcb.h | 9 +- drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c | 16 +- drivers/net/ethernet/intel/i40e/i40e_debugfs.c | 36 +-- drivers/net/ethernet/intel/i40e/i40e_diag.c | 2 +- drivers/net/ethernet/intel/i40e/i40e_ethtool.c | 12 +- drivers/net/ethernet/intel/i40e/i40e_hmc.c | 34 ++- drivers/net/ethernet/intel/i40e/i40e_hmc.h | 30 ++- drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c | 81 ++++--- drivers/net/ethernet/intel/i40e/i40e_lan_hmc.h | 22 +- drivers/net/ethernet/intel/i40e/i40e_main.c | 78 +++---- drivers/net/ethernet/intel/i40e/i40e_nvm.c | 25 +-- drivers/net/ethernet/intel/i40e/i40e_prototype.h | 249 +++++++++++---------- drivers/net/ethernet/intel/i40e/i40e_txrx.c | 4 +- drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c | 4 +- drivers/net/ethernet/intel/i40evf/i40e_adminq.c | 43 ++-- drivers/net/ethernet/intel/i40evf/i40e_adminq.h | 3 +- drivers/net/ethernet/intel/i40evf/i40e_alloc.h | 15 +- drivers/net/ethernet/intel/i40evf/i40e_common.c | 19 +- drivers/net/ethernet/intel/i40evf/i40e_hmc.h | 30 ++- drivers/net/ethernet/intel/i40evf/i40e_lan_hmc.h | 22 +- drivers/net/ethernet/intel/i40evf/i40e_prototype.h | 39 ++-- drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c | 6 +- drivers/net/ethernet/intel/i40evf/i40evf_main.c | 25 +-- .../net/ethernet/intel/i40evf/i40evf_virtchnl.c | 10 +- drivers/net/ethernet/intel/igb/e1000_82575.c | 34 +-- drivers/net/ethernet/intel/igb/e1000_i210.c | 18 +- drivers/net/ethernet/intel/igb/e1000_mac.c | 17 +- drivers/net/ethernet/intel/igb/e1000_nvm.c | 4 +- drivers/net/ethernet/intel/igb/e1000_phy.c | 3 +- drivers/net/ethernet/intel/igb/e1000_phy.h | 2 +- drivers/net/ethernet/intel/igb/igb_ethtool.c | 39 ++-- drivers/net/ethernet/intel/igb/igb_main.c | 111 ++++----- drivers/net/ethernet/intel/igbvf/ethtool.c | 2 +- drivers/net/ethernet/intel/igbvf/netdev.c | 10 +- drivers/net/ethernet/intel/igbvf/vf.c | 4 +- drivers/net/ethernet/intel/ixgb/ixgb_ee.c | 16 +- drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c | 27 +-- drivers/net/ethernet/intel/ixgb/ixgb_hw.c | 37 +-- drivers/net/ethernet/intel/ixgb/ixgb_hw.h | 4 +- drivers/net/ethernet/intel/ixgb/ixgb_main.c | 25 +-- drivers/net/ethernet/intel/ixgbe/ixgbe.h | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c | 20 +- drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c | 14 +- drivers/net/ethernet/intel/ixgbe/ixgbe_common.c | 35 +-- drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c | 8 +- drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c | 22 +- drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.h | 22 +- drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.h | 28 +-- drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c | 6 +- drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c | 18 +- drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_main.c | 89 ++++---- drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c | 10 +- drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h | 2 +- drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c | 8 +- drivers/net/ethernet/intel/ixgbevf/ethtool.c | 4 +- drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c | 18 +- drivers/net/ethernet/intel/ixgbevf/vf.c | 3 +- drivers/net/ethernet/intel/ixgbevf/vf.h | 4 +- 68 files changed, 921 insertions(+), 972 deletions(-)
drivers/net/ethernet/intel/e1000/e1000_ethtool.c +11 -13
@@ -157,7 +157,7 @@ static int e1000_get_settings(struct net_device *netdev,if (er32 (STATUS ) &E1000_STATUS_LU ) {e1000_get_speed_and_duplex (hw, &adapter->link_speed, - &adapter->link_duplex); + &adapter->link_duplex);ethtool_cmd_speed_set (ecmd, adapter->link_speed);/* unfortunately FULL_DUPLEX != DUPLEX_FULL
@@ -526,7 +526,7 @@ static int e1000_set_eeprom(struct net_device *netdev,* only the first byte of the word is being modified */ ret_val =e1000_read_eeprom (hw, last_word,1 , - &eeprom_buff[last_word - first_word]); + &eeprom_buff[last_word - first_word]); }/* Device's eeprom is always little-endian, word addressable */
@@ -1149,8 +1149,7 @@ static void e1000_phy_reset_clk_and_crs(struct e1000_adapter *adapter)*/ e1000_read_phy_reg (hw,M88E1000_EXT_PHY_SPEC_CTRL , &phy_reg); phy_reg |=M88E1000_EPSCR_TX_CLK_25 ; -e1000_write_phy_reg (hw, -M88E1000_EXT_PHY_SPEC_CTRL , phy_reg); +e1000_write_phy_reg (hw,M88E1000_EXT_PHY_SPEC_CTRL , phy_reg);/* In addition, because of the s/w reset above, we need to enable * CRS on TX. This must be set for both full and half duplex
@@ -1158,8 +1157,7 @@ static void e1000_phy_reset_clk_and_crs(struct e1000_adapter *adapter)*/ e1000_read_phy_reg (hw,M88E1000_PHY_SPEC_CTRL , &phy_reg); phy_reg |=M88E1000_PSCR_ASSERT_CRS_ON_TX ; -e1000_write_phy_reg (hw, -M88E1000_PHY_SPEC_CTRL , phy_reg); +e1000_write_phy_reg (hw,M88E1000_PHY_SPEC_CTRL , phy_reg); }static int e1000_nonintegrated_phy_loopback (struct e1000_adapter *adapter)
@@ -1261,9 +1259,9 @@ static int e1000_integrated_phy_loopback(struct e1000_adapter *adapter) E1000_CTRL_FD); /* Force Duplex to FULL */if (hw->media_type == e1000_media_type_copper && - hw->phy_type == e1000_phy_m88) + hw->phy_type == e1000_phy_m88) { ctrl_reg |=E1000_CTRL_ILOS ;/* Invert Loss of Signal */ -else { + }else {/* Set the ILOS bit on the fiber Nic is half * duplex link is detected. */
@@ -1299,7 +1297,8 @@ static int e1000_set_phy_loopback(struct e1000_adapter *adapter)* attempt this 10 times. */ while (e1000_nonintegrated_phy_loopback (adapter) && - count++ <10 ); + count++ <10 ) + ;if (count <11 )return 0 ; }
@@ -1400,7 +1399,7 @@ static int e1000_check_lbtest_frame(struct sk_buff *skb, frame_size &= ~1 ;if (*(skb->data +3 ) ==0xFF ) {if ((*(skb->data + frame_size /2 +10 ) ==0xBE ) && - (*(skb->data + frame_size /2 +12 ) ==0xAF )) { + (*(skb->data + frame_size /2 +12 ) ==0xAF )) {return 0 ; } }
@@ -1432,7 +1431,7 @@ static int e1000_run_loopback_test(struct e1000_adapter *adapter)for (j =0 ; j <= lc; j++) {/* loop count loop */ for (i =0 ; i <64 ; i++) {/* send the packets */ e1000_create_lbtest_frame (txdr->buffer_info[i].skb, -1024 ); +1024 ); dma_sync_single_for_device(&pdev->dev, txdr->buffer_info[k].dma, txdr->buffer_info[k].length,
@@ -1860,8 +1859,7 @@ static void e1000_get_strings(struct net_device *netdev, u32 stringset,switch (stringset) {case ETH_SS_TEST : -memcpy (data, *e1000_gstrings_test, -sizeof (e1000_gstrings_test)); +memcpy (data, *e1000_gstrings_test,sizeof (e1000_gstrings_test));break ;case ETH_SS_STATS :for (i =0 ; i <E1000_GLOBAL_STATS_LEN ; i++) {
drivers/net/ethernet/intel/e1000/e1000_hw.c +6 -6
@@ -5378,8 +5378,8 @@ static s32 e1000_1000Mb_check_cable_length(struct e1000_hw *hw) hw->ffe_config_state = e1000_ffe_config_active; ret_val =e1000_write_phy_reg (hw, -IGP01E1000_PHY_DSP_FFE , -IGP01E1000_PHY_DSP_FFE_CM_CP ); +IGP01E1000_PHY_DSP_FFE , +IGP01E1000_PHY_DSP_FFE_CM_CP );if (ret_val)return ret_val;break ;
@@ -5448,7 +5448,7 @@ static s32 e1000_config_dsp_after_link_change(struct e1000_hw *hw, bool link_up)msleep (20 ); ret_val =e1000_write_phy_reg (hw,0x0000 , -IGP01E1000_IEEE_FORCE_GIGA ); +IGP01E1000_IEEE_FORCE_GIGA );if (ret_val)return ret_val;for (i =0 ; i <IGP01E1000_PHY_CHANNEL_NUM ; i++) {
@@ -5469,7 +5469,7 @@ static s32 e1000_config_dsp_after_link_change(struct e1000_hw *hw, bool link_up) } ret_val =e1000_write_phy_reg (hw,0x0000 , -IGP01E1000_IEEE_RESTART_AUTONEG ); +IGP01E1000_IEEE_RESTART_AUTONEG );if (ret_val)return ret_val;
@@ -5504,7 +5504,7 @@ static s32 e1000_config_dsp_after_link_change(struct e1000_hw *hw, bool link_up)msleep (20 ); ret_val =e1000_write_phy_reg (hw,0x0000 , -IGP01E1000_IEEE_FORCE_GIGA ); +IGP01E1000_IEEE_FORCE_GIGA );if (ret_val)return ret_val; ret_val =
@@ -5514,7 +5514,7 @@ static s32 e1000_config_dsp_after_link_change(struct e1000_hw *hw, bool link_up)return ret_val; ret_val =e1000_write_phy_reg (hw,0x0000 , -IGP01E1000_IEEE_RESTART_AUTONEG ); +IGP01E1000_IEEE_RESTART_AUTONEG );if (ret_val)return ret_val;
drivers/net/ethernet/intel/e1000/e1000_main.c +42 -42
241 lines not on this page · raw message
drivers/net/ethernet/intel/e1000/e1000_param.c +1 -1
@@ -250,7 +250,7 @@ static int e1000_validate_option(unsigned int *value, }e_dev_info ("Invalid %s value specified (%i) %s\n" , - opt->name, *value, opt->err); + opt->name, *value, opt->err); *value = opt->def;return -1 ; }
drivers/net/ethernet/intel/i40e/i40e.h +1 -1
@@ -519,7 +519,7 @@ static inline struct i40e_pf *i40e_netdev_to_pf(struct net_device *netdev) }static inline void i40e_vsi_setup_irqhandler (struct i40e_vsi *vsi, -irqreturn_t (*irq_handler)(int ,void *)) +irqreturn_t (*irq_handler)(int ,void *)) { vsi->irq_handler = irq_handler; }
drivers/net/ethernet/intel/i40e/i40e_adminq.c +18 -16
@@ -143,7 +143,8 @@ static i40e_status i40e_alloc_arq_bufs(struct i40e_hw *hw)/* buffer_info structures do not need alignment */ ret_code =i40e_allocate_virt_mem (hw, &hw->aq.arq.dma_head, - (hw->aq.num_arq_entries *sizeof (struct i40e_dma_mem ))); + hw->aq.num_arq_entries * +sizeof (struct i40e_dma_mem ));if (ret_code) goto alloc_arq_bufs; hw->aq.arq.r.arq_bi = (struct i40e_dma_mem *)hw->aq.arq.dma_head.va;
@@ -205,7 +206,8 @@ static i40e_status i40e_alloc_asq_bufs(struct i40e_hw *hw)/* No mapped memory needed yet, just the buffer info structures */ ret_code =i40e_allocate_virt_mem (hw, &hw->aq.asq.dma_head, - (hw->aq.num_asq_entries *sizeof (struct i40e_dma_mem ))); + hw->aq.num_asq_entries * +sizeof (struct i40e_dma_mem ));if (ret_code) goto alloc_asq_bufs; hw->aq.asq.r.asq_bi = (struct i40e_dma_mem *)hw->aq.asq.dma_head.va;
@@ -286,17 +288,17 @@ static void i40e_config_asq_regs(struct i40e_hw *hw)if (hw->mac.type ==I40E_MAC_VF ) {/* configure the transmit queue */ wr32 (hw,I40E_VF_ATQBAH1 , -upper_32_bits (hw->aq.asq.desc_buf.pa)); +upper_32_bits (hw->aq.asq.desc_buf.pa));wr32 (hw,I40E_VF_ATQBAL1 , -lower_32_bits (hw->aq.asq.desc_buf.pa)); +lower_32_bits (hw->aq.asq.desc_buf.pa));wr32 (hw,I40E_VF_ATQLEN1 , (hw->aq.num_asq_entries |I40E_VF_ATQLEN1_ATQENABLE_MASK )); }else {/* configure the transmit queue */ wr32 (hw,I40E_PF_ATQBAH , -upper_32_bits (hw->aq.asq.desc_buf.pa)); +upper_32_bits (hw->aq.asq.desc_buf.pa));wr32 (hw,I40E_PF_ATQBAL , -lower_32_bits (hw->aq.asq.desc_buf.pa)); +lower_32_bits (hw->aq.asq.desc_buf.pa));wr32 (hw,I40E_PF_ATQLEN , (hw->aq.num_asq_entries |I40E_PF_ATQLEN_ATQENABLE_MASK )); }
@@ -313,17 +315,17 @@ static void i40e_config_arq_regs(struct i40e_hw *hw)if (hw->mac.type ==I40E_MAC_VF ) {/* configure the receive queue */ wr32 (hw,I40E_VF_ARQBAH1 , -upper_32_bits (hw->aq.arq.desc_buf.pa)); +upper_32_bits (hw->aq.arq.desc_buf.pa));wr32 (hw,I40E_VF_ARQBAL1 , -lower_32_bits (hw->aq.arq.desc_buf.pa)); +lower_32_bits (hw->aq.arq.desc_buf.pa));wr32 (hw,I40E_VF_ARQLEN1 , (hw->aq.num_arq_entries |I40E_VF_ARQLEN1_ARQENABLE_MASK )); }else {/* configure the receive queue */ wr32 (hw,I40E_PF_ARQBAH , -upper_32_bits (hw->aq.arq.desc_buf.pa)); +upper_32_bits (hw->aq.arq.desc_buf.pa));wr32 (hw,I40E_PF_ARQBAL , -lower_32_bits (hw->aq.arq.desc_buf.pa)); +lower_32_bits (hw->aq.arq.desc_buf.pa));wr32 (hw,I40E_PF_ARQLEN , (hw->aq.num_arq_entries |I40E_PF_ARQLEN_ARQENABLE_MASK )); }
@@ -689,10 +691,10 @@ static bool i40e_asq_done(struct i40e_hw *hw)* queue. It runs the queue, cleans the queue, etc **/ i40e_status i40e_asq_send_command (struct i40e_hw *hw, -struct i40e_aq_desc *desc, -void *buff,/* can be NULL */ -u16 buff_size, -struct i40e_asq_cmd_details *cmd_details) +struct i40e_aq_desc *desc, +void *buff,/* can be NULL */ +u16 buff_size, +struct i40e_asq_cmd_details *cmd_details) {i40e_status status =0 ;struct i40e_dma_mem *dma_buff =NULL ;
@@ -877,8 +879,8 @@ void i40e_fill_default_direct_cmd_desc(struct i40e_aq_desc *desc,* left to process through 'pending' **/ i40e_status i40e_clean_arq_element (struct i40e_hw *hw, -struct i40e_arq_event_info *e, -u16 *pending) +struct i40e_arq_event_info *e, +u16 *pending) {i40e_status ret_code =0 ;u16 ntc = hw->aq.arq.next_to_clean;
drivers/net/ethernet/intel/i40e/i40e_alloc.h +6 -7
@@ -44,15 +44,14 @@ enum i40e_memory_type {/* prototype for functions used for dynamic memory allocation */ i40e_status i40e_allocate_dma_mem (struct i40e_hw *hw, -struct i40e_dma_mem *mem, -enum i40e_memory_type type, -u64 size,u32 alignment); +struct i40e_dma_mem *mem, +enum i40e_memory_type type, +u64 size,u32 alignment);i40e_status i40e_free_dma_mem (struct i40e_hw *hw, -struct i40e_dma_mem *mem); +struct i40e_dma_mem *mem);i40e_status i40e_allocate_virt_mem (struct i40e_hw *hw, -struct i40e_virt_mem *mem, -u32 size); +struct i40e_virt_mem *mem,u32 size);i40e_status i40e_free_virt_mem (struct i40e_hw *hw, -struct i40e_virt_mem *mem); +struct i40e_virt_mem *mem);#endif /* _I40E_ALLOC_H_ */
drivers/net/ethernet/intel/i40e/i40e_common.c +119 -119
571 lines not on this page · raw message
drivers/net/ethernet/intel/i40e/i40e_dcb.h +4 -5
@@ -95,13 +95,12 @@ struct i40e_lldp_org_tlv { };#pragma pack() -i40e_status i40e_get_dcbx_status (struct i40e_hw *hw, -u16 *status); +i40e_status i40e_get_dcbx_status (struct i40e_hw *hw,u16 *status);i40e_status i40e_lldp_to_dcb_config (u8 *lldpmib, -struct i40e_dcbx_config *dcbcfg); +struct i40e_dcbx_config *dcbcfg);i40e_status i40e_aq_get_dcb_config (struct i40e_hw *hw,u8 mib_type, -u8 bridgetype, -struct i40e_dcbx_config *dcbcfg); +u8 bridgetype, +struct i40e_dcbx_config *dcbcfg);i40e_status i40e_get_dcb_config (struct i40e_hw *hw);i40e_status i40e_init_dcb (struct i40e_hw *hw);#endif /* _I40E_DCB_H_ */
drivers/net/ethernet/intel/i40e/i40e_dcb_nl.c +8 -8
@@ -66,19 +66,19 @@ static int i40e_dcbnl_ieee_getets(struct net_device *dev, ets->ets_cap = dcbxcfg->etscfg.maxtcs; ets->cbs = dcbxcfg->etscfg.cbs;memcpy (ets->tc_tx_bw, dcbxcfg->etscfg.tcbwtable, -sizeof (ets->tc_tx_bw)); +sizeof (ets->tc_tx_bw));memcpy (ets->tc_rx_bw, dcbxcfg->etscfg.tcbwtable, -sizeof (ets->tc_rx_bw)); +sizeof (ets->tc_rx_bw));memcpy (ets->tc_tsa, dcbxcfg->etscfg.tsatable, -sizeof (ets->tc_tsa)); +sizeof (ets->tc_tsa));memcpy (ets->prio_tc, dcbxcfg->etscfg.prioritytable, -sizeof (ets->prio_tc)); +sizeof (ets->prio_tc));memcpy (ets->tc_reco_bw, dcbxcfg->etsrec.tcbwtable, -sizeof (ets->tc_reco_bw)); +sizeof (ets->tc_reco_bw));memcpy (ets->tc_reco_tsa, dcbxcfg->etsrec.tsatable, -sizeof (ets->tc_reco_tsa)); +sizeof (ets->tc_reco_tsa));memcpy (ets->reco_prio_tc, dcbxcfg->etscfg.prioritytable, -sizeof (ets->reco_prio_tc)); +sizeof (ets->reco_prio_tc));return 0 ; }
@@ -229,7 +229,7 @@ static int i40e_dcbnl_vsi_del_app(struct i40e_vsi *vsi,* Delete given APP from all the VSIs for given PF **/ static void i40e_dcbnl_del_app (struct i40e_pf *pf, -struct i40e_ieee_app_priority_table *app) +struct i40e_ieee_app_priority_table *app) {int v, err;for (v =0 ; v < pf->hw.func_caps.num_vsis; v++) {
drivers/net/ethernet/intel/i40e/i40e_debugfs.c +18 -18
@@ -1759,14 +1759,14 @@ static ssize_t i40e_dbg_command_write(struct file *filp, goto command_write_done; } ret =i40e_aq_add_rem_control_packet_filter (&pf->hw, - pf->hw.mac.addr, -I40E_ETH_P_LLDP ,0 , - pf->vsi[pf->lan_vsi]->seid, -0 , true,NULL ,NULL ); + pf->hw.mac.addr, +I40E_ETH_P_LLDP ,0 , + pf->vsi[pf->lan_vsi]->seid, +0 , true,NULL ,NULL );if (ret) {dev_info (&pf->pdev->dev, -"%s: Add Control Packet Filter AQ command failed =0x%x\n" , - __func__, pf->hw.aq.asq_last_status); +"%s: Add Control Packet Filter AQ command failed =0x%x\n" , + __func__, pf->hw.aq.asq_last_status); goto command_write_done; }#ifdef CONFIG_I40E_DCB
@@ -1776,14 +1776,14 @@ static ssize_t i40e_dbg_command_write(struct file *filp, }else if (strncmp (&cmd_buf[5 ],"start" ,5 ) ==0 ) {int ret; ret =i40e_aq_add_rem_control_packet_filter (&pf->hw, - pf->hw.mac.addr, -I40E_ETH_P_LLDP ,0 , - pf->vsi[pf->lan_vsi]->seid, -0 , false,NULL ,NULL ); + pf->hw.mac.addr, +I40E_ETH_P_LLDP ,0 , + pf->vsi[pf->lan_vsi]->seid, +0 , false,NULL ,NULL );if (ret) {dev_info (&pf->pdev->dev, -"%s: Remove Control Packet Filter AQ command failed =0x%x\n" , - __func__, pf->hw.aq.asq_last_status); +"%s: Remove Control Packet Filter AQ command failed =0x%x\n" , + __func__, pf->hw.aq.asq_last_status);/* Continue and start FW LLDP anyways */ }
@@ -1834,10 +1834,10 @@ static ssize_t i40e_dbg_command_write(struct file *filp, goto command_write_done; ret =i40e_aq_get_lldp_mib (&pf->hw, -I40E_AQ_LLDP_BRIDGE_TYPE_NEAREST_BRIDGE , -I40E_AQ_LLDP_MIB_LOCAL , - buff,I40E_LLDPDU_SIZE , - &llen, &rlen,NULL ); +I40E_AQ_LLDP_BRIDGE_TYPE_NEAREST_BRIDGE , +I40E_AQ_LLDP_MIB_LOCAL , + buff,I40E_LLDPDU_SIZE , + &llen, &rlen,NULL );if (ret) { dev_info(&pf->pdev->dev, "Get LLDP MIB (remote) AQ command failed =0x%x\n",
@@ -1930,8 +1930,8 @@ static ssize_t i40e_dbg_command_write(struct file *filp, module, offset, buffer_len);if (bytes)print_hex_dump (KERN_INFO ,"NVM Dump: " , -DUMP_PREFIX_OFFSET ,16 ,2 , - buff, bytes, true); +DUMP_PREFIX_OFFSET ,16 ,2 , + buff, bytes, true); }kfree (buff); buff =NULL ;
drivers/net/ethernet/intel/i40e/i40e_diag.c +1 -1
@@ -34,7 +34,7 @@* @mask: bits to be touched **/ static i40e_status i40e_diag_reg_pattern_test (struct i40e_hw *hw, -u32 reg,u32 mask) +u32 reg,u32 mask) {const u32 patterns[] = {0x5A5A5A5A ,0xA5A5A5A5 ,0x00000000 ,0xFFFFFFFF };u32 pat, val, orig_val;
drivers/net/ethernet/intel/i40e/i40e_ethtool.c +6 -6
@@ -394,10 +394,10 @@ static int i40e_get_eeprom(struct net_device *netdev, last = true; } ret_val =i40e_aq_read_nvm (hw,0x0 , - eeprom->offset + (I40E_NVM_SECTOR_SIZE * i), - len, - (u8 *)eeprom_buff + (I40E_NVM_SECTOR_SIZE * i), - last,NULL ); + eeprom->offset + (I40E_NVM_SECTOR_SIZE * i), + len, + (u8 *)eeprom_buff + (I40E_NVM_SECTOR_SIZE * i), + last,NULL );if (ret_val) { dev_info(&pf->pdev->dev, "read NVM failed err=%d status=0x%x\n",
@@ -1594,7 +1594,7 @@ static unsigned int i40e_max_channels(struct i40e_vsi *vsi)* q_vectors since we support a lot more queue pairs than q_vectors. **/ static void i40e_get_channels (struct net_device *dev, -struct ethtool_channels *ch) +struct ethtool_channels *ch) {struct i40e_netdev_priv *np =netdev_priv (dev);struct i40e_vsi *vsi = np->vsi;
@@ -1620,7 +1620,7 @@ static void i40e_get_channels(struct net_device *dev,* since it gets rounded down to a power of 2 value. **/ static int i40e_set_channels (struct net_device *dev, -struct ethtool_channels *ch) +struct ethtool_channels *ch) {struct i40e_netdev_priv *np =netdev_priv (dev);unsigned int count = ch->combined_count;
drivers/net/ethernet/intel/i40e/i40e_hmc.c +16 -18
@@ -40,10 +40,10 @@* @direct_mode_sz: size to alloc in direct mode **/ i40e_status i40e_add_sd_table_entry (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 sd_index, -enum i40e_sd_entry_type type, -u64 direct_mode_sz) +struct i40e_hmc_info *hmc_info, +u32 sd_index, +enum i40e_sd_entry_type type, +u64 direct_mode_sz) { enum i40e_memory_type mem_type __attribute__((unused));struct i40e_hmc_sd_entry *sd_entry;
@@ -82,8 +82,8 @@ i40e_status i40e_add_sd_table_entry(struct i40e_hw *hw, dma_mem_alloc_done = true;if (I40E_SD_TYPE_PAGED == type) { ret_code =i40e_allocate_virt_mem (hw, - &sd_entry->u.pd_table.pd_entry_virt_mem, -sizeof (struct i40e_hmc_pd_entry ) *512 ); + &sd_entry->u.pd_table.pd_entry_virt_mem, +sizeof (struct i40e_hmc_pd_entry ) *512 );if (ret_code) goto exit; sd_entry->u.pd_table.pd_entry =
@@ -128,8 +128,8 @@ exit:* 2. It should be 4K in size. **/ i40e_status i40e_add_pd_table_entry (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 pd_index) +struct i40e_hmc_info *hmc_info, +u32 pd_index) {i40e_status ret_code =0 ;struct i40e_hmc_pd_table *pd_table;
@@ -200,8 +200,8 @@ exit:* function returns. **/ i40e_status i40e_remove_pd_bp (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 idx,bool is_pf) +struct i40e_hmc_info *hmc_info, +u32 idx,bool is_pf) {i40e_status ret_code =0 ;struct i40e_hmc_pd_entry *pd_entry;
@@ -257,8 +257,7 @@ exit:* @hmc_info: pointer to the HMC configuration information structure * @idx: the page index **/ -i40e_status i40e_prep_remove_sd_bp (struct i40e_hmc_info *hmc_info, -u32 idx) +i40e_status i40e_prep_remove_sd_bp (struct i40e_hmc_info *hmc_info,u32 idx) {i40e_status ret_code =0 ;struct i40e_hmc_sd_entry *sd_entry;
@@ -286,8 +285,8 @@ exit:* @is_pf: used to distinguish between VF and PF **/ i40e_status i40e_remove_sd_bp_new (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 idx,bool is_pf) +struct i40e_hmc_info *hmc_info, +u32 idx,bool is_pf) {struct i40e_hmc_sd_entry *sd_entry;i40e_status ret_code =0 ;
@@ -312,8 +311,7 @@ exit:* @hmc_info: pointer to the HMC configuration information structure * @idx: segment descriptor index to find the relevant page descriptor **/ -i40e_status i40e_prep_remove_pd_page (struct i40e_hmc_info *hmc_info, -u32 idx) +i40e_status i40e_prep_remove_pd_page (struct i40e_hmc_info *hmc_info,u32 idx) {i40e_status ret_code =0 ;struct i40e_hmc_sd_entry *sd_entry;
@@ -341,8 +339,8 @@ exit:* @is_pf: used to distinguish between VF and PF **/ i40e_status i40e_remove_pd_page_new (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 idx,bool is_pf) +struct i40e_hmc_info *hmc_info, +u32 idx,bool is_pf) {i40e_status ret_code =0 ;struct i40e_hmc_sd_entry *sd_entry;
drivers/net/ethernet/intel/i40e/i40e_hmc.h +14 -16
@@ -216,26 +216,24 @@ struct i40e_hmc_info { *(pd_limit) +=1 ; \ }i40e_status i40e_add_sd_table_entry (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 sd_index, -enum i40e_sd_entry_type type, -u64 direct_mode_sz); +struct i40e_hmc_info *hmc_info, +u32 sd_index, +enum i40e_sd_entry_type type, +u64 direct_mode_sz);i40e_status i40e_add_pd_table_entry (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 pd_index); +struct i40e_hmc_info *hmc_info, +u32 pd_index);i40e_status i40e_remove_pd_bp (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 idx,bool is_pf); -i40e_status i40e_prep_remove_sd_bp (struct i40e_hmc_info *hmc_info, -u32 idx); +struct i40e_hmc_info *hmc_info, +u32 idx,bool is_pf); +i40e_status i40e_prep_remove_sd_bp (struct i40e_hmc_info *hmc_info,u32 idx);i40e_status i40e_remove_sd_bp_new (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 idx,bool is_pf); -i40e_status i40e_prep_remove_pd_page (struct i40e_hmc_info *hmc_info, -u32 idx); +struct i40e_hmc_info *hmc_info, +u32 idx,bool is_pf); +i40e_status i40e_prep_remove_pd_page (struct i40e_hmc_info *hmc_info,u32 idx);i40e_status i40e_remove_pd_page_new (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 idx,bool is_pf); +struct i40e_hmc_info *hmc_info, +u32 idx,bool is_pf);#endif /* _I40E_HMC_H_ */
drivers/net/ethernet/intel/i40e/i40e_lan_hmc.c +38 -43
249 lines not on this page · raw message
drivers/net/ethernet/intel/i40e/i40e_lan_hmc.h +9 -13
@@ -148,21 +148,17 @@ struct i40e_hmc_lan_delete_obj_info { };i40e_status i40e_init_lan_hmc (struct i40e_hw *hw,u32 txq_num, -u32 rxq_num,u32 fcoe_cntx_num, -u32 fcoe_filt_num); +u32 rxq_num,u32 fcoe_cntx_num, +u32 fcoe_filt_num);i40e_status i40e_configure_lan_hmc (struct i40e_hw *hw, -enum i40e_hmc_model model); +enum i40e_hmc_model model);i40e_status i40e_shutdown_lan_hmc (struct i40e_hw *hw); -i40e_status i40e_clear_lan_tx_queue_context (struct i40e_hw *hw, -u16 queue); -i40e_status i40e_set_lan_tx_queue_context (struct i40e_hw *hw, -u16 queue, -struct i40e_hmc_obj_txq *s); -i40e_status i40e_clear_lan_rx_queue_context (struct i40e_hw *hw, -u16 queue); -i40e_status i40e_set_lan_rx_queue_context (struct i40e_hw *hw, -u16 queue, -struct i40e_hmc_obj_rxq *s); +i40e_status i40e_clear_lan_tx_queue_context (struct i40e_hw *hw,u16 queue); +i40e_status i40e_set_lan_tx_queue_context (struct i40e_hw *hw,u16 queue, +struct i40e_hmc_obj_txq *s); +i40e_status i40e_clear_lan_rx_queue_context (struct i40e_hw *hw,u16 queue); +i40e_status i40e_set_lan_rx_queue_context (struct i40e_hw *hw,u16 queue, +struct i40e_hmc_obj_rxq *s);#endif /* _I40E_LAN_HMC_H_ */
drivers/net/ethernet/intel/i40e/i40e_main.c +40 -38
168 lines not on this page · raw message
drivers/net/ethernet/intel/i40e/i40e_nvm.c +11 -14
@@ -76,7 +76,7 @@ i40e_status i40e_init_nvm(struct i40e_hw *hw)* via the proper Admin Command. **/ i40e_status i40e_acquire_nvm (struct i40e_hw *hw, -enum i40e_aq_resource_access_type access) +enum i40e_aq_resource_access_type access) {i40e_status ret_code =0 ;u64 gtime, timeout;
@@ -104,9 +104,9 @@ i40e_status i40e_acquire_nvm(struct i40e_hw *hw,while (gtime < timeout) {usleep_range (10000 ,20000 ); ret_code =i40e_aq_request_resource (hw, -I40E_NVM_RESOURCE_ID , - access,0 , &time, -NULL ); +I40E_NVM_RESOURCE_ID , + access,0 , &time, +NULL );if (!ret_code) { hw->nvm.hw_semaphore_timeout =I40E_MS_TO_GTIME (time) + gtime;
@@ -119,7 +119,7 @@ i40e_status i40e_acquire_nvm(struct i40e_hw *hw, hw->nvm.hw_semaphore_wait =I40E_MS_TO_GTIME (time) + gtime;hw_dbg (hw,"NVM acquire timed out, wait %llu ms before trying again.\n" , - time); + time); } }
@@ -172,8 +172,7 @@ static i40e_status i40e_poll_sr_srctl_done_bit(struct i40e_hw *hw)* * Reads one 16 bit word from the Shadow RAM using the GLNVM_SRCTL register. **/ -i40e_status i40e_read_nvm_word (struct i40e_hw *hw,u16 offset, -u16 *data) +i40e_status i40e_read_nvm_word (struct i40e_hw *hw,u16 offset,u16 *data) {i40e_status ret_code =I40E_ERR_TIMEOUT ;u32 sr_reg;
@@ -203,7 +202,7 @@ i40e_status i40e_read_nvm_word(struct i40e_hw *hw, u16 offset, }if (ret_code)hw_dbg (hw,"NVM read error: Couldn't access Shadow RAM address: 0x%x\n" , - offset); + offset); read_nvm_exit:return ret_code;
@@ -221,7 +220,7 @@ read_nvm_exit:* and followed by the release. **/ i40e_status i40e_read_nvm_buffer (struct i40e_hw *hw,u16 offset, -u16 *words,u16 *data) +u16 *words,u16 *data) {i40e_status ret_code =0 ;u16 index, word;
@@ -250,8 +249,7 @@ i40e_status i40e_read_nvm_buffer(struct i40e_hw *hw, u16 offset,* is customer specific and unknown. Therefore, this function skips all maximum * possible size of VPD (1kB). **/ -static i40e_status i40e_calc_nvm_checksum (struct i40e_hw *hw, -u16 *checksum) +static i40e_status i40e_calc_nvm_checksum (struct i40e_hw *hw,u16 *checksum) {i40e_status ret_code =0 ;u16 pcie_alt_module =0 ;
@@ -269,7 +267,7 @@ static i40e_status i40e_calc_nvm_checksum(struct i40e_hw *hw,/* read pointer to PCIe Alt Auto-load module */ ret_code =i40e_read_nvm_word (hw,I40E_SR_PCIE_ALT_AUTO_LOAD_PTR , - &pcie_alt_module); + &pcie_alt_module);if (ret_code) { ret_code =I40E_ERR_NVM_CHECKSUM ; goto i40e_calc_nvm_checksum_exit;
@@ -317,8 +315,7 @@ i40e_calc_nvm_checksum_exit:* Performs checksum calculation and validates the NVM SW checksum. If the * caller does not need checksum, the value can be NULL. **/ -i40e_status i40e_validate_nvm_checksum (struct i40e_hw *hw, -u16 *checksum) +i40e_status i40e_validate_nvm_checksum (struct i40e_hw *hw,u16 *checksum) {i40e_status ret_code =0 ;u16 checksum_sr =0 ;
drivers/net/ethernet/intel/i40e/i40e_prototype.h +126 -123
322 lines not on this page · raw message
drivers/net/ethernet/intel/i40e/i40e_txrx.c +2 -2
@@ -285,7 +285,7 @@ static int i40e_add_del_fdir_tcpv4(struct i40e_vsi *vsi, err = true; }else {dev_info (&pf->pdev->dev,"Filter OK for PCTYPE %d (ret = %d)\n" , - fd_data->pctype, ret); + fd_data->pctype, ret); }return err ? -EOPNOTSUPP :0 ;
@@ -1544,7 +1544,7 @@ int i40e_napi_poll(struct napi_struct *napi, int budget)if (!test_bit (__I40E_DOWN, &vsi->state)) {if (vsi->back->flags &I40E_FLAG_MSIX_ENABLED ) {i40e_irq_dynamic_enable (vsi, - q_vector->v_idx + vsi->base_vector); + q_vector->v_idx + vsi->base_vector); }else {struct i40e_hw *hw = &vsi->back->hw;/* We re-enable the queue 0 cause, but
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c +2 -2
@@ -1415,7 +1415,7 @@ static inline int i40e_check_vf_permission(struct i40e_vf *vf, u8 *macaddr)int ret =0 ;if (is_broadcast_ether_addr (macaddr) || -is_zero_ether_addr (macaddr)) { +is_zero_ether_addr (macaddr)) {dev_err (&pf->pdev->dev,"invalid VF MAC addr %pM\n" , macaddr); ret =I40E_ERR_INVALID_MAC_ADDR ; } else if (vf->pf_set_mac && !is_multicast_ether_addr(macaddr) &&
@@ -2114,7 +2114,7 @@ int i40e_ndo_set_vf_port_vlan(struct net_device *netdev, }if (vlan_id || qos) ret =i40e_vsi_add_pvid (vsi, - vlan_id | (qos <<I40E_VLAN_PRIORITY_SHIFT )); + vlan_id | (qos <<I40E_VLAN_PRIORITY_SHIFT ));else i40e_vsi_remove_pvid (vsi);
drivers/net/ethernet/intel/i40evf/i40e_adminq.c +21 -22
105 lines not on this page · raw message
drivers/net/ethernet/intel/i40evf/i40e_adminq.h +1 -2
@@ -100,7 +100,6 @@ struct i40e_adminq_info {#define I40E_AQ_LARGE_BUF 512#define I40E_ASQ_CMD_TIMEOUT 100000/* usecs */ -void i40evf_fill_default_direct_cmd_desc (struct i40e_aq_desc *desc, -u16 opcode); +void i40evf_fill_default_direct_cmd_desc (struct i40e_aq_desc *desc,u16 opcode);#endif /* _I40E_ADMINQ_H_ */
drivers/net/ethernet/intel/i40evf/i40e_alloc.h +6 -9
@@ -41,15 +41,12 @@ enum i40e_memory_type {/* prototype for functions used for dynamic memory allocation */ i40e_status i40e_allocate_dma_mem (struct i40e_hw *hw, -struct i40e_dma_mem *mem, -enum i40e_memory_type type, -u64 size,u32 alignment); -i40e_status i40e_free_dma_mem (struct i40e_hw *hw, -struct i40e_dma_mem *mem); +struct i40e_dma_mem *mem, +enum i40e_memory_type type, +u64 size,u32 alignment); +i40e_status i40e_free_dma_mem (struct i40e_hw *hw,struct i40e_dma_mem *mem);i40e_status i40e_allocate_virt_mem (struct i40e_hw *hw, -struct i40e_virt_mem *mem, -u32 size); -i40e_status i40e_free_virt_mem (struct i40e_hw *hw, -struct i40e_virt_mem *mem); +struct i40e_virt_mem *mem,u32 size); +i40e_status i40e_free_virt_mem (struct i40e_hw *hw,struct i40e_virt_mem *mem);#endif /* _I40E_ALLOC_H_ */
drivers/net/ethernet/intel/i40evf/i40e_common.c +9 -10
@@ -64,7 +64,7 @@ i40e_status i40e_set_mac_type(struct i40e_hw *hw) }hw_dbg (hw,"i40e_set_mac_type found mac: %d, returns: %d\n" , - hw->mac.type, status); + hw->mac.type, status);return status; }
@@ -78,7 +78,7 @@ i40e_status i40e_set_mac_type(struct i40e_hw *hw)* Dumps debug log about adminq command with descriptor contents. **/ void i40evf_debug_aq (struct i40e_hw *hw,enum i40e_debug_mask mask,void *desc, -void *buffer) +void *buffer) {struct i40e_aq_desc *aq_desc = (struct i40e_aq_desc *)desc;u8 *aq_buffer = (u8 *)buffer;
@@ -141,8 +141,7 @@ bool i40evf_check_asq_alive(struct i40e_hw *hw)* Tell the Firmware that we're shutting down the AdminQ and whether * or not the driver is unloading as well. **/ -i40e_status i40evf_aq_queue_shutdown (struct i40e_hw *hw, -bool unloading) +i40e_status i40evf_aq_queue_shutdown (struct i40e_hw *hw,bool unloading) {struct i40e_aq_desc desc; struct i40e_aqc_queue_shutdown *cmd =
@@ -150,7 +149,7 @@ i40e_status i40evf_aq_queue_shutdown(struct i40e_hw *hw,i40e_status status;i40evf_fill_default_direct_cmd_desc (&desc, - i40e_aqc_opc_queue_shutdown); + i40e_aqc_opc_queue_shutdown);if (unloading) cmd->driver_unloading =cpu_to_le32 (I40E_AQ_DRIVER_UNLOADING );
@@ -540,10 +539,10 @@ struct i40e_rx_ptype_decoded i40evf_ptype_lookup[] = {* completion before returning. **/ i40e_status i40e_aq_send_msg_to_pf (struct i40e_hw *hw, -enum i40e_virtchnl_ops v_opcode, -i40e_status v_retval, -u8 *msg,u16 msglen, -struct i40e_asq_cmd_details *cmd_details) +enum i40e_virtchnl_ops v_opcode, +i40e_status v_retval, +u8 *msg,u16 msglen, +struct i40e_asq_cmd_details *cmd_details) {struct i40e_aq_desc desc;i40e_status status;
@@ -566,7 +565,7 @@ i40e_status i40e_aq_send_msg_to_pf(struct i40e_hw *hw, cmd_details = &details; } status =i40evf_asq_send_command (hw, (struct i40e_aq_desc *)&desc, msg, - msglen, cmd_details); + msglen, cmd_details);return status; }
drivers/net/ethernet/intel/i40evf/i40e_hmc.h +14 -16
@@ -213,26 +213,24 @@ struct i40e_hmc_info { *(pd_limit) +=1 ; \ }i40e_status i40e_add_sd_table_entry (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 sd_index, -enum i40e_sd_entry_type type, -u64 direct_mode_sz); +struct i40e_hmc_info *hmc_info, +u32 sd_index, +enum i40e_sd_entry_type type, +u64 direct_mode_sz);i40e_status i40e_add_pd_table_entry (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 pd_index); +struct i40e_hmc_info *hmc_info, +u32 pd_index);i40e_status i40e_remove_pd_bp (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 idx,bool is_pf); -i40e_status i40e_prep_remove_sd_bp (struct i40e_hmc_info *hmc_info, -u32 idx); +struct i40e_hmc_info *hmc_info, +u32 idx,bool is_pf); +i40e_status i40e_prep_remove_sd_bp (struct i40e_hmc_info *hmc_info,u32 idx);i40e_status i40e_remove_sd_bp_new (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 idx,bool is_pf); -i40e_status i40e_prep_remove_pd_page (struct i40e_hmc_info *hmc_info, -u32 idx); +struct i40e_hmc_info *hmc_info, +u32 idx,bool is_pf); +i40e_status i40e_prep_remove_pd_page (struct i40e_hmc_info *hmc_info,u32 idx);i40e_status i40e_remove_pd_page_new (struct i40e_hw *hw, -struct i40e_hmc_info *hmc_info, -u32 idx,bool is_pf); +struct i40e_hmc_info *hmc_info, +u32 idx,bool is_pf);#endif /* _I40E_HMC_H_ */
drivers/net/ethernet/intel/i40evf/i40e_lan_hmc.h +9 -13
@@ -145,21 +145,17 @@ struct i40e_hmc_lan_delete_obj_info { };i40e_status i40e_init_lan_hmc (struct i40e_hw *hw,u32 txq_num, -u32 rxq_num,u32 fcoe_cntx_num, -u32 fcoe_filt_num); +u32 rxq_num,u32 fcoe_cntx_num, +u32 fcoe_filt_num);i40e_status i40e_configure_lan_hmc (struct i40e_hw *hw, -enum i40e_hmc_model model); +enum i40e_hmc_model model);i40e_status i40e_shutdown_lan_hmc (struct i40e_hw *hw); -i40e_status i40e_clear_lan_tx_queue_context (struct i40e_hw *hw, -u16 queue); -i40e_status i40e_set_lan_tx_queue_context (struct i40e_hw *hw, -u16 queue, -struct i40e_hmc_obj_txq *s); -i40e_status i40e_clear_lan_rx_queue_context (struct i40e_hw *hw, -u16 queue); -i40e_status i40e_set_lan_rx_queue_context (struct i40e_hw *hw, -u16 queue, -struct i40e_hmc_obj_rxq *s); +i40e_status i40e_clear_lan_tx_queue_context (struct i40e_hw *hw,u16 queue); +i40e_status i40e_set_lan_tx_queue_context (struct i40e_hw *hw,u16 queue, +struct i40e_hmc_obj_txq *s); +i40e_status i40e_clear_lan_rx_queue_context (struct i40e_hw *hw,u16 queue); +i40e_status i40e_set_lan_rx_queue_context (struct i40e_hw *hw,u16 queue, +struct i40e_hmc_obj_rxq *s);#endif /* _I40E_LAN_HMC_H_ */
drivers/net/ethernet/intel/i40evf/i40e_prototype.h +18 -21
@@ -40,26 +40,23 @@ i40e_status i40evf_init_adminq(struct i40e_hw *hw);i40e_status i40evf_shutdown_adminq (struct i40e_hw *hw);void i40e_adminq_init_ring_data (struct i40e_hw *hw);i40e_status i40evf_clean_arq_element (struct i40e_hw *hw, -struct i40e_arq_event_info *e, -u16 *events_pending); +struct i40e_arq_event_info *e, +u16 *events_pending);i40e_status i40evf_asq_send_command (struct i40e_hw *hw, -struct i40e_aq_desc *desc, -void *buff,/* can be NULL */ -u16 buff_size, -struct i40e_asq_cmd_details *cmd_details); +struct i40e_aq_desc *desc, +void *buff,/* can be NULL */ +u16 buff_size, +struct i40e_asq_cmd_details *cmd_details);bool i40evf_asq_done (struct i40e_hw *hw);/* debug function for adminq */ -void i40evf_debug_aq (struct i40e_hw *hw, -enum i40e_debug_mask mask, -void *desc, -void *buffer); +void i40evf_debug_aq (struct i40e_hw *hw,enum i40e_debug_mask mask, +void *desc,void *buffer);void i40e_idle_aq (struct i40e_hw *hw);void i40evf_resume_aq (struct i40e_hw *hw);bool i40evf_check_asq_alive (struct i40e_hw *hw); -i40e_status i40evf_aq_queue_shutdown (struct i40e_hw *hw, -bool unloading); +i40e_status i40evf_aq_queue_shutdown (struct i40e_hw *hw,bool unloading);i40e_status i40e_set_mac_type (struct i40e_hw *hw);
@@ -77,15 +74,15 @@ void i40e_vf_parse_hw_config(struct i40e_hw *hw, struct i40e_virtchnl_vf_resource *msg);i40e_status i40e_vf_reset (struct i40e_hw *hw);i40e_status i40e_aq_send_msg_to_pf (struct i40e_hw *hw, -enum i40e_virtchnl_ops v_opcode, -i40e_status v_retval, -u8 *msg,u16 msglen, -struct i40e_asq_cmd_details *cmd_details); +enum i40e_virtchnl_ops v_opcode, +i40e_status v_retval, +u8 *msg,u16 msglen, +struct i40e_asq_cmd_details *cmd_details);i40e_status i40e_set_filter_control (struct i40e_hw *hw, -struct i40e_filter_control_settings *settings); +struct i40e_filter_control_settings *settings);i40e_status i40e_aq_add_rem_control_packet_filter (struct i40e_hw *hw, -u8 *mac_addr,u16 ethtype,u16 flags, -u16 vsi_seid,u16 queue,bool is_add, -struct i40e_control_filter_stats *stats, -struct i40e_asq_cmd_details *cmd_details); +u8 *mac_addr,u16 ethtype,u16 flags, +u16 vsi_seid,u16 queue,bool is_add, +struct i40e_control_filter_stats *stats, +struct i40e_asq_cmd_details *cmd_details);#endif /* _I40E_PROTOTYPE_H_ */
drivers/net/ethernet/intel/i40evf/i40evf_ethtool.c +3 -3
@@ -216,7 +216,7 @@ static void i40evf_get_drvinfo(struct net_device *netdev,* but the number of rings is not reported. **/ static void i40evf_get_ringparam (struct net_device *netdev, -struct ethtool_ringparam *ring) +struct ethtool_ringparam *ring) {struct i40evf_adapter *adapter =netdev_priv (netdev);struct i40e_ring *tx_ring = adapter->tx_rings[0 ];
@@ -281,7 +281,7 @@ static int i40evf_set_ringparam(struct net_device *netdev,* this functionality. **/ static int i40evf_get_coalesce (struct net_device *netdev, -struct ethtool_coalesce *ec) +struct ethtool_coalesce *ec) {struct i40evf_adapter *adapter =netdev_priv (netdev);struct i40e_vsi *vsi = &adapter->vsi;
@@ -310,7 +310,7 @@ static int i40evf_get_coalesce(struct net_device *netdev,* Change current coalescing settings. **/ static int i40evf_set_coalesce (struct net_device *netdev, -struct ethtool_coalesce *ec) +struct ethtool_coalesce *ec) {struct i40evf_adapter *adapter =netdev_priv (netdev);struct i40e_hw *hw = &adapter->hw;
drivers/net/ethernet/intel/i40evf/i40evf_main.c +12 -13
@@ -251,8 +251,7 @@ void i40evf_irq_enable_queues(struct i40evf_adapter *adapter, u32 mask)* @adapter: board private structure * @mask: bitmap of vectors to trigger **/ -static void i40evf_fire_sw_int (struct i40evf_adapter *adapter, -u32 mask) +static void i40evf_fire_sw_int (struct i40evf_adapter *adapter,u32 mask) {struct i40e_hw *hw = &adapter->hw;int i;
@@ -699,7 +698,7 @@ static void i40evf_del_vlan(struct i40evf_adapter *adapter, u16 vlan)* @vid: VLAN tag **/ static int i40evf_vlan_rx_add_vid (struct net_device *netdev, -__always_unused __be16 proto,u16 vid) +__always_unused __be16 proto,u16 vid) {struct i40evf_adapter *adapter =netdev_priv (netdev);
@@ -714,7 +713,7 @@ static int i40evf_vlan_rx_add_vid(struct net_device *netdev,* @vid: VLAN tag **/ static int i40evf_vlan_rx_kill_vid (struct net_device *netdev, -__always_unused __be16 proto,u16 vid) +__always_unused __be16 proto,u16 vid) {struct i40evf_adapter *adapter =netdev_priv (netdev);
@@ -1185,7 +1184,7 @@ static int i40evf_alloc_q_vectors(struct i40evf_adapter *adapter) q_vector->vsi = &adapter->vsi; q_vector->v_idx = q_idx;netif_napi_add (adapter->netdev, &q_vector->napi, - i40evf_napi_poll,64 ); + i40evf_napi_poll,64 ); adapter->q_vector[q_idx] = q_vector; }
@@ -1273,8 +1272,8 @@ int i40evf_init_interrupt_scheme(struct i40evf_adapter *adapter) }dev_info (&adapter->pdev->dev,"Multiqueue %s: Queue pair count = %u" , - (adapter->vsi_res->num_queue_pairs >1 ) ?"Enabled" : -"Disabled" , adapter->vsi_res->num_queue_pairs); + adapter->vsi_res->num_queue_pairs >1 ?"Enabled" :"Disabled" , + adapter->vsi_res->num_queue_pairs);return 0 ; err_alloc_queues:
@@ -1540,12 +1539,12 @@ continue_reset:/* kill and reinit the admin queue */ if (i40evf_shutdown_adminq (hw))dev_warn (&adapter->pdev->dev, -"%s: Failed to destroy the Admin Queue resources\n" , - __func__); +"%s: Failed to destroy the Admin Queue resources\n" , + __func__); err =i40evf_init_adminq (hw);if (err)dev_info (&adapter->pdev->dev,"%s: init_adminq failed: %d\n" , - __func__, err); + __func__, err); adapter->aq_pending =0 ; adapter->aq_required =0 ;
@@ -1600,7 +1599,7 @@ static void i40evf_adminq_task(struct work_struct *work) event.msg_buf =kzalloc (event.msg_size,GFP_KERNEL );if (!event.msg_buf) {dev_info (&adapter->pdev->dev,"%s: no memory for ARQ clean\n" , - __func__); + __func__);return ; } v_msg = (struct i40e_virtchnl_msg *)&event.desc;
@@ -2412,8 +2411,8 @@ static struct pci_driver i40evf_driver = {static int __init i40evf_init_module (void ) {int ret; -pr_info ("i40evf: %s - version %s\n" , i40evf_driver_string, - i40evf_driver_version); +pr_info ("i40evf: %s - version %s\n" , + i40evf_driver_string, i40evf_driver_version);pr_info ("%s\n" , i40evf_copyright);
drivers/net/ethernet/intel/i40evf/i40evf_virtchnl.c +5 -5
@@ -391,7 +391,7 @@ void i40evf_add_ether_addrs(struct i40evf_adapter *adapter) (count *sizeof (struct i40e_virtchnl_ether_addr ));if (len >I40EVF_MAX_AQ_BUF_SIZE ) {dev_warn (&adapter->pdev->dev,"%s: Too many MAC address changes in one request.\n" , - __func__); + __func__); count = (I40EVF_MAX_AQ_BUF_SIZE -sizeof (struct i40e_virtchnl_ether_addr_list )) /sizeof (struct i40e_virtchnl_ether_addr );
@@ -455,7 +455,7 @@ void i40evf_del_ether_addrs(struct i40evf_adapter *adapter) (count *sizeof (struct i40e_virtchnl_ether_addr ));if (len >I40EVF_MAX_AQ_BUF_SIZE ) {dev_warn (&adapter->pdev->dev,"%s: Too many MAC address changes in one request.\n" , - __func__); + __func__); count = (I40EVF_MAX_AQ_BUF_SIZE -sizeof (struct i40e_virtchnl_ether_addr_list )) /sizeof (struct i40e_virtchnl_ether_addr );
@@ -519,7 +519,7 @@ void i40evf_add_vlans(struct i40evf_adapter *adapter) (count *sizeof (u16));if (len >I40EVF_MAX_AQ_BUF_SIZE ) {dev_warn (&adapter->pdev->dev,"%s: Too many VLAN changes in one request.\n" , - __func__); + __func__); count = (I40EVF_MAX_AQ_BUF_SIZE -sizeof (struct i40e_virtchnl_vlan_filter_list )) /sizeof (u16);
@@ -581,7 +581,7 @@ void i40evf_del_vlans(struct i40evf_adapter *adapter) (count *sizeof (u16));if (len >I40EVF_MAX_AQ_BUF_SIZE ) {dev_warn (&adapter->pdev->dev,"%s: Too many VLAN changes in one request.\n" , - __func__); + __func__); count = (I40EVF_MAX_AQ_BUF_SIZE -sizeof (struct i40e_virtchnl_vlan_filter_list )) /sizeof (u16);
@@ -782,7 +782,7 @@ void i40evf_virtchnl_completion(struct i40evf_adapter *adapter,break ;default :dev_warn (&adapter->pdev->dev,"%s: Received unexpected message %d from PF.\n" , - __func__, v_opcode); + __func__, v_opcode);break ; }/* switch v_opcode */ adapter->current_op =I40E_VIRTCHNL_OP_UNKNOWN ;
drivers/net/ethernet/intel/igb/e1000_82575.c +17 -17
@@ -61,7 +61,7 @@ static s32 igb_write_phy_reg_sgmii_82575(struct e1000_hw *, u32, u16);static void igb_clear_hw_cntrs_82575 (struct e1000_hw *);static s32 igb_acquire_swfw_sync_82575 (struct e1000_hw *,u16 );static s32 igb_get_pcs_speed_and_duplex_82575 (struct e1000_hw *,u16 *, -u16 *); +u16 *);static s32 igb_get_phy_id_82575 (struct e1000_hw *);static void igb_release_swfw_sync_82575 (struct e1000_hw *,u16 );static bool igb_sgmii_active_82575 (struct e1000_hw *);
@@ -480,8 +480,8 @@ static s32 igb_set_sfp_media_type_82575(struct e1000_hw *hw)/* Read SFP module data */ while (timeout) { ret_val =igb_read_sfp_data_byte (hw, -E1000_I2CCMD_SFP_DATA_ADDR (E1000_SFF_IDENTIFIER_OFFSET ), - &tranceiver_type); +E1000_I2CCMD_SFP_DATA_ADDR (E1000_SFF_IDENTIFIER_OFFSET ), + &tranceiver_type);if (ret_val ==0 )break ;msleep (100 );
@@ -491,8 +491,8 @@ static s32 igb_set_sfp_media_type_82575(struct e1000_hw *hw) goto out; ret_val =igb_read_sfp_data_byte (hw, -E1000_I2CCMD_SFP_DATA_ADDR (E1000_SFF_ETH_FLAGS_OFFSET ), - (u8 *)eth_flags); +E1000_I2CCMD_SFP_DATA_ADDR (E1000_SFF_ETH_FLAGS_OFFSET ), + (u8 *)eth_flags);if (ret_val !=0 ) goto out;
@@ -737,7 +737,7 @@ static void igb_release_phy_82575(struct e1000_hw *hw)* interface and stores the retrieved information in data. **/ static s32 igb_read_phy_reg_sgmii_82575 (struct e1000_hw *hw,u32 offset, -u16 *data) +u16 *data) {s32 ret_val = -E1000_ERR_PARAM ;
@@ -768,7 +768,7 @@ out:* media independent interface. **/ static s32 igb_write_phy_reg_sgmii_82575 (struct e1000_hw *hw,u32 offset, -u16 data) +u16 data) {s32 ret_val = -E1000_ERR_PARAM ;
@@ -1241,16 +1241,16 @@ static s32 igb_get_cfg_done_82575(struct e1000_hw *hw)* Otherwise, use the generic function to get the link speed and duplex info. **/ static s32 igb_get_link_up_info_82575 (struct e1000_hw *hw,u16 *speed, -u16 *duplex) +u16 *duplex) {s32 ret_val;if (hw->phy.media_type != e1000_media_type_copper) ret_val =igb_get_pcs_speed_and_duplex_82575 (hw, speed, - duplex); + duplex);else ret_val =igb_get_speed_and_duplex_copper (hw, speed, - duplex); + duplex);return ret_val; }
@@ -1329,7 +1329,7 @@ void igb_power_up_serdes_link_82575(struct e1000_hw *hw)* duplex, then store the values in the pointers provided. **/ static s32 igb_get_pcs_speed_and_duplex_82575 (struct e1000_hw *hw,u16 *speed, -u16 *duplex) +u16 *duplex) {struct e1000_mac_info *mac = &hw->mac;u32 pcs, status;
@@ -2245,11 +2245,11 @@ static s32 igb_reset_hw_82580(struct e1000_hw *hw)/* Determine whether or not a global dev reset is requested */ if (global_device_reset && - hw->mac.ops.acquire_swfw_sync (hw, swmbsw_mask)) - global_device_reset = false; + hw->mac.ops.acquire_swfw_sync (hw, swmbsw_mask)) + global_device_reset = false;if (global_device_reset && - !(rd32 (E1000_STATUS ) &E1000_STAT_DEV_RST_SET )) + !(rd32 (E1000_STATUS ) &E1000_STAT_DEV_RST_SET )) ctrl |=E1000_CTRL_DEV_RST ;else ctrl |=E1000_CTRL_RST ;
@@ -2523,7 +2523,7 @@ out:* @read: boolean flag to indicate read or write **/ static s32 __igb_access_emi_reg (struct e1000_hw *hw,u16 address, -u16 *data,bool read) +u16 *data,bool read) {s32 ret_val =E1000_SUCCESS ;
@@ -2645,8 +2645,8 @@ s32 igb_set_eee_i354(struct e1000_hw *hw) phy_data |=E1000_EEE_ADV_100_SUPPORTED |E1000_EEE_ADV_1000_SUPPORTED ; ret_val =igb_write_xmdio_reg (hw,E1000_EEE_ADV_ADDR_I354 , -E1000_EEE_ADV_DEV_I354 , - phy_data); +E1000_EEE_ADV_DEV_I354 , + phy_data); }else {/* Turn off EEE advertisement. */ ret_val = igb_read_xmdio_reg(hw, E1000_EEE_ADV_ADDR_I354,
drivers/net/ethernet/intel/igb/e1000_i210.c +9 -9
@@ -222,7 +222,7 @@ static s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, u16 words, E1000_EERD_EEWR_MAX_COUNT : (words - i);if (hw->nvm.ops.acquire (hw) ==E1000_SUCCESS ) { status =igb_read_nvm_eerd (hw, offset, count, - data + i); + data + i); hw->nvm.ops.release (hw); }else { status =E1000_ERR_SWFW_SYNC ;
@@ -248,7 +248,7 @@ static s32 igb_read_nvm_srrd_i210(struct e1000_hw *hw, u16 offset, u16 words,* Shadow Ram will most likely contain an invalid checksum. **/ static s32 igb_write_nvm_srwr (struct e1000_hw *hw,u16 offset,u16 words, -u16 *data) +u16 *data) {struct e1000_nvm_info *nvm = &hw->nvm;u32 i, k, eewr =0 ;
@@ -322,7 +322,7 @@ static s32 igb_write_nvm_srwr_i210(struct e1000_hw *hw, u16 offset, u16 words, E1000_EERD_EEWR_MAX_COUNT : (words - i);if (hw->nvm.ops.acquire (hw) ==E1000_SUCCESS ) { status =igb_write_nvm_srwr (hw, offset, count, - data + i); + data + i); hw->nvm.ops.release (hw); }else { status =E1000_ERR_SWFW_SYNC ;
@@ -366,7 +366,7 @@ static s32 igb_read_invm_word_i210(struct e1000_hw *hw, u8 address, u16 *data)if (word_address == address) { *data =INVM_DWORD_TO_WORD_DATA (invm_dword);hw_dbg ("Read INVM Word 0x%02x = %x" , - address, *data); + address, *data); status =E1000_SUCCESS ;break ; }
@@ -386,7 +386,7 @@ static s32 igb_read_invm_word_i210(struct e1000_hw *hw, u8 address, u16 *data)* Wrapper function to return data formerly found in the NVM. **/ static s32 igb_read_invm_i210 (struct e1000_hw *hw,u16 offset, -u16 words__always_unused ,u16 *data) +u16 words__always_unused ,u16 *data) {s32 ret_val =E1000_SUCCESS ;
@@ -502,8 +502,8 @@ s32 igb_read_invm_version(struct e1000_hw *hw,* used and it is the last one used */ else if ((((*record & E1000_INVM_VER_FIELD_ONE) == 0) && - ((*record & 0x3) == 0)) || (((*record & 0x3) != 0) && - (i != 1))) { + ((*record & 0x3) == 0)) || (((*record & 0x3) != 0) && + (i != 1))) { version = (*next_record &E1000_INVM_VER_FIELD_TWO ) >>13 ; status =E1000_SUCCESS ;
@@ -538,7 +538,7 @@ s32 igb_read_invm_version(struct e1000_hw *hw, }/* Check if we have image type in first location used */ else if ((((*record &0x3 ) ==0 ) && - ((*record &E1000_INVM_IMGTYPE_FIELD ) ==0 )) || + ((*record &E1000_INVM_IMGTYPE_FIELD ) ==0 )) || ((((*record &0x3 ) !=0 ) && (i !=1 )))) { invm_ver->invm_img_type = (*next_record &E1000_INVM_IMGTYPE_FIELD ) >>23 ;
@@ -624,7 +624,7 @@ static s32 igb_update_nvm_checksum_i210(struct e1000_hw *hw) } checksum = (u16 )NVM_SUM - checksum; ret_val =igb_write_nvm_srwr (hw,NVM_CHECKSUM_REG ,1 , - &checksum); + &checksum);if (ret_val !=E1000_SUCCESS ) { hw->nvm.ops.release (hw);hw_dbg ("NVM Write Error while updating checksum.\n" );
drivers/net/ethernet/intel/igb/e1000_mac.c +8 -9
@@ -944,9 +944,9 @@ s32 igb_config_fc_after_link_up(struct e1000_hw *hw)* 0 | 1 | 1 | 1 | e1000_fc_tx_pause */ else if (!(mii_nway_adv_reg & NWAY_AR_PAUSE) && - (mii_nway_adv_reg & NWAY_AR_ASM_DIR) && - (mii_nway_lp_ability_reg & NWAY_LPAR_PAUSE) && - (mii_nway_lp_ability_reg & NWAY_LPAR_ASM_DIR)) { + (mii_nway_adv_reg & NWAY_AR_ASM_DIR) && + (mii_nway_lp_ability_reg & NWAY_LPAR_PAUSE) && + (mii_nway_lp_ability_reg & NWAY_LPAR_ASM_DIR)) { hw->fc.current_mode = e1000_fc_tx_pause;hw_dbg ("Flow Control = TX PAUSE frames only.\r\n" ); }
@@ -1099,9 +1099,9 @@ s32 igb_config_fc_after_link_up(struct e1000_hw *hw)* 0 | 1 | 1 | 1 | e1000_fc_tx_pause */ else if (!(pcs_adv_reg & E1000_TXCW_PAUSE) && - (pcs_adv_reg & E1000_TXCW_ASM_DIR) && - (pcs_lp_ability_reg & E1000_TXCW_PAUSE) && - (pcs_lp_ability_reg & E1000_TXCW_ASM_DIR)) { + (pcs_adv_reg & E1000_TXCW_ASM_DIR) && + (pcs_lp_ability_reg & E1000_TXCW_PAUSE) && + (pcs_lp_ability_reg & E1000_TXCW_ASM_DIR)) { hw->fc.current_mode = e1000_fc_tx_pause;hw_dbg ("Flow Control = Tx PAUSE frames only.\n" ); }
@@ -1154,7 +1154,7 @@ out:* speed and duplex for copper connections. **/ s32 igb_get_speed_and_duplex_copper (struct e1000_hw *hw,u16 *speed, -u16 *duplex) +u16 *duplex) {u32 status;
@@ -1540,8 +1540,7 @@ out:* and they all have the format address << 8 | data and bit 31 is polled for * completion. **/ -s32 igb_write_8bit_ctrl_reg (struct e1000_hw *hw,u32 reg, -u32 offset,u8 data) +s32 igb_write_8bit_ctrl_reg (struct e1000_hw *hw,u32 reg,u32 offset,u8 data) {u32 i, regvalue =0 ;s32 ret_val =0 ;
drivers/net/ethernet/intel/igb/e1000_nvm.c +2 -2
@@ -462,7 +462,7 @@ s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)/* Send the WRITE ENABLE command (8 bit opcode) */ igb_shift_out_eec_bits (hw,NVM_WREN_OPCODE_SPI , - nvm->opcode_bits); + nvm->opcode_bits);igb_standby_nvm (hw);
@@ -475,7 +475,7 @@ s32 igb_write_nvm_spi(struct e1000_hw *hw, u16 offset, u16 words, u16 *data)/* Send the Write command (8-bit opcode + addr) */ igb_shift_out_eec_bits (hw, write_opcode, nvm->opcode_bits);igb_shift_out_eec_bits (hw, (u16)((offset + widx) *2 ), - nvm->address_bits); + nvm->address_bits);/* Loop to allow for up to whole page write of eeprom */ while (widx < words) {
drivers/net/ethernet/intel/igb/e1000_phy.c +1 -2
@@ -301,8 +301,7 @@ s32 igb_write_phy_reg_i2c(struct e1000_hw *hw, u32 offset, u16 data)/* Prevent overwritting SFP I2C EEPROM which is at A0 address.*/ if ((hw->phy.addr ==0 ) || (hw->phy.addr >7 )) { -hw_dbg ("PHY I2C Address %d is out of range.\n" , - hw->phy.addr); +hw_dbg ("PHY I2C Address %d is out of range.\n" , hw->phy.addr);return -E1000_ERR_CONFIG ; }
drivers/net/ethernet/intel/igb/e1000_phy.h +1 -1
@@ -60,7 +60,7 @@ s32 igb_set_d3_lplu_state(struct e1000_hw *hw, bool active);s32 igb_setup_copper_link (struct e1000_hw *hw);s32 igb_write_phy_reg_igp (struct e1000_hw *hw,u32 offset,u16 data);s32 igb_phy_has_link (struct e1000_hw *hw,u32 iterations, -u32 usec_interval,bool *success); +u32 usec_interval,bool *success);void igb_power_up_phy_copper (struct e1000_hw *hw);void igb_power_down_phy_copper (struct e1000_hw *hw);s32 igb_phy_init_script_igp3 (struct e1000_hw *hw);
drivers/net/ethernet/intel/igb/igb_ethtool.c +17 -22
@@ -753,8 +753,7 @@ static int igb_get_eeprom(struct net_device *netdev,for (i =0 ; i < last_word - first_word +1 ; i++)le16_to_cpus (&eeprom_buff[i]); -memcpy (bytes, (u8 *)eeprom_buff + (eeprom->offset &1 ), - eeprom->len); +memcpy (bytes, (u8 *)eeprom_buff + (eeprom->offset &1 ), eeprom->len);kfree (eeprom_buff);return ret_val;
@@ -1314,23 +1313,20 @@ static int igb_reg_test(struct igb_adapter *adapter, u64 *data)break ;case WRITE_NO_TEST :writel (test->write, - (adapter->hw.hw_addr + test->reg) - + (i * test->reg_offset)); + (adapter->hw.hw_addr + test->reg) + + (i * test->reg_offset));break ;case TABLE32_TEST :REG_PATTERN_TEST (test->reg + (i *4 ), - test->mask, - test->write); + test->mask, test->write);break ;case TABLE64_TEST_LO :REG_PATTERN_TEST (test->reg + (i *8 ), - test->mask, - test->write); + test->mask, test->write);break ;case TABLE64_TEST_HI :REG_PATTERN_TEST ((test->reg +4 ) + (i *8 ), - test->mask, - test->write); + test->mask, test->write);break ; } }
@@ -1407,7 +1403,7 @@ static int igb_intr_test(struct igb_adapter *adapter, u64 *data)return -1 ; }dev_info (&adapter->pdev->dev,"testing %s interrupt\n" , - (shared_int ?"shared" :"unshared" )); + shared_int ?"shared" :"unshared" );/* Disable all the interrupts */ wr32 (E1000_IMC , ~0 );
@@ -1661,10 +1657,10 @@ static int igb_setup_loopback_test(struct igb_adapter *adapter)/* use CTRL_EXT to identify link type as SGMII can appear as copper */ if (reg &E1000_CTRL_EXT_LINK_MODE_MASK ) {if ((hw->device_id ==E1000_DEV_ID_DH89XXCC_SGMII ) || - (hw->device_id ==E1000_DEV_ID_DH89XXCC_SERDES ) || - (hw->device_id ==E1000_DEV_ID_DH89XXCC_BACKPLANE ) || - (hw->device_id ==E1000_DEV_ID_DH89XXCC_SFP ) || - (hw->device_id ==E1000_DEV_ID_I354_SGMII )) { + (hw->device_id ==E1000_DEV_ID_DH89XXCC_SERDES ) || + (hw->device_id ==E1000_DEV_ID_DH89XXCC_BACKPLANE ) || + (hw->device_id ==E1000_DEV_ID_DH89XXCC_SFP ) || + (hw->device_id ==E1000_DEV_ID_I354_SGMII )) {/* Enable DH89xxCC MPHY for near end loopback */ reg =rd32 (E1000_MPHY_ADDR_CTL );
@@ -1728,10 +1724,10 @@ static void igb_loopback_cleanup(struct igb_adapter *adapter)u16 phy_reg;if ((hw->device_id ==E1000_DEV_ID_DH89XXCC_SGMII ) || - (hw->device_id ==E1000_DEV_ID_DH89XXCC_SERDES ) || - (hw->device_id ==E1000_DEV_ID_DH89XXCC_BACKPLANE ) || - (hw->device_id ==E1000_DEV_ID_DH89XXCC_SFP ) || - (hw->device_id ==E1000_DEV_ID_I354_SGMII )) { + (hw->device_id ==E1000_DEV_ID_DH89XXCC_SERDES ) || + (hw->device_id ==E1000_DEV_ID_DH89XXCC_BACKPLANE ) || + (hw->device_id ==E1000_DEV_ID_DH89XXCC_SFP ) || + (hw->device_id ==E1000_DEV_ID_I354_SGMII )) {u32 reg;/* Disable near end loopback on DH89xxCC */
@@ -1924,7 +1920,7 @@ static int igb_loopback_test(struct igb_adapter *adapter, u64 *data)if (adapter->hw.mac.type == e1000_i354) {dev_info (&adapter->pdev->dev, -"Loopback test not supported on i354.\n" ); +"Loopback test not supported on i354.\n" ); *data =0 ; goto out; }
@@ -2309,8 +2305,7 @@ static void igb_get_strings(struct net_device *netdev, u32 stringset, u8 *data)switch (stringset) {case ETH_SS_TEST : -memcpy (data, *igb_gstrings_test, -IGB_TEST_LEN *ETH_GSTRING_LEN ); +memcpy (data, *igb_gstrings_test,IGB_TEST_LEN *ETH_GSTRING_LEN );break ;case ETH_SS_STATS :for (i =0 ; i <IGB_GLOBAL_STATS_LEN ; i++) {
drivers/net/ethernet/intel/igb/igb_main.c +56 -55
111 lines not on this page · raw message
drivers/net/ethernet/intel/igbvf/ethtool.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/igbvf/netdev.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgb/ixgb_ee.c +5 -11
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgb/ixgb_ethtool.c +11 -16
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgb/ixgb_hw.c +11 -26
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgb/ixgb_hw.h +1 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgb/ixgb_main.c +12 -13
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_82598.c +11 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_82599.c +7 -7
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_common.c +19 -16
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.c +11 -11
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82598.h +11 -11
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_dcb_82599.h +14 -14
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_debugfs.c +3 -3
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_ethtool.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_fcoe.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_main.c +49 -40
89 lines not on this page · raw message
drivers/net/ethernet/intel/ixgbe/ixgbe_mbx.c +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_phy.c +5 -5
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_sriov.h +1 -1
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbe/ixgbe_sysfs.c +4 -4
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbevf/ethtool.c +2 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbevf/ixgbevf_main.c +9 -9
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbevf/vf.c +1 -2
Lines of this file are not shown. View the raw message.
drivers/net/ethernet/intel/ixgbevf/vf.h +2 -2
Lines of this file are not shown. View the raw message.
The rest of this diff is not shown. View the raw message.
Part of the diff is not shown here. View the raw message.