/linux-6.12.1/drivers/net/dsa/microchip/ |
D | ksz9477.h | 16 void ksz9477_cfg_port_member(struct ksz_device *dev, int port, u8 member); 17 void ksz9477_flush_dyn_mac_table(struct ksz_device *dev, int port); 18 void ksz9477_port_setup(struct ksz_device *dev, int port, bool cpu_port); 19 int ksz9477_set_ageing_time(struct ksz_device *dev, unsigned int msecs); 20 int ksz9477_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data); 21 int ksz9477_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val); 22 void ksz9477_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt); 23 void ksz9477_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, 25 void ksz9477_freeze_mib(struct ksz_device *dev, int port, bool freeze); 26 void ksz9477_port_init_cnt(struct ksz_device *dev, int port); [all …]
|
D | ksz8.h | 17 void ksz8_cfg_port_member(struct ksz_device *dev, int port, u8 member); 18 void ksz8_flush_dyn_mac_table(struct ksz_device *dev, int port); 19 void ksz8_port_setup(struct ksz_device *dev, int port, bool cpu_port); 20 int ksz8_r_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 *val); 21 int ksz8_w_phy(struct ksz_device *dev, u16 phy, u16 reg, u16 val); 22 void ksz8_r_mib_cnt(struct ksz_device *dev, int port, u16 addr, u64 *cnt); 23 void ksz8_r_mib_pkt(struct ksz_device *dev, int port, u16 addr, 25 void ksz8_freeze_mib(struct ksz_device *dev, int port, bool freeze); 26 void ksz8_port_init_cnt(struct ksz_device *dev, int port); 27 int ksz8_fdb_dump(struct ksz_device *dev, int port, [all …]
|
D | ksz_common.h | 27 struct ksz_device; 101 struct ksz_device *dev; 133 struct ksz_device *ksz_dev; 149 struct ksz_device { struct 324 void (*cfg_port_member)(struct ksz_device *dev, int port, u8 member); 325 void (*flush_dyn_mac_table)(struct ksz_device *dev, int port); 326 void (*port_cleanup)(struct ksz_device *dev, int port); 327 void (*port_setup)(struct ksz_device *dev, int port, bool cpu_port); 328 int (*set_ageing_time)(struct ksz_device *dev, unsigned int msecs); 329 int (*r_phy)(struct ksz_device *dev, u16 phy, u16 reg, u16 *val); [all …]
|
D | lan937x.h | 9 int lan937x_reset_switch(struct ksz_device *dev); 12 void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port); 14 int lan937x_switch_init(struct ksz_device *dev); 15 void lan937x_switch_exit(struct ksz_device *dev); 16 int lan937x_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data); 17 int lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val); 18 int lan937x_change_mtu(struct ksz_device *dev, int port, int new_mtu); 19 void lan937x_phylink_get_caps(struct ksz_device *dev, int port, 21 void lan937x_setup_rgmii_delay(struct ksz_device *dev, int port); 22 int lan937x_set_ageing_time(struct ksz_device *dev, unsigned int msecs); [all …]
|
D | lan937x_main.c | 21 static int lan937x_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in lan937x_cfg() 26 static int lan937x_port_cfg(struct ksz_device *dev, int port, int offset, in lan937x_port_cfg() 33 static int lan937x_enable_spi_indirect_access(struct ksz_device *dev) in lan937x_enable_spi_indirect_access() 53 static int lan937x_vphy_ind_addr_wr(struct ksz_device *dev, int addr, int reg) in lan937x_vphy_ind_addr_wr() 67 static int lan937x_internal_phy_write(struct ksz_device *dev, int addr, int reg, in lan937x_internal_phy_write() 103 static int lan937x_internal_phy_read(struct ksz_device *dev, int addr, int reg, in lan937x_internal_phy_read() 134 int lan937x_r_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 *data) in lan937x_r_phy() 139 int lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val) in lan937x_w_phy() 144 int lan937x_reset_switch(struct ksz_device *dev) in lan937x_reset_switch() 175 void lan937x_port_setup(struct ksz_device *dev, int port, bool cpu_port) in lan937x_port_setup() [all …]
|
D | ksz8.c | 36 static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in ksz_cfg() 41 static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 bits, in ksz_port_cfg() 62 static int ksz8_ind_write8(struct ksz_device *dev, u8 table, u16 addr, u8 data) in ksz8_ind_write8() 96 static int ksz8_ind_read8(struct ksz_device *dev, u8 table, u16 addr, u8 *val) in ksz8_ind_read8() 116 int ksz8_pme_write8(struct ksz_device *dev, u32 reg, u8 value) in ksz8_pme_write8() 121 int ksz8_pme_pread8(struct ksz_device *dev, int port, int offset, u8 *data) in ksz8_pme_pread8() 128 int ksz8_pme_pwrite8(struct ksz_device *dev, int port, int offset, u8 data) in ksz8_pme_pwrite8() 135 int ksz8_reset_switch(struct ksz_device *dev) in ksz8_reset_switch() 153 static int ksz8863_change_mtu(struct ksz_device *dev, int frame_size) in ksz8863_change_mtu() 166 static int ksz8795_change_mtu(struct ksz_device *dev, int frame_size) in ksz8795_change_mtu() [all …]
|
D | ksz_dcb.c | 89 static void ksz_get_default_port_prio_reg(struct ksz_device *dev, int *reg, in ksz_get_default_port_prio_reg() 113 static void ksz_get_dscp_prio_reg(struct ksz_device *dev, int *reg, in ksz_get_dscp_prio_reg() 141 static void ksz_get_apptrust_map_and_reg(struct ksz_device *dev, in ksz_get_apptrust_map_and_reg() 171 struct ksz_device *dev = ds->priv; in ksz_port_get_default_prio() 200 static int ksz88x3_port_set_default_prio_quirks(struct ksz_device *dev, int port, in ksz88x3_port_set_default_prio_quirks() 241 struct ksz_device *dev = ds->priv; in ksz_port_set_default_prio() 274 struct ksz_device *dev = ds->priv; in ksz_port_get_dscp_prio() 320 static int ksz_set_global_dscp_entry(struct ksz_device *dev, u8 dscp, u8 ipm) in ksz_set_global_dscp_entry() 342 static int ksz_init_global_dscp_map(struct ksz_device *dev) in ksz_init_global_dscp_map() 399 struct ksz_device *dev = ds->priv; in ksz_port_add_dscp_prio() [all …]
|
D | ksz9477.c | 22 static void ksz_cfg(struct ksz_device *dev, u32 addr, u8 bits, bool set) in ksz_cfg() 27 static void ksz_port_cfg(struct ksz_device *dev, int port, int offset, u8 bits, in ksz_port_cfg() 34 static void ksz9477_cfg32(struct ksz_device *dev, u32 addr, u32 bits, bool set) in ksz9477_cfg32() 39 static void ksz9477_port_cfg32(struct ksz_device *dev, int port, int offset, in ksz9477_port_cfg32() 46 int ksz9477_change_mtu(struct ksz_device *dev, int port, int mtu) in ksz9477_change_mtu() 59 static int ksz9477_wait_vlan_ctrl_ready(struct ksz_device *dev) in ksz9477_wait_vlan_ctrl_ready() 67 static int ksz9477_get_vlan_table(struct ksz_device *dev, u16 vid, in ksz9477_get_vlan_table() 96 static int ksz9477_set_vlan_table(struct ksz_device *dev, u16 vid, in ksz9477_set_vlan_table() 130 static void ksz9477_read_table(struct ksz_device *dev, u32 *table) in ksz9477_read_table() 138 static void ksz9477_write_table(struct ksz_device *dev, u32 *table) in ksz9477_write_table() [all …]
|
D | ksz9477_acl.c | 129 static int ksz9477_dump_acl_index(struct ksz_device *dev, in ksz9477_dump_acl_index() 161 static void ksz9477_dump_acl(struct ksz_device *dev, in ksz9477_dump_acl() 235 static int ksz9477_acl_get_cont_entr(struct ksz_device *dev, int port, in ksz9477_acl_get_cont_entr() 333 static int ksz9477_acl_update_linkage(struct ksz_device *dev, u8 *entry, in ksz9477_acl_update_linkage() 411 static int ksz9477_validate_and_get_src_count(struct ksz_device *dev, int port, in ksz9477_validate_and_get_src_count() 468 static int ksz9477_move_entries_downwards(struct ksz_device *dev, in ksz9477_move_entries_downwards() 507 static int ksz9477_move_entries_upwards(struct ksz_device *dev, in ksz9477_move_entries_upwards() 547 static int ksz9477_acl_move_entries(struct ksz_device *dev, int port, in ksz9477_acl_move_entries() 615 static int ksz9477_get_next_block_start(struct ksz_device *dev, int port, in ksz9477_get_next_block_start() 651 static int ksz9477_swap_acl_blocks(struct ksz_device *dev, int port, int i, in ksz9477_swap_acl_blocks() [all …]
|
D | ksz_ptp.c | 20 #define ptp_data_to_ksz_dev(d) container_of((d), struct ksz_device, ptp_data) 35 static int ksz_ptp_tou_gpio(struct ksz_device *dev) in ksz_ptp_tou_gpio() 57 static int ksz_ptp_tou_reset(struct ksz_device *dev, u8 unit) in ksz_ptp_tou_reset() 94 static int ksz_ptp_tou_target_time_set(struct ksz_device *dev, in ksz_ptp_tou_target_time_set() 114 static int ksz_ptp_tou_start(struct ksz_device *dev, u8 unit) in ksz_ptp_tou_start() 141 static int ksz_ptp_configure_perout(struct ksz_device *dev, in ksz_ptp_configure_perout() 177 static int ksz_ptp_enable_perout(struct ksz_device *dev, in ksz_ptp_enable_perout() 262 static int ksz_ptp_enable_mode(struct ksz_device *dev) in ksz_ptp_enable_mode() 295 struct ksz_device *dev = ds->priv; in ksz_get_ts_info() 324 struct ksz_device *dev = ds->priv; in ksz_hwtstamp_get() [all …]
|
D | ksz_common.c | 1921 static int ksz_check_device_id(struct ksz_device *dev) in ksz_check_device_id() 1949 struct ksz_device *dev = ds->priv; in ksz_phylink_get_caps() 1975 void ksz_r_mib_stats64(struct ksz_device *dev, int port) in ksz_r_mib_stats64() 2031 void ksz88xx_r_mib_stats64(struct ksz_device *dev, int port) in ksz88xx_r_mib_stats64() 2083 struct ksz_device *dev = ds->priv; in ksz_get_stats64() 2096 struct ksz_device *dev = ds->priv; in ksz_get_pause_stats() 2109 struct ksz_device *dev = ds->priv; in ksz_get_strings() 2144 static void ksz_update_port_member(struct ksz_device *dev, int port) in ksz_update_port_member() 2222 struct ksz_device *dev = bus->priv; in ksz_sw_mdio_read() 2236 struct ksz_device *dev = bus->priv; in ksz_sw_mdio_write() [all …]
|
D | ksz8863_smi.c | 28 struct ksz_device *dev = ctx; in ksz8863_mdio_read() 57 struct ksz_device *dev = ctx; in ksz8863_mdio_write() 139 struct ksz_device *dev; in ksz8863_smi_probe() 183 struct ksz_device *dev = dev_get_drvdata(&mdiodev->dev); in ksz8863_smi_remove() 191 struct ksz_device *dev = dev_get_drvdata(&mdiodev->dev); in ksz8863_smi_shutdown()
|
D | ksz9477_tc_flower.c | 27 static int ksz9477_flower_parse_key_l2(struct ksz_device *dev, int port, in ksz9477_flower_parse_key_l2() 110 static int ksz9477_flower_parse_key(struct ksz_device *dev, int port, in ksz9477_flower_parse_key() 157 static int ksz9477_flower_parse_action(struct ksz_device *dev, int port, in ksz9477_flower_parse_action() 220 struct ksz_device *dev = ds->priv; in ksz9477_cls_flower_add() 273 struct ksz_device *dev = ds->priv; in ksz9477_cls_flower_del()
|
D | ksz9477_i2c.c | 20 struct ksz_device *dev; in ksz9477_i2c_probe() 56 struct ksz_device *dev = i2c_get_clientdata(i2c); in ksz9477_i2c_remove() 64 struct ksz_device *dev = i2c_get_clientdata(i2c); in ksz9477_i2c_shutdown()
|
D | ksz_dcb.h | 20 int ksz_dcb_init_port(struct ksz_device *dev, int port); 21 int ksz_dcb_init(struct ksz_device *dev);
|
D | ksz_spi.c | 46 struct ksz_device *dev; in ksz_spi_probe() 107 struct ksz_device *dev = spi_get_drvdata(spi); in ksz_spi_remove() 115 struct ksz_device *dev = spi_get_drvdata(spi); in ksz_spi_shutdown()
|