Searched refs:realtek_priv (Results 1 – 8 of 8) sorted by relevance
/linux/drivers/net/dsa/realtek/ |
H A D | realtek.h | 51 struct realtek_priv { struct 92 int (*detect)(struct realtek_priv *priv); argument 93 int (*reset_chip)(struct realtek_priv *priv); 94 int (*setup)(struct realtek_priv *priv); 95 int (*get_mib_counter)(struct realtek_priv *priv, 99 int (*get_vlan_mc)(struct realtek_priv *priv, u32 index, 101 int (*set_vlan_mc)(struct realtek_priv *priv, u32 index, 103 int (*get_vlan_4k)(struct realtek_priv *priv, u32 vid, 105 int (*set_vlan_4k)(struct realtek_priv *priv, 107 int (*get_mc_index)(struct realtek_priv *priv, int port, int *val); [all …]
|
H A D | realtek-smi.c | 47 static inline void realtek_smi_clk_delay(struct realtek_priv *priv) in realtek_smi_clk_delay() 52 static void realtek_smi_start(struct realtek_priv *priv) in realtek_smi_start() 77 static void realtek_smi_stop(struct realtek_priv *priv) in realtek_smi_stop() 102 static void realtek_smi_write_bits(struct realtek_priv *priv, u32 data, u32 len) in realtek_smi_write_bits() 118 static void realtek_smi_read_bits(struct realtek_priv *priv, u32 len, u32 *data) in realtek_smi_read_bits() 139 static int realtek_smi_wait_for_ack(struct realtek_priv *priv) in realtek_smi_wait_for_ack() 160 static int realtek_smi_write_byte(struct realtek_priv *priv, u8 data) in realtek_smi_write_byte() 166 static int realtek_smi_write_byte_noack(struct realtek_priv *priv, u8 data) in realtek_smi_write_byte_noack() 172 static int realtek_smi_read_byte0(struct realtek_priv *priv, u8 *data) in realtek_smi_read_byte0() 186 static int realtek_smi_read_byte1(struct realtek_priv *priv, u8 *data) in realtek_smi_read_byte1() [all …]
|
H A D | rtl83xx.h | 14 struct realtek_priv * 17 int rtl83xx_register_switch(struct realtek_priv *priv); 18 void rtl83xx_unregister_switch(struct realtek_priv *priv); 19 void rtl83xx_shutdown(struct realtek_priv *priv); 20 void rtl83xx_remove(struct realtek_priv *priv); 21 void rtl83xx_reset_assert(struct realtek_priv *priv); 22 void rtl83xx_reset_deassert(struct realtek_priv *priv);
|
H A D | rtl83xx.c | 24 struct realtek_priv *priv = ctx; in rtl83xx_lock() 41 struct realtek_priv *priv = ctx; in rtl83xx_unlock() 49 struct realtek_priv *priv = bus->priv; in rtl83xx_user_mdio_read() 57 struct realtek_priv *priv = bus->priv; in rtl83xx_user_mdio_write() 74 struct realtek_priv *priv = ds->priv; in rtl83xx_setup_user_mdio() 128 struct realtek_priv * 133 struct realtek_priv *priv; in rtl83xx_probe() 223 int rtl83xx_register_switch(struct realtek_priv *priv) in rtl83xx_register_switch() 259 void rtl83xx_unregister_switch(struct realtek_priv *priv) in rtl83xx_unregister_switch() 278 void rtl83xx_shutdown(struct realtek_priv *priv) in rtl83xx_shutdown() [all …]
|
H A D | rtl8366rb.c | 377 struct realtek_priv *priv; 429 static int rtl8366rb_get_mib_counter(struct realtek_priv *priv, in rtl8366rb_get_mib_counter() 488 struct realtek_priv *priv = irq_data_get_irq_chip_data(d); in rtl8366rb_mask_irq() 499 struct realtek_priv *priv = irq_data_get_irq_chip_data(d); in rtl8366rb_unmask_irq() 511 struct realtek_priv *priv = data; in rtl8366rb_irq() 571 static int rtl8366rb_setup_cascaded_irq(struct realtek_priv *priv) in rtl8366rb_setup_cascaded_irq() 647 static int rtl8366rb_set_addr(struct realtek_priv *priv) in rtl8366rb_set_addr() 798 int jam_size, struct realtek_priv *priv, in rtl8366rb_jam_table() 833 static int rb8366rb_set_ledgroup_mode(struct realtek_priv *priv, in rb8366rb_set_ledgroup_mode() 870 struct realtek_priv *priv = led->priv; in rb8366rb_get_port_led() [all …]
|
H A D | rtl8365mb.c | 623 struct realtek_priv *priv; 642 struct realtek_priv *priv; 650 static int rtl8365mb_phy_poll_busy(struct realtek_priv *priv) in rtl8365mb_phy_poll_busy() 659 static int rtl8365mb_phy_ocp_prepare(struct realtek_priv *priv, int phy, in rtl8365mb_phy_ocp_prepare() 689 static int rtl8365mb_phy_ocp_read(struct realtek_priv *priv, int phy, in rtl8365mb_phy_ocp_read() 733 static int rtl8365mb_phy_ocp_write(struct realtek_priv *priv, int phy, in rtl8365mb_phy_ocp_write() 775 static int rtl8365mb_phy_read(struct realtek_priv *priv, int phy, int regnum) in rtl8365mb_phy_read() 803 static int rtl8365mb_phy_write(struct realtek_priv *priv, int phy, int regnum, in rtl8365mb_phy_write() 832 rtl8365mb_get_port_extint(struct realtek_priv *priv, int port) in rtl8365mb_get_port_extint() 855 struct realtek_priv *priv = ds->priv; in rtl8365mb_get_tag_protocol() [all …]
|
H A D | rtl8366-core.c | 16 int rtl8366_mc_is_used(struct realtek_priv *priv, int mc_index, int *used) in rtl8366_mc_is_used() 47 static int rtl8366_obtain_mc(struct realtek_priv *priv, int vid, in rtl8366_obtain_mc() 136 int rtl8366_set_vlan(struct realtek_priv *priv, int vid, u32 member, in rtl8366_set_vlan() 192 int rtl8366_set_pvid(struct realtek_priv *priv, unsigned int port, in rtl8366_set_pvid() 222 int rtl8366_enable_vlan4k(struct realtek_priv *priv, bool enable) in rtl8366_enable_vlan4k() 248 int rtl8366_enable_vlan(struct realtek_priv *priv, bool enable) in rtl8366_enable_vlan() 270 int rtl8366_reset_vlan(struct realtek_priv *priv) in rtl8366_reset_vlan() 301 struct realtek_priv *priv = ds->priv; in rtl8366_vlan_add() 353 struct realtek_priv *priv = ds->priv; in rtl8366_vlan_del() 397 struct realtek_priv *priv = ds->priv; in rtl8366_get_strings() [all …]
|
H A D | realtek-mdio.c | 46 struct realtek_priv *priv = ctx; in realtek_mdio_write() 74 struct realtek_priv *priv = ctx; in realtek_mdio_read() 124 struct realtek_priv *priv; in realtek_mdio_probe() 157 struct realtek_priv *priv = dev_get_drvdata(&mdiodev->dev); in realtek_mdio_remove() 180 struct realtek_priv *priv = dev_get_drvdata(&mdiodev->dev); in realtek_mdio_shutdown()
|