aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/e1000/e1000_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/e1000/e1000_main.c')
-rw-r--r--drivers/net/e1000/e1000_main.c30
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);
208static void e1000_tx_timeout(struct net_device *dev); 208static void e1000_tx_timeout(struct net_device *dev);
209static void e1000_reset_task(struct net_device *dev); 209static void e1000_reset_task(struct net_device *dev);
210static void e1000_smartspeed(struct e1000_adapter *adapter); 210static void e1000_smartspeed(struct e1000_adapter *adapter);
211static inline int e1000_82547_fifo_workaround(struct e1000_adapter *adapter, 211static int e1000_82547_fifo_workaround(struct e1000_adapter *adapter,
212 struct sk_buff *skb); 212 struct sk_buff *skb);
213 213
214static void e1000_vlan_rx_register(struct net_device *netdev, struct vlan_group *grp); 214static void e1000_vlan_rx_register(struct net_device *netdev, struct vlan_group *grp);
215static void e1000_vlan_rx_add_vid(struct net_device *netdev, uint16_t vid); 215static 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
294static inline void 294static void
295e1000_irq_disable(struct e1000_adapter *adapter) 295e1000_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
308static inline void 308static void
309e1000_irq_enable(struct e1000_adapter *adapter) 309e1000_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
352static inline void 352static void
353e1000_release_hw_control(struct e1000_adapter *adapter) 353e1000_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
387static inline void 387static void
388e1000_get_hw_control(struct e1000_adapter *adapter) 388e1000_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 **/
1184static inline boolean_t 1184static boolean_t
1185e1000_check_64k_bound(struct e1000_adapter *adapter, 1185e1000_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
1810static inline void 1810static void
1811e1000_unmap_and_free_tx_resource(struct e1000_adapter *adapter, 1811e1000_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
2403static inline int 2403static int
2404e1000_tso(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, 2404e1000_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
2483static inline boolean_t 2483static boolean_t
2484e1000_tx_csum(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, 2484e1000_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
2519static inline int 2519static int
2520e1000_tx_map(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, 2520e1000_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
2628static inline void 2628static void
2629e1000_tx_queue(struct e1000_adapter *adapter, struct e1000_tx_ring *tx_ring, 2629e1000_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
2692static inline int 2692static int
2693e1000_82547_fifo_workaround(struct e1000_adapter *adapter, struct sk_buff *skb) 2693e1000_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
2719static inline int 2719static int
2720e1000_transfer_dhcp_info(struct e1000_adapter *adapter, struct sk_buff *skb) 2720e1000_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
3448static inline void 3448static void
3449e1000_rx_checksum(struct e1000_adapter *adapter, 3449e1000_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)