/linux-master/drivers/net/dsa/ |
H A D | mv88e6060.c | 45 static enum dsa_tag_protocol mv88e6060_get_tag_protocol(struct dsa_switch *ds, argument 121 if (dsa_is_unused_port(priv->ds, p)) 130 dsa_is_cpu_port(priv->ds, p) ? 145 (dsa_is_cpu_port(priv->ds, p) ? 146 dsa_user_ports(priv->ds) : 147 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); 187 static int mv88e6060_setup(struct dsa_switch *ds) argument 189 struct mv88e6060_priv *priv = ds->priv; 193 priv->ds = ds; 225 mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) argument 238 mv88e6060_phy_write(struct dsa_switch *ds, int port, int regnum, u16 val) argument 250 mv88e6060_phylink_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) argument 306 struct dsa_switch *ds; local 339 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); local 349 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); local [all...] |
H A D | bcm_sf2.c | 116 static unsigned int bcm_sf2_num_active_ports(struct dsa_switch *ds) argument 118 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); 121 for (port = 0; port < ds->num_ports; port++) { 122 if (dsa_is_cpu_port(ds, port)) 131 static void bcm_sf2_recalc_clock(struct dsa_switch *ds) argument 133 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); 144 ports_active = bcm_sf2_num_active_ports(ds); 158 static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port) argument 160 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); 185 b53_brcm_hdr_setup(ds, por 202 bcm_sf2_gphy_enable_set(struct dsa_switch *ds, bool enable) argument 280 bcm_sf2_port_setup(struct dsa_switch *ds, int port, struct phy_device *phy) argument 349 bcm_sf2_port_disable(struct dsa_switch *ds, int port) argument 442 struct dsa_switch *ds = dev_id; local 454 struct dsa_switch *ds = dev_id; local 607 bcm_sf2_mdio_register(struct dsa_switch *ds) argument 706 bcm_sf2_sw_get_phy_flags(struct dsa_switch *ds, int port) argument 722 bcm_sf2_sw_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) argument 743 bcm_sf2_sw_mac_config(struct dsa_switch *ds, int port, unsigned int mode, const struct phylink_link_state *state) argument 789 bcm_sf2_sw_mac_link_set(struct dsa_switch *ds, int port, phy_interface_t interface, bool link) argument 812 bcm_sf2_sw_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) argument 830 bcm_sf2_sw_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) argument 893 bcm_sf2_sw_fixed_state(struct dsa_switch *ds, int port, struct phylink_link_state *status) argument 923 bcm_sf2_enable_acb(struct dsa_switch *ds) argument 937 bcm_sf2_sw_suspend(struct dsa_switch *ds) argument 959 bcm_sf2_sw_resume(struct dsa_switch *ds) argument 987 bcm_sf2_sw_get_wol(struct dsa_switch *ds, int port, struct ethtool_wolinfo *wol) argument 1011 bcm_sf2_sw_set_wol(struct dsa_switch *ds, int port, struct ethtool_wolinfo *wol) argument 1041 bcm_sf2_sw_setup(struct dsa_switch *ds) argument 1063 bcm_sf2_sw_teardown(struct dsa_switch *ds) argument 1167 bcm_sf2_sw_get_strings(struct dsa_switch *ds, int port, u32 stringset, uint8_t *data) argument 1177 bcm_sf2_sw_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data) argument 1186 bcm_sf2_sw_get_sset_count(struct dsa_switch *ds, int port, int sset) argument 1352 struct dsa_switch *ds; local [all...] |
H A D | mt7530.c | 406 mt753x_preferred_default_local_cpu_port(struct dsa_switch *ds) argument 408 struct dsa_port *cpu_dp = dsa_to_port(ds, 6); 418 mt7530_setup_port6(struct dsa_switch *ds, phy_interface_t interface) argument 420 struct mt7530_priv *priv = ds->priv; 558 mt7530_mib_reset(struct dsa_switch *ds) argument 560 struct mt7530_priv *priv = ds->priv; 792 mt7530_get_strings(struct dsa_switch *ds, int port, u32 stringset, argument 805 mt7530_get_ethtool_stats(struct dsa_switch *ds, int port, argument 808 struct mt7530_priv *priv = ds->priv; 826 mt7530_get_sset_count(struct dsa_switch *ds, in argument 835 mt7530_set_ageing_time(struct dsa_switch *ds, unsigned int msecs) argument 890 mt7530_setup_port5(struct dsa_switch *ds, phy_interface_t interface) argument 1167 mt753x_cpu_port_enable(struct dsa_switch *ds, int port) argument 1198 mt7530_port_enable(struct dsa_switch *ds, int port, struct phy_device *phy) argument 1225 mt7530_port_disable(struct dsa_switch *ds, int port) argument 1242 mt7530_port_change_mtu(struct dsa_switch *ds, int port, int new_mtu) argument 1282 mt7530_port_max_mtu(struct dsa_switch *ds, int port) argument 1288 mt7530_stp_state_set(struct dsa_switch *ds, int port, u8 state) argument 1317 mt7530_port_pre_bridge_flags(struct dsa_switch *ds, int port, struct switchdev_brport_flags flags, struct netlink_ext_ack *extack) argument 1329 mt7530_port_bridge_flags(struct dsa_switch *ds, int port, struct switchdev_brport_flags flags, struct netlink_ext_ack *extack) argument 1355 mt7530_port_bridge_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool *tx_fwd_offload, struct netlink_ext_ack *extack) argument 1403 mt7530_port_set_vlan_unaware(struct dsa_switch *ds, int port) argument 1449 mt7530_port_set_vlan_aware(struct dsa_switch *ds, int port) argument 1489 mt7530_port_bridge_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge) argument 1536 mt7530_port_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1553 mt7530_port_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1570 mt7530_port_fdb_dump(struct dsa_switch *ds, int port, dsa_fdb_dump_cb_t *cb, void *data) argument 1605 mt7530_port_mdb_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) argument 1632 mt7530_port_mdb_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) argument 1687 mt7530_port_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering, struct netlink_ext_ack *extack) argument 1806 mt7530_port_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) argument 1851 mt7530_port_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) argument 1898 mt753x_port_mirror_add(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror, bool ingress, struct netlink_ext_ack *extack) argument 1936 mt753x_port_mirror_del(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror) argument 1960 mtk_get_tag_protocol(struct dsa_switch *ds, int port, enum dsa_tag_protocol mp) argument 2199 struct dsa_switch *ds = priv->ds; local 2298 struct dsa_switch *ds = priv->ds; local 2344 mt7530_setup(struct dsa_switch *ds) argument 2554 mt7531_setup_common(struct dsa_switch *ds) argument 2611 mt7531_setup(struct dsa_switch *ds) argument 2709 mt7530_mac_port_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) argument 2738 mt7531_mac_port_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) argument 2774 mt7988_mac_port_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) argument 2794 mt7530_mac_config(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) argument 2846 mt7531_mac_config(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) argument 2861 mt753x_phylink_mac_select_pcs(struct dsa_switch *ds, int port, phy_interface_t interface) argument 2879 mt753x_phylink_mac_config(struct dsa_switch *ds, int port, unsigned int mode, const struct phylink_link_state *state) argument 2892 mt753x_phylink_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) argument 2901 mt753x_phylink_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) argument 2946 mt753x_phylink_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) argument 3025 mt753x_setup(struct dsa_switch *ds) argument 3059 mt753x_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e) argument 3071 mt753x_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e) argument 3090 mt753x_conduit_state_change(struct dsa_switch *ds, const struct net_device *conduit, bool operational) argument 3119 mt7988_setup(struct dsa_switch *ds) argument [all...] |
/linux-master/drivers/net/dsa/sja1105/ |
H A D | sja1105_main.c | 88 static int sja1105_drop_untagged(struct dsa_switch *ds, int port, bool drop) argument 90 struct sja1105_private *priv = ds->priv; 119 static int sja1105_commit_pvid(struct dsa_switch *ds, int port) argument 121 struct dsa_port *dp = dsa_to_port(ds, port); 123 struct sja1105_private *priv = ds->priv; 154 if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port)) 157 return sja1105_drop_untagged(ds, port, drop_untagged); 202 struct dsa_switch *ds = priv->ds; local 253 struct dsa_switch *ds = priv->ds; local 416 struct dsa_switch *ds = priv->ds; local 474 struct dsa_switch *ds = priv->ds; local 512 struct dsa_switch *ds = priv->ds; local 646 struct dsa_switch *ds = priv->ds; local 795 struct dsa_switch *ds = priv->ds; local 1011 struct dsa_switch *ds = priv->ds; local 1361 sja1105_mac_select_pcs(struct dsa_switch *ds, int port, phy_interface_t iface) argument 1372 sja1105_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) argument 1379 sja1105_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) argument 1393 sja1105_phylink_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) argument 1550 sja1105et_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) argument 1635 sja1105et_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) argument 1670 sja1105pqrs_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) argument 1761 sja1105pqrs_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid) argument 1798 sja1105_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1825 __sja1105_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1847 sja1105_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1861 sja1105_fdb_dump(struct dsa_switch *ds, int port, dsa_fdb_dump_cb_t *cb, void *data) argument 1910 sja1105_fast_age(struct dsa_switch *ds, int port) argument 1962 sja1105_mdb_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) argument 1969 sja1105_mdb_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) argument 1985 struct dsa_switch *ds = priv->ds; local 2020 sja1105_bridge_member(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool member) argument 2069 sja1105_bridge_stp_state_set(struct dsa_switch *ds, int port, u8 state) argument 2114 sja1105_bridge_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool *tx_fwd_offload, struct netlink_ext_ack *extack) argument 2136 sja1105_bridge_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge) argument 2198 sja1105_setup_tc_cbs(struct dsa_switch *ds, int port, struct tc_cbs_qopt_offload *offload) argument 2295 struct dsa_switch *ds = priv->ds; local 2420 sja1105_get_tag_protocol(struct dsa_switch *ds, int port, enum dsa_tag_protocol mp) argument 2432 sja1105_vlan_filtering(struct dsa_switch *ds, int port, bool enabled, struct netlink_ext_ack *extack) argument 2563 sja1105_bridge_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) argument 2593 sja1105_bridge_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) argument 2609 sja1105_dsa_8021q_vlan_add(struct dsa_switch *ds, int port, u16 vid, u16 flags) argument 2632 sja1105_dsa_8021q_vlan_del(struct dsa_switch *ds, int port, u16 vid) argument 2639 sja1105_prechangeupper(struct dsa_switch *ds, int port, struct netdev_notifier_changeupper_info *info) argument 2667 sja1105_mgmt_xmit(struct dsa_switch *ds, int port, int slot, struct sk_buff *skb, bool takets) argument 2736 struct dsa_switch *ds = xmit_work->dp->ds; local 2755 sja1105_connect_tag_protocol(struct dsa_switch *ds, enum dsa_tag_protocol proto) argument 2774 sja1105_set_ageing_time(struct dsa_switch *ds, unsigned int ageing_time) argument 2795 sja1105_change_mtu(struct dsa_switch *ds, int port, int new_mtu) argument 2815 sja1105_get_max_mtu(struct dsa_switch *ds, int port) argument 2820 sja1105_port_setup_tc(struct dsa_switch *ds, int port, enum tc_setup_type type, void *type_data) argument 2845 struct dsa_switch *ds = priv->ds; local 2898 sja1105_mirror_add(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror, bool ingress, struct netlink_ext_ack *extack) argument 2906 sja1105_mirror_del(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror) argument 2913 sja1105_port_policer_add(struct dsa_switch *ds, int port, struct dsa_mall_policer_tc_entry *policer) argument 2932 sja1105_port_policer_del(struct dsa_switch *ds, int port) argument 3017 sja1105_port_pre_bridge_flags(struct dsa_switch *ds, int port, struct switchdev_brport_flags flags, struct netlink_ext_ack *extack) argument 3042 sja1105_port_bridge_flags(struct dsa_switch *ds, int port, struct switchdev_brport_flags flags, struct netlink_ext_ack *extack) argument 3089 sja1105_setup(struct dsa_switch *ds) argument 3185 sja1105_teardown(struct dsa_switch *ds) argument 3303 struct dsa_switch *ds; local [all...] |
H A D | sja1105_tas.c | 21 struct dsa_switch *ds = priv->ds; local 30 for (port = 0; port < ds->num_ports; port++) { 77 dev_err(ds->dev, 86 dev_dbg(ds->dev, "earliest base time %lld ns\n", earliest_base_time); 87 dev_dbg(ds->dev, "latest base time %lld ns\n", latest_base_time); 88 dev_dbg(ds->dev, "longest cycle time %lld ns\n", max_cycle_time); 167 struct dsa_switch *ds = priv->ds; local 211 for (port = 0; port < ds 472 struct dsa_switch *ds = priv->ds; local 509 sja1105_setup_tc_taprio(struct dsa_switch *ds, int port, struct tc_taprio_qopt_offload *admin) argument 587 struct dsa_switch *ds = priv->ds; local 634 struct dsa_switch *ds = priv->ds; local 661 struct dsa_switch *ds = priv->ds; local 730 struct dsa_switch *ds = priv->ds; local 845 sja1105_tas_clockstep(struct dsa_switch *ds) argument 857 sja1105_tas_adjfreq(struct dsa_switch *ds) argument 873 sja1105_tas_setup(struct dsa_switch *ds) argument 885 sja1105_tas_teardown(struct dsa_switch *ds) argument [all...] |
H A D | sja1105.h | 142 int (*reset_cmd)(struct dsa_switch *ds); 145 int (*fdb_add_cmd)(struct dsa_switch *ds, int port, 147 int (*fdb_del_cmd)(struct dsa_switch *ds, int port, 151 bool (*rxtstamp)(struct dsa_switch *ds, int port, struct sk_buff *skb); 152 void (*txtstamp)(struct dsa_switch *ds, int port, struct sk_buff *skb); 261 struct dsa_switch *ds; member in struct:sja1105_private 305 int sja1105_vlan_filtering(struct dsa_switch *ds, int port, bool enabled, 310 int sja1105_mdiobus_register(struct dsa_switch *ds); 311 void sja1105_mdiobus_unregister(struct dsa_switch *ds); 320 int sja1105_devlink_setup(struct dsa_switch *ds); [all...] |
H A D | sja1105_ptp.c | 61 int sja1105_hwtstamp_set(struct dsa_switch *ds, int port, struct ifreq *ifr) argument 63 struct sja1105_private *priv = ds->priv; 94 int sja1105_hwtstamp_get(struct dsa_switch *ds, int port, struct ifreq *ifr) argument 96 struct sja1105_private *priv = ds->priv; 113 int sja1105_get_ts_info(struct dsa_switch *ds, int port, argument 116 struct sja1105_private *priv = ds->priv; 168 int sja1105_ptp_commit(struct dsa_switch *ds, struct sja1105_ptp_cmd *cmd, argument 171 const struct sja1105_private *priv = ds->priv; 202 static u64 sja1105_tstamp_reconstruct(struct dsa_switch *ds, u64 now, argument 205 struct sja1105_private *priv = ds 247 sja1105_ptpegr_ts_poll(struct dsa_switch *ds, int port, u64 *ts) argument 340 struct dsa_switch *ds = priv->ds; local 375 sja1105_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb) argument 391 sja1110_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb) argument 405 sja1105_port_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb, unsigned int type) argument 413 sja1110_process_meta_tstamp(struct dsa_switch *ds, int port, u8 ts_id, enum sja1110_meta_tstamp dir, u64 tstamp) argument 450 sja1110_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb) argument 476 sja1105_port_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb) argument 494 sja1105_ptp_reset(struct dsa_switch *ds) argument 516 __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns, struct ptp_system_timestamp *ptp_sts) argument 568 __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns, struct ptp_system_timestamp *ptp_sts) argument 635 __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta) argument 885 sja1105_ptp_clock_register(struct dsa_switch *ds) argument 924 sja1105_ptp_clock_unregister(struct dsa_switch *ds) argument 940 sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int port, struct sk_buff *skb) argument [all...] |
/linux-master/net/dsa/ |
H A D | conduit.c | 23 struct dsa_switch *ds = cpu_dp->ds; local 38 if (ds->ops->get_regs_len) { 39 len = ds->ops->get_regs_len(ds, port); 53 struct dsa_switch *ds = cpu_dp->ds; local 74 if (ds->ops->get_regs_len && ds->ops->get_regs) { 75 len = ds 89 struct dsa_switch *ds = cpu_dp->ds; local 108 struct dsa_switch *ds = cpu_dp->ds; local 132 struct dsa_switch *ds = cpu_dp->ds; local 155 struct dsa_switch *ds = cpu_dp->ds; local 206 struct dsa_switch *ds = cpu_dp->ds; local 226 struct dsa_switch *ds = cpu_dp->ds; local 362 struct dsa_switch *ds = cpu_dp->ds; local [all...] |
H A D | tag_8021q.h | 22 int dsa_switch_tag_8021q_vlan_add(struct dsa_switch *ds, 24 int dsa_switch_tag_8021q_vlan_del(struct dsa_switch *ds,
|
H A D | tag_qca.c | 40 struct dsa_switch *ds = dp->ds; local 48 tagger_data = ds->tagger_data; 67 tagger_data->rw_reg_ack_handler(ds, skb); 74 tagger_data->mib_autocast_handler(ds, skb); 92 static int qca_tag_connect(struct dsa_switch *ds) argument 100 ds->tagger_data = tagger_data; 105 static void qca_tag_disconnect(struct dsa_switch *ds) argument 107 kfree(ds->tagger_data); 108 ds [all...] |
H A D | user.c | 68 static bool dsa_switch_supports_uc_filtering(struct dsa_switch *ds) argument 70 return ds->ops->port_fdb_add && ds->ops->port_fdb_del && 71 ds->fdb_isolation && !ds->vlan_filtering_is_global && 72 !ds->needs_standalone_vlan_filtering; 75 static bool dsa_switch_supports_mc_filtering(struct dsa_switch *ds) argument 77 return ds->ops->port_mdb_add && ds->ops->port_mdb_del && 78 ds 90 struct dsa_switch *ds = dp->ds; local 279 struct dsa_switch *ds = dp->ds; local 300 struct dsa_switch *ds = dp->ds; local 321 struct dsa_switch *ds = bus->priv; local 331 struct dsa_switch *ds = bus->priv; local 339 dsa_user_mii_bus_init(struct dsa_switch *ds) argument 362 struct dsa_switch *ds = dp->ds; local 403 struct dsa_switch *ds = dp->ds; local 429 struct dsa_switch *ds = dp->ds; local 453 struct dsa_switch *ds = dp->ds; local 577 struct dsa_switch *ds = p->dp->ds; local 894 struct dsa_switch *ds = p->dp->ds; local 972 struct dsa_switch *ds = dp->ds; local 984 struct dsa_switch *ds = dp->ds; local 1000 struct dsa_switch *ds = dp->ds; local 1015 struct dsa_switch *ds = dp->ds; local 1027 struct dsa_switch *ds = dp->ds; local 1039 struct dsa_switch *ds = dp->ds; local 1062 struct dsa_switch *ds = dp->ds; local 1090 struct dsa_switch *ds = dp->ds; local 1113 struct dsa_switch *ds = dp->ds; local 1123 struct dsa_switch *ds = dp->ds; local 1134 struct dsa_switch *ds = dp->ds; local 1146 struct dsa_switch *ds = dp->ds; local 1156 struct dsa_switch *ds = dp->ds; local 1170 struct dsa_switch *ds = dp->ds; local 1182 struct dsa_switch *ds = dp->ds; local 1194 struct dsa_switch *ds = dp->ds; local 1203 struct dsa_switch *ds = dp->ds; local 1214 struct dsa_switch *ds = dp->ds; local 1228 struct dsa_switch *ds = dp->ds; local 1248 struct dsa_switch *ds = dp->ds; local 1285 struct dsa_switch *ds = dp->ds; local 1372 struct dsa_switch *ds = dp->ds; local 1426 struct dsa_switch *ds = dp->ds; local 1499 struct dsa_switch *ds = dp->ds; local 1547 struct dsa_switch *ds = dp->ds; local 1561 struct dsa_switch *ds = dp->ds; local 1575 struct dsa_switch *ds = dp->ds; local 1672 dsa_user_setup_ft_block(struct dsa_switch *ds, int port, void *type_data) argument 1687 struct dsa_switch *ds = dp->ds; local 1708 struct dsa_switch *ds = dp->ds; local 1720 struct dsa_switch *ds = dp->ds; local 1732 struct dsa_switch *ds = p->dp->ds; local 1751 struct dsa_switch *ds = dp->ds; local 1824 struct dsa_switch *ds = dp->ds; local 2058 struct dsa_switch *ds = dp->ds; local 2143 struct dsa_switch *ds = dp->ds; local 2170 struct dsa_switch *ds = dp->ds; local 2223 struct dsa_switch *ds = dp->ds; local 2250 struct dsa_switch *ds = dp->ds; local 2295 struct dsa_switch *ds = dp->ds; local 2385 struct dsa_switch *ds = dp->ds; local 2436 dsa_port_phylink_mac_change(struct dsa_switch *ds, int port, bool up) argument 2449 struct dsa_switch *ds = dp->ds; local 2462 struct dsa_switch *ds = dp->ds; local 2479 struct dsa_switch *ds = dp->ds; local 2524 const struct dsa_switch *ds = dp->ds; local 2581 struct dsa_switch *ds = port->ds; local 2722 struct dsa_switch *ds = dp->ds; local 3010 struct dsa_switch *ds; local 3461 struct dsa_switch *ds; local 3528 struct dsa_switch *ds = dp->ds; local [all...] |
/linux-master/fs/befs/ |
H A D | datastream.h | 8 const befs_data_stream *ds, 18 const befs_data_stream *ds);
|
/linux-master/drivers/net/dsa/mv88e6xxx/ |
H A D | hwtstamp.h | 113 int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, int port, 115 int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, int port, 118 bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, 120 void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, 123 int mv88e6xxx_get_ts_info(struct dsa_switch *ds, int port, 135 static inline int mv88e6xxx_port_hwtstamp_set(struct dsa_switch *ds, argument 141 static inline int mv88e6xxx_port_hwtstamp_get(struct dsa_switch *ds, argument 147 static inline bool mv88e6xxx_port_rxtstamp(struct dsa_switch *ds, int port, argument 154 static inline void mv88e6xxx_port_txtstamp(struct dsa_switch *ds, int port, argument 159 static inline int mv88e6xxx_get_ts_info(struct dsa_switch *ds, in argument [all...] |
H A D | devlink.c | 31 int mv88e6xxx_devlink_param_get(struct dsa_switch *ds, u32 id, argument 34 struct mv88e6xxx_chip *chip = ds->priv; 53 int mv88e6xxx_devlink_param_set(struct dsa_switch *ds, u32 id, argument 56 struct mv88e6xxx_chip *chip = ds->priv; 81 int mv88e6xxx_setup_devlink_params(struct dsa_switch *ds) argument 83 return dsa_devlink_params_register(ds, mv88e6xxx_devlink_params, 87 void mv88e6xxx_teardown_devlink_params(struct dsa_switch *ds) argument 89 dsa_devlink_params_unregister(ds, mv88e6xxx_devlink_params, 176 int mv88e6xxx_setup_devlink_resources(struct dsa_switch *ds) argument 179 struct mv88e6xxx_chip *chip = ds 270 struct dsa_switch *ds = dsa_devlink_to_ds(dl); local 376 struct dsa_switch *ds = dsa_devlink_to_ds(dl); local 450 struct dsa_switch *ds = dsa_devlink_to_ds(dl); local 533 struct dsa_switch *ds = dsa_devlink_to_ds(dl); local 590 struct dsa_switch *ds = dsa_devlink_to_ds(dl); local 628 struct dsa_switch *ds = dsa_devlink_port_to_ds(devlink_port); local 740 mv88e6xxx_teardown_devlink_regions_global(struct dsa_switch *ds) argument 749 mv88e6xxx_teardown_devlink_regions_port(struct dsa_switch *ds, int port) argument 756 mv88e6xxx_setup_devlink_regions_port(struct dsa_switch *ds, int port) argument 773 mv88e6xxx_setup_devlink_regions_global(struct dsa_switch *ds) argument 819 mv88e6xxx_devlink_info_get(struct dsa_switch *ds, struct devlink_info_req *req, struct netlink_ext_ack *extack) argument [all...] |
/linux-master/drivers/hid/ |
H A D | hid-playstation.c | 534 static inline void dualsense_schedule_work(struct dualsense *ds); 536 static void dualsense_set_lightbar(struct dualsense *ds, uint8_t red, uint8_t green, uint8_t blue); 945 static int dualsense_get_calibration_data(struct dualsense *ds) argument 947 struct hid_device *hdev = ds->base.hdev; 965 ret = ps_get_report(ds->base.hdev, DS_FEATURE_REPORT_CALIBRATION, buf, 968 hid_err(ds->base.hdev, "Failed to retrieve DualSense calibration info: %d\n", ret); 995 ds->gyro_calib_data[0].abs_code = ABS_RX; 996 ds->gyro_calib_data[0].bias = 0; 997 ds->gyro_calib_data[0].sens_numer = speed_2x*DS_GYRO_RES_PER_DEG_S; 998 ds 1071 dualsense_get_firmware_info(struct dualsense *ds) argument 1104 dualsense_get_mac_address(struct dualsense *ds) argument 1131 struct dualsense *ds = container_of(mc_cdev, struct dualsense, lightbar); local 1146 struct dualsense *ds = hid_get_drvdata(hdev); local 1154 struct dualsense *ds = hid_get_drvdata(hdev); local 1174 dualsense_init_output_report(struct dualsense *ds, struct dualsense_output_report *rp, void *buf) argument 1213 dualsense_schedule_work(struct dualsense *ds) argument 1227 dualsense_send_output_report(struct dualsense *ds, struct dualsense_output_report *report) argument 1248 struct dualsense *ds = container_of(work, struct dualsense, output_worker); local 1312 struct dualsense *ds = container_of(ps_dev, struct dualsense, base); local 1488 struct dualsense *ds = hid_get_drvdata(hdev); local 1506 struct dualsense *ds = container_of(ps_dev, struct dualsense, base); local 1516 dualsense_reset_leds(struct dualsense *ds) argument 1541 dualsense_set_lightbar(struct dualsense *ds, uint8_t red, uint8_t green, uint8_t blue) argument 1555 dualsense_set_player_leds(struct dualsense *ds) argument 1580 struct dualsense *ds; local [all...] |
/linux-master/drivers/net/dsa/b53/ |
H A D | b53_priv.h | 108 struct dsa_switch *ds; member in struct:b53_device 243 dsa_unregister_switch(dev->ds); 248 dsa_switch_shutdown(dev->ds); 335 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port); 336 int b53_configure_vlan(struct dsa_switch *ds); 337 void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset, 339 void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data); 340 int b53_get_sset_count(struct dsa_switch *ds, int port, int sset); 341 void b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data); 342 int b53_br_join(struct dsa_switch *ds, in [all...] |
H A D | b53_common.c | 282 dev_dbg(dev->ds->dev, "VID: %d, members: 0x%04x, untag: 0x%04x\n", 498 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) argument 500 struct b53_device *dev = ds->priv; 562 static void b53_eee_enable_set(struct dsa_switch *ds, int port, bool enable) argument 564 struct b53_device *dev = ds->priv; 575 int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy) argument 577 struct b53_device *dev = ds->priv; 582 if (!dsa_is_user_port(ds, port)) 585 cpu_port = dsa_to_port(ds, port)->cpu_dp->index; 609 b53_imp_vlan_setup(ds, cpu_por 619 b53_disable_port(struct dsa_switch *ds, int port) argument 634 b53_brcm_hdr_setup(struct dsa_switch *ds, int port) argument 744 b53_vlan_port_needs_forced_tagged(struct dsa_switch *ds, int port) argument 751 b53_configure_vlan(struct dsa_switch *ds) argument 879 b53_phy_read16(struct dsa_switch *ds, int addr, int reg) argument 894 b53_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val) argument 964 b53_get_phy_device(struct dsa_switch *ds, int port) argument 977 b53_get_strings(struct dsa_switch *ds, int port, u32 stringset, uint8_t *data) argument 1000 b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data) argument 1033 b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data) argument 1045 b53_get_sset_count(struct dsa_switch *ds, int port, int sset) argument 1084 b53_setup_devlink_resources(struct dsa_switch *ds) argument 1112 b53_setup(struct dsa_switch *ds) argument 1150 b53_teardown(struct dsa_switch *ds) argument 1225 b53_adjust_63xx_rgmii(struct dsa_switch *ds, int port, phy_interface_t interface) argument 1269 b53_adjust_link(struct dsa_switch *ds, int port, struct phy_device *phydev) argument 1360 b53_port_event(struct dsa_switch *ds, int port) argument 1372 b53_phylink_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) argument 1411 b53_phylink_mac_select_pcs(struct dsa_switch *ds, int port, phy_interface_t interface) argument 1423 b53_phylink_mac_config(struct dsa_switch *ds, int port, unsigned int mode, const struct phylink_link_state *state) argument 1430 b53_phylink_mac_link_down(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface) argument 1450 b53_phylink_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) argument 1478 b53_vlan_filtering(struct dsa_switch *ds, int port, bool vlan_filtering, struct netlink_ext_ack *extack) argument 1489 b53_vlan_prepare(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) argument 1513 b53_vlan_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan, struct netlink_ext_ack *extack) argument 1553 b53_vlan_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_vlan *vlan) argument 1742 b53_fdb_add(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1763 b53_fdb_del(struct dsa_switch *ds, int port, const unsigned char *addr, u16 vid, struct dsa_db db) argument 1822 b53_fdb_dump(struct dsa_switch *ds, int port, dsa_fdb_dump_cb_t *cb, void *data) argument 1865 b53_mdb_add(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) argument 1886 b53_mdb_del(struct dsa_switch *ds, int port, const struct switchdev_obj_port_mdb *mdb, struct dsa_db db) argument 1903 b53_br_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool *tx_fwd_offload, struct netlink_ext_ack *extack) argument 1955 b53_br_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge) argument 2001 b53_br_set_stp_state(struct dsa_switch *ds, int port, u8 state) argument 2035 b53_br_fast_age(struct dsa_switch *ds, int port) argument 2044 b53_br_flags_pre(struct dsa_switch *ds, int port, struct switchdev_brport_flags flags, struct netlink_ext_ack *extack) argument 2055 b53_br_flags(struct dsa_switch *ds, int port, struct switchdev_brport_flags flags, struct netlink_ext_ack *extack) argument 2073 b53_possible_cpu_port(struct dsa_switch *ds, int port) argument 2088 b53_can_enable_brcm_tags(struct dsa_switch *ds, int port, enum dsa_tag_protocol tag_protocol) argument 2114 b53_get_tag_protocol(struct dsa_switch *ds, int port, enum dsa_tag_protocol mprot) argument 2144 b53_mirror_add(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror, bool ingress, struct netlink_ext_ack *extack) argument 2170 b53_mirror_del(struct dsa_switch *ds, int port, struct dsa_mall_mirror_tc_entry *mirror) argument 2211 b53_eee_init(struct dsa_switch *ds, int port, struct phy_device *phy) argument 2225 b53_get_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e) argument 2236 b53_set_mac_eee(struct dsa_switch *ds, int port, struct ethtool_keee *e) argument 2251 b53_change_mtu(struct dsa_switch *ds, int port, int mtu) argument 2266 b53_get_max_mtu(struct dsa_switch *ds, int port) argument 2709 struct dsa_switch *ds; local [all...] |
/linux-master/drivers/net/dsa/xrs700x/ |
H A D | xrs700x.c | 86 static void xrs700x_get_strings(struct dsa_switch *ds, int port, argument 100 static int xrs700x_get_sset_count(struct dsa_switch *ds, int port, int sset) argument 155 for (i = 0; i < priv->ds->num_ports; i++) 161 static void xrs700x_get_ethtool_stats(struct dsa_switch *ds, int port, argument 164 struct xrs700x *priv = ds->priv; 174 static void xrs700x_get_stats64(struct dsa_switch *ds, int port, argument 177 struct xrs700x *priv = ds->priv; 192 priv->ds->num_ports, 198 priv->ds->num_ports, 204 priv->ds 228 xrs700x_get_tag_protocol(struct dsa_switch *ds, int port, enum dsa_tag_protocol m) argument 235 xrs700x_reset(struct dsa_switch *ds) argument 257 xrs700x_port_stp_state_set(struct dsa_switch *ds, int port, u8 state) argument 299 xrs700x_port_add_bpdu_ipf(struct dsa_switch *ds, int port) argument 342 xrs700x_port_add_hsrsup_ipf(struct dsa_switch *ds, int port, int fwdport) argument 385 xrs700x_port_setup(struct dsa_switch *ds, int port) argument 419 xrs700x_setup(struct dsa_switch *ds) argument 439 xrs700x_teardown(struct dsa_switch *ds) argument 446 xrs700x_phylink_get_caps(struct dsa_switch *ds, int port, struct phylink_config *config) argument 469 xrs700x_mac_link_up(struct dsa_switch *ds, int port, unsigned int mode, phy_interface_t interface, struct phy_device *phydev, int speed, int duplex, bool tx_pause, bool rx_pause) argument 498 xrs700x_bridge_common(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool join) argument 537 xrs700x_bridge_join(struct dsa_switch *ds, int port, struct dsa_bridge bridge, bool *tx_fwd_offload, struct netlink_ext_ack *extack) argument 544 xrs700x_bridge_leave(struct dsa_switch *ds, int port, struct dsa_bridge bridge) argument 550 xrs700x_hsr_join(struct dsa_switch *ds, int port, struct net_device *hsr, struct netlink_ext_ack *extack) argument 648 xrs700x_hsr_leave(struct dsa_switch *ds, int port, struct net_device *hsr) argument 750 struct dsa_switch *ds; local [all...] |
/linux-master/include/linux/dsa/ |
H A D | sja1105.h | 52 void (*meta_tstamp_handler)(struct dsa_switch *ds, int port, u8 ts_id, 67 sja1105_tagger_data(struct dsa_switch *ds) argument 69 BUG_ON(ds->dst->tag_ops->proto != DSA_TAG_PROTO_SJA1105 && 70 ds->dst->tag_ops->proto != DSA_TAG_PROTO_SJA1110); 72 return ds->tagger_data;
|
H A D | ksz_common.h | 34 void (*hwtstamp_set_state)(struct dsa_switch *ds, bool on); 48 ksz_tagger_data(struct dsa_switch *ds) argument 50 return ds->tagger_data;
|
/linux-master/drivers/net/dsa/microchip/ |
H A D | lan937x.h | 10 int lan937x_setup(struct dsa_switch *ds); 11 void lan937x_teardown(struct dsa_switch *ds); 13 void lan937x_config_cpu_port(struct dsa_switch *ds);
|
/linux-master/fs/nfs/ |
H A D | pnfs_nfs.c | 85 cinfo->ds->nwritten--; 252 cinfo->ds->nwritten -= ret; 253 cinfo->ds->ncommitting += ret; 279 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; 332 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; 387 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; 410 cinfo->ds->ncommitting--; 512 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; 565 print_ds(struct nfs4_pnfs_ds *ds) argument 567 if (ds 656 struct nfs4_pnfs_ds *ds; local 679 destroy_ds(struct nfs4_pnfs_ds *ds) argument 701 nfs4_pnfs_ds_put(struct nfs4_pnfs_ds *ds) argument 768 struct nfs4_pnfs_ds *tmp_ds, *ds = NULL; local 810 nfs4_wait_ds_connect(struct nfs4_pnfs_ds *ds) argument 816 nfs4_clear_ds_conn_bit(struct nfs4_pnfs_ds *ds) argument 848 _nfs4_pnfs_v3_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds, unsigned int timeo, unsigned int retrans) argument 909 _nfs4_pnfs_v4_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds, unsigned int timeo, unsigned int retrans, u32 minor_version) argument 1034 nfs4_pnfs_ds_connect(struct nfs_server *mds_srv, struct nfs4_pnfs_ds *ds, struct nfs4_deviceid_node *devid, unsigned int timeo, unsigned int retrans, u32 version, u32 minor_version) argument [all...] |
/linux-master/drivers/net/dsa/ocelot/ |
H A D | felix.h | 58 int (*port_setup_tc)(struct dsa_switch *ds, int port, 77 int (*setup)(struct dsa_switch *ds); 78 void (*teardown)(struct dsa_switch *ds); 79 unsigned long (*get_host_fwd_mask)(struct dsa_switch *ds); 80 int (*change_conduit)(struct dsa_switch *ds, int port, 89 struct dsa_switch *ds; member in struct:felix
|
/linux-master/fs/xfs/scrub/ |
H A D | attr.c | 305 struct xchk_da_btree *ds, 315 struct xfs_mount *mp = ds->state->mp; 316 struct xchk_xattr_buf *ab = ds->sc->buf; 324 xchk_da_set_corrupt(ds, level); 328 xchk_da_set_corrupt(ds, level); 334 xchk_da_set_corrupt(ds, level); 345 xchk_da_set_corrupt(ds, level); 351 xchk_da_set_corrupt(ds, level); 354 xchk_da_set_corrupt(ds, level); 356 if (!xchk_xattr_set_map(ds 304 xchk_xattr_entry( struct xchk_da_btree *ds, int level, char *buf_end, struct xfs_attr_leafblock *leaf, struct xfs_attr3_icleaf_hdr *leafhdr, struct xfs_attr_leaf_entry *ent, int idx, unsigned int *usedbytes, __u32 *last_hashval) argument 364 xchk_xattr_block( struct xchk_da_btree *ds, int level) argument 452 xchk_xattr_rec( struct xchk_da_btree *ds, int level) argument [all...] |
/linux-master/drivers/net/dsa/realtek/ |
H A D | rtl83xx.c | 64 * @ds: DSA switch associated with this user_mii_bus 72 int rtl83xx_setup_user_mdio(struct dsa_switch *ds) argument 74 struct realtek_priv *priv = ds->priv; 227 struct dsa_switch *ds = &priv->ds; local 236 ds->priv = priv; 237 ds->dev = priv->dev; 238 ds->ops = priv->variant->ds_ops; 239 ds->num_ports = priv->num_ports; 241 ret = dsa_register_switch(ds); 262 struct dsa_switch *ds = &priv->ds; local 281 struct dsa_switch *ds = &priv->ds; local [all...] |