Home
last modified time | relevance | path

Searched full:ds (Results 1 – 25 of 780) sorted by relevance

12345678910>>...32

/linux/net/dsa/
H A Dswitch.c23 static unsigned int dsa_switch_fastest_ageing_time(struct dsa_switch *ds, in dsa_switch_fastest_ageing_time() argument
28 dsa_switch_for_each_port(dp, ds) in dsa_switch_fastest_ageing_time()
35 static int dsa_switch_ageing_time(struct dsa_switch *ds, in dsa_switch_ageing_time() argument
40 if (ds->ageing_time_min && ageing_time < ds->ageing_time_min) in dsa_switch_ageing_time()
43 if (ds->ageing_time_max && ageing_time > ds->ageing_time_max) in dsa_switch_ageing_time()
47 ageing_time = dsa_switch_fastest_ageing_time(ds, ageing_time); in dsa_switch_ageing_time()
49 if (ds->ops->set_ageing_time) in dsa_switch_ageing_time()
50 return ds->ops->set_ageing_time(ds, ageing_time); in dsa_switch_ageing_time()
61 static int dsa_switch_mtu(struct dsa_switch *ds, in dsa_switch_mtu() argument
67 if (!ds->ops->port_change_mtu) in dsa_switch_mtu()
[all …]
H A Ddsa.c59 * driver by setting ds->num_lag_ids. It is perfectly legal to leave
189 if (dp->ds->index != sw_index) in dsa_switch_find()
192 return dp->ds; in dsa_switch_find()
290 struct dsa_switch *ds = dp->ds; in dsa_link_touch() local
294 dst = ds->dst; in dsa_link_touch()
315 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table() local
316 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
406 dsa_switch_preferred_default_local_cpu_port(struct dsa_switch *ds) in dsa_switch_preferred_default_local_cpu_port() argument
410 if (!ds->ops->preferred_default_local_cpu_port) in dsa_switch_preferred_default_local_cpu_port()
413 cpu_dp = ds->ops->preferred_default_local_cpu_port(ds); in dsa_switch_preferred_default_local_cpu_port()
[all …]
H A Duser.c68 static bool dsa_switch_supports_uc_filtering(struct dsa_switch *ds) in dsa_switch_supports_uc_filtering() argument
70 return ds->ops->port_fdb_add && ds->ops->port_fdb_del && in dsa_switch_supports_uc_filtering()
71 ds->fdb_isolation && !ds->vlan_filtering_is_global && in dsa_switch_supports_uc_filtering()
72 !ds->needs_standalone_vlan_filtering; in dsa_switch_supports_uc_filtering()
75 static bool dsa_switch_supports_mc_filtering(struct dsa_switch *ds) in dsa_switch_supports_mc_filtering() argument
77 return ds->ops->port_mdb_add && ds->ops->port_mdb_del && in dsa_switch_supports_mc_filtering()
78 ds in dsa_switch_supports_mc_filtering()
90 struct dsa_switch *ds = dp->ds; dsa_user_standalone_event_work() local
279 struct dsa_switch *ds = dp->ds; dsa_user_sync_ha() local
300 struct dsa_switch *ds = dp->ds; dsa_user_unsync_ha() local
321 struct dsa_switch *ds = bus->priv; dsa_user_phy_read() local
331 struct dsa_switch *ds = bus->priv; dsa_user_phy_write() local
339 dsa_user_mii_bus_init(struct dsa_switch * ds) dsa_user_mii_bus_init() argument
362 struct dsa_switch *ds = dp->ds; dsa_user_host_uc_install() local
390 struct dsa_switch *ds = dp->ds; dsa_user_host_uc_uninstall() local
451 struct dsa_switch *ds = dp->ds; dsa_user_change_rx_flags() local
474 struct dsa_switch *ds = dp->ds; dsa_user_set_mac_address() local
581 struct dsa_switch *ds = p->dp->ds; dsa_user_ioctl() local
898 struct dsa_switch *ds = p->dp->ds; dsa_skb_tx_timestamp() local
976 struct dsa_switch *ds = dp->ds; dsa_user_get_regs_len() local
988 struct dsa_switch *ds = dp->ds; dsa_user_get_regs() local
1004 struct dsa_switch *ds = dp->ds; dsa_user_get_eeprom_len() local
1019 struct dsa_switch *ds = dp->ds; dsa_user_get_eeprom() local
1031 struct dsa_switch *ds = dp->ds; dsa_user_set_eeprom() local
1043 struct dsa_switch *ds = dp->ds; dsa_user_get_strings() local
1063 struct dsa_switch *ds = dp->ds; dsa_user_get_ethtool_stats() local
1091 struct dsa_switch *ds = dp->ds; dsa_user_get_sset_count() local
1114 struct dsa_switch *ds = dp->ds; dsa_user_get_eth_phy_stats() local
1124 struct dsa_switch *ds = dp->ds; dsa_user_get_eth_mac_stats() local
1135 struct dsa_switch *ds = dp->ds; dsa_user_get_eth_ctrl_stats() local
1147 struct dsa_switch *ds = dp->ds; dsa_user_get_rmon_stats() local
1157 struct dsa_switch *ds = dp->ds; dsa_user_get_ts_stats() local
1167 struct dsa_switch *ds = dp->ds; dsa_user_net_selftest() local
1181 struct dsa_switch *ds = dp->ds; dsa_user_get_mm() local
1193 struct dsa_switch *ds = dp->ds; dsa_user_set_mm() local
1205 struct dsa_switch *ds = dp->ds; dsa_user_get_mm_stats() local
1214 struct dsa_switch *ds = dp->ds; dsa_user_get_wol() local
1225 struct dsa_switch *ds = dp->ds; dsa_user_set_wol() local
1239 struct dsa_switch *ds = dp->ds; dsa_user_set_eee() local
1272 struct dsa_switch *ds = dp->ds; dsa_user_get_eee() local
1305 struct dsa_switch *ds = dp->ds; dsa_user_get_pause_stats() local
1391 struct dsa_switch *ds = dp->ds; dsa_user_add_cls_matchall_mirred() local
1478 struct dsa_switch *ds = dp->ds; dsa_user_add_cls_matchall_police() local
1563 struct dsa_switch *ds = dp->ds; dsa_user_del_cls_matchall() local
1611 struct dsa_switch *ds = dp->ds; dsa_user_add_cls_flower() local
1625 struct dsa_switch *ds = dp->ds; dsa_user_del_cls_flower() local
1639 struct dsa_switch *ds = dp->ds; dsa_user_stats_cls_flower() local
1736 dsa_user_setup_ft_block(struct dsa_switch * ds,int port,void * type_data) dsa_user_setup_ft_block() argument
1751 struct dsa_switch *ds = dp->ds; dsa_user_setup_tc() local
1772 struct dsa_switch *ds = dp->ds; dsa_user_get_rxnfc() local
1784 struct dsa_switch *ds = dp->ds; dsa_user_set_rxnfc() local
1796 struct dsa_switch *ds = p->dp->ds; dsa_user_get_ts_info() local
1815 struct dsa_switch *ds = dp->ds; dsa_user_vlan_rx_add_vid() local
1888 struct dsa_switch *ds = dp->ds; dsa_user_vlan_rx_kill_vid() local
2122 struct dsa_switch *ds = dp->ds; dsa_user_change_mtu() local
2207 struct dsa_switch *ds = dp->ds; dsa_user_dcbnl_set_apptrust() local
2220 struct dsa_switch *ds = dp->ds; dsa_user_dcbnl_get_apptrust() local
2233 struct dsa_switch *ds = dp->ds; dsa_user_dcbnl_set_default_prio() local
2264 struct dsa_switch *ds = dp->ds; dsa_user_dcbnl_ieee_global_dscp_setdel() local
2312 struct dsa_switch *ds = dp->ds; dsa_user_dcbnl_add_dscp_prio() local
2376 struct dsa_switch *ds = dp->ds; dsa_user_dcbnl_del_default_prio() local
2403 struct dsa_switch *ds = dp->ds; dsa_user_dcbnl_del_dscp_prio() local
2460 struct dsa_switch *ds = dp->ds; dsa_user_dcbnl_init() local
2553 struct dsa_switch *ds = dp->ds; dsa_user_get_stats64() local
2604 dsa_port_phylink_mac_change(struct dsa_switch * ds,int port,bool up) dsa_port_phylink_mac_change() argument
2617 struct dsa_switch *ds = dp->ds; dsa_user_phylink_fixed_state() local
2630 struct dsa_switch *ds = dp->ds; dsa_user_phy_connect() local
2647 struct dsa_switch *ds = dp->ds; dsa_user_phy_setup() local
2692 const struct dsa_switch *ds = dp->ds; dsa_user_setup_tagger() local
2750 struct dsa_switch *ds = port->ds; dsa_user_create() local
2891 struct dsa_switch *ds = dp->ds; dsa_user_change_conduit() local
3173 struct dsa_switch *ds; dsa_user_prechangeupper_sanity_check() local
3624 struct dsa_switch *ds; dsa_user_switchdev_event_work() local
3691 struct dsa_switch *ds = dp->ds; dsa_user_fdb_event() local
[all...]
H A Dconduit.c24 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_regs_len() local
41 if (ds->ops->get_regs_len) { in dsa_conduit_get_regs_len()
42 len = ds->ops->get_regs_len(ds, port); in dsa_conduit_get_regs_len()
56 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_regs() local
81 if (ds->ops->get_regs_len && ds->ops->get_regs) { in dsa_conduit_get_regs()
82 len = ds->ops->get_regs_len(ds, port); in dsa_conduit_get_regs()
86 ds->ops->get_regs(ds, port, cpu_regs, data); in dsa_conduit_get_regs()
96 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_ethtool_stats() local
107 if (ds->ops->get_ethtool_stats) in dsa_conduit_get_ethtool_stats()
108 ds->ops->get_ethtool_stats(ds, port, data + count); in dsa_conduit_get_ethtool_stats()
[all …]
H A Dtag_8021q.c74 struct dsa_switch *ds; member
94 return DSA_8021Q_RSV | DSA_8021Q_SWITCH_ID(dp->ds->index) | in dsa_tag_8021q_standalone_vid()
145 struct dsa_8021q_context *ctx = dp->ds->tag_8021q_ctx; in dsa_port_do_tag_8021q_vlan_add()
146 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_add() local
153 return ds->ops->tag_8021q_vlan_add(ds, port, vid, flags); in dsa_port_do_tag_8021q_vlan_add()
165 err = ds->ops->tag_8021q_vlan_add(ds, port, vid, flags); in dsa_port_do_tag_8021q_vlan_add()
181 struct dsa_8021q_context *ctx = dp->ds->tag_8021q_ctx; in dsa_port_do_tag_8021q_vlan_del()
182 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_del() local
189 return ds->ops->tag_8021q_vlan_del(ds, port, vid); in dsa_port_do_tag_8021q_vlan_del()
198 err = ds->ops->tag_8021q_vlan_del(ds, port, vid); in dsa_port_do_tag_8021q_vlan_del()
[all …]
H A Dtag_qca.c40 struct dsa_switch *ds = dp->ds; in qca_tag_rcv() local
48 tagger_data = ds->tagger_data; in qca_tag_rcv()
67 tagger_data->rw_reg_ack_handler(ds, skb); in qca_tag_rcv()
74 tagger_data->mib_autocast_handler(ds, skb); in qca_tag_rcv()
92 static int qca_tag_connect(struct dsa_switch *ds) in qca_tag_connect() argument
100 ds->tagger_data = tagger_data; in qca_tag_connect()
105 static void qca_tag_disconnect(struct dsa_switch *ds) in qca_tag_disconnect() argument
107 kfree(ds->tagger_data); in qca_tag_disconnect()
108 ds->tagger_data = NULL; in qca_tag_disconnect()
/linux/drivers/acpi/
H A Ddock.c66 * @ds: Dock station.
71 static int add_dock_dependent_device(struct dock_station *ds, in add_dock_dependent_device() argument
82 list_add_tail(&dd->list, &ds->dependent_devices); in add_dock_dependent_device()
118 struct dock_station *ds; in find_dock_station() local
120 list_for_each_entry(ds, &dock_stations, sibling) in find_dock_station()
121 if (ds->handle == handle) in find_dock_station()
122 return ds; in find_dock_station()
129 * @ds: the dock station
136 find_dock_dependent_device(struct dock_station *ds, struct acpi_device *adev) in find_dock_dependent_device() argument
140 list_for_each_entry(dd, &ds->dependent_devices, list) in find_dock_dependent_device()
[all …]
/linux/drivers/hid/
H A Dhid-playstation.c541 static inline void dualsense_schedule_work(struct dualsense *ds);
543 static void dualsense_set_lightbar(struct dualsense *ds, uint8_t red, uint8_t green, uint8_t blue);
952 static int dualsense_get_calibration_data(struct dualsense *ds) in dualsense_get_calibration_data() argument
954 struct hid_device *hdev = ds->base.hdev; in dualsense_get_calibration_data()
972 ret = ps_get_report(ds->base.hdev, DS_FEATURE_REPORT_CALIBRATION, buf, in dualsense_get_calibration_data()
975 hid_err(ds->base.hdev, "Failed to retrieve DualSense calibration info: %d\n", ret); in dualsense_get_calibration_data()
1002 ds->gyro_calib_data[0].abs_code = ABS_RX; in dualsense_get_calibration_data()
1003 ds->gyro_calib_data[0].bias = 0; in dualsense_get_calibration_data()
1004 ds->gyro_calib_data[0].sens_numer = speed_2x*DS_GYRO_RES_PER_DEG_S; in dualsense_get_calibration_data()
1005 ds->gyro_calib_data[0].sens_denom = abs(gyro_pitch_plus - gyro_pitch_bias) + in dualsense_get_calibration_data()
[all …]
/linux/drivers/net/dsa/sja1105/
H A Dsja1105_main.c87 static int sja1105_drop_untagged(struct dsa_switch *ds, int port, bool drop) in sja1105_drop_untagged() argument
89 struct sja1105_private *priv = ds->priv; in sja1105_drop_untagged()
118 static int sja1105_commit_pvid(struct dsa_switch *ds, int port) in sja1105_commit_pvid() argument
120 struct dsa_port *dp = dsa_to_port(ds, port); in sja1105_commit_pvid()
122 struct sja1105_private *priv = ds->priv; in sja1105_commit_pvid()
153 if (dsa_is_cpu_port(ds, port) || dsa_is_dsa_port(ds, port)) in sja1105_commit_pvid()
156 return sja1105_drop_untagged(ds, port, drop_untagged); in sja1105_commit_pvid()
201 struct dsa_switch *ds = priv->ds; in sja1105_init_mac_settings() local
222 list_for_each_entry(dp, &ds->dst->ports, list) { in sja1105_init_mac_settings()
223 if (dp->ds != ds) in sja1105_init_mac_settings()
[all …]
H A Dsja1105_tas.h53 int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port,
56 void sja1105_tas_setup(struct dsa_switch *ds);
58 void sja1105_tas_teardown(struct dsa_switch *ds);
60 void sja1105_tas_clockstep(struct dsa_switch *ds);
62 void sja1105_tas_adjfreq(struct dsa_switch *ds);
76 static inline int sja1105_setup_tc_taprio(struct dsa_switch *ds, int port, in sja1105_setup_tc_taprio() argument
82 static inline void sja1105_tas_setup(struct dsa_switch *ds) { } in sja1105_tas_setup() argument
84 static inline void sja1105_tas_teardown(struct dsa_switch *ds) { } in sja1105_tas_teardown() argument
86 static inline void sja1105_tas_clockstep(struct dsa_switch *ds) { } in sja1105_tas_clockstep() argument
88 static inline void sja1105_tas_adjfreq(struct dsa_switch *ds) { } in sja1105_tas_adjfreq() argument
[all …]
H A Dsja1105_devlink.c41 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in sja1105_region_static_config_snapshot() local
42 struct sja1105_private *priv = ds->priv; in sja1105_region_static_config_snapshot()
77 static int sja1105_setup_devlink_regions(struct dsa_switch *ds) in sja1105_setup_devlink_regions() argument
80 struct sja1105_private *priv = ds->priv; in sja1105_setup_devlink_regions()
94 region = dsa_devlink_region_create(ds, ops, 1, size); in sja1105_setup_devlink_regions()
109 static void sja1105_teardown_devlink_regions(struct dsa_switch *ds) in sja1105_teardown_devlink_regions() argument
112 struct sja1105_private *priv = ds->priv; in sja1105_teardown_devlink_regions()
120 int sja1105_devlink_info_get(struct dsa_switch *ds, in sja1105_devlink_info_get() argument
124 struct sja1105_private *priv = ds->priv; in sja1105_devlink_info_get()
131 int sja1105_devlink_setup(struct dsa_switch *ds) in sja1105_devlink_setup() argument
[all …]
H A Dsja1105_tas.c21 struct dsa_switch *ds = priv->ds; in sja1105_tas_set_runtime_params() local
30 for (port = 0; port < ds->num_ports; port++) { in sja1105_tas_set_runtime_params()
77 dev_err(ds->dev, in sja1105_tas_set_runtime_params()
86 dev_dbg(ds->dev, "earliest base time %lld ns\n", earliest_base_time); in sja1105_tas_set_runtime_params()
87 dev_dbg(ds->dev, "latest base time %lld ns\n", latest_base_time); in sja1105_tas_set_runtime_params()
88 dev_dbg(ds->dev, "longest cycle time %lld ns\n", max_cycle_time); in sja1105_tas_set_runtime_params()
167 struct dsa_switch *ds = priv->ds; in sja1105_init_scheduling() local
211 for (port = 0; port < ds->num_ports; port++) { in sja1105_init_scheduling()
273 for (port = 0; port < ds->num_ports; port++) { in sja1105_init_scheduling()
448 dev_warn(priv->ds->dev, in sja1105_tas_check_conflicts()
[all …]
/linux/drivers/net/dsa/
H A Dmv88e6060.c45 static enum dsa_tag_protocol mv88e6060_get_tag_protocol(struct dsa_switch *ds, in mv88e6060_get_tag_protocol() argument
121 if (dsa_is_unused_port(priv->ds, p)) in mv88e6060_setup_port()
130 dsa_is_cpu_port(priv->ds, p) ? in mv88e6060_setup_port()
145 (dsa_is_cpu_port(priv->ds, p) ? in mv88e6060_setup_port()
146 dsa_user_ports(priv->ds) : in mv88e6060_setup_port()
147 BIT(dsa_to_port(priv->ds, p)->cpu_dp->index))); in mv88e6060_setup_port()
187 static int mv88e6060_setup(struct dsa_switch *ds) in mv88e6060_setup() argument
189 struct mv88e6060_priv *priv = ds->priv; in mv88e6060_setup()
193 priv->ds = ds; in mv88e6060_setup()
225 static int mv88e6060_phy_read(struct dsa_switch *ds, int port, int regnum) in mv88e6060_phy_read() argument
[all …]
H A Dbcm_sf2.c116 static unsigned int bcm_sf2_num_active_ports(struct dsa_switch *ds) in bcm_sf2_num_active_ports() argument
118 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); in bcm_sf2_num_active_ports()
121 for (port = 0; port < ds->num_ports; port++) { in bcm_sf2_num_active_ports()
122 if (dsa_is_cpu_port(ds, port)) in bcm_sf2_num_active_ports()
131 static void bcm_sf2_recalc_clock(struct dsa_switch *ds) in bcm_sf2_recalc_clock() argument
133 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); in bcm_sf2_recalc_clock()
144 ports_active = bcm_sf2_num_active_ports(ds); in bcm_sf2_recalc_clock()
158 static void bcm_sf2_imp_setup(struct dsa_switch *ds, int port) in bcm_sf2_imp_setup() argument
160 struct bcm_sf2_priv *priv = bcm_sf2_to_priv(ds); in bcm_sf2_imp_setup()
185 b53_brcm_hdr_setup(ds, port); in bcm_sf2_imp_setup()
[all …]
H A Dmt7530.c361 mt753x_preferred_default_local_cpu_port(struct dsa_switch *ds) in mt753x_preferred_default_local_cpu_port() argument
363 struct dsa_port *cpu_dp = dsa_to_port(ds, 6); in mt753x_preferred_default_local_cpu_port()
373 mt7530_setup_port6(struct dsa_switch *ds, phy_interface_t interface) in mt7530_setup_port6() argument
375 struct mt7530_priv *priv = ds->priv; in mt7530_setup_port6()
514 mt7530_mib_reset(struct dsa_switch *ds) in mt7530_mib_reset() argument
516 struct mt7530_priv *priv = ds->priv; in mt7530_mib_reset()
748 mt7530_get_strings(struct dsa_switch *ds, int port, u32 stringset, in mt7530_get_strings() argument
776 mt7530_get_ethtool_stats(struct dsa_switch *ds, int port, in mt7530_get_ethtool_stats() argument
779 struct mt7530_priv *priv = ds->priv; in mt7530_get_ethtool_stats()
792 mt7530_get_sset_count(struct dsa_switch *ds, int port, int sset) in mt7530_get_sset_count() argument
[all …]
H A Dlan9303-core.c937 static enum dsa_tag_protocol lan9303_get_tag_protocol(struct dsa_switch *ds, in lan9303_get_tag_protocol() argument
944 static int lan9303_setup(struct dsa_switch *ds) in lan9303_setup() argument
946 struct lan9303 *chip = ds->priv; in lan9303_setup()
951 if (!dsa_is_cpu_port(ds, 0)) { in lan9303_setup()
1036 static void lan9303_get_strings(struct dsa_switch *ds, int port, in lan9303_get_strings() argument
1049 static void lan9303_get_ethtool_stats(struct dsa_switch *ds, int port, in lan9303_get_ethtool_stats() argument
1052 struct lan9303 *chip = ds->priv; in lan9303_get_ethtool_stats()
1071 static int lan9303_get_sset_count(struct dsa_switch *ds, int port, int sset) in lan9303_get_sset_count() argument
1079 static int lan9303_phy_read(struct dsa_switch *ds, int port, int regnum) in lan9303_phy_read() argument
1081 struct lan9303 *chip = ds->priv; in lan9303_phy_read()
[all …]
/linux/drivers/net/dsa/b53/
H A Db53_priv.h110 struct dsa_switch *ds; member
247 dsa_unregister_switch(dev->ds); in b53_switch_remove()
252 dsa_switch_shutdown(dev->ds); in b53_switch_shutdown()
339 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port);
340 int b53_configure_vlan(struct dsa_switch *ds);
341 void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset,
343 void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);
344 int b53_get_sset_count(struct dsa_switch *ds, int port, int sset);
345 void b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data);
346 int b53_set_ageing_time(struct dsa_switch *ds, unsigned int msecs);
[all …]
H A Db53_common.c288 dev_dbg(dev->ds->dev, "VID: %d, members: 0x%04x, untag: 0x%04x\n", in b53_set_vlan_entry()
526 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) in b53_imp_vlan_setup() argument
528 struct b53_device *dev = ds->priv; in b53_imp_vlan_setup()
590 static void b53_eee_enable_set(struct dsa_switch *ds, int port, bool enable) in b53_eee_enable_set() argument
592 struct b53_device *dev = ds->priv; in b53_eee_enable_set()
603 int b53_setup_port(struct dsa_switch *ds, int port) in b53_setup_port() argument
605 struct b53_device *dev = ds->priv; in b53_setup_port()
615 if (dsa_is_user_port(ds, port)) in b53_setup_port()
622 int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy) in b53_enable_port() argument
624 struct b53_device *dev = ds->priv; in b53_enable_port()
[all …]
/linux/drivers/net/dsa/mv88e6xxx/
H A Ddevlink.c31 int mv88e6xxx_devlink_param_get(struct dsa_switch *ds, u32 id, in mv88e6xxx_devlink_param_get() argument
34 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_devlink_param_get()
53 int mv88e6xxx_devlink_param_set(struct dsa_switch *ds, u32 id, in mv88e6xxx_devlink_param_set() argument
56 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_devlink_param_set()
81 int mv88e6xxx_setup_devlink_params(struct dsa_switch *ds) in mv88e6xxx_setup_devlink_params() argument
83 return dsa_devlink_params_register(ds, mv88e6xxx_devlink_params, in mv88e6xxx_setup_devlink_params()
87 void mv88e6xxx_teardown_devlink_params(struct dsa_switch *ds) in mv88e6xxx_teardown_devlink_params() argument
89 dsa_devlink_params_unregister(ds, mv88e6xxx_devlink_params, in mv88e6xxx_teardown_devlink_params()
176 int mv88e6xxx_setup_devlink_resources(struct dsa_switch *ds) in mv88e6xxx_setup_devlink_resources() argument
179 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_setup_devlink_resources()
[all …]
H A Ddevlink.h8 int mv88e6xxx_setup_devlink_params(struct dsa_switch *ds);
9 void mv88e6xxx_teardown_devlink_params(struct dsa_switch *ds);
10 int mv88e6xxx_setup_devlink_resources(struct dsa_switch *ds);
11 int mv88e6xxx_devlink_param_get(struct dsa_switch *ds, u32 id,
13 int mv88e6xxx_devlink_param_set(struct dsa_switch *ds, u32 id,
15 int mv88e6xxx_setup_devlink_regions_global(struct dsa_switch *ds);
16 void mv88e6xxx_teardown_devlink_regions_global(struct dsa_switch *ds);
17 int mv88e6xxx_setup_devlink_regions_port(struct dsa_switch *ds, int port);
18 void mv88e6xxx_teardown_devlink_regions_port(struct dsa_switch *ds, int port);
20 int mv88e6xxx_devlink_info_get(struct dsa_switch *ds,
H A Dchip.c847 static void mv88e6xxx_get_caps(struct dsa_switch *ds, int port, in mv88e6xxx_get_caps() argument
850 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_caps()
870 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_select_pcs()
884 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_prepare()
909 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_config()
933 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_finish()
963 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_link_down()
995 struct mv88e6xxx_chip *chip = dp->ds->priv; in mv88e6xxx_mac_link_up()
1205 static void mv88e6xxx_get_strings(struct dsa_switch *ds, int port, in mv88e6xxx_get_strings() argument
1208 struct mv88e6xxx_chip *chip = ds->priv; in mv88e6xxx_get_strings()
[all …]
/linux/Documentation/hwmon/
H A Dmax6697.rst10 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6581.pdf
16 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6602.pdf
22 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6622.pdf
28 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6636.pdf
34 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6689.pdf
40 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6693.pdf
46 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6694.pdf
52 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6697.pdf
58 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6698.pdf
64 Datasheet: http://datasheets.maximintegrated.com/en/ds/MAX6699.pdf
/linux/drivers/net/dsa/microchip/
H A Dksz_common.c416 struct ksz_device *dev = dp->ds->priv; in ksz_phylink_mac_select_pcs()
2069 static void ksz_phylink_get_caps(struct dsa_switch *ds, int port, in ksz_phylink_get_caps() argument
2072 struct ksz_device *dev = ds->priv; in ksz_phylink_get_caps()
2097 if (ds->ops->support_eee && ds->ops->support_eee(ds, port)) { in ksz_phylink_get_caps()
2215 static void ksz_get_stats64(struct dsa_switch *ds, int port, in ksz_get_stats64() argument
2218 struct ksz_device *dev = ds->priv; in ksz_get_stats64()
2228 static void ksz_get_pause_stats(struct dsa_switch *ds, int port, in ksz_get_pause_stats() argument
2231 struct ksz_device *dev = ds->priv; in ksz_get_pause_stats()
2241 static void ksz_get_strings(struct dsa_switch *ds, int port, in ksz_get_strings() argument
2244 struct ksz_device *dev = ds->priv; in ksz_get_strings()
[all …]
/linux/Documentation/ABI/testing/
H A Dsysfs-bus-iio-sx932412 (DS - data shield), or measured input (MI).
20 `cat in_proximity0_setup` returns "MI,DS,DS".
22 `cat in_proximity1_setup` returns "DS,MI,DS".
24 `cat in_proximity1_setup` returns "DS,DS,MI".
26 `cat in_proximity1_setup` returns "DS,MI,MI".
/linux/drivers/net/dsa/realtek/
H A Drtl83xx.c64 * @ds: DSA switch associated with this user_mii_bus
72 int rtl83xx_setup_user_mdio(struct dsa_switch *ds) in rtl83xx_setup_user_mdio() argument
74 struct realtek_priv *priv = ds->priv; in rtl83xx_setup_user_mdio()
225 struct dsa_switch *ds = &priv->ds; in rtl83xx_register_switch() local
234 ds->priv = priv; in rtl83xx_register_switch()
235 ds->dev = priv->dev; in rtl83xx_register_switch()
236 ds->ops = priv->variant->ds_ops; in rtl83xx_register_switch()
237 ds->phylink_mac_ops = priv->variant->phylink_mac_ops; in rtl83xx_register_switch()
238 ds->num_ports = priv->num_ports; in rtl83xx_register_switch()
240 ret = dsa_register_switch(ds); in rtl83xx_register_switch()
[all …]

12345678910>>...32