Loading drivers/net/ixgb/ixgb_ethtool.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -694,7 +694,7 @@ ixgb_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) } } } } struct ethtool_ops ixgb_ethtool_ops = { static struct ethtool_ops ixgb_ethtool_ops = { .get_settings = ixgb_get_settings, .get_settings = ixgb_get_settings, .set_settings = ixgb_set_settings, .set_settings = ixgb_set_settings, .get_drvinfo = ixgb_get_drvinfo, .get_drvinfo = ixgb_get_drvinfo, Loading drivers/net/ixgb/ixgb_hw.c +22 −9 Original line number Original line Diff line number Diff line Loading @@ -47,9 +47,22 @@ static void ixgb_optics_reset(struct ixgb_hw *hw); static ixgb_phy_type ixgb_identify_phy(struct ixgb_hw *hw); static ixgb_phy_type ixgb_identify_phy(struct ixgb_hw *hw); uint32_t ixgb_mac_reset(struct ixgb_hw *hw); static void ixgb_clear_hw_cntrs(struct ixgb_hw *hw); uint32_t ixgb_mac_reset(struct ixgb_hw *hw) static void ixgb_clear_vfta(struct ixgb_hw *hw); static void ixgb_init_rx_addrs(struct ixgb_hw *hw); static uint16_t ixgb_read_phy_reg(struct ixgb_hw *hw, uint32_t reg_address, uint32_t phy_address, uint32_t device_type); static boolean_t ixgb_setup_fc(struct ixgb_hw *hw); static boolean_t mac_addr_valid(uint8_t *mac_addr); static uint32_t ixgb_mac_reset(struct ixgb_hw *hw) { { uint32_t ctrl_reg; uint32_t ctrl_reg; Loading Loading @@ -335,7 +348,7 @@ ixgb_init_hw(struct ixgb_hw *hw) * of the receive addresss registers. Clears the multicast table. Assumes * of the receive addresss registers. Clears the multicast table. Assumes * the receiver is in reset when the routine is called. * the receiver is in reset when the routine is called. *****************************************************************************/ *****************************************************************************/ void static void ixgb_init_rx_addrs(struct ixgb_hw *hw) ixgb_init_rx_addrs(struct ixgb_hw *hw) { { uint32_t i; uint32_t i; Loading Loading @@ -604,7 +617,7 @@ ixgb_write_vfta(struct ixgb_hw *hw, * * * hw - Struct containing variables accessed by shared code * hw - Struct containing variables accessed by shared code *****************************************************************************/ *****************************************************************************/ void static void ixgb_clear_vfta(struct ixgb_hw *hw) ixgb_clear_vfta(struct ixgb_hw *hw) { { uint32_t offset; uint32_t offset; Loading @@ -620,7 +633,7 @@ ixgb_clear_vfta(struct ixgb_hw *hw) * hw - Struct containing variables accessed by shared code * hw - Struct containing variables accessed by shared code *****************************************************************************/ *****************************************************************************/ boolean_t static boolean_t ixgb_setup_fc(struct ixgb_hw *hw) ixgb_setup_fc(struct ixgb_hw *hw) { { uint32_t ctrl_reg; uint32_t ctrl_reg; Loading Loading @@ -722,7 +735,7 @@ ixgb_setup_fc(struct ixgb_hw *hw) * This requires that first an address cycle command is sent, followed by a * This requires that first an address cycle command is sent, followed by a * read command. * read command. *****************************************************************************/ *****************************************************************************/ uint16_t static uint16_t ixgb_read_phy_reg(struct ixgb_hw *hw, ixgb_read_phy_reg(struct ixgb_hw *hw, uint32_t reg_address, uint32_t reg_address, uint32_t phy_address, uint32_t phy_address, Loading Loading @@ -815,7 +828,7 @@ ixgb_read_phy_reg(struct ixgb_hw *hw, * This requires that first an address cycle command is sent, followed by a * This requires that first an address cycle command is sent, followed by a * write command. * write command. *****************************************************************************/ *****************************************************************************/ void static void ixgb_write_phy_reg(struct ixgb_hw *hw, ixgb_write_phy_reg(struct ixgb_hw *hw, uint32_t reg_address, uint32_t reg_address, uint32_t phy_address, uint32_t phy_address, Loading Loading @@ -959,7 +972,7 @@ boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw) * * * hw - Struct containing variables accessed by shared code * hw - Struct containing variables accessed by shared code *****************************************************************************/ *****************************************************************************/ void static void ixgb_clear_hw_cntrs(struct ixgb_hw *hw) ixgb_clear_hw_cntrs(struct ixgb_hw *hw) { { volatile uint32_t temp_reg; volatile uint32_t temp_reg; Loading Loading @@ -1114,7 +1127,7 @@ ixgb_get_bus_info(struct ixgb_hw *hw) * mac_addr - pointer to MAC address. * mac_addr - pointer to MAC address. * * *****************************************************************************/ *****************************************************************************/ boolean_t static boolean_t mac_addr_valid(uint8_t *mac_addr) mac_addr_valid(uint8_t *mac_addr) { { boolean_t is_valid = TRUE; boolean_t is_valid = TRUE; Loading drivers/net/ixgb/ixgb_hw.h +0 −17 Original line number Original line Diff line number Diff line Loading @@ -784,23 +784,8 @@ struct ixgb_hw_stats { extern boolean_t ixgb_adapter_stop(struct ixgb_hw *hw); extern boolean_t ixgb_adapter_stop(struct ixgb_hw *hw); extern boolean_t ixgb_init_hw(struct ixgb_hw *hw); extern boolean_t ixgb_init_hw(struct ixgb_hw *hw); extern boolean_t ixgb_adapter_start(struct ixgb_hw *hw); extern boolean_t ixgb_adapter_start(struct ixgb_hw *hw); extern void ixgb_init_rx_addrs(struct ixgb_hw *hw); extern void ixgb_check_for_link(struct ixgb_hw *hw); extern void ixgb_check_for_link(struct ixgb_hw *hw); extern boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw); extern boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw); extern boolean_t ixgb_setup_fc(struct ixgb_hw *hw); extern void ixgb_clear_hw_cntrs(struct ixgb_hw *hw); extern boolean_t mac_addr_valid(uint8_t *mac_addr); extern uint16_t ixgb_read_phy_reg(struct ixgb_hw *hw, uint32_t reg_addr, uint32_t phy_addr, uint32_t device_type); extern void ixgb_write_phy_reg(struct ixgb_hw *hw, uint32_t reg_addr, uint32_t phy_addr, uint32_t device_type, uint16_t data); extern void ixgb_rar_set(struct ixgb_hw *hw, extern void ixgb_rar_set(struct ixgb_hw *hw, uint8_t *addr, uint8_t *addr, Loading @@ -818,8 +803,6 @@ extern void ixgb_write_vfta(struct ixgb_hw *hw, uint32_t offset, uint32_t offset, uint32_t value); uint32_t value); extern void ixgb_clear_vfta(struct ixgb_hw *hw); /* Access functions to eeprom data */ /* Access functions to eeprom data */ void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, uint8_t *mac_addr); void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, uint8_t *mac_addr); uint32_t ixgb_get_ee_pba_number(struct ixgb_hw *hw); uint32_t ixgb_get_ee_pba_number(struct ixgb_hw *hw); Loading drivers/net/ixgb/ixgb_main.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -45,7 +45,7 @@ */ */ char ixgb_driver_name[] = "ixgb"; char ixgb_driver_name[] = "ixgb"; char ixgb_driver_string[] = "Intel(R) PRO/10GbE Network Driver"; static char ixgb_driver_string[] = "Intel(R) PRO/10GbE Network Driver"; #ifndef CONFIG_IXGB_NAPI #ifndef CONFIG_IXGB_NAPI #define DRIVERNAPI #define DRIVERNAPI Loading Loading
drivers/net/ixgb/ixgb_ethtool.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -694,7 +694,7 @@ ixgb_get_strings(struct net_device *netdev, uint32_t stringset, uint8_t *data) } } } } struct ethtool_ops ixgb_ethtool_ops = { static struct ethtool_ops ixgb_ethtool_ops = { .get_settings = ixgb_get_settings, .get_settings = ixgb_get_settings, .set_settings = ixgb_set_settings, .set_settings = ixgb_set_settings, .get_drvinfo = ixgb_get_drvinfo, .get_drvinfo = ixgb_get_drvinfo, Loading
drivers/net/ixgb/ixgb_hw.c +22 −9 Original line number Original line Diff line number Diff line Loading @@ -47,9 +47,22 @@ static void ixgb_optics_reset(struct ixgb_hw *hw); static ixgb_phy_type ixgb_identify_phy(struct ixgb_hw *hw); static ixgb_phy_type ixgb_identify_phy(struct ixgb_hw *hw); uint32_t ixgb_mac_reset(struct ixgb_hw *hw); static void ixgb_clear_hw_cntrs(struct ixgb_hw *hw); uint32_t ixgb_mac_reset(struct ixgb_hw *hw) static void ixgb_clear_vfta(struct ixgb_hw *hw); static void ixgb_init_rx_addrs(struct ixgb_hw *hw); static uint16_t ixgb_read_phy_reg(struct ixgb_hw *hw, uint32_t reg_address, uint32_t phy_address, uint32_t device_type); static boolean_t ixgb_setup_fc(struct ixgb_hw *hw); static boolean_t mac_addr_valid(uint8_t *mac_addr); static uint32_t ixgb_mac_reset(struct ixgb_hw *hw) { { uint32_t ctrl_reg; uint32_t ctrl_reg; Loading Loading @@ -335,7 +348,7 @@ ixgb_init_hw(struct ixgb_hw *hw) * of the receive addresss registers. Clears the multicast table. Assumes * of the receive addresss registers. Clears the multicast table. Assumes * the receiver is in reset when the routine is called. * the receiver is in reset when the routine is called. *****************************************************************************/ *****************************************************************************/ void static void ixgb_init_rx_addrs(struct ixgb_hw *hw) ixgb_init_rx_addrs(struct ixgb_hw *hw) { { uint32_t i; uint32_t i; Loading Loading @@ -604,7 +617,7 @@ ixgb_write_vfta(struct ixgb_hw *hw, * * * hw - Struct containing variables accessed by shared code * hw - Struct containing variables accessed by shared code *****************************************************************************/ *****************************************************************************/ void static void ixgb_clear_vfta(struct ixgb_hw *hw) ixgb_clear_vfta(struct ixgb_hw *hw) { { uint32_t offset; uint32_t offset; Loading @@ -620,7 +633,7 @@ ixgb_clear_vfta(struct ixgb_hw *hw) * hw - Struct containing variables accessed by shared code * hw - Struct containing variables accessed by shared code *****************************************************************************/ *****************************************************************************/ boolean_t static boolean_t ixgb_setup_fc(struct ixgb_hw *hw) ixgb_setup_fc(struct ixgb_hw *hw) { { uint32_t ctrl_reg; uint32_t ctrl_reg; Loading Loading @@ -722,7 +735,7 @@ ixgb_setup_fc(struct ixgb_hw *hw) * This requires that first an address cycle command is sent, followed by a * This requires that first an address cycle command is sent, followed by a * read command. * read command. *****************************************************************************/ *****************************************************************************/ uint16_t static uint16_t ixgb_read_phy_reg(struct ixgb_hw *hw, ixgb_read_phy_reg(struct ixgb_hw *hw, uint32_t reg_address, uint32_t reg_address, uint32_t phy_address, uint32_t phy_address, Loading Loading @@ -815,7 +828,7 @@ ixgb_read_phy_reg(struct ixgb_hw *hw, * This requires that first an address cycle command is sent, followed by a * This requires that first an address cycle command is sent, followed by a * write command. * write command. *****************************************************************************/ *****************************************************************************/ void static void ixgb_write_phy_reg(struct ixgb_hw *hw, ixgb_write_phy_reg(struct ixgb_hw *hw, uint32_t reg_address, uint32_t reg_address, uint32_t phy_address, uint32_t phy_address, Loading Loading @@ -959,7 +972,7 @@ boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw) * * * hw - Struct containing variables accessed by shared code * hw - Struct containing variables accessed by shared code *****************************************************************************/ *****************************************************************************/ void static void ixgb_clear_hw_cntrs(struct ixgb_hw *hw) ixgb_clear_hw_cntrs(struct ixgb_hw *hw) { { volatile uint32_t temp_reg; volatile uint32_t temp_reg; Loading Loading @@ -1114,7 +1127,7 @@ ixgb_get_bus_info(struct ixgb_hw *hw) * mac_addr - pointer to MAC address. * mac_addr - pointer to MAC address. * * *****************************************************************************/ *****************************************************************************/ boolean_t static boolean_t mac_addr_valid(uint8_t *mac_addr) mac_addr_valid(uint8_t *mac_addr) { { boolean_t is_valid = TRUE; boolean_t is_valid = TRUE; Loading
drivers/net/ixgb/ixgb_hw.h +0 −17 Original line number Original line Diff line number Diff line Loading @@ -784,23 +784,8 @@ struct ixgb_hw_stats { extern boolean_t ixgb_adapter_stop(struct ixgb_hw *hw); extern boolean_t ixgb_adapter_stop(struct ixgb_hw *hw); extern boolean_t ixgb_init_hw(struct ixgb_hw *hw); extern boolean_t ixgb_init_hw(struct ixgb_hw *hw); extern boolean_t ixgb_adapter_start(struct ixgb_hw *hw); extern boolean_t ixgb_adapter_start(struct ixgb_hw *hw); extern void ixgb_init_rx_addrs(struct ixgb_hw *hw); extern void ixgb_check_for_link(struct ixgb_hw *hw); extern void ixgb_check_for_link(struct ixgb_hw *hw); extern boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw); extern boolean_t ixgb_check_for_bad_link(struct ixgb_hw *hw); extern boolean_t ixgb_setup_fc(struct ixgb_hw *hw); extern void ixgb_clear_hw_cntrs(struct ixgb_hw *hw); extern boolean_t mac_addr_valid(uint8_t *mac_addr); extern uint16_t ixgb_read_phy_reg(struct ixgb_hw *hw, uint32_t reg_addr, uint32_t phy_addr, uint32_t device_type); extern void ixgb_write_phy_reg(struct ixgb_hw *hw, uint32_t reg_addr, uint32_t phy_addr, uint32_t device_type, uint16_t data); extern void ixgb_rar_set(struct ixgb_hw *hw, extern void ixgb_rar_set(struct ixgb_hw *hw, uint8_t *addr, uint8_t *addr, Loading @@ -818,8 +803,6 @@ extern void ixgb_write_vfta(struct ixgb_hw *hw, uint32_t offset, uint32_t offset, uint32_t value); uint32_t value); extern void ixgb_clear_vfta(struct ixgb_hw *hw); /* Access functions to eeprom data */ /* Access functions to eeprom data */ void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, uint8_t *mac_addr); void ixgb_get_ee_mac_addr(struct ixgb_hw *hw, uint8_t *mac_addr); uint32_t ixgb_get_ee_pba_number(struct ixgb_hw *hw); uint32_t ixgb_get_ee_pba_number(struct ixgb_hw *hw); Loading
drivers/net/ixgb/ixgb_main.c +1 −1 Original line number Original line Diff line number Diff line Loading @@ -45,7 +45,7 @@ */ */ char ixgb_driver_name[] = "ixgb"; char ixgb_driver_name[] = "ixgb"; char ixgb_driver_string[] = "Intel(R) PRO/10GbE Network Driver"; static char ixgb_driver_string[] = "Intel(R) PRO/10GbE Network Driver"; #ifndef CONFIG_IXGB_NAPI #ifndef CONFIG_IXGB_NAPI #define DRIVERNAPI #define DRIVERNAPI Loading