diff options
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r-- | drivers/net/e1000/e1000_main.c | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/drivers/net/e1000/e1000_main.c b/drivers/net/e1000/e1000_main.c index 8de9f9affae4..5e7b4ee42ed9 100644 --- a/drivers/net/e1000/e1000_main.c +++ b/drivers/net/e1000/e1000_main.c | |||
@@ -208,8 +208,8 @@ static void e1000_leave_82542_rst(struct e1000_adapter *adapter); | |||
208 | static void e1000_tx_timeout(struct net_device *dev); | 208 | static void e1000_tx_timeout(struct net_device *dev); |
209 | static void e1000_reset_task(struct net_device *dev); | 209 | static void e1000_reset_task(struct net_device *dev); |
210 | static void e1000_smartspeed(struct e1000_adapter *adapter); | 210 | static void e1000_smartspeed(struct e1000_adapter *adapter); |
211 | static inline int e1000_82547_fifo_workaround(struct e1000_adapter *adapter, | 211 | static int e1000_82547_fifo_workaround(struct e1000_adapter *adapter, |
212 | struct sk_buff *skb); | 212 | struct sk_buff *skb); |
213 | 213 | ||
214 | static void e1000_vlan_rx_register(struct net_device *netdev, struct vlan_group *grp); | 214 | static void e1000_vlan_rx_register(struct net_device *netdev, struct vlan_group *grp); |
215 | static void e1000_vlan_rx_add_vid(struct net_device *netdev, uint16_t vid); | 215 | static void e1000_vlan_rx_add_vid(struct net_device *netdev, uint16_t vid); |
@@ -291,7 +291,7 @@ module_exit(e1000_exit_module); | |||
291 | * @adapter: board private structure | 291 | * @adapter: board private structure |
292 | **/ | 292 | **/ |
293 | 293 | ||
294 | static inline void | 294 | static void |
295 | e1000_irq_disable(struct e1000_adapter *adapter) | 295 | e1000_irq_disable(struct e1000_adapter *adapter) |
296 | { | 296 | { |
297 | atomic_inc(&adapter->irq_sem); | 297 | atomic_inc(&adapter->irq_sem); |
@@ -305,7 +305,7 @@ e1000_irq_disable(struct e1000_adapter *adapter) | |||
305 | * @adapter: board private structure | 305 | * @adapter: board private structure |
306 | **/ | 306 | **/ |
307 | 307 | ||
308 | static inline void | 308 | static void |
309 | e1000_irq_enable(struct e1000_adapter *adapter) | 309 | e1000_irq_enable(struct e1000_adapter *adapter) |
310 | { | 310 | { |
311 | if (likely(atomic_dec_and_test(&adapter->irq_sem))) { | 311 | if (likely(atomic_dec_and_test(&adapter->irq_sem))) { |
@@ -349,7 +349,7 @@ e1000_update_mng_vlan(struct e1000_adapter *adapter) | |||
349 | * | 349 | * |
350 | **/ | 350 | **/ |
351 | 351 | ||
352 | static inline void | 352 | static void |
353 | e1000_release_hw_control(struct e1000_adapter *adapter) | 353 | e1000_release_hw_control(struct e1000_adapter *adapter) |
354 | { | 354 | { |
355 | uint32_t ctrl_ext; | 355 | uint32_t ctrl_ext; |
@@ -384,7 +384,7 @@ e1000_release_hw_control(struct e1000_adapter *adapter) | |||
384 | * | 384 | * |
385 | **/ | 385 | **/ |
386 | 386 | ||
387 | static inline void | 387 | static void |
388 | e1000_get_hw_control(struct e1000_adapter *adapter) | 388 | e1000_get_hw_control(struct e1000_adapter *adapter) |
389 | { | 389 | { |
390 | uint32_t ctrl_ext; | 390 | uint32_t ctrl_ext; |
@@ -1181,7 +1181,7 @@ e1000_close(struct net_device *netdev) | |||
1181 | * @start: address of beginning of memory | 1181 | * @start: address of beginning of memory |
1182 | * @len: length of memory | 1182 | * @len: length of memory |
1183 | **/ | 1183 | **/ |
1184 | static inline boolean_t | 1184 | static boolean_t |
1185 | e1000_check_64k_bound(struct e1000_adapter *adapter, | 1185 | e1000_check_64k_bound(struct e1000_adapter *adapter, |
1186 | void *start, unsigned long len) | 1186 | void *start, unsigned long len) |
1187 | { | 1187 | { |
@@ -1807,7 +1807,7 @@ e1000_free_all_tx_resources(struct e1000_adapter *adapter) | |||
1807 | e1000_free_tx_resources(adapter, &adapter->tx_ring[i]); | 1807 | e1000_free_tx_resources(adapter, &adapter->tx_ring[i]); |
1808 | } | 1808 | } |
1809 | 1809 | ||
1810 | static inline void | 1810 | static void |
1811 | e1000_unmap_and_free_tx_resource(struct e1000_adapter *adapter, | 1811 | e1000_unmap_and_free_tx_resource(struct e1000_adapter *adapter, |
1812 | struct e1000_buffer *buffer_info) | 1812 | struct e1000_buffer *buffer_info) |
1813 | { | 1813 | { |
@@ -2400,7 +2400,7 @@ e1000_watchdog_task(struct e1000_adapter *adapter) | |||
2400 | #define E1000_TX_FLAGS_VLAN_MASK 0xffff0000 | 2400 | #define E1000_TX_FLAGS_VLAN_MASK 0xffff0000 |
2401 | #define E1000_TX_FLAGS_VLAN_SHIFT 16 | 2401 | #define E1000_TX_FLAGS_VLAN_SHIFT 16 |
2402 | 2402 | ||
2403 | static inline int | 2403 | static int |
2404 | e1000_tso(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, | 2404 | e1000_tso(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, |
2405 | struct sk_buff *skb) | 2405 | struct sk_buff *skb) |
2406 | { | 2406 | { |
@@ -2480,7 +2480,7 @@ e1000_tso(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, | |||
2480 | return FALSE; | 2480 | return FALSE; |
2481 | } | 2481 | } |
2482 | 2482 | ||
2483 | static inline boolean_t | 2483 | static boolean_t |
2484 | e1000_tx_csum(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, | 2484 | e1000_tx_csum(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, |
2485 | struct sk_buff *skb) | 2485 | struct sk_buff *skb) |
2486 | { | 2486 | { |
@@ -2516,7 +2516,7 @@ e1000_tx_csum(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, | |||
2516 | #define E1000_MAX_TXD_PWR 12 | 2516 | #define E1000_MAX_TXD_PWR 12 |
2517 | #define E1000_MAX_DATA_PER_TXD (1<<E1000_MAX_TXD_PWR) | 2517 | #define E1000_MAX_DATA_PER_TXD (1<<E1000_MAX_TXD_PWR) |
2518 | 2518 | ||
2519 | static inline int | 2519 | static int |
2520 | e1000_tx_map(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, | 2520 | e1000_tx_map(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, |
2521 | struct sk_buff *skb, unsigned int first, unsigned int max_per_txd, | 2521 | struct sk_buff *skb, unsigned int first, unsigned int max_per_txd, |
2522 | unsigned int nr_frags, unsigned int mss) | 2522 | unsigned int nr_frags, unsigned int mss) |
@@ -2625,7 +2625,7 @@ e1000_tx_map(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, | |||
2625 | return count; | 2625 | return count; |
2626 | } | 2626 | } |
2627 | 2627 | ||
2628 | static inline void | 2628 | static void |
2629 | e1000_tx_queue(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, | 2629 | e1000_tx_queue(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, |
2630 | int tx_flags, int count) | 2630 | int tx_flags, int count) |
2631 | { | 2631 | { |
@@ -2689,7 +2689,7 @@ e1000_tx_queue(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, | |||
2689 | #define E1000_FIFO_HDR 0x10 | 2689 | #define E1000_FIFO_HDR 0x10 |
2690 | #define E1000_82547_PAD_LEN 0x3E0 | 2690 | #define E1000_82547_PAD_LEN 0x3E0 |
2691 | 2691 | ||
2692 | static inline int | 2692 | static int |
2693 | e1000_82547_fifo_workaround(struct e1000_adapter *adapter, struct sk_buff *skb) | 2693 | e1000_82547_fifo_workaround(struct e1000_adapter *adapter, struct sk_buff *skb) |
2694 | { | 2694 | { |
2695 | uint32_t fifo_space = adapter->tx_fifo_size - adapter->tx_fifo_head; | 2695 | uint32_t fifo_space = adapter->tx_fifo_size - adapter->tx_fifo_head; |
@@ -2716,7 +2716,7 @@ no_fifo_stall_required: | |||
2716 | } | 2716 | } |
2717 | 2717 | ||
2718 | #define MINIMUM_DHCP_PACKET_SIZE 282 | 2718 | #define MINIMUM_DHCP_PACKET_SIZE 282 |
2719 | static inline int | 2719 | static int |
2720 | e1000_transfer_dhcp_info(struct e1000_adapter *adapter, struct sk_buff *skb) | 2720 | e1000_transfer_dhcp_info(struct e1000_adapter *adapter, struct sk_buff *skb) |
2721 | { | 2721 | { |
2722 | struct e1000_hw *hw = &adapter->hw; | 2722 | struct e1000_hw *hw = &adapter->hw; |
@@ -3445,7 +3445,7 @@ e1000_clean_tx_irq(struct e1000_adapter *adapter, | |||
3445 | * @sk_buff: socket buffer with received data | 3445 | * @sk_buff: socket buffer with received data |
3446 | **/ | 3446 | **/ |
3447 | 3447 | ||
3448 | static inline void | 3448 | static void |
3449 | e1000_rx_checksum(struct e1000_adapter *adapter, | 3449 | e1000_rx_checksum(struct e1000_adapter *adapter, |
3450 | uint32_t status_err, uint32_t csum, | 3450 | uint32_t status_err, uint32_t csum, |
3451 | struct sk_buff *skb) | 3451 | struct sk_buff *skb) |