return -ENOSPC;
}
-int rtl8366_enable_vlan(struct rtl8366_smi *smi, int enable)
+static int rtl8366_smi_enable_vlan(struct rtl8366_smi *smi, int enable)
{
int err;
return err;
}
-EXPORT_SYMBOL_GPL(rtl8366_enable_vlan);
-static int rtl8366_enable_vlan4k(struct rtl8366_smi *smi, int enable)
+static int rtl8366_smi_enable_vlan4k(struct rtl8366_smi *smi, int enable)
{
int err;
return 0;
}
-int rtl8366_enable_all_ports(struct rtl8366_smi *smi, int enable)
+static int rtl8366_smi_enable_all_ports(struct rtl8366_smi *smi, int enable)
{
int port;
int err;
return 0;
}
-EXPORT_SYMBOL_GPL(rtl8366_enable_all_ports);
-int rtl8366_reset_vlan(struct rtl8366_smi *smi)
+static int rtl8366_smi_reset_vlan(struct rtl8366_smi *smi)
{
struct rtl8366_vlan_mc vlanmc;
int err;
int i;
- rtl8366_enable_vlan(smi, 0);
- rtl8366_enable_vlan4k(smi, 0);
+ rtl8366_smi_enable_vlan(smi, 0);
+ rtl8366_smi_enable_vlan4k(smi, 0);
/* clear VLAN member configurations */
vlanmc.vid = 0;
return 0;
}
-EXPORT_SYMBOL_GPL(rtl8366_reset_vlan);
static int rtl8366_init_vlan(struct rtl8366_smi *smi)
{
int port;
int err;
- err = rtl8366_reset_vlan(smi);
+ err = rtl8366_smi_reset_vlan(smi);
if (err)
return err;
return err;
}
- return rtl8366_enable_vlan(smi, 1);
+ return rtl8366_smi_enable_vlan(smi, 1);
}
#ifdef CONFIG_RTL8366_SMI_DEBUG_FS
if (err)
return err;
- err = rtl8366_reset_vlan(smi);
+ err = rtl8366_smi_reset_vlan(smi);
if (err)
return err;
- err = rtl8366_enable_vlan(smi, 1);
+ err = rtl8366_smi_enable_vlan(smi, 1);
if (err)
return err;
- return rtl8366_enable_all_ports(smi, 1);
+ return rtl8366_smi_enable_all_ports(smi, 1);
}
EXPORT_SYMBOL_GPL(rtl8366_sw_reset_switch);
return -EINVAL;
if (attr->ofs == 1)
- err = rtl8366_enable_vlan(smi, val->value.i);
+ err = rtl8366_smi_enable_vlan(smi, val->value.i);
else
- err = rtl8366_enable_vlan4k(smi, val->value.i);
+ err = rtl8366_smi_enable_vlan4k(smi, val->value.i);
return err;
}
goto err_free_sck;
}
- err = rtl8366_enable_all_ports(smi, 1);
+ err = rtl8366_smi_enable_all_ports(smi, 1);
if (err)
goto err_free_sck;
int rtl8366_smi_read_reg(struct rtl8366_smi *smi, u32 addr, u32 *data);
int rtl8366_smi_rmwr(struct rtl8366_smi *smi, u32 addr, u32 mask, u32 data);
-int rtl8366_reset_vlan(struct rtl8366_smi *smi);
-int rtl8366_enable_vlan(struct rtl8366_smi *smi, int enable);
-int rtl8366_enable_all_ports(struct rtl8366_smi *smi, int enable);
-
#ifdef CONFIG_RTL8366_SMI_DEBUG_FS
int rtl8366_debugfs_open(struct inode *inode, struct file *file);
#endif