realtek_smi 49 drivers/net/dsa/realtek-smi-core.c static inline void realtek_smi_clk_delay(struct realtek_smi *smi) realtek_smi 54 drivers/net/dsa/realtek-smi-core.c static void realtek_smi_start(struct realtek_smi *smi) realtek_smi 79 drivers/net/dsa/realtek-smi-core.c static void realtek_smi_stop(struct realtek_smi *smi) realtek_smi 104 drivers/net/dsa/realtek-smi-core.c static void realtek_smi_write_bits(struct realtek_smi *smi, u32 data, u32 len) realtek_smi 120 drivers/net/dsa/realtek-smi-core.c static void realtek_smi_read_bits(struct realtek_smi *smi, u32 len, u32 *data) realtek_smi 141 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_wait_for_ack(struct realtek_smi *smi) realtek_smi 162 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_write_byte(struct realtek_smi *smi, u8 data) realtek_smi 168 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_write_byte_noack(struct realtek_smi *smi, u8 data) realtek_smi 174 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_read_byte0(struct realtek_smi *smi, u8 *data) realtek_smi 188 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_read_byte1(struct realtek_smi *smi, u8 *data) realtek_smi 202 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_read_reg(struct realtek_smi *smi, u32 addr, u32 *data) realtek_smi 244 drivers/net/dsa/realtek-smi-core.c static int realtek_smi_write_reg(struct realtek_smi *smi, realtek_smi 295 drivers/net/dsa/realtek-smi-core.c int realtek_smi_write_reg_noack(struct realtek_smi *smi, u32 addr, realtek_smi 306 drivers/net/dsa/realtek-smi-core.c struct realtek_smi *smi = ctx; realtek_smi 313 drivers/net/dsa/realtek-smi-core.c struct realtek_smi *smi = ctx; realtek_smi 332 drivers/net/dsa/realtek-smi-core.c struct realtek_smi *smi = bus->priv; realtek_smi 340 drivers/net/dsa/realtek-smi-core.c struct realtek_smi *smi = bus->priv; realtek_smi 345 drivers/net/dsa/realtek-smi-core.c int realtek_smi_setup_mdio(struct realtek_smi *smi) realtek_smi 390 drivers/net/dsa/realtek-smi-core.c struct realtek_smi *smi; realtek_smi 463 drivers/net/dsa/realtek-smi-core.c struct realtek_smi *smi = dev_get_drvdata(&pdev->dev); realtek_smi 78 drivers/net/dsa/realtek-smi-core.h int (*detect)(struct realtek_smi *smi); realtek_smi 79 drivers/net/dsa/realtek-smi-core.h int (*reset_chip)(struct realtek_smi *smi); realtek_smi 80 drivers/net/dsa/realtek-smi-core.h int (*setup)(struct realtek_smi *smi); realtek_smi 81 drivers/net/dsa/realtek-smi-core.h void (*cleanup)(struct realtek_smi *smi); realtek_smi 82 drivers/net/dsa/realtek-smi-core.h int (*get_mib_counter)(struct realtek_smi *smi, realtek_smi 86 drivers/net/dsa/realtek-smi-core.h int (*get_vlan_mc)(struct realtek_smi *smi, u32 index, realtek_smi 88 drivers/net/dsa/realtek-smi-core.h int (*set_vlan_mc)(struct realtek_smi *smi, u32 index, realtek_smi 90 drivers/net/dsa/realtek-smi-core.h int (*get_vlan_4k)(struct realtek_smi *smi, u32 vid, realtek_smi 92 drivers/net/dsa/realtek-smi-core.h int (*set_vlan_4k)(struct realtek_smi *smi, realtek_smi 94 drivers/net/dsa/realtek-smi-core.h int (*get_mc_index)(struct realtek_smi *smi, int port, int *val); realtek_smi 95 drivers/net/dsa/realtek-smi-core.h int (*set_mc_index)(struct realtek_smi *smi, int port, int index); realtek_smi 96 drivers/net/dsa/realtek-smi-core.h bool (*is_vlan_valid)(struct realtek_smi *smi, unsigned int vlan); realtek_smi 97 drivers/net/dsa/realtek-smi-core.h int (*enable_vlan)(struct realtek_smi *smi, bool enable); realtek_smi 98 drivers/net/dsa/realtek-smi-core.h int (*enable_vlan4k)(struct realtek_smi *smi, bool enable); realtek_smi 99 drivers/net/dsa/realtek-smi-core.h int (*enable_port)(struct realtek_smi *smi, int port, bool enable); realtek_smi 100 drivers/net/dsa/realtek-smi-core.h int (*phy_read)(struct realtek_smi *smi, int phy, int regnum); realtek_smi 101 drivers/net/dsa/realtek-smi-core.h int (*phy_write)(struct realtek_smi *smi, int phy, int regnum, realtek_smi 114 drivers/net/dsa/realtek-smi-core.h int realtek_smi_write_reg_noack(struct realtek_smi *smi, u32 addr, realtek_smi 116 drivers/net/dsa/realtek-smi-core.h int realtek_smi_setup_mdio(struct realtek_smi *smi); realtek_smi 119 drivers/net/dsa/realtek-smi-core.h int rtl8366_mc_is_used(struct realtek_smi *smi, int mc_index, int *used); realtek_smi 120 drivers/net/dsa/realtek-smi-core.h int rtl8366_set_vlan(struct realtek_smi *smi, int vid, u32 member, realtek_smi 122 drivers/net/dsa/realtek-smi-core.h int rtl8366_get_pvid(struct realtek_smi *smi, int port, int *val); realtek_smi 123 drivers/net/dsa/realtek-smi-core.h int rtl8366_set_pvid(struct realtek_smi *smi, unsigned int port, realtek_smi 125 drivers/net/dsa/realtek-smi-core.h int rtl8366_enable_vlan4k(struct realtek_smi *smi, bool enable); realtek_smi 126 drivers/net/dsa/realtek-smi-core.h int rtl8366_enable_vlan(struct realtek_smi *smi, bool enable); realtek_smi 127 drivers/net/dsa/realtek-smi-core.h int rtl8366_reset_vlan(struct realtek_smi *smi); realtek_smi 128 drivers/net/dsa/realtek-smi-core.h int rtl8366_init_vlan(struct realtek_smi *smi); realtek_smi 16 drivers/net/dsa/rtl8366.c int rtl8366_mc_is_used(struct realtek_smi *smi, int mc_index, int *used) realtek_smi 39 drivers/net/dsa/rtl8366.c int rtl8366_set_vlan(struct realtek_smi *smi, int vid, u32 member, realtek_smi 81 drivers/net/dsa/rtl8366.c int rtl8366_get_pvid(struct realtek_smi *smi, int port, int *val) realtek_smi 100 drivers/net/dsa/rtl8366.c int rtl8366_set_pvid(struct realtek_smi *smi, unsigned int port, realtek_smi 183 drivers/net/dsa/rtl8366.c int rtl8366_enable_vlan4k(struct realtek_smi *smi, bool enable) realtek_smi 209 drivers/net/dsa/rtl8366.c int rtl8366_enable_vlan(struct realtek_smi *smi, bool enable) realtek_smi 231 drivers/net/dsa/rtl8366.c int rtl8366_reset_vlan(struct realtek_smi *smi) realtek_smi 256 drivers/net/dsa/rtl8366.c int rtl8366_init_vlan(struct realtek_smi *smi) realtek_smi 306 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; realtek_smi 341 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; realtek_smi 369 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; realtek_smi 423 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; realtek_smi 468 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; realtek_smi 485 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; realtek_smi 499 drivers/net/dsa/rtl8366.c struct realtek_smi *smi = ds->priv; realtek_smi 350 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_get_mib_counter(struct realtek_smi *smi, realtek_smi 409 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = irq_data_get_irq_chip_data(d); realtek_smi 420 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = irq_data_get_irq_chip_data(d); realtek_smi 432 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = data; realtek_smi 492 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_setup_cascaded_irq(struct realtek_smi *smi) realtek_smi 568 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_set_addr(struct realtek_smi *smi) realtek_smi 713 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = ds->priv; realtek_smi 989 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = ds->priv; realtek_smi 1016 drivers/net/dsa/rtl8366rb.c static void rb8366rb_set_port_led(struct realtek_smi *smi, realtek_smi 1066 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = ds->priv; realtek_smi 1082 drivers/net/dsa/rtl8366rb.c struct realtek_smi *smi = ds->priv; realtek_smi 1094 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_get_vlan_4k(struct realtek_smi *smi, u32 vid, realtek_smi 1135 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_set_vlan_4k(struct realtek_smi *smi, realtek_smi 1169 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_get_vlan_mc(struct realtek_smi *smi, u32 index, realtek_smi 1200 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_set_vlan_mc(struct realtek_smi *smi, u32 index, realtek_smi 1234 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_get_mc_index(struct realtek_smi *smi, int port, int *val) realtek_smi 1253 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_set_mc_index(struct realtek_smi *smi, int port, int index) realtek_smi 1265 drivers/net/dsa/rtl8366rb.c static bool rtl8366rb_is_vlan_valid(struct realtek_smi *smi, unsigned int vlan) realtek_smi 1278 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_enable_vlan(struct realtek_smi *smi, bool enable) realtek_smi 1286 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_enable_vlan4k(struct realtek_smi *smi, bool enable) realtek_smi 1294 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_phy_read(struct realtek_smi *smi, int phy, int regnum) realtek_smi 1328 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_phy_write(struct realtek_smi *smi, int phy, int regnum, realtek_smi 1354 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_reset_chip(struct realtek_smi *smi) realtek_smi 1380 drivers/net/dsa/rtl8366rb.c static int rtl8366rb_detect(struct realtek_smi *smi)