Home
last modified time | relevance | path

Searched +defs:val +defs:ds (Results 1 – 25 of 86) sorted by relevance

1234

/linux-6.14.4/drivers/net/dsa/
Dmt7530.c93 core_write(struct mt7530_priv *priv, u32 reg, u32 val) in core_write()
132 u32 val; in core_rmw() local
171 core_set(struct mt7530_priv *priv, u32 reg, u32 val) in core_set()
177 core_clear(struct mt7530_priv *priv, u32 reg, u32 val) in core_clear()
183 mt7530_mii_write(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_mii_write()
200 u32 val; in mt7530_mii_read() local
214 mt7530_write(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_write()
232 u32 val; in _mt7530_read() local
264 mt7530_set(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_set()
270 mt7530_clear(struct mt7530_priv *priv, u32 reg, u32 val) in mt7530_clear()
[all …]
Dmv88e6060.c22 static int reg_write(struct mv88e6060_priv *priv, int addr, int reg, u16 val) in reg_write()
45 static enum dsa_tag_protocol mv88e6060_get_tag_protocol(struct dsa_switch *ds, in mv88e6060_get_tag_protocol()
163 u16 val; in mv88e6060_setup_addr() local
187 static int mv88e6060_setup(struct dsa_switch *ds) in mv88e6060_setup()
225 static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) in mv88e6060_phy_read()
238 mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) in mv88e6060_phy_write()
250 static void mv88e6060_phylink_get_caps(struct dsa_switch *ds, int port, in mv88e6060_phylink_get_caps()
306 struct dsa_switch *ds; in mv88e6060_probe() local
339 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_remove() local
349 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); in mv88e6060_shutdown() local
Dbcm_sf2.c116 static unsigned int bcm_sf2_num_active_ports(struct dsa_switch *ds) in bcm_sf2_num_active_ports()
131 static void bcm_sf2_recalc_clock(struct dsa_switch *ds) in bcm_sf2_recalc_clock()
158 static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port) in bcm_sf2_imp_setup()
202 static void bcm_sf2_gphy_enable_set(struct dsa_switch *ds, bool enable) in bcm_sf2_gphy_enable_set()
280 static int bcm_sf2_port_setup(struct dsa_switch *ds, int port, in bcm_sf2_port_setup()
349 static void bcm_sf2_port_disable(struct dsa_switch *ds, int port) in bcm_sf2_port_disable()
382 int regnum, u16 val) in bcm_sf2_sw_indir_rw()
426 u16 val) in bcm_sf2_sw_mdio_write()
442 struct dsa_switch *ds = dev_id; in bcm_sf2_switch_0_isr() local
454 struct dsa_switch *ds = dev_id; in bcm_sf2_switch_1_isr() local
[all …]
Dvitesse-vsc73xx-core.c495 u32 *val) in vsc73xx_read()
501 u32 val) in vsc73xx_write()
507 u8 reg, u32 mask, u32 val) in vsc73xx_update_bits()
525 u32 val; in vsc73xx_detect() local
608 u32 val; in vsc73xx_mdio_busy_check() local
621 static int vsc73xx_phy_read(struct dsa_switch *ds, int phy, int regnum) in vsc73xx_phy_read()
625 u32 val; in vsc73xx_phy_read() local
662 static int vsc73xx_phy_write(struct dsa_switch *ds, int phy, int regnum, in vsc73xx_phy_write()
663 u16 val) in vsc73xx_phy_write()
686 static enum dsa_tag_protocol vsc73xx_get_tag_protocol(struct dsa_switch *ds, in vsc73xx_get_tag_protocol()
[all …]
Dlan9303-core.c289 u32 val; in lan9303_virt_phy_reg_read() local
301 static int lan9303_virt_phy_reg_write(struct lan9303 *chip, int regnum, u16 val) in lan9303_virt_phy_reg_write()
318 u32 val; in lan9303_indirect_phy_read() local
353 int regnum, u16 val) in lan9303_indirect_phy_write()
393 static int lan9303_write_switch_reg(struct lan9303 *chip, u16 regnum, u32 val) in lan9303_write_switch_reg()
425 static int lan9303_read_switch_reg(struct lan9303 *chip, u16 regnum, u32 *val) in lan9303_read_switch_reg()
462 u32 val, u32 mask) in lan9303_write_switch_reg_mask()
477 u16 regnum, u32 val) in lan9303_write_switch_port()
484 u16 regnum, u32 *val) in lan9303_read_switch_port()
785 u32 val; in lan9303_setup_tagging() local
[all …]
Drzn1_a5psw.c81 static void a5psw_reg_rmw(struct a5psw *a5psw, int offset, u32 mask, u32 val) in a5psw_reg_rmw()
95 static enum dsa_tag_protocol a5psw_get_tag_protocol(struct dsa_switch *ds, in a5psw_get_tag_protocol()
187 static void a5psw_port_disable(struct dsa_switch *ds, int port) in a5psw_port_disable()
195 static int a5psw_port_enable(struct dsa_switch *ds, int port, in a5psw_port_enable()
206 static int a5psw_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu) in a5psw_port_change_mtu()
216 static int a5psw_port_max_mtu(struct dsa_switch *ds, int port) in a5psw_port_max_mtu()
221 static void a5psw_phylink_get_caps(struct dsa_switch *ds, int port, in a5psw_phylink_get_caps()
300 static int a5psw_set_ageing_time(struct dsa_switch *ds, unsigned int msecs) in a5psw_set_ageing_time()
357 static int a5psw_port_bridge_join(struct dsa_switch *ds, int port, in a5psw_port_bridge_join()
379 static void a5psw_port_bridge_leave(struct dsa_switch *ds, int port, in a5psw_port_bridge_leave()
[all …]
Dlantiq_gswip.c284 struct dsa_switch *ds; member
298 u16 val[5]; member
362 static void gswip_switch_w(struct gswip_priv *priv, u32 val, u32 offset) in gswip_switch_w()
370 u32 val = gswip_switch_r(priv, offset); in gswip_switch_mask() local
380 u32 val; in gswip_switch_r_timeout() local
391 static void gswip_mdio_w(struct gswip_priv *priv, u32 val, u32 offset) in gswip_mdio_w()
399 u32 val = gswip_mdio_r(priv, offset); in gswip_mdio_mask() local
411 static void gswip_mii_w(struct gswip_priv *priv, u32 val, u32 offset) in gswip_mii_w()
419 u32 val = gswip_mii_r(priv, offset); in gswip_mii_mask() local
465 static int gswip_mdio_wr(struct mii_bus *bus, int addr, int reg, u16 val) in gswip_mdio_wr()
[all …]
/linux-6.14.4/drivers/net/dsa/xrs700x/
Dxrs700x.c86 static void xrs700x_get_strings(struct dsa_switch *ds, int port, in xrs700x_get_strings()
98 static int xrs700x_get_sset_count(struct dsa_switch *ds, int port, int sset) in xrs700x_get_sset_count()
159 static void xrs700x_get_ethtool_stats(struct dsa_switch *ds, int port, in xrs700x_get_ethtool_stats()
172 static void xrs700x_get_stats64(struct dsa_switch *ds, int port, in xrs700x_get_stats64()
226 static enum dsa_tag_protocol xrs700x_get_tag_protocol(struct dsa_switch *ds, in xrs700x_get_tag_protocol()
233 static int xrs700x_reset(struct dsa_switch *ds) in xrs700x_reset()
236 unsigned int val; in xrs700x_reset() local
255 static void xrs700x_port_stp_state_set(struct dsa_switch *ds, int port, in xrs700x_port_stp_state_set()
260 unsigned int val; in xrs700x_port_stp_state_set() local
297 static int xrs700x_port_add_bpdu_ipf(struct dsa_switch *ds, int port) in xrs700x_port_add_bpdu_ipf()
[all …]
/linux-6.14.4/drivers/net/dsa/hirschmann/
Dhellcreek.c118 u16 val = port << HR_PSEL_PTWSEL_SHIFT; in hellcreek_select_port() local
125 u16 val = prio << HR_PSEL_PRTCWSEL_SHIFT; in hellcreek_select_prio() local
133 u16 val = port << HR_PSEL_PTWSEL_SHIFT; in hellcreek_select_port_prio() local
142 u16 val = counter << HR_CSEL_SHIFT; in hellcreek_select_counter() local
153 u16 val = 0; in hellcreek_select_vlan() local
167 u16 val = port << TR_TGDSEL_TDGSEL_SHIFT; in hellcreek_select_tgd() local
174 u16 val; in hellcreek_wait_until_ready() local
184 u16 val; in hellcreek_wait_until_transitioned() local
193 u16 val; in hellcreek_wait_fdb_ready() local
240 static enum dsa_tag_protocol hellcreek_get_tag_protocol(struct dsa_switch *ds, in hellcreek_get_tag_protocol()
[all …]
/linux-6.14.4/drivers/net/dsa/qca/
Dqca8k-common.c66 int qca8k_read(struct qca8k_priv *priv, u32 reg, u32 *val) in qca8k_read()
71 int qca8k_write(struct qca8k_priv *priv, u32 reg, u32 val) in qca8k_write()
106 u32 val; in qca8k_busy_wait() local
480 void qca8k_get_strings(struct dsa_switch *ds, int port, u32 stringset, in qca8k_get_strings()
493 void qca8k_get_ethtool_stats(struct dsa_switch *ds, int port, in qca8k_get_ethtool_stats()
498 u32 reg, i, val; in qca8k_get_ethtool_stats() local
526 int qca8k_get_sset_count(struct dsa_switch *ds, int port, int sset) in qca8k_get_sset_count()
536 int qca8k_set_mac_eee(struct dsa_switch *ds, int port, in qca8k_set_mac_eee()
560 static int qca8k_port_configure_learning(struct dsa_switch *ds, int port, in qca8k_port_configure_learning()
575 void qca8k_port_stp_state_set(struct dsa_switch *ds, int port, u8 state) in qca8k_port_stp_state_set()
[all …]
Dqca8k-8xxx.c41 qca8k_mii_write_lo(struct mii_bus *bus, int phy_id, u32 regnum, u32 val) in qca8k_mii_write_lo()
56 qca8k_mii_write_hi(struct mii_bus *bus, int phy_id, u32 regnum, u32 val) in qca8k_mii_write_hi()
71 qca8k_mii_read_lo(struct mii_bus *bus, int phy_id, u32 regnum, u32 *val) in qca8k_mii_read_lo()
91 qca8k_mii_read_hi(struct mii_bus *bus, int phy_id, u32 regnum, u32 *val) in qca8k_mii_read_hi()
111 qca8k_mii_read32(struct mii_bus *bus, int phy_id, u32 regnum, u32 *val) in qca8k_mii_read32()
133 qca8k_mii_write32(struct mii_bus *bus, int phy_id, u32 regnum, u32 val) in qca8k_mii_write32()
163 static void qca8k_rw_reg_ack_handler(struct dsa_switch *ds, struct sk_buff *skb) in qca8k_rw_reg_ack_handler()
193 u32 *val = mgmt_eth_data->data; in qca8k_rw_reg_ack_handler() local
218 static struct sk_buff *qca8k_alloc_mdio_header(enum mdio_cmd cmd, u32 reg, u32 *val, in qca8k_alloc_mdio_header()
312 static int qca8k_read_eth(struct qca8k_priv *priv, u32 reg, u32 *val, int len) in qca8k_read_eth()
[all …]
Dar9331.c240 struct dsa_switch ds; member
298 u32 val; in ar9331_sw_mbus_write() local
327 u32 val; in ar9331_sw_mbus_read() local
392 static int ar9331_sw_setup_port(struct dsa_switch *ds, int port) in ar9331_sw_setup_port()
396 u32 port_mask, port_ctrl, val; in ar9331_sw_setup_port() local
440 static int ar9331_sw_setup(struct dsa_switch *ds) in ar9331_sw_setup()
485 static void ar9331_sw_port_disable(struct dsa_switch *ds, int port) in ar9331_sw_port_disable()
496 static enum dsa_tag_protocol ar9331_sw_get_tag_protocol(struct dsa_switch *ds, in ar9331_sw_get_tag_protocol()
503 static void ar9331_sw_phylink_get_caps(struct dsa_switch *ds, int port, in ar9331_sw_phylink_get_caps()
571 u32 val; in ar9331_sw_phylink_mac_link_up() local
[all …]
/linux-6.14.4/drivers/net/dsa/microchip/
Dksz_common.c1992 static void ksz_phylink_get_caps(struct dsa_switch *ds, int port, in ksz_phylink_get_caps()
2126 static void ksz_get_stats64(struct dsa_switch *ds, int port, in ksz_get_stats64()
2139 static void ksz_get_pause_stats(struct dsa_switch *ds, int port, in ksz_get_pause_stats()
2152 static void ksz_get_strings(struct dsa_switch *ds, int port, in ksz_get_strings()
2191 struct dsa_switch *ds = dev->ds; in ksz_update_port_member() local
2205 u8 val = 0; in ksz_update_port_member() local
2267 u16 val; in ksz_sw_mdio_read() local
2278 u16 val) in ksz_sw_mdio_write()
2319 u16 val) in ksz_parent_mdio_write()
2341 struct dsa_switch *ds = dev->ds; in ksz_phy_addr_to_port() local
[all …]
Dlan937x_main.c269 u16 val) in lan937x_internal_phy_write()
305 u16 *val) in lan937x_internal_phy_read()
340 int lan937x_w_phy(struct ksz_device *dev, u16 addr, u16 reg, u16 val) in lan937x_w_phy()
380 struct dsa_switch *ds = dev->ds; in lan937x_port_setup() local
412 void lan937x_config_cpu_port(struct dsa_switch *ds) in lan937x_config_cpu_port()
433 struct dsa_switch *ds = dev->ds; in lan937x_change_mtu() local
536 u16 reg, u8 val) in lan937x_set_tune_adj()
553 u8 val; in lan937x_set_rgmii_tx_delay() local
566 u8 val; in lan937x_set_rgmii_rx_delay() local
606 int lan937x_tc_cbs_set_cinc(struct ksz_device *dev, int port, u32 val) in lan937x_tc_cbs_set_cinc()
[all …]
/linux-6.14.4/drivers/net/dsa/b53/
Db53_common.c502 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) in b53_imp_vlan_setup()
566 static void b53_eee_enable_set(struct dsa_switch *ds, int port, bool enable) in b53_eee_enable_set()
579 int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy) in b53_enable_port()
623 void b53_disable_port(struct dsa_switch *ds, int port) in b53_disable_port()
638 void b53_brcm_hdr_setup(struct dsa_switch *ds, int port) in b53_brcm_hdr_setup()
642 u8 hdr_ctl, val; in b53_brcm_hdr_setup() local
757 static bool b53_vlan_port_needs_forced_tagged(struct dsa_switch *ds, int port) in b53_vlan_port_needs_forced_tagged()
764 int b53_configure_vlan(struct dsa_switch *ds) in b53_configure_vlan()
893 static int b53_phy_read16(struct dsa_switch *ds, int addr, int reg) in b53_phy_read16()
908 static int b53_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val) in b53_phy_write16()
[all …]
/linux-6.14.4/drivers/net/dsa/realtek/
Drtl8366rb.c357 u32 addr, val; in rtl8366rb_get_mib_counter() local
397 u32 val; in rtl8366rb_get_irqmask() local
500 u32 val; in rtl8366rb_setup_cascaded_irq() local
573 u16 val; in rtl8366rb_set_addr() local
601 u16 val; member
724 u32 val; in rtl8366rb_jam_table() local
762 u32 val; in rb8366rb_set_ledgroup_mode() local
797 static int rtl8366rb_setup(struct dsa_switch *ds) in rtl8366rb_setup()
1026 static enum dsa_tag_protocol rtl8366_get_tag_protocol(struct dsa_switch *ds, in rtl8366_get_tag_protocol()
1034 static void rtl8366rb_phylink_get_caps(struct dsa_switch *ds, int port, in rtl8366rb_phylink_get_caps()
[all …]
Drtl8365mb.c453 u16 val; member
652 u32 val; in rtl8365mb_phy_poll_busy() local
662 u32 val; in rtl8365mb_phy_ocp_prepare() local
692 u32 val; in rtl8365mb_phy_ocp_read() local
736 u32 val; in rtl8365mb_phy_ocp_write() local
778 u16 val; in rtl8365mb_phy_read() local
804 u16 val) in rtl8365mb_phy_write()
852 rtl8365mb_get_tag_protocol(struct dsa_switch *ds, int port, in rtl8365mb_get_tag_protocol()
873 struct dsa_switch *ds = &priv->ds; in rtl8365mb_ext_config_rgmii() local
878 u32 val; in rtl8365mb_ext_config_rgmii() local
[all …]
Drtl83xx.c55 u16 val) in rtl83xx_user_mdio_write()
72 int rtl83xx_setup_user_mdio(struct dsa_switch *ds) in rtl83xx_setup_user_mdio()
225 struct dsa_switch *ds = &priv->ds; in rtl83xx_register_switch() local
261 struct dsa_switch *ds = &priv->ds; in rtl83xx_unregister_switch() local
280 struct dsa_switch *ds = &priv->ds; in rtl83xx_shutdown() local
/linux-6.14.4/drivers/net/dsa/mv88e6xxx/
Dchip.c55 int mv88e6xxx_read(struct mv88e6xxx_chip *chip, int addr, int reg, u16 *val) in mv88e6xxx_read()
71 int mv88e6xxx_write(struct mv88e6xxx_chip *chip, int addr, int reg, u16 val) in mv88e6xxx_write()
88 u16 mask, u16 val) in mv88e6xxx_wait_mask()
125 int bit, int val) in mv88e6xxx_wait_bit()
643 u16 reg, val; in mv88e63xx_get_port_serdes_cmode() local
847 static void mv88e6xxx_get_caps(struct dsa_switch *ds, int port, in mv88e6xxx_get_caps()
1205 static void mv88e6xxx_get_strings(struct dsa_switch *ds, int port, in mv88e6xxx_get_strings()
1257 static int mv88e6xxx_get_sset_count(struct dsa_switch *ds, int port, int sset) in mv88e6xxx_get_sset_count()
1384 static void mv88e6xxx_get_ethtool_stats(struct dsa_switch *ds, int port, in mv88e6xxx_get_ethtool_stats()
1397 static void mv88e6xxx_get_eth_mac_stats(struct dsa_switch *ds, int port, in mv88e6xxx_get_eth_mac_stats()
[all …]
Dhwtstamp.c66 int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, in mv88e6xxx_get_ts_info()
171 int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port, in mv88e6xxx_port_hwtstamp_set()
196 int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port, in mv88e6xxx_port_hwtstamp_get()
331 bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, in mv88e6xxx_port_rxtstamp()
449 struct dsa_switch *ds = chip->ds; in mv88e6xxx_hwtstamp_work() local
467 void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, in mv88e6xxx_port_txtstamp()
503 u16 val; in mv88e6165_global_disable() local
516 u16 val; in mv88e6165_global_enable() local
602 u16 val = MV88E6341_PTP_CFG_UPDATE | in mv88e6xxx_hwtstamp_setup() local
/linux-6.14.4/drivers/net/dsa/ocelot/
Dfelix.c45 static int felix_cpu_port_for_conduit(struct dsa_switch *ds, in felix_cpu_port_for_conduit()
101 static int felix_tag_8021q_vlan_add_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_rx()
150 static int felix_tag_8021q_vlan_del_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_del_rx()
172 static int felix_tag_8021q_vlan_add_tx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_tx()
239 static int felix_tag_8021q_vlan_del_tx(struct dsa_switch *ds, int port, u16 vid) in felix_tag_8021q_vlan_del_tx()
270 static int felix_tag_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid, in felix_tag_8021q_vlan_add()
304 static int felix_tag_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid) in felix_tag_8021q_vlan_del()
333 static int felix_update_tag_8021q_rx_rules(struct dsa_switch *ds, int port, in felix_update_tag_8021q_rx_rules()
362 static int felix_trap_get_cpu_port(struct dsa_switch *ds, in felix_trap_get_cpu_port()
381 static int felix_update_trapping_destinations(struct dsa_switch *ds, in felix_update_trapping_destinations()
[all …]
/linux-6.14.4/drivers/net/dsa/sja1105/
Dsja1105_mdio.c36 int reg, u16 val) in sja1105_pcs_mdio_write_c45()
98 u16 val) in sja1110_pcs_mdio_write_c45()
194 u16 val) in sja1105_base_t1_mdio_write_c22()
209 int mmd, int reg, u16 val) in sja1105_base_t1_mdio_write_c45()
247 u16 val) in sja1105_base_tx_mdio_write()
371 struct dsa_switch *ds = priv->ds; in sja1105_mdiobus_pcs_register() local
441 struct dsa_switch *ds = priv->ds; in sja1105_mdiobus_pcs_unregister() local
459 int sja1105_mdiobus_register(struct dsa_switch *ds) in sja1105_mdiobus_register()
504 void sja1105_mdiobus_unregister(struct dsa_switch *ds) in sja1105_mdiobus_unregister()
/linux-6.14.4/drivers/net/wireless/ath/ath9k/
Dar9003_mac.c27 ar9003_set_txdesc(struct ath_hw *ah, void *ds, struct ath_tx_info *i) in ar9003_set_txdesc()
31 u32 val, ctl12, ctl17; in ar9003_set_txdesc() local
174 static void ar9003_hw_set_desc_link(void *ds, u32 ds_link) in ar9003_hw_set_desc_link()
355 static int ar9003_hw_proc_txdesc(struct ath_hw *ah, void *ds, in ar9003_hw_proc_txdesc()
435 static int ar9003_hw_get_duration(struct ath_hw *ah, const void *ds, int index) in ar9003_hw_get_duration()
/linux-6.14.4/net/dsa/
Dtag_ksz.c34 ksz_tagger_private(struct dsa_switch *ds) in ksz_tagger_private()
39 static void ksz_hwtstamp_set_state(struct dsa_switch *ds, bool on) in ksz_hwtstamp_set_state()
49 static void ksz_disconnect(struct dsa_switch *ds) in ksz_disconnect()
58 static int ksz_connect(struct dsa_switch *ds) in ksz_connect()
281 u16 val; in ksz9477_xmit() local
419 u16 val; in lan937x_xmit() local
Dport.c57 struct dsa_switch *ds = dp->ds; in dsa_port_fast_age() local
70 struct dsa_switch *ds = dp->ds; in dsa_port_vlan_fast_age() local
107 struct dsa_switch *ds = dp->ds; in dsa_port_can_configure_learning() local
119 struct dsa_switch *ds = dp->ds; in dsa_port_supports_hwtstamp() local
137 struct dsa_switch *ds = dp->ds; in dsa_port_set_state() local
171 struct dsa_switch *ds = dp->ds; in dsa_port_set_state_now() local
185 struct dsa_switch *ds = dp->ds; in dsa_port_set_mst_state() local
219 struct dsa_switch *ds = dp->ds; in dsa_port_enable_rt() local
251 struct dsa_switch *ds = dp->ds; in dsa_port_disable_rt() local
276 struct dsa_switch *ds = dp->ds; in dsa_port_reset_vlan_filtering() local
[all …]

1234