Home
last modified time | relevance | path

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

/drivers/net/dsa/mv88e6xxx/
Dchip.h267 struct mv88e6xxx_chip *chip;
310 struct mv88e6xxx_chip { struct
416 int (*read)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val); argument
417 int (*write)(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val);
418 int (*init)(struct mv88e6xxx_chip *chip);
423 struct mv88e6xxx_chip *chip;
432 int (*setup_errata)(struct mv88e6xxx_chip *chip);
434 int (*ieee_pri_map)(struct mv88e6xxx_chip *chip);
435 int (*ip_pri_map)(struct mv88e6xxx_chip *chip);
438 int (*irl_init_all)(struct mv88e6xxx_chip *chip, int port);
[all …]
Dglobal1.h272 int mv88e6xxx_g1_read(struct mv88e6xxx_chip *chip, int reg, u16 *val);
273 int mv88e6xxx_g1_write(struct mv88e6xxx_chip *chip, int reg, u16 val);
274 int mv88e6xxx_g1_wait_bit(struct mv88e6xxx_chip *chip, int reg, int
276 int mv88e6xxx_g1_wait_mask(struct mv88e6xxx_chip *chip, int reg,
279 int mv88e6xxx_g1_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr);
281 int mv88e6185_g1_reset(struct mv88e6xxx_chip *chip);
282 int mv88e6352_g1_reset(struct mv88e6xxx_chip *chip);
283 int mv88e6250_g1_reset(struct mv88e6xxx_chip *chip);
285 int mv88e6185_g1_ppu_enable(struct mv88e6xxx_chip *chip);
286 int mv88e6185_g1_ppu_disable(struct mv88e6xxx_chip *chip);
[all …]
Dport.h326 int mv88e6xxx_port_read(struct mv88e6xxx_chip *chip, int port, int reg,
328 int mv88e6xxx_port_write(struct mv88e6xxx_chip *chip, int port, int reg,
330 int mv88e6xxx_port_wait_bit(struct mv88e6xxx_chip *chip, int port, int reg,
333 int mv88e6185_port_set_pause(struct mv88e6xxx_chip *chip, int port,
335 int mv88e6320_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port,
337 int mv88e6352_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port,
339 int mv88e6390_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port,
342 int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link);
344 int mv88e6xxx_port_sync_link(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup);
345 int mv88e6185_port_sync_link(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup);
[all …]
Dserdes.h106 int mv88e6185_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
107 int mv88e6341_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
108 int mv88e6352_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
109 int mv88e6390_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
110 int mv88e6390x_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
111 int mv88e6393x_serdes_get_lane(struct mv88e6xxx_chip *chip, int port);
112 int mv88e6352_serdes_pcs_config(struct mv88e6xxx_chip *chip, int port,
116 int mv88e6390_serdes_pcs_config(struct mv88e6xxx_chip *chip, int port,
120 int mv88e6185_serdes_pcs_get_state(struct mv88e6xxx_chip *chip, int port,
122 int mv88e6352_serdes_pcs_get_state(struct mv88e6xxx_chip *chip, int port,
[all …]
Dglobal2.h309 int mv88e6xxx_g2_read(struct mv88e6xxx_chip *chip, int reg, u16 *val);
310 int mv88e6xxx_g2_write(struct mv88e6xxx_chip *chip, int reg, u16 val);
311 int mv88e6xxx_g2_wait_bit(struct mv88e6xxx_chip *chip, int reg,
314 int mv88e6352_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port);
315 int mv88e6390_g2_irl_init_all(struct mv88e6xxx_chip *chip, int port);
317 int mv88e6xxx_g2_smi_phy_read(struct mv88e6xxx_chip *chip,
320 int mv88e6xxx_g2_smi_phy_write(struct mv88e6xxx_chip *chip,
323 int mv88e6xxx_g2_set_switch_mac(struct mv88e6xxx_chip *chip, u8 *addr);
325 int mv88e6xxx_g2_get_eeprom8(struct mv88e6xxx_chip *chip,
327 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 …]
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 mv88e6320_port_set_rgmii_delay(struct mv88e6xxx_chip *chip, int port, in mv88e6320_port_set_rgmii_delay()
145 int mv88e6xxx_port_set_link(struct mv88e6xxx_chip *chip, int port, int link) in mv88e6xxx_port_set_link()
183 int mv88e6xxx_port_sync_link(struct mv88e6xxx_chip *chip, int port, unsigned int mode, bool isup) in mv88e6xxx_port_sync_link()
[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 …]
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()
124 int mv88e6352_serdes_power(struct mv88e6xxx_chip *chip, int port, int lane, in mv88e6352_serdes_power()
145 int mv88e6352_serdes_pcs_config(struct mv88e6xxx_chip *chip, int port, in mv88e6352_serdes_pcs_config()
194 int mv88e6352_serdes_pcs_get_state(struct mv88e6xxx_chip *chip, int port, in mv88e6352_serdes_pcs_get_state()
221 int mv88e6352_serdes_pcs_an_restart(struct mv88e6xxx_chip *chip, int port, in mv88e6352_serdes_pcs_an_restart()
234 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.c20 static int mv88e6xxx_g1_vtu_fid_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_fid_read()
35 static int mv88e6xxx_g1_vtu_fid_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_fid_write()
48 static int mv88e6xxx_g1_vtu_sid_read(struct mv88e6xxx_chip *chip, u8 *sid) in mv88e6xxx_g1_vtu_sid_read()
62 static int mv88e6xxx_g1_vtu_sid_write(struct mv88e6xxx_chip *chip, u8 sid) in mv88e6xxx_g1_vtu_sid_write()
71 static int mv88e6xxx_g1_vtu_op_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_vtu_op_wait()
78 static int mv88e6xxx_g1_vtu_op(struct mv88e6xxx_chip *chip, u16 op) in mv88e6xxx_g1_vtu_op()
92 static int mv88e6xxx_g1_vtu_vid_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_vid_read()
115 static int mv88e6xxx_g1_vtu_vid_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_vtu_vid_write()
133 static int mv88e6185_g1_vtu_stu_data_read(struct mv88e6xxx_chip *chip, in mv88e6185_g1_vtu_stu_data_read()
151 static int mv88e6185_g1_vtu_data_read(struct mv88e6xxx_chip *chip, in mv88e6185_g1_vtu_data_read()
[all …]
Dglobal1_atu.c19 static int mv88e6xxx_g1_atu_fid_write(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_fid_write()
26 int mv88e6xxx_g1_atu_set_learn2all(struct mv88e6xxx_chip *chip, bool learn2all) in mv88e6xxx_g1_atu_set_learn2all()
43 int mv88e6xxx_g1_atu_set_age_time(struct mv88e6xxx_chip *chip, in mv88e6xxx_g1_atu_set_age_time()
77 int mv88e6165_g1_atu_get_hash(struct mv88e6xxx_chip *chip, u8 *hash) in mv88e6165_g1_atu_get_hash()
91 int mv88e6165_g1_atu_set_hash(struct mv88e6xxx_chip *chip, u8 hash) in mv88e6165_g1_atu_set_hash()
111 static int mv88e6xxx_g1_atu_op_wait(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_atu_op_wait()
118 static int mv88e6xxx_g1_read_atu_violation(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_read_atu_violation()
131 static int mv88e6xxx_g1_atu_op(struct mv88e6xxx_chip *chip, u16 fid, u16 op) in mv88e6xxx_g1_atu_op()
171 int mv88e6xxx_g1_atu_get_next(struct mv88e6xxx_chip *chip, u16 fid) in mv88e6xxx_g1_atu_get_next()
176 static int mv88e6xxx_g1_atu_fid_read(struct mv88e6xxx_chip *chip, u16 *fid) in mv88e6xxx_g1_atu_fid_read()
[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.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()
174 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_hwtstamp_set()
199 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_port_hwtstamp_get()
213 static struct ptp_header *mv88e6xxx_should_tstamp(struct mv88e6xxx_chip *chip, in mv88e6xxx_should_tstamp()
252 static void mv88e6xxx_get_rxts(struct mv88e6xxx_chip *chip, in mv88e6xxx_get_rxts()
[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()
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()
123 int mv88e6xxx_wait_bit(struct mv88e6xxx_chip *chip, int addr, int reg, in mv88e6xxx_wait_bit()
130 struct mii_bus *mv88e6xxx_default_mdio_bus(struct mv88e6xxx_chip *chip) in mv88e6xxx_default_mdio_bus()
144 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_mask()
152 struct mv88e6xxx_chip *chip = irq_data_get_irq_chip_data(d); in mv88e6xxx_g1_irq_unmask()
158 static irqreturn_t mv88e6xxx_g1_irq_thread_work(struct mv88e6xxx_chip *chip) in mv88e6xxx_g1_irq_thread_work()
202 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()
88 static int mv88e6xxx_smi_dual_direct_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_dual_direct_read()
94 static int mv88e6xxx_smi_dual_direct_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_dual_direct_write()
109 static int mv88e6xxx_smi_indirect_read(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_indirect_read()
132 static int mv88e6xxx_smi_indirect_write(struct mv88e6xxx_chip *chip, in mv88e6xxx_smi_indirect_write()
155 static int mv88e6xxx_smi_indirect_init(struct mv88e6xxx_chip *chip) in mv88e6xxx_smi_indirect_init()
171 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()