diff options
author | Jeff Kirsher <jeffrey.t.kirsher@intel.com> | 2008-03-28 12:15:11 -0400 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-03-28 22:14:58 -0400 |
commit | e2de3eb69c40c01739ce9b154c65e51d94d72966 (patch) | |
tree | 939a0f1f8d5effedaf0fa88e69d9603ab1bdd0f6 | |
parent | ad68076e07fa01bd0c98278a959d0fd2bb26f1ac (diff) |
e1000e: rename mc_addr_list_update
Rename this function to be consistent with function naming (verb first)
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Auke Kok <auke-jan.h.kok@intel.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
-rw-r--r-- | drivers/net/e1000e/82571.c | 10 | ||||
-rw-r--r-- | drivers/net/e1000e/e1000.h | 8 | ||||
-rw-r--r-- | drivers/net/e1000e/es2lan.c | 2 | ||||
-rw-r--r-- | drivers/net/e1000e/hw.h | 2 | ||||
-rw-r--r-- | drivers/net/e1000e/ich8lan.c | 2 | ||||
-rw-r--r-- | drivers/net/e1000e/lib.c | 8 | ||||
-rw-r--r-- | drivers/net/e1000e/netdev.c | 15 |
7 files changed, 24 insertions, 23 deletions
diff --git a/drivers/net/e1000e/82571.c b/drivers/net/e1000e/82571.c index c58dc2e8de1e..f5a4d40000cd 100644 --- a/drivers/net/e1000e/82571.c +++ b/drivers/net/e1000e/82571.c | |||
@@ -972,7 +972,7 @@ void e1000e_clear_vfta(struct e1000_hw *hw) | |||
972 | } | 972 | } |
973 | 973 | ||
974 | /** | 974 | /** |
975 | * e1000_mc_addr_list_update_82571 - Update Multicast addresses | 975 | * e1000_update_mc_addr_list_82571 - Update Multicast addresses |
976 | * @hw: pointer to the HW structure | 976 | * @hw: pointer to the HW structure |
977 | * @mc_addr_list: array of multicast addresses to program | 977 | * @mc_addr_list: array of multicast addresses to program |
978 | * @mc_addr_count: number of multicast addresses to program | 978 | * @mc_addr_count: number of multicast addresses to program |
@@ -984,7 +984,7 @@ void e1000e_clear_vfta(struct e1000_hw *hw) | |||
984 | * The parameter rar_count will usually be hw->mac.rar_entry_count | 984 | * The parameter rar_count will usually be hw->mac.rar_entry_count |
985 | * unless there are workarounds that change this. | 985 | * unless there are workarounds that change this. |
986 | **/ | 986 | **/ |
987 | static void e1000_mc_addr_list_update_82571(struct e1000_hw *hw, | 987 | static void e1000_update_mc_addr_list_82571(struct e1000_hw *hw, |
988 | u8 *mc_addr_list, | 988 | u8 *mc_addr_list, |
989 | u32 mc_addr_count, | 989 | u32 mc_addr_count, |
990 | u32 rar_used_count, | 990 | u32 rar_used_count, |
@@ -993,8 +993,8 @@ static void e1000_mc_addr_list_update_82571(struct e1000_hw *hw, | |||
993 | if (e1000e_get_laa_state_82571(hw)) | 993 | if (e1000e_get_laa_state_82571(hw)) |
994 | rar_count--; | 994 | rar_count--; |
995 | 995 | ||
996 | e1000e_mc_addr_list_update_generic(hw, mc_addr_list, mc_addr_count, | 996 | e1000e_update_mc_addr_list_generic(hw, mc_addr_list, mc_addr_count, |
997 | rar_used_count, rar_count); | 997 | rar_used_count, rar_count); |
998 | } | 998 | } |
999 | 999 | ||
1000 | /** | 1000 | /** |
@@ -1269,7 +1269,7 @@ static struct e1000_mac_operations e82571_mac_ops = { | |||
1269 | /* .get_link_up_info: media type dependent */ | 1269 | /* .get_link_up_info: media type dependent */ |
1270 | .led_on = e1000e_led_on_generic, | 1270 | .led_on = e1000e_led_on_generic, |
1271 | .led_off = e1000e_led_off_generic, | 1271 | .led_off = e1000e_led_off_generic, |
1272 | .mc_addr_list_update = e1000_mc_addr_list_update_82571, | 1272 | .update_mc_addr_list = e1000_update_mc_addr_list_82571, |
1273 | .reset_hw = e1000_reset_hw_82571, | 1273 | .reset_hw = e1000_reset_hw_82571, |
1274 | .init_hw = e1000_init_hw_82571, | 1274 | .init_hw = e1000_init_hw_82571, |
1275 | .setup_link = e1000_setup_link_82571, | 1275 | .setup_link = e1000_setup_link_82571, |
diff --git a/drivers/net/e1000e/e1000.h b/drivers/net/e1000e/e1000.h index ffba63c95f85..499adb26dc1b 100644 --- a/drivers/net/e1000e/e1000.h +++ b/drivers/net/e1000e/e1000.h | |||
@@ -387,9 +387,11 @@ extern s32 e1000e_copper_link_setup_igp(struct e1000_hw *hw); | |||
387 | extern s32 e1000e_setup_link(struct e1000_hw *hw); | 387 | extern s32 e1000e_setup_link(struct e1000_hw *hw); |
388 | extern void e1000e_clear_vfta(struct e1000_hw *hw); | 388 | extern void e1000e_clear_vfta(struct e1000_hw *hw); |
389 | extern void e1000e_init_rx_addrs(struct e1000_hw *hw, u16 rar_count); | 389 | extern void e1000e_init_rx_addrs(struct e1000_hw *hw, u16 rar_count); |
390 | extern void e1000e_mc_addr_list_update_generic(struct e1000_hw *hw, | 390 | extern void e1000e_update_mc_addr_list_generic(struct e1000_hw *hw, |
391 | u8 *mc_addr_list, u32 mc_addr_count, | 391 | u8 *mc_addr_list, |
392 | u32 rar_used_count, u32 rar_count); | 392 | u32 mc_addr_count, |
393 | u32 rar_used_count, | ||
394 | u32 rar_count); | ||
393 | extern void e1000e_rar_set(struct e1000_hw *hw, u8 *addr, u32 index); | 395 | extern void e1000e_rar_set(struct e1000_hw *hw, u8 *addr, u32 index); |
394 | extern s32 e1000e_set_fc_watermarks(struct e1000_hw *hw); | 396 | extern s32 e1000e_set_fc_watermarks(struct e1000_hw *hw); |
395 | extern void e1000e_set_pcie_no_snoop(struct e1000_hw *hw, u32 no_snoop); | 397 | extern void e1000e_set_pcie_no_snoop(struct e1000_hw *hw, u32 no_snoop); |
diff --git a/drivers/net/e1000e/es2lan.c b/drivers/net/e1000e/es2lan.c index 265775447538..df2782473910 100644 --- a/drivers/net/e1000e/es2lan.c +++ b/drivers/net/e1000e/es2lan.c | |||
@@ -1190,7 +1190,7 @@ static struct e1000_mac_operations es2_mac_ops = { | |||
1190 | .get_link_up_info = e1000_get_link_up_info_80003es2lan, | 1190 | .get_link_up_info = e1000_get_link_up_info_80003es2lan, |
1191 | .led_on = e1000e_led_on_generic, | 1191 | .led_on = e1000e_led_on_generic, |
1192 | .led_off = e1000e_led_off_generic, | 1192 | .led_off = e1000e_led_off_generic, |
1193 | .mc_addr_list_update = e1000e_mc_addr_list_update_generic, | 1193 | .update_mc_addr_list = e1000e_update_mc_addr_list_generic, |
1194 | .reset_hw = e1000_reset_hw_80003es2lan, | 1194 | .reset_hw = e1000_reset_hw_80003es2lan, |
1195 | .init_hw = e1000_init_hw_80003es2lan, | 1195 | .init_hw = e1000_init_hw_80003es2lan, |
1196 | .setup_link = e1000e_setup_link, | 1196 | .setup_link = e1000e_setup_link, |
diff --git a/drivers/net/e1000e/hw.h b/drivers/net/e1000e/hw.h index 2346e2cb32d1..b582d78f0531 100644 --- a/drivers/net/e1000e/hw.h +++ b/drivers/net/e1000e/hw.h | |||
@@ -685,7 +685,7 @@ struct e1000_mac_operations { | |||
685 | s32 (*get_link_up_info)(struct e1000_hw *, u16 *, u16 *); | 685 | s32 (*get_link_up_info)(struct e1000_hw *, u16 *, u16 *); |
686 | s32 (*led_on)(struct e1000_hw *); | 686 | s32 (*led_on)(struct e1000_hw *); |
687 | s32 (*led_off)(struct e1000_hw *); | 687 | s32 (*led_off)(struct e1000_hw *); |
688 | void (*mc_addr_list_update)(struct e1000_hw *, u8 *, u32, u32, u32); | 688 | void (*update_mc_addr_list)(struct e1000_hw *, u8 *, u32, u32, u32); |
689 | s32 (*reset_hw)(struct e1000_hw *); | 689 | s32 (*reset_hw)(struct e1000_hw *); |
690 | s32 (*init_hw)(struct e1000_hw *); | 690 | s32 (*init_hw)(struct e1000_hw *); |
691 | s32 (*setup_link)(struct e1000_hw *); | 691 | s32 (*setup_link)(struct e1000_hw *); |
diff --git a/drivers/net/e1000e/ich8lan.c b/drivers/net/e1000e/ich8lan.c index 844015648110..eed1b449691a 100644 --- a/drivers/net/e1000e/ich8lan.c +++ b/drivers/net/e1000e/ich8lan.c | |||
@@ -2212,7 +2212,7 @@ static struct e1000_mac_operations ich8_mac_ops = { | |||
2212 | .get_link_up_info = e1000_get_link_up_info_ich8lan, | 2212 | .get_link_up_info = e1000_get_link_up_info_ich8lan, |
2213 | .led_on = e1000_led_on_ich8lan, | 2213 | .led_on = e1000_led_on_ich8lan, |
2214 | .led_off = e1000_led_off_ich8lan, | 2214 | .led_off = e1000_led_off_ich8lan, |
2215 | .mc_addr_list_update = e1000e_mc_addr_list_update_generic, | 2215 | .update_mc_addr_list = e1000e_update_mc_addr_list_generic, |
2216 | .reset_hw = e1000_reset_hw_ich8lan, | 2216 | .reset_hw = e1000_reset_hw_ich8lan, |
2217 | .init_hw = e1000_init_hw_ich8lan, | 2217 | .init_hw = e1000_init_hw_ich8lan, |
2218 | .setup_link = e1000_setup_link_ich8lan, | 2218 | .setup_link = e1000_setup_link_ich8lan, |
diff --git a/drivers/net/e1000e/lib.c b/drivers/net/e1000e/lib.c index b7eaff0a20ba..9c3ce719e8da 100644 --- a/drivers/net/e1000e/lib.c +++ b/drivers/net/e1000e/lib.c | |||
@@ -265,7 +265,7 @@ static u32 e1000_hash_mc_addr(struct e1000_hw *hw, u8 *mc_addr) | |||
265 | } | 265 | } |
266 | 266 | ||
267 | /** | 267 | /** |
268 | * e1000e_mc_addr_list_update_generic - Update Multicast addresses | 268 | * e1000e_update_mc_addr_list_generic - Update Multicast addresses |
269 | * @hw: pointer to the HW structure | 269 | * @hw: pointer to the HW structure |
270 | * @mc_addr_list: array of multicast addresses to program | 270 | * @mc_addr_list: array of multicast addresses to program |
271 | * @mc_addr_count: number of multicast addresses to program | 271 | * @mc_addr_count: number of multicast addresses to program |
@@ -277,9 +277,9 @@ static u32 e1000_hash_mc_addr(struct e1000_hw *hw, u8 *mc_addr) | |||
277 | * The parameter rar_count will usually be hw->mac.rar_entry_count | 277 | * The parameter rar_count will usually be hw->mac.rar_entry_count |
278 | * unless there are workarounds that change this. | 278 | * unless there are workarounds that change this. |
279 | **/ | 279 | **/ |
280 | void e1000e_mc_addr_list_update_generic(struct e1000_hw *hw, | 280 | void e1000e_update_mc_addr_list_generic(struct e1000_hw *hw, |
281 | u8 *mc_addr_list, u32 mc_addr_count, | 281 | u8 *mc_addr_list, u32 mc_addr_count, |
282 | u32 rar_used_count, u32 rar_count) | 282 | u32 rar_used_count, u32 rar_count) |
283 | { | 283 | { |
284 | u32 hash_value; | 284 | u32 hash_value; |
285 | u32 i; | 285 | u32 i; |
diff --git a/drivers/net/e1000e/netdev.c b/drivers/net/e1000e/netdev.c index 88fac392d4e0..2e07534c35f7 100644 --- a/drivers/net/e1000e/netdev.c +++ b/drivers/net/e1000e/netdev.c | |||
@@ -1889,7 +1889,7 @@ static void e1000_configure_rx(struct e1000_adapter *adapter) | |||
1889 | } | 1889 | } |
1890 | 1890 | ||
1891 | /** | 1891 | /** |
1892 | * e1000_mc_addr_list_update - Update Multicast addresses | 1892 | * e1000_update_mc_addr_list - Update Multicast addresses |
1893 | * @hw: pointer to the HW structure | 1893 | * @hw: pointer to the HW structure |
1894 | * @mc_addr_list: array of multicast addresses to program | 1894 | * @mc_addr_list: array of multicast addresses to program |
1895 | * @mc_addr_count: number of multicast addresses to program | 1895 | * @mc_addr_count: number of multicast addresses to program |
@@ -1903,11 +1903,11 @@ static void e1000_configure_rx(struct e1000_adapter *adapter) | |||
1903 | * exists and all implementations are handled in the generic version of this | 1903 | * exists and all implementations are handled in the generic version of this |
1904 | * function. | 1904 | * function. |
1905 | **/ | 1905 | **/ |
1906 | static void e1000_mc_addr_list_update(struct e1000_hw *hw, u8 *mc_addr_list, | 1906 | static void e1000_update_mc_addr_list(struct e1000_hw *hw, u8 *mc_addr_list, |
1907 | u32 mc_addr_count, u32 rar_used_count, | 1907 | u32 mc_addr_count, u32 rar_used_count, |
1908 | u32 rar_count) | 1908 | u32 rar_count) |
1909 | { | 1909 | { |
1910 | hw->mac.ops.mc_addr_list_update(hw, mc_addr_list, mc_addr_count, | 1910 | hw->mac.ops.update_mc_addr_list(hw, mc_addr_list, mc_addr_count, |
1911 | rar_used_count, rar_count); | 1911 | rar_used_count, rar_count); |
1912 | } | 1912 | } |
1913 | 1913 | ||
@@ -1961,7 +1961,7 @@ static void e1000_set_multi(struct net_device *netdev) | |||
1961 | mc_ptr = mc_ptr->next; | 1961 | mc_ptr = mc_ptr->next; |
1962 | } | 1962 | } |
1963 | 1963 | ||
1964 | e1000_mc_addr_list_update(hw, mta_list, i, 1, | 1964 | e1000_update_mc_addr_list(hw, mta_list, i, 1, |
1965 | mac->rar_entry_count); | 1965 | mac->rar_entry_count); |
1966 | kfree(mta_list); | 1966 | kfree(mta_list); |
1967 | } else { | 1967 | } else { |
@@ -1969,8 +1969,7 @@ static void e1000_set_multi(struct net_device *netdev) | |||
1969 | * if we're called from probe, we might not have | 1969 | * if we're called from probe, we might not have |
1970 | * anything to do here, so clear out the list | 1970 | * anything to do here, so clear out the list |
1971 | */ | 1971 | */ |
1972 | e1000_mc_addr_list_update(hw, NULL, 0, 1, | 1972 | e1000_update_mc_addr_list(hw, NULL, 0, 1, mac->rar_entry_count); |
1973 | mac->rar_entry_count); | ||
1974 | } | 1973 | } |
1975 | } | 1974 | } |
1976 | 1975 | ||