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 0745dd9d01f3..24b7233a803c 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; |
@@ -2160,7 +2160,7 @@ int fill_rxd_3buf(nic_t *nic, RxD_t *rxdp, struct sk_buff *skb) | |||
2160 | * SUCCESS on success or an appropriate -ve value on failure. | 2160 | * SUCCESS on success or an appropriate -ve value on failure. |
2161 | */ | 2161 | */ |
2162 | 2162 | ||
2163 | int fill_rx_buffers(struct s2io_nic *nic, int ring_no) | 2163 | static int fill_rx_buffers(struct s2io_nic *nic, int ring_no) |
2164 | { | 2164 | { |
2165 | struct net_device *dev = nic->dev; | 2165 | struct net_device *dev = nic->dev; |
2166 | struct sk_buff *skb; | 2166 | struct sk_buff *skb; |
@@ -2831,7 +2831,7 @@ static void alarm_intr_handler(struct s2io_nic *nic) | |||
2831 | * SUCCESS on success and FAILURE on failure. | 2831 | * SUCCESS on success and FAILURE on failure. |
2832 | */ | 2832 | */ |
2833 | 2833 | ||
2834 | int wait_for_cmd_complete(nic_t * sp) | 2834 | static int wait_for_cmd_complete(nic_t * sp) |
2835 | { | 2835 | { |
2836 | XENA_dev_config_t __iomem *bar0 = sp->bar0; | 2836 | XENA_dev_config_t __iomem *bar0 = sp->bar0; |
2837 | int ret = FAILURE, cnt = 0; | 2837 | int ret = FAILURE, cnt = 0; |
@@ -3077,7 +3077,7 @@ int s2io_set_swapper(nic_t * sp) | |||
3077 | return SUCCESS; | 3077 | return SUCCESS; |
3078 | } | 3078 | } |
3079 | 3079 | ||
3080 | int wait_for_msix_trans(nic_t *nic, int i) | 3080 | static int wait_for_msix_trans(nic_t *nic, int i) |
3081 | { | 3081 | { |
3082 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; | 3082 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; |
3083 | u64 val64; | 3083 | u64 val64; |
@@ -3116,7 +3116,7 @@ void restore_xmsi_data(nic_t *nic) | |||
3116 | } | 3116 | } |
3117 | } | 3117 | } |
3118 | 3118 | ||
3119 | void store_xmsi_data(nic_t *nic) | 3119 | static void store_xmsi_data(nic_t *nic) |
3120 | { | 3120 | { |
3121 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; | 3121 | XENA_dev_config_t *bar0 = (XENA_dev_config_t *) nic->bar0; |
3122 | u64 val64, addr, data; | 3122 | u64 val64, addr, data; |
@@ -3288,7 +3288,7 @@ int s2io_enable_msi_x(nic_t *nic) | |||
3288 | * file on failure. | 3288 | * file on failure. |
3289 | */ | 3289 | */ |
3290 | 3290 | ||
3291 | int s2io_open(struct net_device *dev) | 3291 | static int s2io_open(struct net_device *dev) |
3292 | { | 3292 | { |
3293 | nic_t *sp = dev->priv; | 3293 | nic_t *sp = dev->priv; |
3294 | int err = 0; | 3294 | int err = 0; |
@@ -3418,7 +3418,7 @@ hw_init_failed: | |||
3418 | * file on failure. | 3418 | * file on failure. |
3419 | */ | 3419 | */ |
3420 | 3420 | ||
3421 | int s2io_close(struct net_device *dev) | 3421 | static int s2io_close(struct net_device *dev) |
3422 | { | 3422 | { |
3423 | nic_t *sp = dev->priv; | 3423 | nic_t *sp = dev->priv; |
3424 | int i; | 3424 | int i; |
@@ -3467,7 +3467,7 @@ int s2io_close(struct net_device *dev) | |||
3467 | * 0 on success & 1 on failure. | 3467 | * 0 on success & 1 on failure. |
3468 | */ | 3468 | */ |
3469 | 3469 | ||
3470 | int s2io_xmit(struct sk_buff *skb, struct net_device *dev) | 3470 | static int s2io_xmit(struct sk_buff *skb, struct net_device *dev) |
3471 | { | 3471 | { |
3472 | nic_t *sp = dev->priv; | 3472 | nic_t *sp = dev->priv; |
3473 | u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off; | 3473 | u16 frg_cnt, frg_len, i, queue, queue_len, put_off, get_off; |
@@ -3913,7 +3913,7 @@ static void s2io_updt_stats(nic_t *sp) | |||
3913 | * pointer to the updated net_device_stats structure. | 3913 | * pointer to the updated net_device_stats structure. |
3914 | */ | 3914 | */ |
3915 | 3915 | ||
3916 | struct net_device_stats *s2io_get_stats(struct net_device *dev) | 3916 | static struct net_device_stats *s2io_get_stats(struct net_device *dev) |
3917 | { | 3917 | { |
3918 | nic_t *sp = dev->priv; | 3918 | nic_t *sp = dev->priv; |
3919 | mac_info_t *mac_control; | 3919 | mac_info_t *mac_control; |
@@ -5106,19 +5106,20 @@ static void s2io_get_ethtool_stats(struct net_device *dev, | |||
5106 | tmp_stats[i++] = stat_info->sw_stat.double_ecc_errs; | 5106 | tmp_stats[i++] = stat_info->sw_stat.double_ecc_errs; |
5107 | } | 5107 | } |
5108 | 5108 | ||
5109 | int s2io_ethtool_get_regs_len(struct net_device *dev) | 5109 | static int s2io_ethtool_get_regs_len(struct net_device *dev) |
5110 | { | 5110 | { |
5111 | return (XENA_REG_SPACE); | 5111 | return (XENA_REG_SPACE); |
5112 | } | 5112 | } |
5113 | 5113 | ||
5114 | 5114 | ||
5115 | u32 s2io_ethtool_get_rx_csum(struct net_device * dev) | 5115 | static u32 s2io_ethtool_get_rx_csum(struct net_device * dev) |
5116 | { | 5116 | { |
5117 | nic_t *sp = dev->priv; | 5117 | nic_t *sp = dev->priv; |
5118 | 5118 | ||
5119 | return (sp->rx_csum); | 5119 | return (sp->rx_csum); |
5120 | } | 5120 | } |
5121 | int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) | 5121 | |
5122 | static int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) | ||
5122 | { | 5123 | { |
5123 | nic_t *sp = dev->priv; | 5124 | nic_t *sp = dev->priv; |
5124 | 5125 | ||
@@ -5129,17 +5130,19 @@ int s2io_ethtool_set_rx_csum(struct net_device *dev, u32 data) | |||
5129 | 5130 | ||
5130 | return 0; | 5131 | return 0; |
5131 | } | 5132 | } |
5132 | int s2io_get_eeprom_len(struct net_device *dev) | 5133 | |
5134 | static int s2io_get_eeprom_len(struct net_device *dev) | ||
5133 | { | 5135 | { |
5134 | return (XENA_EEPROM_SPACE); | 5136 | return (XENA_EEPROM_SPACE); |
5135 | } | 5137 | } |
5136 | 5138 | ||
5137 | int s2io_ethtool_self_test_count(struct net_device *dev) | 5139 | static int s2io_ethtool_self_test_count(struct net_device *dev) |
5138 | { | 5140 | { |
5139 | return (S2IO_TEST_LEN); | 5141 | return (S2IO_TEST_LEN); |
5140 | } | 5142 | } |
5141 | void s2io_ethtool_get_strings(struct net_device *dev, | 5143 | |
5142 | u32 stringset, u8 * data) | 5144 | static void s2io_ethtool_get_strings(struct net_device *dev, |
5145 | u32 stringset, u8 * data) | ||
5143 | { | 5146 | { |
5144 | switch (stringset) { | 5147 | switch (stringset) { |
5145 | case ETH_SS_TEST: | 5148 | case ETH_SS_TEST: |
@@ -5155,7 +5158,7 @@ static int s2io_ethtool_get_stats_count(struct net_device *dev) | |||
5155 | return (S2IO_STAT_LEN); | 5158 | return (S2IO_STAT_LEN); |
5156 | } | 5159 | } |
5157 | 5160 | ||
5158 | int s2io_ethtool_op_set_tx_csum(struct net_device *dev, u32 data) | 5161 | static int s2io_ethtool_op_set_tx_csum(struct net_device *dev, u32 data) |
5159 | { | 5162 | { |
5160 | if (data) | 5163 | if (data) |
5161 | dev->features |= NETIF_F_IP_CSUM; | 5164 | dev->features |= NETIF_F_IP_CSUM; |
@@ -5208,7 +5211,7 @@ static struct ethtool_ops netdev_ethtool_ops = { | |||
5208 | * function always return EOPNOTSUPPORTED | 5211 | * function always return EOPNOTSUPPORTED |
5209 | */ | 5212 | */ |
5210 | 5213 | ||
5211 | int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | 5214 | static int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) |
5212 | { | 5215 | { |
5213 | return -EOPNOTSUPP; | 5216 | return -EOPNOTSUPP; |
5214 | } | 5217 | } |
@@ -5224,7 +5227,7 @@ int s2io_ioctl(struct net_device *dev, struct ifreq *rq, int cmd) | |||
5224 | * file on failure. | 5227 | * file on failure. |
5225 | */ | 5228 | */ |
5226 | 5229 | ||
5227 | int s2io_change_mtu(struct net_device *dev, int new_mtu) | 5230 | static int s2io_change_mtu(struct net_device *dev, int new_mtu) |
5228 | { | 5231 | { |
5229 | nic_t *sp = dev->priv; | 5232 | nic_t *sp = dev->priv; |
5230 | 5233 | ||