Searched refs:realtek_smi (Results 1 – 4 of 4) sorted by relevance
/Linux-v5.10/drivers/net/dsa/ |
D | realtek-smi-core.h | 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, [all …]
|
D | realtek-smi-core.c | 49 static inline void realtek_smi_clk_delay(struct realtek_smi *smi) in realtek_smi_clk_delay() 54 static void realtek_smi_start(struct realtek_smi *smi) in realtek_smi_start() 79 static void realtek_smi_stop(struct realtek_smi *smi) in realtek_smi_stop() 104 static void realtek_smi_write_bits(struct realtek_smi *smi, u32 data, u32 len) in realtek_smi_write_bits() 120 static void realtek_smi_read_bits(struct realtek_smi *smi, u32 len, u32 *data) in realtek_smi_read_bits() 141 static int realtek_smi_wait_for_ack(struct realtek_smi *smi) in realtek_smi_wait_for_ack() 162 static int realtek_smi_write_byte(struct realtek_smi *smi, u8 data) in realtek_smi_write_byte() 168 static int realtek_smi_write_byte_noack(struct realtek_smi *smi, u8 data) in realtek_smi_write_byte_noack() 174 static int realtek_smi_read_byte0(struct realtek_smi *smi, u8 *data) in realtek_smi_read_byte0() 188 static int realtek_smi_read_byte1(struct realtek_smi *smi, u8 *data) in realtek_smi_read_byte1() [all …]
|
D | rtl8366.c | 16 int rtl8366_mc_is_used(struct realtek_smi *smi, int mc_index, int *used) in rtl8366_mc_is_used() 47 static int rtl8366_obtain_mc(struct realtek_smi *smi, int vid, in rtl8366_obtain_mc() 136 int rtl8366_set_vlan(struct realtek_smi *smi, int vid, u32 member, in rtl8366_set_vlan() 192 int rtl8366_set_pvid(struct realtek_smi *smi, unsigned int port, in rtl8366_set_pvid() 222 int rtl8366_enable_vlan4k(struct realtek_smi *smi, bool enable) in rtl8366_enable_vlan4k() 248 int rtl8366_enable_vlan(struct realtek_smi *smi, bool enable) in rtl8366_enable_vlan() 270 int rtl8366_reset_vlan(struct realtek_smi *smi) in rtl8366_reset_vlan() 295 int rtl8366_init_vlan(struct realtek_smi *smi) in rtl8366_init_vlan() 346 struct realtek_smi *smi = ds->priv; in rtl8366_vlan_filtering() 385 struct realtek_smi *smi = ds->priv; in rtl8366_vlan_prepare() [all …]
|
D | rtl8366rb.c | 358 static int rtl8366rb_get_mib_counter(struct realtek_smi *smi, in rtl8366rb_get_mib_counter() 417 struct realtek_smi *smi = irq_data_get_irq_chip_data(d); in rtl8366rb_mask_irq() 428 struct realtek_smi *smi = irq_data_get_irq_chip_data(d); in rtl8366rb_unmask_irq() 440 struct realtek_smi *smi = data; in rtl8366rb_irq() 500 static int rtl8366rb_setup_cascaded_irq(struct realtek_smi *smi) in rtl8366rb_setup_cascaded_irq() 576 static int rtl8366rb_set_addr(struct realtek_smi *smi) in rtl8366rb_set_addr() 721 struct realtek_smi *smi = ds->priv; in rtl8366rb_setup() 991 struct realtek_smi *smi = ds->priv; in rtl8366rb_mac_link_up() 1028 struct realtek_smi *smi = ds->priv; in rtl8366rb_mac_link_down() 1045 static void rb8366rb_set_port_led(struct realtek_smi *smi, in rb8366rb_set_port_led() [all …]
|