Home
last modified time | relevance | path

Searched refs:b53_device (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/net/dsa/b53/
H A Db53_priv.h30 struct b53_device;
34 int (*read8)(struct b53_device *dev, u8 page, u8 reg, u8 *value);
35 int (*read16)(struct b53_device *dev, u8 page, u8 reg, u16 *value);
36 int (*read32)(struct b53_device *dev, u8 page, u8 reg, u32 *value);
37 int (*read48)(struct b53_device *dev, u8 page, u8 reg, u64 *value);
38 int (*read64)(struct b53_device *dev, u8 page, u8 reg, u64 *value);
39 int (*write8)(struct b53_device *dev, u8 page, u8 reg, u8 value);
40 int (*write16)(struct b53_device *dev, u8 page, u8 reg, u16 value);
41 int (*write32)(struct b53_device *dev, u8 page, u8 reg, u32 value);
42 int (*write48)(struct b53_device *dev, u8 page, u8 reg, u64 value);
[all …]
H A Db53_mdio.c42 static int b53_mdio_op(struct b53_device *dev, u8 page, u8 reg, u16 op) in b53_mdio_op()
80 static int b53_mdio_read8(struct b53_device *dev, u8 page, u8 reg, u8 *val) in b53_mdio_read8()
95 static int b53_mdio_read16(struct b53_device *dev, u8 page, u8 reg, u16 *val) in b53_mdio_read16()
109 static int b53_mdio_read32(struct b53_device *dev, u8 page, u8 reg, u32 *val) in b53_mdio_read32()
125 static int b53_mdio_read48(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_mdio_read48()
147 static int b53_mdio_read64(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_mdio_read64()
169 static int b53_mdio_write8(struct b53_device *dev, u8 page, u8 reg, u8 value) in b53_mdio_write8()
182 static int b53_mdio_write16(struct b53_device *dev, u8 page, u8 reg, in b53_mdio_write16()
196 static int b53_mdio_write32(struct b53_device *dev, u8 page, u8 reg, in b53_mdio_write32()
215 static int b53_mdio_write48(struct b53_device *dev, u8 page, u8 reg, in b53_mdio_write48()
[all …]
H A Db53_srab.c80 struct b53_device *dev;
91 static int b53_srab_request_grant(struct b53_device *dev) in b53_srab_request_grant()
114 static void b53_srab_release_grant(struct b53_device *dev) in b53_srab_release_grant()
125 static int b53_srab_op(struct b53_device *dev, u8 page, u8 reg, u32 op) in b53_srab_op()
153 static int b53_srab_read8(struct b53_device *dev, u8 page, u8 reg, u8 *val) in b53_srab_read8()
175 static int b53_srab_read16(struct b53_device *dev, u8 page, u8 reg, u16 *val) in b53_srab_read16()
197 static int b53_srab_read32(struct b53_device *dev, u8 page, u8 reg, u32 *val) in b53_srab_read32()
219 static int b53_srab_read48(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_srab_read48()
242 static int b53_srab_read64(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_srab_read64()
265 static int b53_srab_write8(struct b53_device *dev, u8 page, u8 reg, u8 value) in b53_srab_write8()
[all …]
H A Db53_spi.c124 static int b53_spi_read(struct b53_device *dev, u8 page, u8 reg, u8 *data, in b53_spi_read()
141 static int b53_spi_read8(struct b53_device *dev, u8 page, u8 reg, u8 *val) in b53_spi_read8()
146 static int b53_spi_read16(struct b53_device *dev, u8 page, u8 reg, u16 *val) in b53_spi_read16()
159 static int b53_spi_read32(struct b53_device *dev, u8 page, u8 reg, u32 *val) in b53_spi_read32()
172 static int b53_spi_read48(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_spi_read48()
185 static int b53_spi_read64(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_spi_read64()
198 static int b53_spi_write8(struct b53_device *dev, u8 page, u8 reg, u8 value) in b53_spi_write8()
215 static int b53_spi_write16(struct b53_device *dev, u8 page, u8 reg, u16 value) in b53_spi_write16()
232 static int b53_spi_write32(struct b53_device *dev, u8 page, u8 reg, u32 value) in b53_spi_write32()
249 static int b53_spi_write48(struct b53_device *dev, u8 page, u8 reg, u64 value) in b53_spi_write48()
[all …]
H A Db53_common.c231 static int b53_do_vlan_op(struct b53_device *dev, u8 op) in b53_do_vlan_op()
250 static void b53_set_vlan_entry(struct b53_device *dev, u16 vid, in b53_set_vlan_entry()
290 static void b53_get_vlan_entry(struct b53_device *dev, u16 vid, in b53_get_vlan_entry()
329 static void b53_set_forwarding(struct b53_device *dev, int enable) in b53_set_forwarding()
356 static void b53_enable_vlan(struct b53_device *dev, int port, bool enable, in b53_enable_vlan()
443 static int b53_set_jumbo(struct b53_device *dev, bool enable, bool allow_10_100) in b53_set_jumbo()
462 static int b53_flush_arl(struct b53_device *dev, u8 mask) in b53_flush_arl()
488 static int b53_fast_age_port(struct b53_device *dev, int port) in b53_fast_age_port()
495 static int b53_fast_age_vlan(struct b53_device *dev, u16 vid) in b53_fast_age_vlan()
504 struct b53_device *dev = ds->priv; in b53_imp_vlan_setup()
[all …]
H A Db53_mmap.c33 static int b53_mmap_read8(struct b53_device *dev, u8 page, u8 reg, u8 *val) in b53_mmap_read8()
43 static int b53_mmap_read16(struct b53_device *dev, u8 page, u8 reg, u16 *val) in b53_mmap_read16()
59 static int b53_mmap_read32(struct b53_device *dev, u8 page, u8 reg, u32 *val) in b53_mmap_read32()
75 static int b53_mmap_read48(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_mmap_read48()
114 static int b53_mmap_read64(struct b53_device *dev, u8 page, u8 reg, u64 *val) in b53_mmap_read64()
136 static int b53_mmap_write8(struct b53_device *dev, u8 page, u8 reg, u8 value) in b53_mmap_write8()
146 static int b53_mmap_write16(struct b53_device *dev, u8 page, u8 reg, in b53_mmap_write16()
163 static int b53_mmap_write32(struct b53_device *dev, u8 page, u8 reg, in b53_mmap_write32()
180 static int b53_mmap_write48(struct b53_device *dev, u8 page, u8 reg, in b53_mmap_write48()
203 static int b53_mmap_write64(struct b53_device *dev, u8 page, u8 reg, in b53_mmap_write64()
[all …]
H A Db53_serdes.c25 static void b53_serdes_write_blk(struct b53_device *dev, u8 offset, u16 block, in b53_serdes_write_blk()
32 static u16 b53_serdes_read_blk(struct b53_device *dev, u8 offset, u16 block) in b53_serdes_read_blk()
42 static void b53_serdes_set_lane(struct b53_device *dev, u8 lane) in b53_serdes_set_lane()
54 static void b53_serdes_write(struct b53_device *dev, u8 lane, in b53_serdes_write()
61 static u16 b53_serdes_read(struct b53_device *dev, u8 lane, in b53_serdes_read()
73 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_config()
91 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_an_restart()
105 struct b53_device *dev = pcs_to_b53_pcs(pcs)->dev; in b53_serdes_get_state()
139 void b53_serdes_link_set(struct b53_device *dev, int port, unsigned int mode, in b53_serdes_link_set()
165 void b53_serdes_phylink_get_caps(struct b53_device *dev, int port, in b53_serdes_phylink_get_caps()
[all …]
H A Db53_serdes.h102 static inline u8 b53_serdes_map_lane(struct b53_device *dev, int port) in b53_serdes_map_lane()
110 void b53_serdes_link_set(struct b53_device *dev, int port, unsigned int mode,
112 struct phylink_pcs *b53_serdes_phylink_mac_select_pcs(struct b53_device *dev,
115 void b53_serdes_phylink_get_caps(struct b53_device *dev, int port,
118 int b53_serdes_init(struct b53_device *dev, int port);
120 static inline int b53_serdes_init(struct b53_device *dev, int port) in b53_serdes_init()
/linux/drivers/net/dsa/
H A Dbcm_sf2.c1087 static int bcm_sf2_core_read8(struct b53_device *dev, u8 page, u8 reg, in bcm_sf2_core_read8()
1097 static int bcm_sf2_core_read16(struct b53_device *dev, u8 page, u8 reg, in bcm_sf2_core_read16()
1107 static int bcm_sf2_core_read32(struct b53_device *dev, u8 page, u8 reg, in bcm_sf2_core_read32()
1117 static int bcm_sf2_core_read64(struct b53_device *dev, u8 page, u8 reg, in bcm_sf2_core_read64()
1127 static int bcm_sf2_core_write8(struct b53_device *dev, u8 page, u8 reg, in bcm_sf2_core_write8()
1137 static int bcm_sf2_core_write16(struct b53_device *dev, u8 page, u8 reg, in bcm_sf2_core_write16()
1147 static int bcm_sf2_core_write32(struct b53_device *dev, u8 page, u8 reg, in bcm_sf2_core_write32()
1157 static int bcm_sf2_core_write64(struct b53_device *dev, u8 page, u8 reg, in bcm_sf2_core_write64()
1367 struct b53_device *dev; in bcm_sf2_sw_probe()
H A Dbcm_sf2.h90 struct b53_device *dev;
122 struct b53_device *dev = ds->priv; in bcm_sf2_to_priv()