diff options
Diffstat (limited to 'drivers/net/s2io.c')
-rw-r--r-- | drivers/net/s2io.c | 43 |
1 files changed, 23 insertions, 20 deletions
diff --git a/drivers/net/s2io.c b/drivers/net/s2io.c index 9c4935407f26..9848892643fc 100644 --- a/drivers/net/s2io.c +++ b/drivers/net/s2io.c | |||
@@ -1532,7 +1532,7 @@ static int init_nic(struct s2io_nic *nic) | |||
1532 | #define LINK_UP_DOWN_INTERRUPT 1 | 1532 | #define LINK_UP_DOWN_INTERRUPT 1 |
1533 | #define MAC_RMAC_ERR_TIMER 2 | 1533 | #define MAC_RMAC_ERR_TIMER 2 |
1534 | 1534 | ||
1535 | int s2io_link_fault_indication(nic_t *nic) | 1535 | static int s2io_link_fault_indication(nic_t *nic) |
1536 | { | 1536 | { |
1537 | if (nic->intr_type != INTA) | 1537 | if (nic->intr_type != INTA) |
1538 | return MAC_RMAC_ERR_TIMER; | 1538 | return MAC_RMAC_ERR_TIMER; |
@@ -1864,7 +1864,7 @@ static int verify_xena_quiescence(nic_t *sp, u64 val64, int flag) | |||
1864 | * | 1864 | * |
1865 | */ | 1865 | */ |
1866 | 1866 | ||
1867 | void fix_mac_address(nic_t * sp) | 1867 | static void fix_mac_address(nic_t * sp) |
1868 | { | 1868 | { |
1869 | XENA_dev_config_t __iomem *bar0 = sp->bar0; | 1869 | XENA_dev_config_t __iomem *bar0 = sp->bar0; |
1870 | u64 val64; | 1870 | u64 val64; |
@@ -2162,7 +2162,7 @@ int fill_rxd_3buf(nic_t *nic, RxD_t *rxdp, struct sk_buff *skb) | |||
2162 | * SUCCESS on success or an appropriate -ve value on failure. | 2162 | * SUCCESS on success or an appropriate -ve value on failure. |
2163 | */ | 2163 | */ |
2164 | 2164 | ||
2165 | int fill_rx_buffers(struct s2io_nic *nic, int ring_no) | 2165 | static int fill_rx_buffers(struct s2io_nic *nic, int ring_no) |
2166 | { | 2166 | { |
2167 | struct net_device *dev = nic->dev; | 2167 | struct net_device *dev = nic->dev; |
2168 | struct sk_buff *skb; | 2168 | struct sk_buff *skb; |
@@ -2833,7 +2833,7 @@ static void alarm_intr_handler(struct s2io_nic *nic) | |||
2833 | * SUCCESS on success and FAILURE on failure. | 2833 | * SUCCESS on success and FAILURE on failure. |
2834 | */ | 2834 | */ |
2835 | 2835 | ||
2836 | int wait_for_cmd_complete(nic_t * sp) | 2836 | static int wait_for_cmd_complete(nic_t * sp) |
2837 | { | 2837 | { |
2838 | XENA_dev_config_t __iomem *bar0 = sp->bar0; | 2838 | XENA_dev_config_t __iomem *bar0 = sp->bar0; |
2839 | int ret = FAILURE, cnt = 0; | 2839 | int ret = FAILURE, cnt = 0; |
@@ -3079,7 +3079,7 @@ int s2io_set_swapper(nic_t * sp) | |||
3079 | return SUCCESS; | 3079 | return SUCCESS; |
3080 | } | 3080 | } |
3081 | 3081 | ||
3082 | int wait_for_msix_trans(nic_t *nic, int i) | 3082 | static int wait_for_msix_trans(nic_t *nic, int i) |
3083 | { | 3083 | { |
3084 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; | 3084 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; |
3085 | u64 val64; | 3085 | u64 val64; |
@@ -3118,7 +3118,7 @@ void restore_xmsi_data(nic_t *nic) | |||
3118 | } | 3118 | } |
3119 | } | 3119 | } |
3120 | 3120 | ||
3121 | void store_xmsi_data(nic_t *nic) | 3121 | static void store_xmsi_data(nic_t *nic) |
3122 | { | 3122 | { |
3123 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; | 3123 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; |
3124 | u64 val64, addr, data; | 3124 | u64 val64, addr, data; |
@@ -3290,7 +3290,7 @@ int s2io_enable_msi_x(nic_t *nic) | |||
3290 | * file on failure. | 3290 | * file on failure. |
3291 | */ | 3291 | */ |
3292 | 3292 | ||
3293 | int s2io_open(struct net_device *dev) | 3293 | static int s2io_open(struct net_device *dev) |
3294 | { | 3294 | { |
3295 | nic_t *sp = dev->priv; | 3295 | nic_t *sp = dev->priv; |
3296 | int err = 0; | 3296 | int err = 0; |
@@ -3420,7 +3420,7 @@ hw_init_failed: | |||
3420 | * file on failure. | 3420 | * file on failure. |
3421 | */ | 3421 | */ |
3422 | 3422 | ||
3423 | int s2io_close(struct net_device *dev) | 3423 | static int s2io_close(struct net_device *dev) |
3424 | { | 3424 | { |
3425 | nic_t *sp = dev->priv; | 3425 | nic_t *sp = dev->priv; |
3426 | int i; | 3426 | int i; |
@@ -3469,7 +3469,7 @@ int s2io_close(struct net_device *dev) | |||
3469 | * 0 on success & 1 on failure. | 3469 | * 0 on success & 1 on failure. |
3470 | */ | 3470 | */ |
3471 | 3471 | ||
3472 | int s2io_xmit(struct sk_buff *skb, struct net_device *dev) | 3472 | static int s2io_xmit(struct sk_buff *skb, struct net_device *dev) |
3473 | { | 3473 | { |
3474 | nic_t *sp = dev->priv; | 3474 | nic_t *sp = dev->priv; |
3475 | u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off; | 3475 | u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off; |
@@ -3915,7 +3915,7 @@ static void s2io_updt_stats(nic_t *sp) | |||
3915 | * pointer to the updated net_device_stats structure. | 3915 | * pointer to the updated net_device_stats structure. |
3916 | */ | 3916 | */ |
3917 | 3917 | ||
3918 | struct net_device_stats *s2io_get_stats(struct net_device *dev) | 3918 | static struct net_device_stats *s2io_get_stats(struct net_device *dev) |
3919 | { | 3919 | { |
3920 | nic_t *sp = dev->priv; | 3920 | nic_t *sp = dev->priv; |
3921 | mac_info_t *mac_control; | 3921 | mac_info_t *mac_control; |
@@ -5108,19 +5108,20 @@ static void s2io_get_ethtool_stats(struct net_device *dev, | |||
5108 | tmp_stats[i++] = stat_info->sw_stat.double_ecc_errs; | 5108 | tmp_stats[i++] = stat_info->sw_stat.double_ecc_errs; |
5109 | } | 5109 | } |
5110 | 5110 | ||
5111 | int s2io_ethtool_get_regs_len(struct net_device *dev) | 5111 | static int s2io_ethtool_get_regs_len(struct net_device *dev) |
5112 | { | 5112 | { |
5113 | return (XENA_REG_SPACE); | 5113 | return (XENA_REG_SPACE); |
5114 | } | 5114 | } |
5115 | 5115 | ||
5116 | 5116 | ||
5117 | u32 s2io_ethtool_get_rx_csum(struct net_device * dev) | 5117 | static u32 s2io_ethtool_get_rx_csum(struct net_device * dev) |
5118 | { | 5118 | { |
5119 | nic_t *sp = dev->priv; | 5119 | nic_t *sp = dev->priv; |
5120 | 5120 | ||
5121 | return (sp->rx_csum); | 5121 | return (sp->rx_csum); |
5122 | } | 5122 | } |
5123 | int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) | 5123 | |
5124 | static int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) | ||
5124 | { | 5125 | { |
5125 | nic_t *sp = dev->priv; | 5126 | nic_t *sp = dev->priv; |
5126 | 5127 | ||
@@ -5131,17 +5132,19 @@ int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) | |||
5131 | 5132 | ||
5132 | return 0; | 5133 | return 0; |
5133 | } | 5134 | } |
5134 | int s2io_get_eeprom_len(struct net_device *dev) | 5135 | |
5136 | static int s2io_get_eeprom_len(struct net_device *dev) | ||
5135 | { | 5137 | { |
5136 | return (XENA_EEPROM_SPACE); | 5138 | return (XENA_EEPROM_SPACE); |
5137 | } | 5139 | } |
5138 | 5140 | ||
5139 | int s2io_ethtool_self_test_count(struct net_device *dev) | 5141 | static int s2io_ethtool_self_test_count(struct net_device *dev) |
5140 | { | 5142 | { |
5141 | return (S2IO_TEST_LEN); | 5143 | return (S2IO_TEST_LEN); |
5142 | } | 5144 | } |
5143 | void s2io_ethtool_get_strings(struct net_device *dev, | 5145 | |
5144 | u32 stringset, u8 * data) | 5146 | static void s2io_ethtool_get_strings(struct net_device *dev, |
5147 | u32 stringset, u8 * data) | ||
5145 | { | 5148 | { |
5146 | switch (stringset) { | 5149 | switch (stringset) { |
5147 | case ETH_SS_TEST: | 5150 | case ETH_SS_TEST: |
@@ -5157,7 +5160,7 @@ static int s2io_ethtool_get_stats_count(struct net_device *dev) | |||
5157 | return (S2IO_STAT_LEN); | 5160 | return (S2IO_STAT_LEN); |
5158 | } | 5161 | } |
5159 | 5162 | ||
5160 | int s2io_ethtool_op_set_tx_csum(struct net_device *dev, u32 data) | 5163 | static int s2io_ethtool_op_set_tx_csum(struct net_device *dev, u32 data) |
5161 | { | 5164 | { |
5162 | if (data) | 5165 | if (data) |
5163 | dev->features |= NETIF_F_IP_CSUM; | 5166 | dev->features |= NETIF_F_IP_CSUM; |
@@ -5210,7 +5213,7 @@ static struct ethtool_ops netdev_ethtool_ops = { | |||
5210 | * function always return EOPNOTSUPPORTED | 5213 | * function always return EOPNOTSUPPORTED |
5211 | */ | 5214 | */ |
5212 | 5215 | ||
5213 | int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | 5216 | static int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) |
5214 | { | 5217 | { |
5215 | return -EOPNOTSUPP; | 5218 | return -EOPNOTSUPP; |
5216 | } | 5219 | } |
@@ -5226,7 +5229,7 @@ int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
5226 | * file on failure. | 5229 | * file on failure. |
5227 | */ | 5230 | */ |
5228 | 5231 | ||
5229 | int s2io_change_mtu(struct net_device *dev, int new_mtu) | 5232 | static int s2io_change_mtu(struct net_device *dev, int new_mtu) |
5230 | { | 5233 | { |
5231 | nic_t *sp = dev->priv; | 5234 | nic_t *sp = dev->priv; |
5232 | 5235 | ||