diff options
author | Bruce Allan <bruce.w.allan@intel.com> | 2013-01-12 02:28:24 -0500 |
---|---|---|
committer | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2013-02-01 01:16:11 -0500 |
commit | 55c5f55e524cec35b5931df16936118dc6c0837b (patch) | |
tree | 6f83b85a2dc80c32d54e9c89564d6ec62121eafc | |
parent | c063f606fd339676085b55c2ac43d0dd0e10dd7a (diff) |
e1000e: cleanup some whitespace and indentation issues
Signed-off-by: Bruce Allan <bruce.w.allan@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/80003es2lan.c | 22 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/82571.c | 13 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/defines.h | 47 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/ich8lan.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/mac.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/netdev.c | 4 | ||||
-rw-r--r-- | drivers/net/ethernet/intel/e1000e/param.c | 3 |
7 files changed, 49 insertions, 48 deletions
diff --git a/drivers/net/ethernet/intel/e1000e/80003es2lan.c b/drivers/net/ethernet/intel/e1000e/80003es2lan.c index 3f27546baaa7..765211a289d8 100644 --- a/drivers/net/ethernet/intel/e1000e/80003es2lan.c +++ b/drivers/net/ethernet/intel/e1000e/80003es2lan.c | |||
@@ -1438,18 +1438,18 @@ static const struct e1000_phy_operations es2_phy_ops = { | |||
1438 | .acquire = e1000_acquire_phy_80003es2lan, | 1438 | .acquire = e1000_acquire_phy_80003es2lan, |
1439 | .check_polarity = e1000_check_polarity_m88, | 1439 | .check_polarity = e1000_check_polarity_m88, |
1440 | .check_reset_block = e1000e_check_reset_block_generic, | 1440 | .check_reset_block = e1000e_check_reset_block_generic, |
1441 | .commit = e1000e_phy_sw_reset, | 1441 | .commit = e1000e_phy_sw_reset, |
1442 | .force_speed_duplex = e1000_phy_force_speed_duplex_80003es2lan, | 1442 | .force_speed_duplex = e1000_phy_force_speed_duplex_80003es2lan, |
1443 | .get_cfg_done = e1000_get_cfg_done_80003es2lan, | 1443 | .get_cfg_done = e1000_get_cfg_done_80003es2lan, |
1444 | .get_cable_length = e1000_get_cable_length_80003es2lan, | 1444 | .get_cable_length = e1000_get_cable_length_80003es2lan, |
1445 | .get_info = e1000e_get_phy_info_m88, | 1445 | .get_info = e1000e_get_phy_info_m88, |
1446 | .read_reg = e1000_read_phy_reg_gg82563_80003es2lan, | 1446 | .read_reg = e1000_read_phy_reg_gg82563_80003es2lan, |
1447 | .release = e1000_release_phy_80003es2lan, | 1447 | .release = e1000_release_phy_80003es2lan, |
1448 | .reset = e1000e_phy_hw_reset_generic, | 1448 | .reset = e1000e_phy_hw_reset_generic, |
1449 | .set_d0_lplu_state = NULL, | 1449 | .set_d0_lplu_state = NULL, |
1450 | .set_d3_lplu_state = e1000e_set_d3_lplu_state, | 1450 | .set_d3_lplu_state = e1000e_set_d3_lplu_state, |
1451 | .write_reg = e1000_write_phy_reg_gg82563_80003es2lan, | 1451 | .write_reg = e1000_write_phy_reg_gg82563_80003es2lan, |
1452 | .cfg_on_link_up = e1000_cfg_on_link_up_80003es2lan, | 1452 | .cfg_on_link_up = e1000_cfg_on_link_up_80003es2lan, |
1453 | }; | 1453 | }; |
1454 | 1454 | ||
1455 | static const struct e1000_nvm_operations es2_nvm_ops = { | 1455 | static const struct e1000_nvm_operations es2_nvm_ops = { |
diff --git a/drivers/net/ethernet/intel/e1000e/82571.c b/drivers/net/ethernet/intel/e1000e/82571.c index 076938c87a26..db364b69f87e 100644 --- a/drivers/net/ethernet/intel/e1000e/82571.c +++ b/drivers/net/ethernet/intel/e1000e/82571.c | |||
@@ -1327,9 +1327,10 @@ static void e1000_clear_vfta_82571(struct e1000_hw *hw) | |||
1327 | */ | 1327 | */ |
1328 | vfta_offset = (hw->mng_cookie.vlan_id >> | 1328 | vfta_offset = (hw->mng_cookie.vlan_id >> |
1329 | E1000_VFTA_ENTRY_SHIFT) & | 1329 | E1000_VFTA_ENTRY_SHIFT) & |
1330 | E1000_VFTA_ENTRY_MASK; | 1330 | E1000_VFTA_ENTRY_MASK; |
1331 | vfta_bit_in_reg = 1 << (hw->mng_cookie.vlan_id & | 1331 | vfta_bit_in_reg = |
1332 | E1000_VFTA_ENTRY_BIT_SHIFT_MASK); | 1332 | 1 << (hw->mng_cookie.vlan_id & |
1333 | E1000_VFTA_ENTRY_BIT_SHIFT_MASK); | ||
1333 | } | 1334 | } |
1334 | break; | 1335 | break; |
1335 | default: | 1336 | default: |
@@ -1931,7 +1932,7 @@ static const struct e1000_phy_operations e82_phy_ops_igp = { | |||
1931 | .set_d0_lplu_state = e1000_set_d0_lplu_state_82571, | 1932 | .set_d0_lplu_state = e1000_set_d0_lplu_state_82571, |
1932 | .set_d3_lplu_state = e1000e_set_d3_lplu_state, | 1933 | .set_d3_lplu_state = e1000e_set_d3_lplu_state, |
1933 | .write_reg = e1000e_write_phy_reg_igp, | 1934 | .write_reg = e1000e_write_phy_reg_igp, |
1934 | .cfg_on_link_up = NULL, | 1935 | .cfg_on_link_up = NULL, |
1935 | }; | 1936 | }; |
1936 | 1937 | ||
1937 | static const struct e1000_phy_operations e82_phy_ops_m88 = { | 1938 | static const struct e1000_phy_operations e82_phy_ops_m88 = { |
@@ -1949,7 +1950,7 @@ static const struct e1000_phy_operations e82_phy_ops_m88 = { | |||
1949 | .set_d0_lplu_state = e1000_set_d0_lplu_state_82571, | 1950 | .set_d0_lplu_state = e1000_set_d0_lplu_state_82571, |
1950 | .set_d3_lplu_state = e1000e_set_d3_lplu_state, | 1951 | .set_d3_lplu_state = e1000e_set_d3_lplu_state, |
1951 | .write_reg = e1000e_write_phy_reg_m88, | 1952 | .write_reg = e1000e_write_phy_reg_m88, |
1952 | .cfg_on_link_up = NULL, | 1953 | .cfg_on_link_up = NULL, |
1953 | }; | 1954 | }; |
1954 | 1955 | ||
1955 | static const struct e1000_phy_operations e82_phy_ops_bm = { | 1956 | static const struct e1000_phy_operations e82_phy_ops_bm = { |
@@ -1967,7 +1968,7 @@ static const struct e1000_phy_operations e82_phy_ops_bm = { | |||
1967 | .set_d0_lplu_state = e1000_set_d0_lplu_state_82571, | 1968 | .set_d0_lplu_state = e1000_set_d0_lplu_state_82571, |
1968 | .set_d3_lplu_state = e1000e_set_d3_lplu_state, | 1969 | .set_d3_lplu_state = e1000e_set_d3_lplu_state, |
1969 | .write_reg = e1000e_write_phy_reg_bm2, | 1970 | .write_reg = e1000e_write_phy_reg_bm2, |
1970 | .cfg_on_link_up = NULL, | 1971 | .cfg_on_link_up = NULL, |
1971 | }; | 1972 | }; |
1972 | 1973 | ||
1973 | static const struct e1000_nvm_operations e82571_nvm_ops = { | 1974 | static const struct e1000_nvm_operations e82571_nvm_ops = { |
diff --git a/drivers/net/ethernet/intel/e1000e/defines.h b/drivers/net/ethernet/intel/e1000e/defines.h index acfe1fadd8de..1257f917af34 100644 --- a/drivers/net/ethernet/intel/e1000e/defines.h +++ b/drivers/net/ethernet/intel/e1000e/defines.h | |||
@@ -96,19 +96,19 @@ | |||
96 | 96 | ||
97 | /* mask to determine if packets should be dropped due to frame errors */ | 97 | /* mask to determine if packets should be dropped due to frame errors */ |
98 | #define E1000_RXD_ERR_FRAME_ERR_MASK ( \ | 98 | #define E1000_RXD_ERR_FRAME_ERR_MASK ( \ |
99 | E1000_RXD_ERR_CE | \ | 99 | E1000_RXD_ERR_CE | \ |
100 | E1000_RXD_ERR_SE | \ | 100 | E1000_RXD_ERR_SE | \ |
101 | E1000_RXD_ERR_SEQ | \ | 101 | E1000_RXD_ERR_SEQ | \ |
102 | E1000_RXD_ERR_CXE | \ | 102 | E1000_RXD_ERR_CXE | \ |
103 | E1000_RXD_ERR_RXE) | 103 | E1000_RXD_ERR_RXE) |
104 | 104 | ||
105 | /* Same mask, but for extended and packet split descriptors */ | 105 | /* Same mask, but for extended and packet split descriptors */ |
106 | #define E1000_RXDEXT_ERR_FRAME_ERR_MASK ( \ | 106 | #define E1000_RXDEXT_ERR_FRAME_ERR_MASK ( \ |
107 | E1000_RXDEXT_STATERR_CE | \ | 107 | E1000_RXDEXT_STATERR_CE | \ |
108 | E1000_RXDEXT_STATERR_SE | \ | 108 | E1000_RXDEXT_STATERR_SE | \ |
109 | E1000_RXDEXT_STATERR_SEQ | \ | 109 | E1000_RXDEXT_STATERR_SEQ | \ |
110 | E1000_RXDEXT_STATERR_CXE | \ | 110 | E1000_RXDEXT_STATERR_CXE | \ |
111 | E1000_RXDEXT_STATERR_RXE) | 111 | E1000_RXDEXT_STATERR_RXE) |
112 | 112 | ||
113 | #define E1000_MRQC_RSS_FIELD_MASK 0xFFFF0000 | 113 | #define E1000_MRQC_RSS_FIELD_MASK 0xFFFF0000 |
114 | #define E1000_MRQC_RSS_FIELD_IPV4_TCP 0x00010000 | 114 | #define E1000_MRQC_RSS_FIELD_IPV4_TCP 0x00010000 |
@@ -253,14 +253,15 @@ | |||
253 | #define ADVERTISE_1000_FULL 0x0020 | 253 | #define ADVERTISE_1000_FULL 0x0020 |
254 | 254 | ||
255 | /* 1000/H is not supported, nor spec-compliant. */ | 255 | /* 1000/H is not supported, nor spec-compliant. */ |
256 | #define E1000_ALL_SPEED_DUPLEX ( ADVERTISE_10_HALF | ADVERTISE_10_FULL | \ | 256 | #define E1000_ALL_SPEED_DUPLEX ( \ |
257 | ADVERTISE_100_HALF | ADVERTISE_100_FULL | \ | 257 | ADVERTISE_10_HALF | ADVERTISE_10_FULL | ADVERTISE_100_HALF | \ |
258 | ADVERTISE_1000_FULL) | 258 | ADVERTISE_100_FULL | ADVERTISE_1000_FULL) |
259 | #define E1000_ALL_NOT_GIG ( ADVERTISE_10_HALF | ADVERTISE_10_FULL | \ | 259 | #define E1000_ALL_NOT_GIG ( \ |
260 | ADVERTISE_100_HALF | ADVERTISE_100_FULL) | 260 | ADVERTISE_10_HALF | ADVERTISE_10_FULL | ADVERTISE_100_HALF | \ |
261 | #define E1000_ALL_100_SPEED (ADVERTISE_100_HALF | ADVERTISE_100_FULL) | 261 | ADVERTISE_100_FULL) |
262 | #define E1000_ALL_10_SPEED (ADVERTISE_10_HALF | ADVERTISE_10_FULL) | 262 | #define E1000_ALL_100_SPEED (ADVERTISE_100_HALF | ADVERTISE_100_FULL) |
263 | #define E1000_ALL_HALF_DUPLEX (ADVERTISE_10_HALF | ADVERTISE_100_HALF) | 263 | #define E1000_ALL_10_SPEED (ADVERTISE_10_HALF | ADVERTISE_10_FULL) |
264 | #define E1000_ALL_HALF_DUPLEX (ADVERTISE_10_HALF | ADVERTISE_100_HALF) | ||
264 | 265 | ||
265 | #define AUTONEG_ADVERTISE_SPEED_DEFAULT E1000_ALL_SPEED_DUPLEX | 266 | #define AUTONEG_ADVERTISE_SPEED_DEFAULT E1000_ALL_SPEED_DUPLEX |
266 | 267 | ||
@@ -422,11 +423,11 @@ | |||
422 | * o LSC = Link Status Change | 423 | * o LSC = Link Status Change |
423 | */ | 424 | */ |
424 | #define IMS_ENABLE_MASK ( \ | 425 | #define IMS_ENABLE_MASK ( \ |
425 | E1000_IMS_RXT0 | \ | 426 | E1000_IMS_RXT0 | \ |
426 | E1000_IMS_TXDW | \ | 427 | E1000_IMS_TXDW | \ |
427 | E1000_IMS_RXDMT0 | \ | 428 | E1000_IMS_RXDMT0 | \ |
428 | E1000_IMS_RXSEQ | \ | 429 | E1000_IMS_RXSEQ | \ |
429 | E1000_IMS_LSC) | 430 | E1000_IMS_LSC) |
430 | 431 | ||
431 | /* Interrupt Mask Set */ | 432 | /* Interrupt Mask Set */ |
432 | #define E1000_IMS_TXDW E1000_ICR_TXDW /* Transmit desc written back */ | 433 | #define E1000_IMS_TXDW E1000_ICR_TXDW /* Transmit desc written back */ |
diff --git a/drivers/net/ethernet/intel/e1000e/ich8lan.c b/drivers/net/ethernet/intel/e1000e/ich8lan.c index 58547b8abe3d..2ca6f2f502ea 100644 --- a/drivers/net/ethernet/intel/e1000e/ich8lan.c +++ b/drivers/net/ethernet/intel/e1000e/ich8lan.c | |||
@@ -4507,7 +4507,7 @@ static const struct e1000_mac_operations ich8_mac_ops = { | |||
4507 | .reset_hw = e1000_reset_hw_ich8lan, | 4507 | .reset_hw = e1000_reset_hw_ich8lan, |
4508 | .init_hw = e1000_init_hw_ich8lan, | 4508 | .init_hw = e1000_init_hw_ich8lan, |
4509 | .setup_link = e1000_setup_link_ich8lan, | 4509 | .setup_link = e1000_setup_link_ich8lan, |
4510 | .setup_physical_interface= e1000_setup_copper_link_ich8lan, | 4510 | .setup_physical_interface = e1000_setup_copper_link_ich8lan, |
4511 | /* id_led_init dependent on mac type */ | 4511 | /* id_led_init dependent on mac type */ |
4512 | .config_collision_dist = e1000e_config_collision_dist_generic, | 4512 | .config_collision_dist = e1000e_config_collision_dist_generic, |
4513 | .rar_set = e1000e_rar_set_generic, | 4513 | .rar_set = e1000e_rar_set_generic, |
@@ -4529,7 +4529,7 @@ static const struct e1000_phy_operations ich8_phy_ops = { | |||
4529 | 4529 | ||
4530 | static const struct e1000_nvm_operations ich8_nvm_ops = { | 4530 | static const struct e1000_nvm_operations ich8_nvm_ops = { |
4531 | .acquire = e1000_acquire_nvm_ich8lan, | 4531 | .acquire = e1000_acquire_nvm_ich8lan, |
4532 | .read = e1000_read_nvm_ich8lan, | 4532 | .read = e1000_read_nvm_ich8lan, |
4533 | .release = e1000_release_nvm_ich8lan, | 4533 | .release = e1000_release_nvm_ich8lan, |
4534 | .reload = e1000e_reload_nvm_generic, | 4534 | .reload = e1000e_reload_nvm_generic, |
4535 | .update = e1000_update_nvm_checksum_ich8lan, | 4535 | .update = e1000_update_nvm_checksum_ich8lan, |
diff --git a/drivers/net/ethernet/intel/e1000e/mac.c b/drivers/net/ethernet/intel/e1000e/mac.c index 0709f49f0335..5992eefca54e 100644 --- a/drivers/net/ethernet/intel/e1000e/mac.c +++ b/drivers/net/ethernet/intel/e1000e/mac.c | |||
@@ -1074,8 +1074,8 @@ s32 e1000e_config_fc_after_link_up(struct e1000_hw *hw) | |||
1074 | ret_val = e1e_rphy(hw, PHY_AUTONEG_ADV, &mii_nway_adv_reg); | 1074 | ret_val = e1e_rphy(hw, PHY_AUTONEG_ADV, &mii_nway_adv_reg); |
1075 | if (ret_val) | 1075 | if (ret_val) |
1076 | return ret_val; | 1076 | return ret_val; |
1077 | ret_val = | 1077 | ret_val = e1e_rphy(hw, PHY_LP_ABILITY, |
1078 | e1e_rphy(hw, PHY_LP_ABILITY, &mii_nway_lp_ability_reg); | 1078 | &mii_nway_lp_ability_reg); |
1079 | if (ret_val) | 1079 | if (ret_val) |
1080 | return ret_val; | 1080 | return ret_val; |
1081 | 1081 | ||
diff --git a/drivers/net/ethernet/intel/e1000e/netdev.c b/drivers/net/ethernet/intel/e1000e/netdev.c index 46a38a4d8da5..e878dbfb9096 100644 --- a/drivers/net/ethernet/intel/e1000e/netdev.c +++ b/drivers/net/ethernet/intel/e1000e/netdev.c | |||
@@ -6571,8 +6571,8 @@ static int e1000_probe(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
6571 | } | 6571 | } |
6572 | 6572 | ||
6573 | err = pci_request_selected_regions_exclusive(pdev, | 6573 | err = pci_request_selected_regions_exclusive(pdev, |
6574 | pci_select_bars(pdev, IORESOURCE_MEM), | 6574 | pci_select_bars(pdev, IORESOURCE_MEM), |
6575 | e1000e_driver_name); | 6575 | e1000e_driver_name); |
6576 | if (err) | 6576 | if (err) |
6577 | goto err_pci_reg; | 6577 | goto err_pci_reg; |
6578 | 6578 | ||
diff --git a/drivers/net/ethernet/intel/e1000e/param.c b/drivers/net/ethernet/intel/e1000e/param.c index 19c40d6f53cc..98da75dff936 100644 --- a/drivers/net/ethernet/intel/e1000e/param.c +++ b/drivers/net/ethernet/intel/e1000e/param.c | |||
@@ -53,8 +53,7 @@ MODULE_PARM_DESC(copybreak, | |||
53 | */ | 53 | */ |
54 | #define E1000_PARAM_INIT { [0 ... E1000_MAX_NIC] = OPTION_UNSET } | 54 | #define E1000_PARAM_INIT { [0 ... E1000_MAX_NIC] = OPTION_UNSET } |
55 | #define E1000_PARAM(X, desc) \ | 55 | #define E1000_PARAM(X, desc) \ |
56 | static int X[E1000_MAX_NIC+1] \ | 56 | static int X[E1000_MAX_NIC+1] = E1000_PARAM_INIT; \ |
57 | = E1000_PARAM_INIT; \ | ||
58 | static unsigned int num_##X; \ | 57 | static unsigned int num_##X; \ |
59 | module_param_array_named(X, X, int, &num_##X, 0); \ | 58 | module_param_array_named(X, X, int, &num_##X, 0); \ |
60 | MODULE_PARM_DESC(X, desc); | 59 | MODULE_PARM_DESC(X, desc); |