Home
last modified time | relevance | path

Searched refs:mv88e6xxx_chip (Results 1 – 24 of 24) sorted by relevance

/drivers/net/dsa/mv88e6xxx/
Dchip.h258 struct mv88e6xxx_chip *chip;
290 struct mv88e6xxx_chip { struct
393 int (*read)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val); argument
394 int (*write)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val);
399 struct mv88e6xxx_chip *chip;
408 int (*setup_errata)(struct mv88e6xxx_chip *chip);
410 int (*ieee_pri_map)(struct mv88e6xxx_chip *chip);
411 int (*ip_pri_map)(struct mv88e6xxx_chip *chip);
414 int (*irl_init_all)(struct mv88e6xxx_chip *chip, int port);
416 int (*get_eeprom)(struct mv88e6xxx_chip *chip,
[all …]
Dglobal1.h271 int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val);
272 int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val);
273 int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int
275 int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg,
278 int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr);
280 int mv88e6185_g1_reset(struct mv88e6xxx_chip *chip);
281 int mv88e6352_g1_reset(struct mv88e6xxx_chip *chip);
282 int mv88e6250_g1_reset(struct mv88e6xxx_chip *chip);
284 int mv88e6185_g1_ppu_enable(struct mv88e6xxx_chip *chip);
285 int mv88e6185_g1_ppu_disable(struct mv88e6xxx_chip *chip);
[all …]
Dport.h317 int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg,
319 int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg,
321 int mv88e6xxx_port_wait_bit(struct mv88e6xxx_chip *chip, int port, int reg,
324 int mv88e6185_port_set_pause(struct mv88e6xxx_chip *chip, int port,
326 int mv88e6352_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port,
328 int mv88e6390_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port,
331 int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link);
333 int mv88e6xxx_port_sync_link(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup);
334 int mv88e6185_port_sync_link(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup);
336 int mv88e6065_port_set_speed_duplex(struct mv88e6xxx_chip *chip, int port,
[all …]
Dserdes.h104 int mv88e6185_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
105 int mv88e6341_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
106 int mv88e6352_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
107 int mv88e6390_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
108 int mv88e6390x_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
109 int mv88e6393x_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
110 int mv88e6352_serdes_pcs_config(struct mv88e6xxx_chip *chip, int port,
114 int mv88e6390_serdes_pcs_config(struct mv88e6xxx_chip *chip, int port,
118 int mv88e6185_serdes_pcs_get_state(struct mv88e6xxx_chip *chip, int port,
120 int mv88e6352_serdes_pcs_get_state(struct mv88e6xxx_chip *chip, int port,
[all …]
Dglobal2.h307 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val);
308 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val);
309 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg,
312 int mv88e6352_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port);
313 int mv88e6390_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port);
315 int mv88e6xxx_g2_smi_phy_read(struct mv88e6xxx_chip *chip,
318 int mv88e6xxx_g2_smi_phy_write(struct mv88e6xxx_chip *chip,
321 int mv88e6xxx_g2_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr);
323 int mv88e6xxx_g2_get_eeprom8(struct mv88e6xxx_chip *chip,
325 int mv88e6xxx_g2_set_eeprom8(struct mv88e6xxx_chip *chip,
[all …]
Dglobal1.c16 int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g1_read()
23 int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g1_write()
30 int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g1_wait_bit()
37 int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg, in mv88e6xxx_g1_wait_mask()
46 static int mv88e6185_g1_wait_ppu_disabled(struct mv88e6xxx_chip *chip) in mv88e6185_g1_wait_ppu_disabled()
53 static int mv88e6185_g1_wait_ppu_polling(struct mv88e6xxx_chip *chip) in mv88e6185_g1_wait_ppu_polling()
60 static int mv88e6352_g1_wait_ppu_polling(struct mv88e6xxx_chip *chip) in mv88e6352_g1_wait_ppu_polling()
67 static int mv88e6xxx_g1_wait_init_ready(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_wait_init_ready()
82 int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr) in mv88e6xxx_g1_set_switch_mac()
107 int mv88e6185_g1_reset(struct mv88e6xxx_chip *chip) in mv88e6185_g1_reset()
[all …]
Dglobal2.c19 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val) in mv88e6xxx_g2_read()
24 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val) in mv88e6xxx_g2_write()
29 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg, int in mv88e6xxx_g2_wait_bit()
38 static int mv88e6xxx_g2_int_source(struct mv88e6xxx_chip *chip, u16 *src) in mv88e6xxx_g2_int_source()
46 static int mv88e6xxx_g2_int_mask(struct mv88e6xxx_chip *chip, u16 mask) in mv88e6xxx_g2_int_mask()
53 static int mv88e6xxx_g2_mgmt_enable_2x(struct mv88e6xxx_chip *chip, u16 en2x) in mv88e6xxx_g2_mgmt_enable_2x()
60 static int mv88e6xxx_g2_mgmt_enable_0x(struct mv88e6xxx_chip *chip, u16 en0x) in mv88e6xxx_g2_mgmt_enable_0x()
67 static int mv88e6xxx_g2_switch_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip, in mv88e6xxx_g2_switch_mgmt_rsvd2cpu()
85 int mv88e6185_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) in mv88e6185_g2_mgmt_rsvd2cpu()
99 int mv88e6352_g2_mgmt_rsvd2cpu(struct mv88e6xxx_chip *chip) in mv88e6352_g2_mgmt_rsvd2cpu()
[all …]
Dphy.c16 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_read()
22 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus, in mv88e6165_phy_write()
28 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy, int reg, u16 *val) in mv88e6xxx_phy_read()
43 int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy, int reg, u16 val) in mv88e6xxx_phy_write()
58 static int mv88e6xxx_phy_page_get(struct mv88e6xxx_chip *chip, int phy, u8 page) in mv88e6xxx_phy_page_get()
63 static void mv88e6xxx_phy_page_put(struct mv88e6xxx_chip *chip, int phy) in mv88e6xxx_phy_page_put()
79 int mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy, in mv88e6xxx_phy_page_read()
97 int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy, in mv88e6xxx_phy_page_write()
118 static int mv88e6xxx_phy_ppu_disable(struct mv88e6xxx_chip *chip) in mv88e6xxx_phy_ppu_disable()
126 static int mv88e6xxx_phy_ppu_enable(struct mv88e6xxx_chip *chip) in mv88e6xxx_phy_ppu_enable()
[all …]
Dphy.h17 int mv88e6165_phy_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
19 int mv88e6165_phy_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
21 int mv88e6185_phy_ppu_read(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
23 int mv88e6185_phy_ppu_write(struct mv88e6xxx_chip *chip, struct mii_bus *bus,
27 int mv88e6xxx_phy_read(struct mv88e6xxx_chip *chip, int phy,
29 int mv88e6xxx_phy_write(struct mv88e6xxx_chip *chip, int phy,
31 int mv88e6xxx_phy_page_read(struct mv88e6xxx_chip *chip, int phy,
33 int mv88e6xxx_phy_page_write(struct mv88e6xxx_chip *chip, int phy,
35 void mv88e6xxx_phy_init(struct mv88e6xxx_chip *chip);
36 void mv88e6xxx_phy_destroy(struct mv88e6xxx_chip *chip);
[all …]
Dport.c21 int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg, in mv88e6xxx_port_read()
29 int mv88e6xxx_port_wait_bit(struct mv88e6xxx_chip *chip, int port, int reg, in mv88e6xxx_port_wait_bit()
37 int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg, in mv88e6xxx_port_write()
50 int mv88e6185_port_set_pause(struct mv88e6xxx_chip *chip, int port, in mv88e6185_port_set_pause()
77 static int mv88e6xxx_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_set_rgmii_delay()
118 int mv88e6352_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6352_port_set_rgmii_delay()
127 int mv88e6390_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6390_port_set_rgmii_delay()
136 int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link) in mv88e6xxx_port_set_link()
174 int mv88e6xxx_port_sync_link(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup) in mv88e6xxx_port_sync_link()
191 int mv88e6185_port_sync_link(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup) in mv88e6185_port_sync_link()
[all …]
Dserdes.c20 static int mv88e6352_serdes_read(struct mv88e6xxx_chip *chip, int reg, in mv88e6352_serdes_read()
28 static int mv88e6352_serdes_write(struct mv88e6xxx_chip *chip, int reg, in mv88e6352_serdes_write()
36 static int mv88e6390_serdes_read(struct mv88e6xxx_chip *chip, in mv88e6390_serdes_read()
44 static int mv88e6390_serdes_write(struct mv88e6xxx_chip *chip, in mv88e6390_serdes_write()
52 static int mv88e6xxx_serdes_pcs_get_state(struct mv88e6xxx_chip *chip, in mv88e6xxx_serdes_pcs_get_state()
116 int mv88e6352_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane, in mv88e6352_serdes_power()
137 int mv88e6352_serdes_pcs_config(struct mv88e6xxx_chip *chip, int port, in mv88e6352_serdes_pcs_config()
186 int mv88e6352_serdes_pcs_get_state(struct mv88e6xxx_chip *chip, int port, in mv88e6352_serdes_pcs_get_state()
213 int mv88e6352_serdes_pcs_an_restart(struct mv88e6xxx_chip *chip, int port, in mv88e6352_serdes_pcs_an_restart()
226 int mv88e6352_serdes_pcs_link_up(struct mv88e6xxx_chip *chip, int port, in mv88e6352_serdes_pcs_link_up()
[all …]
Dglobal2_avb.c32 static int mv88e6xxx_g2_avb_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_g2_avb_wait()
39 static int mv88e6xxx_g2_avb_read(struct mv88e6xxx_chip *chip, u16 readop, in mv88e6xxx_g2_avb_read()
73 static int mv88e6xxx_g2_avb_write(struct mv88e6xxx_chip *chip, u16 writeop, in mv88e6xxx_g2_avb_write()
92 static int mv88e6352_g2_avb_port_ptp_read(struct mv88e6xxx_chip *chip, in mv88e6352_g2_avb_port_ptp_read()
104 static int mv88e6352_g2_avb_port_ptp_write(struct mv88e6xxx_chip *chip, in mv88e6352_g2_avb_port_ptp_write()
113 static int mv88e6352_g2_avb_ptp_read(struct mv88e6xxx_chip *chip, int addr, in mv88e6352_g2_avb_ptp_read()
121 static int mv88e6352_g2_avb_ptp_write(struct mv88e6xxx_chip *chip, int addr, in mv88e6352_g2_avb_ptp_write()
129 static int mv88e6352_g2_avb_tai_read(struct mv88e6xxx_chip *chip, int addr, in mv88e6352_g2_avb_tai_read()
137 static int mv88e6352_g2_avb_tai_write(struct mv88e6xxx_chip *chip, int addr, in mv88e6352_g2_avb_tai_write()
154 static int mv88e6165_g2_avb_tai_read(struct mv88e6xxx_chip *chip, int addr, in mv88e6165_g2_avb_tai_read()
[all …]
Dglobal1_vtu.c19 static int mv88e6xxx_g1_vtu_fid_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_fid_read()
34 static int mv88e6xxx_g1_vtu_fid_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_fid_write()
44 static int mv88e6xxx_g1_vtu_sid_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_sid_read()
59 static int mv88e6xxx_g1_vtu_sid_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_sid_write()
69 static int mv88e6xxx_g1_vtu_op_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_vtu_op_wait()
76 static int mv88e6xxx_g1_vtu_op(struct mv88e6xxx_chip *chip, u16 op) in mv88e6xxx_g1_vtu_op()
90 static int mv88e6xxx_g1_vtu_vid_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_vid_read()
110 static int mv88e6xxx_g1_vtu_vid_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_vid_write()
128 static int mv88e6185_g1_vtu_stu_data_read(struct mv88e6xxx_chip *chip, in mv88e6185_g1_vtu_stu_data_read()
146 static int mv88e6185_g1_vtu_data_read(struct mv88e6xxx_chip *chip, in mv88e6185_g1_vtu_data_read()
[all …]
Dglobal1_atu.c18 static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_fid_write()
25 int mv88e6xxx_g1_atu_set_learn2all(struct mv88e6xxx_chip *chip, bool learn2all) in mv88e6xxx_g1_atu_set_learn2all()
42 int mv88e6xxx_g1_atu_set_age_time(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_set_age_time()
76 int mv88e6165_g1_atu_get_hash(struct mv88e6xxx_chip *chip, u8 *hash) in mv88e6165_g1_atu_get_hash()
90 int mv88e6165_g1_atu_set_hash(struct mv88e6xxx_chip *chip, u8 hash) in mv88e6165_g1_atu_set_hash()
110 static int mv88e6xxx_g1_atu_op_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_atu_op_wait()
117 static int mv88e6xxx_g1_atu_op(struct mv88e6xxx_chip *chip, u16 fid, u16 op) in mv88e6xxx_g1_atu_op()
157 int mv88e6xxx_g1_atu_get_next(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_get_next()
164 static int mv88e6xxx_g1_atu_data_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_data_read()
183 static int mv88e6xxx_g1_atu_data_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_data_write()
[all …]
Dglobal2_scratch.c15 static int mv88e6xxx_g2_scratch_read(struct mv88e6xxx_chip *chip, int reg, in mv88e6xxx_g2_scratch_read()
35 static int mv88e6xxx_g2_scratch_write(struct mv88e6xxx_chip *chip, int reg, in mv88e6xxx_g2_scratch_write()
51 static int mv88e6xxx_g2_scratch_get_bit(struct mv88e6xxx_chip *chip, in mv88e6xxx_g2_scratch_get_bit()
78 static int mv88e6xxx_g2_scratch_set_bit(struct mv88e6xxx_chip *chip, in mv88e6xxx_g2_scratch_set_bit()
106 static int mv88e6352_g2_scratch_gpio_get_data(struct mv88e6xxx_chip *chip, in mv88e6352_g2_scratch_gpio_get_data()
127 static int mv88e6352_g2_scratch_gpio_set_data(struct mv88e6xxx_chip *chip, in mv88e6352_g2_scratch_gpio_set_data()
151 static int mv88e6352_g2_scratch_gpio_get_dir(struct mv88e6xxx_chip *chip, in mv88e6352_g2_scratch_gpio_get_dir()
172 static int mv88e6352_g2_scratch_gpio_set_dir(struct mv88e6xxx_chip *chip, in mv88e6352_g2_scratch_gpio_set_dir()
191 static int mv88e6352_g2_scratch_gpio_get_pctl(struct mv88e6xxx_chip *chip, in mv88e6352_g2_scratch_gpio_get_pctl()
215 static int mv88e6352_g2_scratch_gpio_set_pctl(struct mv88e6xxx_chip *chip, in mv88e6352_g2_scratch_gpio_set_pctl()
[all …]
Dptp.c46 #define cc_to_chip(cc) container_of(cc, struct mv88e6xxx_chip, tstamp_cc)
47 #define dw_overflow_to_chip(dw) container_of(dw, struct mv88e6xxx_chip, \
49 #define dw_tai_event_to_chip(dw) container_of(dw, struct mv88e6xxx_chip, \
52 static int mv88e6xxx_tai_read(struct mv88e6xxx_chip *chip, int addr, in mv88e6xxx_tai_read()
61 static int mv88e6xxx_tai_write(struct mv88e6xxx_chip *chip, int addr, u16 data) in mv88e6xxx_tai_write()
70 static int mv88e6352_set_gpio_func(struct mv88e6xxx_chip *chip, int pin, in mv88e6352_set_gpio_func()
87 struct mv88e6xxx_chip *chip = cc_to_chip(cc); in mv88e6352_ptp_clock_read()
101 struct mv88e6xxx_chip *chip = cc_to_chip(cc); in mv88e6165_ptp_clock_read()
119 static int mv88e6352_config_eventcap(struct mv88e6xxx_chip *chip, int event, in mv88e6352_config_eventcap()
155 struct mv88e6xxx_chip *chip = dw_tai_event_to_chip(dw); in mv88e6352_tai_event_work()
[all …]
Dhwtstamp.h126 int mv88e6xxx_hwtstamp_setup(struct mv88e6xxx_chip *chip);
127 void mv88e6xxx_hwtstamp_free(struct mv88e6xxx_chip *chip);
128 int mv88e6352_hwtstamp_port_enable(struct mv88e6xxx_chip *chip, int port);
129 int mv88e6352_hwtstamp_port_disable(struct mv88e6xxx_chip *chip, int port);
130 int mv88e6165_global_enable(struct mv88e6xxx_chip *chip);
131 int mv88e6165_global_disable(struct mv88e6xxx_chip *chip);
165 static inline int mv88e6xxx_hwtstamp_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_hwtstamp_setup()
170 static inline void mv88e6xxx_hwtstamp_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_hwtstamp_free()
Dhwtstamp.c21 static int mv88e6xxx_port_ptp_read(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_ptp_read()
31 static int mv88e6xxx_port_ptp_write(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_port_ptp_write()
41 static int mv88e6xxx_ptp_write(struct mv88e6xxx_chip *chip, int addr, in mv88e6xxx_ptp_write()
50 static int mv88e6xxx_ptp_read(struct mv88e6xxx_chip *chip, int addr, in mv88e6xxx_ptp_read()
70 struct mv88e6xxx_chip *chip; in mv88e6xxx_get_ts_info()
91 static int mv88e6xxx_set_hwtstamp_config(struct mv88e6xxx_chip *chip, int port, in mv88e6xxx_set_hwtstamp_config()
178 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_hwtstamp_set()
203 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_hwtstamp_get()
217 static struct ptp_header *mv88e6xxx_should_tstamp(struct mv88e6xxx_chip *chip, in mv88e6xxx_should_tstamp()
256 static void mv88e6xxx_get_rxts(struct mv88e6xxx_chip *chip, in mv88e6xxx_get_rxts()
[all …]
Ddevlink.c10 static int mv88e6xxx_atu_get_hash(struct mv88e6xxx_chip *chip, u8 *hash) in mv88e6xxx_atu_get_hash()
18 static int mv88e6xxx_atu_set_hash(struct mv88e6xxx_chip *chip, u8 hash) in mv88e6xxx_atu_set_hash()
34 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_devlink_param_get()
56 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_devlink_param_set()
101 static u64 mv88e6xxx_devlink_atu_bin_get(struct mv88e6xxx_chip *chip, in mv88e6xxx_devlink_atu_bin_get()
138 struct mv88e6xxx_chip *chip = priv; in mv88e6xxx_devlink_atu_bin_0_get()
146 struct mv88e6xxx_chip *chip = priv; in mv88e6xxx_devlink_atu_bin_1_get()
154 struct mv88e6xxx_chip *chip = priv; in mv88e6xxx_devlink_atu_bin_2_get()
162 struct mv88e6xxx_chip *chip = priv; in mv88e6xxx_devlink_atu_bin_3_get()
179 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup_devlink_resources()
[all …]
Dchip.c46 static void assert_reg_lock(struct mv88e6xxx_chip *chip) in assert_reg_lock()
54 int mv88e6xxx_read(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val) in mv88e6xxx_read()
70 int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val) in mv88e6xxx_write()
86 int mv88e6xxx_wait_mask(struct mv88e6xxx_chip *chip, int addr, int reg, in mv88e6xxx_wait_mask()
109 int mv88e6xxx_wait_bit(struct mv88e6xxx_chip *chip, int addr, int reg, in mv88e6xxx_wait_bit()
116 struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip) in mv88e6xxx_default_mdio_bus()
130 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_mask()
138 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_unmask()
144 static irqreturn_t mv88e6xxx_g1_irq_thread_work(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_thread_work()
188 struct mv88e6xxx_chip *chip = dev_id; in mv88e6xxx_g1_irq_thread_fn()
[all …]
Dsmi.c29 static int mv88e6xxx_smi_direct_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_direct_read()
43 static int mv88e6xxx_smi_direct_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_direct_write()
55 static int mv88e6xxx_smi_direct_wait(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_direct_wait()
81 static int mv88e6xxx_smi_dual_direct_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_dual_direct_read()
87 static int mv88e6xxx_smi_dual_direct_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_dual_direct_write()
102 static int mv88e6xxx_smi_indirect_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_indirect_read()
130 static int mv88e6xxx_smi_indirect_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_indirect_write()
163 int mv88e6xxx_smi_init(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_init()
Dptp.h145 int mv88e6xxx_ptp_setup(struct mv88e6xxx_chip *chip);
146 void mv88e6xxx_ptp_free(struct mv88e6xxx_chip *chip);
148 #define ptp_to_chip(ptp) container_of(ptp, struct mv88e6xxx_chip, \
162 static inline int mv88e6xxx_ptp_setup(struct mv88e6xxx_chip *chip) in mv88e6xxx_ptp_setup()
167 static inline void mv88e6xxx_ptp_free(struct mv88e6xxx_chip *chip) in mv88e6xxx_ptp_free()
Dsmi.h34 int mv88e6xxx_smi_init(struct mv88e6xxx_chip *chip,
37 static inline int mv88e6xxx_smi_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_read()
46 static inline int mv88e6xxx_smi_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_write()
Dport_hidden.c18 int mv88e6xxx_port_hidden_write(struct mv88e6xxx_chip *chip, int block, in mv88e6xxx_port_hidden_write()
39 int mv88e6xxx_port_hidden_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_port_hidden_wait()
48 int mv88e6xxx_port_hidden_read(struct mv88e6xxx_chip *chip, int block, int port, in mv88e6xxx_port_hidden_read()