diff options
-rw-r--r-- | drivers/net/enic/enic_main.c | 6 | ||||
-rw-r--r-- | drivers/net/enic/vnic_dev.c | 10 | ||||
-rw-r--r-- | drivers/net/enic/vnic_dev.h | 7 | ||||
-rw-r--r-- | drivers/net/enic/vnic_rq.c | 2 | ||||
-rw-r--r-- | drivers/net/enic/vnic_rq.h | 4 | ||||
-rw-r--r-- | drivers/net/enic/vnic_wq.c | 2 | ||||
-rw-r--r-- | drivers/net/enic/vnic_wq.h | 4 |
7 files changed, 10 insertions, 25 deletions
diff --git a/drivers/net/enic/enic_main.c b/drivers/net/enic/enic_main.c index 711077a2e345..a1f92f193976 100644 --- a/drivers/net/enic/enic_main.c +++ b/drivers/net/enic/enic_main.c | |||
@@ -1972,7 +1972,7 @@ static int enic_dev_hang_notify(struct enic *enic) | |||
1972 | return err; | 1972 | return err; |
1973 | } | 1973 | } |
1974 | 1974 | ||
1975 | int enic_dev_set_ig_vlan_rewrite_mode(struct enic *enic) | 1975 | static int enic_dev_set_ig_vlan_rewrite_mode(struct enic *enic) |
1976 | { | 1976 | { |
1977 | int err; | 1977 | int err; |
1978 | 1978 | ||
@@ -2147,14 +2147,14 @@ static const struct net_device_ops enic_netdev_ops = { | |||
2147 | #endif | 2147 | #endif |
2148 | }; | 2148 | }; |
2149 | 2149 | ||
2150 | void enic_dev_deinit(struct enic *enic) | 2150 | static void enic_dev_deinit(struct enic *enic) |
2151 | { | 2151 | { |
2152 | netif_napi_del(&enic->napi); | 2152 | netif_napi_del(&enic->napi); |
2153 | enic_free_vnic_resources(enic); | 2153 | enic_free_vnic_resources(enic); |
2154 | enic_clear_intr_mode(enic); | 2154 | enic_clear_intr_mode(enic); |
2155 | } | 2155 | } |
2156 | 2156 | ||
2157 | int enic_dev_init(struct enic *enic) | 2157 | static int enic_dev_init(struct enic *enic) |
2158 | { | 2158 | { |
2159 | struct device *dev = enic_get_dev(enic); | 2159 | struct device *dev = enic_get_dev(enic); |
2160 | struct net_device *netdev = enic->netdev; | 2160 | struct net_device *netdev = enic->netdev; |
diff --git a/drivers/net/enic/vnic_dev.c b/drivers/net/enic/vnic_dev.c index f99ddeed1c4f..11dc8f73e4be 100644 --- a/drivers/net/enic/vnic_dev.c +++ b/drivers/net/enic/vnic_dev.c | |||
@@ -186,7 +186,7 @@ void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, | |||
186 | } | 186 | } |
187 | } | 187 | } |
188 | 188 | ||
189 | unsigned int vnic_dev_desc_ring_size(struct vnic_dev_ring *ring, | 189 | static unsigned int vnic_dev_desc_ring_size(struct vnic_dev_ring *ring, |
190 | unsigned int desc_count, unsigned int desc_size) | 190 | unsigned int desc_count, unsigned int desc_size) |
191 | { | 191 | { |
192 | /* The base address of the desc rings must be 512 byte aligned. | 192 | /* The base address of the desc rings must be 512 byte aligned. |
@@ -525,14 +525,14 @@ int vnic_dev_open_done(struct vnic_dev *vdev, int *done) | |||
525 | return 0; | 525 | return 0; |
526 | } | 526 | } |
527 | 527 | ||
528 | int vnic_dev_soft_reset(struct vnic_dev *vdev, int arg) | 528 | static int vnic_dev_soft_reset(struct vnic_dev *vdev, int arg) |
529 | { | 529 | { |
530 | u64 a0 = (u32)arg, a1 = 0; | 530 | u64 a0 = (u32)arg, a1 = 0; |
531 | int wait = 1000; | 531 | int wait = 1000; |
532 | return vnic_dev_cmd(vdev, CMD_SOFT_RESET, &a0, &a1, wait); | 532 | return vnic_dev_cmd(vdev, CMD_SOFT_RESET, &a0, &a1, wait); |
533 | } | 533 | } |
534 | 534 | ||
535 | int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done) | 535 | static int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done) |
536 | { | 536 | { |
537 | u64 a0 = 0, a1 = 0; | 537 | u64 a0 = 0, a1 = 0; |
538 | int wait = 1000; | 538 | int wait = 1000; |
@@ -681,7 +681,7 @@ int vnic_dev_set_ig_vlan_rewrite_mode(struct vnic_dev *vdev, | |||
681 | return err; | 681 | return err; |
682 | } | 682 | } |
683 | 683 | ||
684 | int vnic_dev_notify_setcmd(struct vnic_dev *vdev, | 684 | static int vnic_dev_notify_setcmd(struct vnic_dev *vdev, |
685 | void *notify_addr, dma_addr_t notify_pa, u16 intr) | 685 | void *notify_addr, dma_addr_t notify_pa, u16 intr) |
686 | { | 686 | { |
687 | u64 a0, a1; | 687 | u64 a0, a1; |
@@ -720,7 +720,7 @@ int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr) | |||
720 | return vnic_dev_notify_setcmd(vdev, notify_addr, notify_pa, intr); | 720 | return vnic_dev_notify_setcmd(vdev, notify_addr, notify_pa, intr); |
721 | } | 721 | } |
722 | 722 | ||
723 | int vnic_dev_notify_unsetcmd(struct vnic_dev *vdev) | 723 | static int vnic_dev_notify_unsetcmd(struct vnic_dev *vdev) |
724 | { | 724 | { |
725 | u64 a0, a1; | 725 | u64 a0, a1; |
726 | int wait = 1000; | 726 | int wait = 1000; |
diff --git a/drivers/net/enic/vnic_dev.h b/drivers/net/enic/vnic_dev.h index 008304b966a4..3f0014312080 100644 --- a/drivers/net/enic/vnic_dev.h +++ b/drivers/net/enic/vnic_dev.h | |||
@@ -84,8 +84,6 @@ unsigned int vnic_dev_get_res_count(struct vnic_dev *vdev, | |||
84 | enum vnic_res_type type); | 84 | enum vnic_res_type type); |
85 | void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, | 85 | void __iomem *vnic_dev_get_res(struct vnic_dev *vdev, enum vnic_res_type type, |
86 | unsigned int index); | 86 | unsigned int index); |
87 | unsigned int vnic_dev_desc_ring_size(struct vnic_dev_ring *ring, | ||
88 | unsigned int desc_count, unsigned int desc_size); | ||
89 | void vnic_dev_clear_desc_ring(struct vnic_dev_ring *ring); | 87 | void vnic_dev_clear_desc_ring(struct vnic_dev_ring *ring); |
90 | int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, | 88 | int vnic_dev_alloc_desc_ring(struct vnic_dev *vdev, struct vnic_dev_ring *ring, |
91 | unsigned int desc_count, unsigned int desc_size); | 89 | unsigned int desc_count, unsigned int desc_size); |
@@ -106,10 +104,7 @@ int vnic_dev_packet_filter(struct vnic_dev *vdev, int directed, int multicast, | |||
106 | int vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr); | 104 | int vnic_dev_add_addr(struct vnic_dev *vdev, u8 *addr); |
107 | int vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr); | 105 | int vnic_dev_del_addr(struct vnic_dev *vdev, u8 *addr); |
108 | int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr); | 106 | int vnic_dev_mac_addr(struct vnic_dev *vdev, u8 *mac_addr); |
109 | int vnic_dev_notify_setcmd(struct vnic_dev *vdev, | ||
110 | void *notify_addr, dma_addr_t notify_pa, u16 intr); | ||
111 | int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr); | 107 | int vnic_dev_notify_set(struct vnic_dev *vdev, u16 intr); |
112 | int vnic_dev_notify_unsetcmd(struct vnic_dev *vdev); | ||
113 | int vnic_dev_notify_unset(struct vnic_dev *vdev); | 108 | int vnic_dev_notify_unset(struct vnic_dev *vdev); |
114 | int vnic_dev_link_status(struct vnic_dev *vdev); | 109 | int vnic_dev_link_status(struct vnic_dev *vdev); |
115 | u32 vnic_dev_port_speed(struct vnic_dev *vdev); | 110 | u32 vnic_dev_port_speed(struct vnic_dev *vdev); |
@@ -124,8 +119,6 @@ int vnic_dev_init(struct vnic_dev *vdev, int arg); | |||
124 | int vnic_dev_init_done(struct vnic_dev *vdev, int *done, int *err); | 119 | int vnic_dev_init_done(struct vnic_dev *vdev, int *done, int *err); |
125 | int vnic_dev_init_prov(struct vnic_dev *vdev, u8 *buf, u32 len); | 120 | int vnic_dev_init_prov(struct vnic_dev *vdev, u8 *buf, u32 len); |
126 | int vnic_dev_deinit(struct vnic_dev *vdev); | 121 | int vnic_dev_deinit(struct vnic_dev *vdev); |
127 | int vnic_dev_soft_reset(struct vnic_dev *vdev, int arg); | ||
128 | int vnic_dev_soft_reset_done(struct vnic_dev *vdev, int *done); | ||
129 | int vnic_dev_hang_reset(struct vnic_dev *vdev, int arg); | 122 | int vnic_dev_hang_reset(struct vnic_dev *vdev, int arg); |
130 | int vnic_dev_hang_reset_done(struct vnic_dev *vdev, int *done); | 123 | int vnic_dev_hang_reset_done(struct vnic_dev *vdev, int *done); |
131 | void vnic_dev_set_intr_mode(struct vnic_dev *vdev, | 124 | void vnic_dev_set_intr_mode(struct vnic_dev *vdev, |
diff --git a/drivers/net/enic/vnic_rq.c b/drivers/net/enic/vnic_rq.c index b236d7cbc137..34105e0951a5 100644 --- a/drivers/net/enic/vnic_rq.c +++ b/drivers/net/enic/vnic_rq.c | |||
@@ -115,7 +115,7 @@ int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, | |||
115 | return 0; | 115 | return 0; |
116 | } | 116 | } |
117 | 117 | ||
118 | void vnic_rq_init_start(struct vnic_rq *rq, unsigned int cq_index, | 118 | static void vnic_rq_init_start(struct vnic_rq *rq, unsigned int cq_index, |
119 | unsigned int fetch_index, unsigned int posted_index, | 119 | unsigned int fetch_index, unsigned int posted_index, |
120 | unsigned int error_interrupt_enable, | 120 | unsigned int error_interrupt_enable, |
121 | unsigned int error_interrupt_offset) | 121 | unsigned int error_interrupt_offset) |
diff --git a/drivers/net/enic/vnic_rq.h b/drivers/net/enic/vnic_rq.h index 4b6f0212c8a2..37f08de2454a 100644 --- a/drivers/net/enic/vnic_rq.h +++ b/drivers/net/enic/vnic_rq.h | |||
@@ -202,10 +202,6 @@ static inline int vnic_rq_fill(struct vnic_rq *rq, | |||
202 | void vnic_rq_free(struct vnic_rq *rq); | 202 | void vnic_rq_free(struct vnic_rq *rq); |
203 | int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, | 203 | int vnic_rq_alloc(struct vnic_dev *vdev, struct vnic_rq *rq, unsigned int index, |
204 | unsigned int desc_count, unsigned int desc_size); | 204 | unsigned int desc_count, unsigned int desc_size); |
205 | void vnic_rq_init_start(struct vnic_rq *rq, unsigned int cq_index, | ||
206 | unsigned int fetch_index, unsigned int posted_index, | ||
207 | unsigned int error_interrupt_enable, | ||
208 | unsigned int error_interrupt_offset); | ||
209 | void vnic_rq_init(struct vnic_rq *rq, unsigned int cq_index, | 205 | void vnic_rq_init(struct vnic_rq *rq, unsigned int cq_index, |
210 | unsigned int error_interrupt_enable, | 206 | unsigned int error_interrupt_enable, |
211 | unsigned int error_interrupt_offset); | 207 | unsigned int error_interrupt_offset); |
diff --git a/drivers/net/enic/vnic_wq.c b/drivers/net/enic/vnic_wq.c index 4b2a6c6a569b..df61bd932ea6 100644 --- a/drivers/net/enic/vnic_wq.c +++ b/drivers/net/enic/vnic_wq.c | |||
@@ -115,7 +115,7 @@ int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, | |||
115 | return 0; | 115 | return 0; |
116 | } | 116 | } |
117 | 117 | ||
118 | void vnic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index, | 118 | static void vnic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index, |
119 | unsigned int fetch_index, unsigned int posted_index, | 119 | unsigned int fetch_index, unsigned int posted_index, |
120 | unsigned int error_interrupt_enable, | 120 | unsigned int error_interrupt_enable, |
121 | unsigned int error_interrupt_offset) | 121 | unsigned int error_interrupt_offset) |
diff --git a/drivers/net/enic/vnic_wq.h b/drivers/net/enic/vnic_wq.h index 94ac4621acc5..7dd937ac11c2 100644 --- a/drivers/net/enic/vnic_wq.h +++ b/drivers/net/enic/vnic_wq.h | |||
@@ -153,10 +153,6 @@ static inline void vnic_wq_service(struct vnic_wq *wq, | |||
153 | void vnic_wq_free(struct vnic_wq *wq); | 153 | void vnic_wq_free(struct vnic_wq *wq); |
154 | int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, | 154 | int vnic_wq_alloc(struct vnic_dev *vdev, struct vnic_wq *wq, unsigned int index, |
155 | unsigned int desc_count, unsigned int desc_size); | 155 | unsigned int desc_count, unsigned int desc_size); |
156 | void vnic_wq_init_start(struct vnic_wq *wq, unsigned int cq_index, | ||
157 | unsigned int fetch_index, unsigned int posted_index, | ||
158 | unsigned int error_interrupt_enable, | ||
159 | unsigned int error_interrupt_offset); | ||
160 | void vnic_wq_init(struct vnic_wq *wq, unsigned int cq_index, | 156 | void vnic_wq_init(struct vnic_wq *wq, unsigned int cq_index, |
161 | unsigned int error_interrupt_enable, | 157 | unsigned int error_interrupt_enable, |
162 | unsigned int error_interrupt_offset); | 158 | unsigned int error_interrupt_offset); |