Home
last modified time | relevance | path

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

12345678910>>...40

/linux/net/dsa/
H A Ddevlink.c15 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_info_get() local
17 if (ds->ops->devlink_info_get) in dsa_devlink_info_get()
18 return ds->ops->devlink_info_get(ds, req, extack); in dsa_devlink_info_get()
27 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_get() local
29 if (!ds->ops->devlink_sb_pool_get) in dsa_devlink_sb_pool_get()
32 return ds->ops->devlink_sb_pool_get(ds, sb_index, pool_index, in dsa_devlink_sb_pool_get()
41 struct dsa_switch *ds = dsa_devlink_to_ds(dl); in dsa_devlink_sb_pool_set() local
43 if (!ds->ops->devlink_sb_pool_set) in dsa_devlink_sb_pool_set()
46 return ds->ops->devlink_sb_pool_set(ds, sb_index, pool_index, size, in dsa_devlink_sb_pool_set()
54 struct dsa_switch *ds = dsa_devlink_port_to_ds(dlp); in dsa_devlink_sb_port_pool_get() local
[all …]
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() local
295 dst = ds->dst; in dsa_link_touch()
316 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table() local
317 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
401 dsa_switch_preferred_default_local_cpu_port(struct dsa_switch *ds) in dsa_switch_preferred_default_local_cpu_port() argument
405 if (!ds->ops->preferred_default_local_cpu_port) in dsa_switch_preferred_default_local_cpu_port()
408 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->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 Dport.c35 return dsa_tree_notify(dp->ds->dst, e, v); in dsa_port_notify()
57 struct dsa_switch *ds = dp->ds; in dsa_port_fast_age() local
59 if (!ds->ops->port_fast_age) in dsa_port_fast_age()
62 ds->ops->port_fast_age(ds, dp->index); in dsa_port_fast_age()
70 struct dsa_switch *ds = dp->ds; in dsa_port_vlan_fast_age() local
73 if (!ds->ops->port_vlan_fast_age) in dsa_port_vlan_fast_age()
76 err = ds->ops->port_vlan_fast_age(ds, dp->index, vid); in dsa_port_vlan_fast_age()
107 struct dsa_switch *ds = dp->ds; in dsa_port_can_configure_learning() local
110 if (!ds->ops->port_bridge_flags || !ds->ops->port_pre_bridge_flags) in dsa_port_can_configure_learning()
113 err = ds->ops->port_pre_bridge_flags(ds, dp->index, flags, NULL); in dsa_port_can_configure_learning()
[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()
90 static ssize_t dsa_conduit_append_port_stats(struct dsa_switch *ds, int port, in dsa_conduit_append_port_stats() argument
95 if (!ds->ops->get_sset_count) in dsa_conduit_append_port_stats()
98 count = ds->ops->get_sset_count(ds, port, ETH_SS_STATS); in dsa_conduit_append_port_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 …]
/linux/fs/xfs/scrub/
H A Ddabtree.c31 struct xchk_da_btree *ds, in xchk_da_process_error() argument
35 struct xfs_scrub *sc = ds->sc; in xchk_da_process_error()
55 trace_xchk_file_op_error(sc, ds->dargs.whichfork, in xchk_da_process_error()
56 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_process_error()
57 ds->state->path.blk[level].blkno), in xchk_da_process_error()
70 struct xchk_da_btree *ds, in xchk_da_set_corrupt() argument
73 struct xfs_scrub *sc = ds->sc; in xchk_da_set_corrupt()
77 trace_xchk_fblock_error(sc, ds->dargs.whichfork, in xchk_da_set_corrupt()
78 xfs_dir2_da_to_db(ds->dargs.geo, in xchk_da_set_corrupt()
79 ds->state->path.blk[level].blkno), in xchk_da_set_corrupt()
[all …]
H A Dattr.c296 struct xchk_da_btree *ds, in xchk_xattr_entry() argument
306 struct xfs_mount *mp = ds->state->mp; in xchk_xattr_entry()
307 struct xchk_xattr_buf *ab = ds->sc->buf; in xchk_xattr_entry()
315 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
319 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
325 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
336 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
342 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
345 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
348 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry()
[all …]
/linux/drivers/net/dsa/ocelot/
H A Dfelix.c45 static int felix_cpu_port_for_conduit(struct dsa_switch *ds, in felix_cpu_port_for_conduit() argument
48 struct ocelot *ocelot = ds->priv; in felix_cpu_port_for_conduit()
101 static int felix_tag_8021q_vlan_add_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_rx() argument
106 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_add_rx()
149 static int felix_tag_8021q_vlan_del_rx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_del_rx() argument
154 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_del_rx()
171 static int felix_tag_8021q_vlan_add_tx(struct dsa_switch *ds, int port, in felix_tag_8021q_vlan_add_tx() argument
175 unsigned long cpu_ports = dsa_cpu_ports(ds); in felix_tag_8021q_vlan_add_tx()
176 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_add_tx()
238 static int felix_tag_8021q_vlan_del_tx(struct dsa_switch *ds, int port, u16 vid) in felix_tag_8021q_vlan_del_tx() argument
[all …]
/linux/include/net/
H A Ddsa.h105 int (*connect)(struct dsa_switch *ds);
106 void (*disconnect)(struct dsa_switch *ds);
185 if ((_dp)->ds == (_ds) && (_dp)->hsr_dev == (_hsr))
257 struct dsa_switch *ds; member
513 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port() argument
515 struct dsa_switch_tree *dst = ds->dst; in dsa_to_port()
519 if (dp->ds == ds && dp->index == p) in dsa_to_port()
551 static inline bool dsa_is_unused_port(struct dsa_switch *ds, int p) in dsa_is_unused_port() argument
553 return dsa_to_port(ds, in dsa_is_unused_port()
556 dsa_is_cpu_port(struct dsa_switch * ds,int p) dsa_is_cpu_port() argument
561 dsa_is_dsa_port(struct dsa_switch * ds,int p) dsa_is_dsa_port() argument
566 dsa_is_user_port(struct dsa_switch * ds,int p) dsa_is_user_port() argument
615 dsa_user_ports(struct dsa_switch * ds) dsa_user_ports() argument
626 dsa_cpu_ports(struct dsa_switch * ds) dsa_cpu_ports() argument
638 dsa_routing_port(struct dsa_switch * ds,int device) dsa_routing_port() argument
651 dsa_towards_port(struct dsa_switch * ds,int device,int port) dsa_towards_port() argument
661 dsa_upstream_port(struct dsa_switch * ds,int port) dsa_upstream_port() argument
673 dsa_is_upstream_port(struct dsa_switch * ds,int port) dsa_is_upstream_port() argument
682 dsa_is_downstream_port(struct dsa_switch * ds,int port) dsa_is_downstream_port() argument
688 dsa_switch_upstream_port(struct dsa_switch * ds) dsa_switch_upstream_port() argument
718 const struct dsa_switch *ds = dp->ds; dsa_port_is_vlan_filtering() local
1291 struct dsa_switch *ds; global() member
1375 dsa_switch_suspend(struct dsa_switch * ds) dsa_switch_suspend() argument
1379 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/net/dsa/xrs700x/
H A Dxrs700x.c86 static void xrs700x_get_strings(struct dsa_switch *ds, int port, in xrs700x_get_strings() argument
98 static int xrs700x_get_sset_count(struct dsa_switch *ds, int port, int sset) in xrs700x_get_sset_count() argument
153 for (i = 0; i < priv->ds->num_ports; i++) in xrs700x_mib_work()
159 static void xrs700x_get_ethtool_stats(struct dsa_switch *ds, int port, in xrs700x_get_ethtool_stats() argument
162 struct xrs700x *priv = ds->priv; in xrs700x_get_ethtool_stats()
172 static void xrs700x_get_stats64(struct dsa_switch *ds, int port, in xrs700x_get_stats64() argument
175 struct xrs700x *priv = ds->priv; in xrs700x_get_stats64()
190 priv->ds->num_ports, in xrs700x_setup_regmap_range()
196 priv->ds->num_ports, in xrs700x_setup_regmap_range()
202 priv->ds->num_ports, in xrs700x_setup_regmap_range()
[all …]
/linux/drivers/md/
H A Ddm-bio-prison-v1.c287 struct dm_deferred_set *ds; member
302 struct dm_deferred_set *ds; in dm_deferred_set_create() local
304 ds = kmalloc_obj(*ds); in dm_deferred_set_create()
305 if (!ds) in dm_deferred_set_create()
308 spin_lock_init(&ds->lock); in dm_deferred_set_create()
309 ds->current_entry = 0; in dm_deferred_set_create()
310 ds->sweeper = 0; in dm_deferred_set_create()
312 ds->entries[i].ds = ds; in dm_deferred_set_create()
313 ds->entries[i].count = 0; in dm_deferred_set_create()
314 INIT_LIST_HEAD(&ds->entries[i].work_items); in dm_deferred_set_create()
[all …]
/linux/drivers/net/dsa/mxl862xx/
H A Dmxl862xx.c170 static enum dsa_tag_protocol mxl862xx_get_tag_protocol(struct dsa_switch *ds, in mxl862xx_get_tag_protocol() argument
231 static int mxl862xx_wait_ready(struct dsa_switch *ds) in mxl862xx_wait_ready() argument
235 struct mxl862xx_priv *priv = ds->priv; in mxl862xx_wait_ready()
255 dev_info(ds->dev, "switch ready after %ums, firmware %u.%u.%u (build %u)\n", in mxl862xx_wait_ready()
266 dev_err(ds->dev, "switch not responding after reset\n"); in mxl862xx_wait_ready()
270 static int mxl862xx_setup_mdio(struct dsa_switch *ds) in mxl862xx_setup_mdio() argument
272 struct mxl862xx_priv *priv = ds->priv; in mxl862xx_setup_mdio()
273 struct device *dev = ds->dev; in mxl862xx_setup_mdio()
290 bus->phy_mask = ~ds->phys_mii_mask; in mxl862xx_setup_mdio()
302 static int mxl862xx_bridge_config_fwd(struct dsa_switch *ds, u16 bridge_id, in mxl862xx_bridge_config_fwd() argument
[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_ptp.h93 int sja1105_ptp_clock_register(struct dsa_switch *ds);
95 void sja1105_ptp_clock_unregister(struct dsa_switch *ds);
103 int sja1105_get_ts_info(struct dsa_switch *ds, int port,
106 void sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int slot,
109 bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
112 void sja1105_port_txtstamp(struct dsa_switch *ds, int port,
115 int sja1105_hwtstamp_get(struct dsa_switch *ds, int port,
118 int sja1105_hwtstamp_set(struct dsa_switch *ds, int port,
122 int __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns,
125 int __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns,
[all …]
H A Dsja1105_ptp.c61 int sja1105_hwtstamp_set(struct dsa_switch *ds, int port, in sja1105_hwtstamp_set() argument
65 struct sja1105_private *priv = ds->priv; in sja1105_hwtstamp_set()
99 int sja1105_hwtstamp_get(struct dsa_switch *ds, int port, in sja1105_hwtstamp_get() argument
102 struct sja1105_private *priv = ds->priv; in sja1105_hwtstamp_get()
117 int sja1105_get_ts_info(struct dsa_switch *ds, int port, in sja1105_get_ts_info() argument
120 struct sja1105_private *priv = ds->priv; in sja1105_get_ts_info()
172 int sja1105_ptp_commit(struct dsa_switch *ds, struct sja1105_ptp_cmd *cmd, in sja1105_ptp_commit() argument
175 const struct sja1105_private *priv = ds->priv; in sja1105_ptp_commit()
206 static u64 sja1105_tstamp_reconstruct(struct dsa_switch *ds, u64 now, in sja1105_tstamp_reconstruct() argument
209 struct sja1105_private *priv = ds->priv; in sja1105_tstamp_reconstruct()
[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);
1014 static int dualsense_get_calibration_data(struct dualsense *ds) in dualsense_get_calibration_data() argument
1016 struct hid_device *hdev = ds->base.hdev; in dualsense_get_calibration_data()
1034 ret = ps_get_report(ds->base.hdev, DS_FEATURE_REPORT_CALIBRATION, buf, in dualsense_get_calibration_data()
1037 hid_err(ds->base.hdev, "Failed to retrieve DualSense calibration info: %d\n", ret); in dualsense_get_calibration_data()
1064 ds->gyro_calib_data[0].abs_code = ABS_RX; in dualsense_get_calibration_data()
1065 ds->gyro_calib_data[0].bias = 0; in dualsense_get_calibration_data()
1066 ds->gyro_calib_data[0].sens_numer = speed_2x * DS_GYRO_RES_PER_DEG_S; in dualsense_get_calibration_data()
1067 ds->gyro_calib_data[0].sens_denom = abs(gyro_pitch_plus - gyro_pitch_bias) + in dualsense_get_calibration_data()
[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 …]
/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/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 …]
/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 …]
/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.h36 int ksz_ptp_clock_register(struct dsa_switch *ds);
38 void ksz_ptp_clock_unregister(struct dsa_switch *ds);
40 int ksz_get_ts_info(struct dsa_switch *ds, int port,
42 int ksz_hwtstamp_get(struct dsa_switch *ds, int port,
44 int ksz_hwtstamp_set(struct dsa_switch *ds, int port,
47 void ksz_port_txtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb);
49 bool ksz_port_rxtstamp(struct dsa_switch *ds, int port, struct sk_buff *skb,
51 int ksz_ptp_irq_setup(struct dsa_switch *ds, u8 p);
52 void ksz_ptp_irq_free(struct dsa_switch *ds, u8 p);
61 static inline int ksz_ptp_clock_register(struct dsa_switch *ds) in ksz_ptp_clock_register() argument
[all …]

12345678910>>...40