Lines Matching refs:realtek_smi
46 struct realtek_smi { struct
82 int (*detect)(struct realtek_smi *smi); argument
83 int (*reset_chip)(struct realtek_smi *smi);
84 int (*setup)(struct realtek_smi *smi);
85 void (*cleanup)(struct realtek_smi *smi);
86 int (*get_mib_counter)(struct realtek_smi *smi,
90 int (*get_vlan_mc)(struct realtek_smi *smi, u32 index,
92 int (*set_vlan_mc)(struct realtek_smi *smi, u32 index,
94 int (*get_vlan_4k)(struct realtek_smi *smi, u32 vid,
96 int (*set_vlan_4k)(struct realtek_smi *smi,
98 int (*get_mc_index)(struct realtek_smi *smi, int port, int *val);
99 int (*set_mc_index)(struct realtek_smi *smi, int port, int index);
100 bool (*is_vlan_valid)(struct realtek_smi *smi, unsigned int vlan);
101 int (*enable_vlan)(struct realtek_smi *smi, bool enable);
102 int (*enable_vlan4k)(struct realtek_smi *smi, bool enable);
103 int (*enable_port)(struct realtek_smi *smi, int port, bool enable);
104 int (*phy_read)(struct realtek_smi *smi, int phy, int regnum);
105 int (*phy_write)(struct realtek_smi *smi, int phy, int regnum,
119 int realtek_smi_write_reg_noack(struct realtek_smi *smi, u32 addr,
121 int realtek_smi_setup_mdio(struct realtek_smi *smi);
124 int rtl8366_mc_is_used(struct realtek_smi *smi, int mc_index, int *used);
125 int rtl8366_set_vlan(struct realtek_smi *smi, int vid, u32 member,
127 int rtl8366_set_pvid(struct realtek_smi *smi, unsigned int port,
129 int rtl8366_enable_vlan4k(struct realtek_smi *smi, bool enable);
130 int rtl8366_enable_vlan(struct realtek_smi *smi, bool enable);
131 int rtl8366_reset_vlan(struct realtek_smi *smi);
132 int rtl8366_init_vlan(struct realtek_smi *smi);