Home
last modified time | relevance | path

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

12345678910>>...31

/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.c60 * driver by setting ds->num_lag_ids. It is perfectly legal to leave
190 if (dp->ds->index != sw_index) in dsa_switch_find()
193 return dp->ds; in dsa_switch_find()
291 struct dsa_switch *ds = dp->ds; in dsa_link_touch()
295 dst = ds->dst; in dsa_link_touch()
316 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table()
317 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
407 dsa_switch_preferred_default_local_cpu_port(struct dsa_switch *ds) in dsa_switch_preferred_default_local_cpu_port()
290 struct dsa_switch *ds = dp->ds; dsa_link_touch() local
315 struct dsa_switch *ds = dp->ds; dsa_port_setup_routing_table() local
406 dsa_switch_preferred_default_local_cpu_port(struct dsa_switch * ds) dsa_switch_preferred_default_local_cpu_port() argument
466 struct dsa_switch *ds = dp->ds; dsa_port_setup() local
574 dsa_switch_setup_tag_protocol(struct dsa_switch * ds) dsa_switch_setup_tag_protocol() argument
618 dsa_switch_teardown_tag_protocol(struct dsa_switch * ds) dsa_switch_teardown_tag_protocol() argument
626 dsa_switch_setup(struct dsa_switch * ds) dsa_switch_setup() argument
690 dsa_switch_teardown(struct dsa_switch * ds) dsa_switch_teardown() argument
1091 dsa_port_touch(struct dsa_switch * ds,int index) dsa_port_touch() argument
1137 struct dsa_switch *mds, *ds = dp->ds; dsa_get_tag_protocol() local
1163 struct dsa_switch *ds = dp->ds; dsa_port_parse_cpu() local
1271 dsa_switch_parse_ports_of(struct dsa_switch * ds,struct device_node * dn) dsa_switch_parse_ports_of() argument
1318 dsa_switch_parse_member_of(struct dsa_switch * ds,struct device_node * dn) dsa_switch_parse_member_of() argument
1348 dsa_switch_touch_ports(struct dsa_switch * ds) dsa_switch_touch_ports() argument
1362 dsa_switch_parse_of(struct dsa_switch * ds,struct device_node * dn) dsa_switch_parse_of() argument
1434 dsa_switch_parse_ports(struct dsa_switch * ds,struct dsa_chip_data * cd) dsa_switch_parse_ports() argument
1465 dsa_switch_parse(struct dsa_switch * ds,struct dsa_chip_data * cd) dsa_switch_parse() argument
1486 dsa_switch_release_ports(struct dsa_switch * ds) dsa_switch_release_ports() argument
1531 dsa_switch_probe(struct dsa_switch * ds) dsa_switch_probe() argument
1573 dsa_register_switch(struct dsa_switch * ds) dsa_register_switch() argument
1586 dsa_switch_remove(struct dsa_switch * ds) dsa_switch_remove() argument
1595 dsa_unregister_switch(struct dsa_switch * ds) dsa_unregister_switch() argument
1608 dsa_switch_shutdown(struct dsa_switch * ds) dsa_switch_shutdown() argument
1652 dsa_switch_suspend(struct dsa_switch * ds) dsa_switch_suspend() argument
1674 dsa_switch_resume(struct dsa_switch * ds) dsa_switch_resume() argument
1727 dsa_fdb_present_in_other_db(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) dsa_fdb_present_in_other_db() argument
1748 dsa_mdb_present_in_other_db(struct dsa_switch * ds,int port,const struct switchdev_obj_port_mdb * mdb,struct dsa_db db) dsa_mdb_present_in_other_db() argument
[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->fdb_isolation && !ds->vlan_filtering_is_global && in dsa_switch_supports_mc_filtering()
79 !ds->needs_standalone_vlan_filtering; in dsa_switch_supports_mc_filtering()
90 struct dsa_switch *ds = dp->ds; in dsa_user_standalone_event_work() local
98 dev_err(ds->dev, in dsa_user_standalone_event_work()
[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 in dsa_conduit_get_regs()
96 struct dsa_switch *ds = cpu_dp->ds; dsa_conduit_get_ethtool_stats() local
117 struct dsa_switch *ds = cpu_dp->ds; dsa_conduit_get_ethtool_phy_stats() local
143 struct dsa_switch *ds = cpu_dp->ds; dsa_conduit_get_sset_count() local
168 struct dsa_switch *ds = cpu_dp->ds; dsa_conduit_get_strings() local
221 struct dsa_switch *ds = cpu_dp->ds; __dsa_conduit_hwtstamp_validate() local
241 struct dsa_switch *ds = cpu_dp->ds; dsa_conduit_ethtool_setup() local
377 struct dsa_switch *ds = cpu_dp->ds; dsa_conduit_setup() local
[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 …]
/linux/include/net/
H A Ddsa.h103 int (*connect)(struct dsa_switch *ds);
104 void (*disconnect)(struct dsa_switch *ds);
183 if ((_dp)->ds == (_ds) && (_dp)->hsr_dev == (_hsr)) in dsa_lag_by_id()
261 struct dsa_switch *ds;
516 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port()
518 struct dsa_switch_tree *dst = ds->dst; in dsa_to_port()
522 if (dp->ds == ds && dp->index == p) in dsa_to_port()
554 static inline bool dsa_is_unused_port(struct dsa_switch *ds, int p)
556 return dsa_to_port(ds, in dsa_is_cpu_port()
257 struct dsa_switch *ds; global() member
512 dsa_to_port(struct dsa_switch * ds,int p) dsa_to_port() argument
550 dsa_is_unused_port(struct dsa_switch * ds,int p) dsa_is_unused_port() argument
555 dsa_is_cpu_port(struct dsa_switch * ds,int p) dsa_is_cpu_port() argument
560 dsa_is_dsa_port(struct dsa_switch * ds,int p) dsa_is_dsa_port() argument
565 dsa_is_user_port(struct dsa_switch * ds,int p) dsa_is_user_port() argument
614 dsa_user_ports(struct dsa_switch * ds) dsa_user_ports() argument
625 dsa_cpu_ports(struct dsa_switch * ds) dsa_cpu_ports() argument
637 dsa_routing_port(struct dsa_switch * ds,int device) dsa_routing_port() argument
650 dsa_towards_port(struct dsa_switch * ds,int device,int port) dsa_towards_port() argument
660 dsa_upstream_port(struct dsa_switch * ds,int port) dsa_upstream_port() argument
672 dsa_is_upstream_port(struct dsa_switch * ds,int port) dsa_is_upstream_port() argument
681 dsa_is_downstream_port(struct dsa_switch * ds,int port) dsa_is_downstream_port() argument
687 dsa_switch_upstream_port(struct dsa_switch * ds) dsa_switch_upstream_port() argument
717 const struct dsa_switch *ds = dp->ds; dsa_port_is_vlan_filtering() local
1289 struct dsa_switch *ds; global() member
1369 dsa_switch_suspend(struct dsa_switch * ds) dsa_switch_suspend() argument
1373 dsa_switch_resume(struct dsa_switch * ds) dsa_switch_resume() argument
[all...]
/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.c576 static inline void dualsense_schedule_work(struct dualsense *ds);
578 static void dualsense_set_lightbar(struct dualsense *ds, u8 red, u8 green, u8 blue);
1007 static int dualsense_get_calibration_data(struct dualsense *ds) in dualsense_get_calibration_data() argument
1009 struct hid_device *hdev = ds->base.hdev; in dualsense_get_calibration_data()
1027 ret = ps_get_report(ds->base.hdev, DS_FEATURE_REPORT_CALIBRATION, buf, in dualsense_get_calibration_data()
1030 hid_err(ds->base.hdev, "Failed to retrieve DualSense calibration info: %d\n", ret); in dualsense_get_calibration_data()
1057 ds->gyro_calib_data[0].abs_code = ABS_RX; in dualsense_get_calibration_data()
1058 ds->gyro_calib_data[0].bias = 0; in dualsense_get_calibration_data()
1059 ds->gyro_calib_data[0].sens_numer = speed_2x * DS_GYRO_RES_PER_DEG_S; in dualsense_get_calibration_data()
1060 ds->gyro_calib_data[0].sens_denom = abs(gyro_pitch_plus - gyro_pitch_bias) + in dualsense_get_calibration_data()
[all …]
/linux/fs/nfs/
H A Dpnfs_nfs.c87 cinfo->ds->nwritten--; in pnfs_generic_clear_request_commit()
254 cinfo->ds->nwritten -= ret; in pnfs_bucket_scan_ds_commit_list()
255 cinfo->ds->ncommitting += ret; in pnfs_bucket_scan_ds_commit_list()
281 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; in pnfs_generic_scan_commit_lists()
334 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; in pnfs_generic_recover_commit_reqs()
365 cinfo->ds->ncommitting--; in pnfs_bucket_get_committing()
467 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; in pnfs_generic_commit_pagelist()
520 print_ds(struct nfs4_pnfs_ds *ds) in print_ds() argument
522 if (ds == NULL) { in print_ds()
526 printk(KERN_WARNING " ds %s\n" in print_ds()
[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 mv88e6060_phy_read(struct dsa_switch * ds,int port,int regnum) mv88e6060_phy_read() argument
238 mv88e6060_phy_write(struct dsa_switch * ds,int port,int regnum,u16 val) mv88e6060_phy_write() argument
250 mv88e6060_phylink_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mv88e6060_phylink_get_caps() argument
306 struct dsa_switch *ds; mv88e6060_probe() local
339 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); mv88e6060_remove() local
349 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); mv88e6060_shutdown() local
[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 Drzn1_a5psw.c95 static enum dsa_tag_protocol a5psw_get_tag_protocol(struct dsa_switch *ds, in a5psw_get_tag_protocol() argument
187 static void a5psw_port_disable(struct dsa_switch *ds, int port) in a5psw_port_disable() argument
189 struct a5psw *a5psw = ds->priv; in a5psw_port_disable()
195 static int a5psw_port_enable(struct dsa_switch *ds, int port, in a5psw_port_enable() argument
198 struct a5psw *a5psw = ds->priv; 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() argument
208 struct a5psw *a5psw = ds->priv; in a5psw_port_change_mtu()
216 static int a5psw_port_max_mtu(struct dsa_switch *ds, int port) in a5psw_port_max_mtu() argument
221 static void a5psw_phylink_get_caps(struct dsa_switch *ds, int port, in a5psw_phylink_get_caps() argument
228 if (dsa_is_cpu_port(ds, por in a5psw_phylink_get_caps()
300 a5psw_set_ageing_time(struct dsa_switch * ds,unsigned int msecs) a5psw_set_ageing_time() argument
358 a5psw_port_bridge_join(struct dsa_switch * ds,int port,struct dsa_bridge bridge,bool * tx_fwd_offload,struct netlink_ext_ack * extack) a5psw_port_bridge_join() argument
380 a5psw_port_bridge_leave(struct dsa_switch * ds,int port,struct dsa_bridge bridge) a5psw_port_bridge_leave() argument
394 a5psw_port_pre_bridge_flags(struct dsa_switch * ds,int port,struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) a5psw_port_pre_bridge_flags() argument
406 a5psw_port_bridge_flags(struct dsa_switch * ds,int port,struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) a5psw_port_bridge_flags() argument
447 a5psw_port_stp_state_set(struct dsa_switch * ds,int port,u8 state) a5psw_port_stp_state_set() argument
481 a5psw_port_fast_age(struct dsa_switch * ds,int port) a5psw_port_fast_age() argument
507 a5psw_port_fdb_add(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) a5psw_port_fdb_add() argument
558 a5psw_port_fdb_del(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) a5psw_port_fdb_del() argument
617 a5psw_port_fdb_dump(struct dsa_switch * ds,int port,dsa_fdb_dump_cb_t * cb,void * data) a5psw_port_fdb_dump() argument
653 a5psw_port_vlan_filtering(struct dsa_switch * ds,int port,bool vlan_filtering,struct netlink_ext_ack * extack) a5psw_port_vlan_filtering() argument
739 a5psw_port_vlan_add(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan,struct netlink_ext_ack * extack) a5psw_port_vlan_add() argument
770 a5psw_port_vlan_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan) a5psw_port_vlan_del() argument
798 a5psw_get_strings(struct dsa_switch * ds,int port,u32 stringset,uint8_t * data) a5psw_get_strings() argument
810 a5psw_get_ethtool_stats(struct dsa_switch * ds,int port,uint64_t * data) a5psw_get_ethtool_stats() argument
820 a5psw_get_sset_count(struct dsa_switch * ds,int port,int sset) a5psw_get_sset_count() argument
828 a5psw_get_eth_mac_stats(struct dsa_switch * ds,int port,struct ethtool_eth_mac_stats * mac_stats) a5psw_get_eth_mac_stats() argument
867 a5psw_get_rmon_stats(struct dsa_switch * ds,int port,struct ethtool_rmon_stats * rmon_stats,const struct ethtool_rmon_hist_range ** ranges) a5psw_get_rmon_stats() argument
890 a5psw_get_eth_ctrl_stats(struct dsa_switch * ds,int port,struct ethtool_eth_ctrl_stats * ctrl_stats) a5psw_get_eth_ctrl_stats() argument
923 a5psw_setup(struct dsa_switch * ds) a5psw_setup() argument
1209 struct dsa_switch *ds; a5psw_probe() local
[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, in argument
800 mt7530_get_eth_mac_stats(struct dsa_switch * ds,int port,struct ethtool_eth_mac_stats * mac_stats) mt7530_get_eth_mac_stats() argument
865 mt7530_get_rmon_stats(struct dsa_switch * ds,int port,struct ethtool_rmon_stats * rmon_stats,const struct ethtool_rmon_hist_range ** ranges) mt7530_get_rmon_stats() argument
909 mt7530_get_stats64(struct dsa_switch * ds,int port,struct rtnl_link_stats64 * storage) mt7530_get_stats64() argument
954 mt7530_get_eth_ctrl_stats(struct dsa_switch * ds,int port,struct ethtool_eth_ctrl_stats * ctrl_stats) mt7530_get_eth_ctrl_stats() argument
967 mt7530_set_ageing_time(struct dsa_switch * ds,unsigned int msecs) mt7530_set_ageing_time() argument
1018 mt7530_setup_port5(struct dsa_switch * ds,phy_interface_t interface) mt7530_setup_port5() argument
1284 mt753x_cpu_port_enable(struct dsa_switch * ds,int port) mt753x_cpu_port_enable() argument
1316 mt7530_port_enable(struct dsa_switch * ds,int port,struct phy_device * phy) mt7530_port_enable() argument
1351 mt7530_port_disable(struct dsa_switch * ds,int port) mt7530_port_disable() argument
1377 mt7530_port_change_mtu(struct dsa_switch * ds,int port,int new_mtu) mt7530_port_change_mtu() argument
1417 mt7530_port_max_mtu(struct dsa_switch * ds,int port) mt7530_port_max_mtu() argument
1423 mt7530_stp_state_set(struct dsa_switch * ds,int port,u8 state) mt7530_stp_state_set() argument
1501 mt7530_port_pre_bridge_flags(struct dsa_switch * ds,int port,struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) mt7530_port_pre_bridge_flags() argument
1513 mt7530_port_bridge_flags(struct dsa_switch * ds,int port,struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) mt7530_port_bridge_flags() argument
1550 mt7530_port_bridge_join(struct dsa_switch * ds,int port,struct dsa_bridge bridge,bool * tx_fwd_offload,struct netlink_ext_ack * extack) mt7530_port_bridge_join() argument
1570 mt7530_port_set_vlan_unaware(struct dsa_switch * ds,int port) mt7530_port_set_vlan_unaware() argument
1616 mt7530_port_set_vlan_aware(struct dsa_switch * ds,int port) mt7530_port_set_vlan_aware() argument
1656 mt7530_port_bridge_leave(struct dsa_switch * ds,int port,struct dsa_bridge bridge) mt7530_port_bridge_leave() argument
1676 mt7530_port_fdb_add(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) mt7530_port_fdb_add() argument
1693 mt7530_port_fdb_del(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) mt7530_port_fdb_del() argument
1710 mt7530_port_fdb_dump(struct dsa_switch * ds,int port,dsa_fdb_dump_cb_t * cb,void * data) mt7530_port_fdb_dump() argument
1745 mt7530_port_mdb_add(struct dsa_switch * ds,int port,const struct switchdev_obj_port_mdb * mdb,struct dsa_db db) mt7530_port_mdb_add() argument
1772 mt7530_port_mdb_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_mdb * mdb,struct dsa_db db) mt7530_port_mdb_del() argument
1827 mt7530_port_vlan_filtering(struct dsa_switch * ds,int port,bool vlan_filtering,struct netlink_ext_ack * extack) mt7530_port_vlan_filtering() argument
1946 mt7530_port_vlan_add(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan,struct netlink_ext_ack * extack) mt7530_port_vlan_add() argument
1991 mt7530_port_vlan_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan) mt7530_port_vlan_del() argument
2024 mt753x_port_mirror_add(struct dsa_switch * ds,int port,struct dsa_mall_mirror_tc_entry * mirror,bool ingress,struct netlink_ext_ack * extack) mt753x_port_mirror_add() argument
2062 mt753x_port_mirror_del(struct dsa_switch * ds,int port,struct dsa_mall_mirror_tc_entry * mirror) mt753x_port_mirror_del() argument
2086 mtk_get_tag_protocol(struct dsa_switch * ds,int port,enum dsa_tag_protocol mp) mtk_get_tag_protocol() argument
2202 struct dsa_switch *ds = priv->ds; mt7530_setup_mdio_irq() local
2304 struct dsa_switch *ds = priv->ds; mt7530_setup_mdio() local
2350 mt7530_setup(struct dsa_switch * ds) mt7530_setup() argument
2563 mt7531_setup_common(struct dsa_switch * ds) mt7531_setup_common() argument
2631 mt7531_setup(struct dsa_switch * ds) mt7531_setup() argument
2726 mt7530_mac_port_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mt7530_mac_port_get_caps() argument
2757 mt7531_mac_port_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mt7531_mac_port_get_caps() argument
2795 mt7988_mac_port_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mt7988_mac_port_get_caps() argument
2817 en7581_mac_port_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) en7581_mac_port_get_caps() argument
2840 mt7530_mac_config(struct dsa_switch * ds,int port,unsigned int mode,phy_interface_t interface) mt7530_mac_config() argument
2892 mt7531_mac_config(struct dsa_switch * ds,int port,unsigned int mode,phy_interface_t interface) mt7531_mac_config() argument
2930 struct dsa_switch *ds = dp->ds; mt753x_phylink_mac_config() local
3024 mt753x_phylink_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mt753x_phylink_get_caps() argument
3110 mt753x_setup(struct dsa_switch * ds) mt753x_setup() argument
3143 mt753x_set_mac_eee(struct dsa_switch * ds,int port,struct ethtool_keee * e) mt753x_set_mac_eee() argument
3153 mt753x_conduit_state_change(struct dsa_switch * ds,const struct net_device * conduit,bool operational) mt753x_conduit_state_change() argument
3184 mt753x_tc_setup_qdisc_tbf(struct dsa_switch * ds,int port,struct tc_tbf_qopt_offload * qopt) mt753x_tc_setup_qdisc_tbf() argument
3220 mt753x_setup_tc(struct dsa_switch * ds,int port,enum tc_setup_type type,void * type_data) mt753x_setup_tc() argument
3231 mt7988_setup(struct dsa_switch * ds) mt7988_setup() argument
[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,
/linux/drivers/net/dsa/b53/
H A Db53_common.c288 dev_dbg(dev->ds->dev, "VID: %d, members: 0x%04x, untag: 0x%04x\n", in b53_set_vlan_entry()
540 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port) in b53_imp_vlan_setup() argument
542 struct b53_device *dev = ds->priv; in b53_imp_vlan_setup()
654 static void b53_eee_enable_set(struct dsa_switch *ds, int port, bool enable) in b53_eee_enable_set() argument
656 struct b53_device *dev = ds->priv; in b53_eee_enable_set()
667 int b53_setup_port(struct dsa_switch *ds, int port) in b53_setup_port() argument
669 struct b53_device *dev = ds->priv; in b53_setup_port()
680 if (dsa_is_user_port(ds, port)) in b53_setup_port()
689 if (dsa_is_unused_port(ds, port)) in b53_setup_port()
700 int b53_enable_port(struct dsa_switch *ds, int port, struct phy_device *phy) in b53_enable_port() argument
[all …]
H A Db53_priv.h133 struct dsa_switch *ds;
289 dsa_unregister_switch(dev->ds);
294 dsa_switch_shutdown(dev->ds);
491 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port);
492 int b53_configure_vlan(struct dsa_switch *ds);
493 void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset,
495 void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);
496 int b53_get_sset_count(struct dsa_switch *ds, int port, int sset);
497 void b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data);
498 int b53_set_ageing_time(struct dsa_switch *ds, unsigne
122 struct dsa_switch *ds; global() member
[all...]
/linux/drivers/net/dsa/hirschmann/
H A Dhellcreek.c240 static enum dsa_tag_protocol hellcreek_get_tag_protocol(struct dsa_switch *ds, in hellcreek_get_tag_protocol() argument
247 static int hellcreek_port_enable(struct dsa_switch *ds, int port, in hellcreek_port_enable() argument
250 struct hellcreek *hellcreek = ds->priv; in hellcreek_port_enable()
271 static void hellcreek_port_disable(struct dsa_switch *ds, int port) in hellcreek_port_disable() argument
273 struct hellcreek *hellcreek = ds->priv; in hellcreek_port_disable()
292 static void hellcreek_get_strings(struct dsa_switch *ds, int port, in hellcreek_get_strings() argument
301 static int hellcreek_get_sset_count(struct dsa_switch *ds, int port, int sset) in hellcreek_get_sset_count() argument
309 static void hellcreek_get_ethtool_stats(struct dsa_switch *ds, int port, in hellcreek_get_ethtool_stats() argument
312 struct hellcreek *hellcreek = ds->priv; in hellcreek_get_ethtool_stats()
348 static int hellcreek_vlan_prepare(struct dsa_switch *ds, in argument
455 hellcreek_vlan_add(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan,struct netlink_ext_ack * extack) hellcreek_vlan_add() argument
477 hellcreek_vlan_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan) hellcreek_vlan_del() argument
489 hellcreek_port_stp_state_set(struct dsa_switch * ds,int port,u8 state) hellcreek_port_stp_state_set() argument
584 hellcreek_setup_vlan_membership(struct dsa_switch * ds,int port,bool enabled) hellcreek_setup_vlan_membership() argument
654 hellcreek_pre_bridge_flags(struct dsa_switch * ds,int port,struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) hellcreek_pre_bridge_flags() argument
664 hellcreek_bridge_flags(struct dsa_switch * ds,int port,struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) hellcreek_bridge_flags() argument
681 hellcreek_port_bridge_join(struct dsa_switch * ds,int port,struct dsa_bridge bridge,bool * tx_fwd_offload,struct netlink_ext_ack * extack) hellcreek_port_bridge_join() argument
700 hellcreek_port_bridge_leave(struct dsa_switch * ds,int port,struct dsa_bridge bridge) hellcreek_port_bridge_leave() argument
835 hellcreek_fdb_add(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) hellcreek_fdb_add() argument
881 hellcreek_fdb_del(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) hellcreek_fdb_del() argument
922 hellcreek_fdb_dump(struct dsa_switch * ds,int port,dsa_fdb_dump_cb_t * cb,void * data) hellcreek_fdb_dump() argument
969 hellcreek_vlan_filtering(struct dsa_switch * ds,int port,bool vlan_filtering,struct netlink_ext_ack * extack) hellcreek_vlan_filtering() argument
1169 hellcreek_devlink_info_get(struct dsa_switch * ds,struct devlink_info_req * req,struct netlink_ext_ack * extack) hellcreek_devlink_info_get() argument
1210 hellcreek_setup_devlink_resources(struct dsa_switch * ds) hellcreek_setup_devlink_resources() argument
1264 struct dsa_switch *ds = dsa_devlink_to_ds(dl); hellcreek_devlink_region_vlan_snapshot() local
1291 struct dsa_switch *ds = dsa_devlink_to_ds(dl); hellcreek_devlink_region_fdb_snapshot() local
1335 hellcreek_setup_devlink_regions(struct dsa_switch * ds) hellcreek_setup_devlink_regions() argument
1373 hellcreek_teardown_devlink_regions(struct dsa_switch * ds) hellcreek_teardown_devlink_regions() argument
1381 hellcreek_setup(struct dsa_switch * ds) hellcreek_setup() argument
1458 hellcreek_teardown(struct dsa_switch * ds) hellcreek_teardown() argument
1464 hellcreek_phylink_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) hellcreek_phylink_get_caps() argument
1490 hellcreek_port_prechangeupper(struct dsa_switch * ds,int port,struct netdev_notifier_changeupper_info * info) hellcreek_port_prechangeupper() argument
1738 hellcreek_port_set_schedule(struct dsa_switch * ds,int port,struct tc_taprio_qopt_offload * taprio) hellcreek_port_set_schedule() argument
1798 hellcreek_port_del_schedule(struct dsa_switch * ds,int port) hellcreek_port_del_schedule() argument
1872 hellcreek_port_setup_tc(struct dsa_switch * ds,int port,enum tc_setup_type type,void * type_data) hellcreek_port_setup_tc() argument
[all...]
/linux/arch/x86/events/intel/
H A Dbts.c148 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in bts_config_buffer() local
169 ds->bts_buffer_base = (u64)(long)page_address(page) + phys->displacement; in bts_config_buffer()
170 ds->bts_index = ds->bts_buffer_base + index; in bts_config_buffer()
171 ds->bts_absolute_maximum = ds->bts_buffer_base + end; in bts_config_buffer()
172 ds->bts_interrupt_threshold = !bb->snapshot in bts_config_buffer()
173 ? ds->bts_buffer_base + thresh in bts_config_buffer()
174 : ds->bts_absolute_maximum + BTS_RECORD_SIZE; in bts_config_buffer()
187 struct debug_store *ds = per_cpu(cpu_hw_events, cpu).ds; in bts_update() local
189 unsigned long index = ds->bts_index - ds->bts_buffer_base, old, head; in bts_update()
201 if (ds->bts_index >= ds->bts_absolute_maximum) in bts_update()
[all …]
/linux/fs/nfs/flexfilelayout/
H A Dflexfilelayoutdev.c35 nfs4_pnfs_ds_put(mirror_ds->ds); in nfs4_ff_layout_free_deviceid()
80 dprintk("%s: multipath ds count %d\n", __func__, mp_count); in nfs4_ff_alloc_deviceid_node()
83 /* multipath ds */ in nfs4_ff_alloc_deviceid_node()
89 dprintk("%s: no suitable DS addresses found\n", in nfs4_ff_alloc_deviceid_node()
134 dprintk("%s: [%d] unsupported ds version %d-%d\n", __func__, in nfs4_ff_alloc_deviceid_node()
152 new_ds->ds = nfs4_pnfs_ds_add(net, &dsaddrs, gfp_flags); in nfs4_ff_alloc_deviceid_node()
153 if (!new_ds->ds) in nfs4_ff_alloc_deviceid_node()
156 /* If DS was already in cache, free ds addrs */ in nfs4_ff_alloc_deviceid_node()
309 /* FIXME: For now assume there is only 1 version available for the DS */ in nfs4_ff_layout_select_ds_fh()
354 * nfs4_ff_layout_prepare_ds - prepare a DS connection for an RPC call
[all …]
/linux/drivers/net/dsa/microchip/
H A Dksz_common.c449 struct ksz_device *dev = dp->ds->priv; in ksz_phylink_mac_select_pcs()
2184 static void ksz_phylink_get_caps(struct dsa_switch *ds, int port, in ksz_phylink_get_caps() argument
2187 struct ksz_device *dev = ds->priv; in ksz_phylink_get_caps()
2212 if (ds->ops->support_eee && ds->ops->support_eee(ds, port)) { in ksz_phylink_get_caps()
2330 static void ksz_get_stats64(struct dsa_switch *ds, int port, in ksz_get_stats64() argument
2333 struct ksz_device *dev = ds->priv; in ksz_get_stats64()
2343 static void ksz_get_pause_stats(struct dsa_switch *ds, int port, in ksz_get_pause_stats() argument
2346 struct ksz_device *dev = ds->priv; in ksz_get_pause_stats()
2356 static void ksz_get_strings(struct dsa_switch *ds, int port, in ksz_get_strings() argument
2359 struct ksz_device *dev = ds->priv; in ksz_get_strings()
[all …]

12345678910>>...31