Home
last modified time | relevance | path

Searched refs:ds (Results 1 – 25 of 285) sorted by relevance

12345678910>>...12

/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.c191 if (dp->ds->index != sw_index) in dsa_switch_find()
194 return dp->ds; in dsa_switch_find()
292 struct dsa_switch *ds = dp->ds; in dsa_link_touch() local
296 dst = ds->dst; in dsa_link_touch()
317 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table() local
318 struct dsa_switch_tree *dst = ds->dst; in dsa_port_setup_routing_table()
402 dsa_switch_preferred_default_local_cpu_port(struct dsa_switch *ds) in dsa_switch_preferred_default_local_cpu_port() argument
406 if (!ds->ops->preferred_default_local_cpu_port) in dsa_switch_preferred_default_local_cpu_port()
409 cpu_dp = ds->ops->preferred_default_local_cpu_port(ds); in dsa_switch_preferred_default_local_cpu_port()
413 if (WARN_ON(!dsa_port_is_cpu(cpu_dp) || cpu_dp->ds != ds)) in dsa_switch_preferred_default_local_cpu_port()
[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 Duser.c69 static bool dsa_switch_supports_uc_filtering(struct dsa_switch *ds) in dsa_switch_supports_uc_filtering() argument
71 return ds->ops->port_fdb_add && ds->ops->port_fdb_del && in dsa_switch_supports_uc_filtering()
72 ds->fdb_isolation && !ds->vlan_filtering_is_global && in dsa_switch_supports_uc_filtering()
73 !ds->needs_standalone_vlan_filtering; in dsa_switch_supports_uc_filtering()
76 static bool dsa_switch_supports_mc_filtering(struct dsa_switch *ds) in dsa_switch_supports_mc_filtering() argument
78 return ds->ops->port_mdb_add && ds->ops->port_mdb_del && in dsa_switch_supports_mc_filtering()
79 ds->fdb_isolation && !ds->vlan_filtering_is_global && in dsa_switch_supports_mc_filtering()
80 !ds->needs_standalone_vlan_filtering; in dsa_switch_supports_mc_filtering()
91 struct dsa_switch *ds = dp->ds; in dsa_user_standalone_event_work() local
99 dev_err(ds->dev, in dsa_user_standalone_event_work()
[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.h113 int (*connect)(struct dsa_switch *ds);
114 void (*disconnect)(struct dsa_switch *ds);
193 if ((_dp)->ds == (_ds) && (_dp)->hsr_dev == (_hsr)) in dsa_lag_by_id()
265 struct dsa_switch *ds;
521 static inline struct dsa_port *dsa_to_port(struct dsa_switch *ds, int p) in dsa_to_port()
523 struct dsa_switch_tree *dst = ds->dst; in dsa_to_port()
527 if (dp->ds == ds && dp->index == p) in dsa_to_port()
559 static inline bool dsa_is_unused_port(struct dsa_switch *ds, int p) in dsa_is_unused_port()
561 return dsa_to_port(ds, in dsa_is_unused_port()
263 struct dsa_switch *ds; global() member
519 dsa_to_port(struct dsa_switch * ds,int p) dsa_to_port() argument
557 dsa_is_unused_port(struct dsa_switch * ds,int p) dsa_is_unused_port() argument
562 dsa_is_cpu_port(struct dsa_switch * ds,int p) dsa_is_cpu_port() argument
567 dsa_is_dsa_port(struct dsa_switch * ds,int p) dsa_is_dsa_port() argument
572 dsa_is_user_port(struct dsa_switch * ds,int p) dsa_is_user_port() argument
621 dsa_user_ports(struct dsa_switch * ds) dsa_user_ports() argument
632 dsa_cpu_ports(struct dsa_switch * ds) dsa_cpu_ports() argument
644 dsa_routing_port(struct dsa_switch * ds,int device) dsa_routing_port() argument
657 dsa_towards_port(struct dsa_switch * ds,int device,int port) dsa_towards_port() argument
667 dsa_upstream_port(struct dsa_switch * ds,int port) dsa_upstream_port() argument
679 dsa_is_upstream_port(struct dsa_switch * ds,int port) dsa_is_upstream_port() argument
688 dsa_is_downstream_port(struct dsa_switch * ds,int port) dsa_is_downstream_port() argument
694 dsa_switch_upstream_port(struct dsa_switch * ds) dsa_switch_upstream_port() argument
724 const struct dsa_switch *ds = dp->ds; dsa_port_is_vlan_filtering() local
845 dsa_bridge_ports(struct dsa_switch * ds,const struct net_device * bdev) dsa_bridge_ports() argument
1314 struct dsa_switch *ds; global() member
1398 dsa_switch_suspend(struct dsa_switch * ds) dsa_switch_suspend() argument
1402 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 in find_dock_dependent_device()
150 struct dock_station *ds = find_dock_station(dshandle); register_dock_dependent_device() local
193 dock_present(struct dock_station * ds) dock_present() argument
210 hot_remove_dock_devices(struct dock_station * ds) hot_remove_dock_devices() argument
237 hotplug_dock_devices(struct dock_station * ds,u32 event) hotplug_dock_devices() argument
267 dock_event(struct dock_station * ds,u32 event,int num) dock_event() argument
300 handle_dock(struct dock_station * ds,int dock) handle_dock() argument
320 dock(struct dock_station * ds) dock() argument
325 undock(struct dock_station * ds) undock() argument
330 begin_dock(struct dock_station * ds) begin_dock() argument
335 complete_dock(struct dock_station * ds) complete_dock() argument
341 begin_undock(struct dock_station * ds) begin_undock() argument
346 complete_undock(struct dock_station * ds) complete_undock() argument
359 dock_in_progress(struct dock_station * ds) dock_in_progress() argument
375 handle_eject_request(struct dock_station * ds,u32 event) handle_eject_request() argument
413 struct dock_station *ds = find_dock_station(handle); dock_notify() local
577 struct dock_station *dock_station, ds = { NULL, }; acpi_dock_add() local
[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/microchip/
H A Dksz_ptp.h35 void ksz_ptp_set_caps(struct dsa_switch *ds);
36 void ksz8463_ptp_set_caps(struct dsa_switch *ds);
37 int ksz_ptp_clock_register(struct dsa_switch *ds);
39 void ksz_ptp_clock_unregister(struct dsa_switch *ds);
41 int ksz_get_ts_info(struct dsa_switch *ds, int port,
43 int ksz8463_get_ts_info(struct dsa_switch *ds, int port,
45 int ksz_hwtstamp_get(struct dsa_switch *ds, int port,
47 int ksz_hwtstamp_set(struct dsa_switch *ds, int port,
50 int ksz8463_hwtstamp_set(struct dsa_switch *ds, int port,
53 void ksz_port_txtstamp(struct dsa_switch *ds, in
68 ksz_ptp_clock_register(struct dsa_switch * ds) ksz_ptp_clock_register() argument
73 ksz_ptp_clock_unregister(struct dsa_switch * ds) ksz_ptp_clock_unregister() argument
75 ksz_ptp_irq_setup(struct dsa_switch * ds,u8 p) ksz_ptp_irq_setup() argument
80 ksz_ptp_irq_free(struct dsa_switch * ds,u8 p) ksz_ptp_irq_free() argument
82 ksz8463_ptp_irq_setup(struct dsa_switch * ds) ksz8463_ptp_irq_setup() argument
87 ksz8463_ptp_irq_free(struct dsa_switch * ds) ksz8463_ptp_irq_free() argument
[all...]
H A Dlan937x_main.c338 static int lan937x_phy_read16(struct dsa_switch *ds, int addr, int reg) in lan937x_phy_read16() argument
340 struct ksz_device *dev = ds->priv; in lan937x_phy_read16()
351 static int lan937x_phy_write16(struct dsa_switch *ds, int addr, int reg, u16 val) in lan937x_phy_write16() argument
353 struct ksz_device *dev = ds->priv; in lan937x_phy_write16()
398 struct dsa_switch *ds = dev->ds; in lan937x_port_setup() local
423 member = dsa_user_ports(ds); in lan937x_port_setup()
425 member = BIT(dsa_upstream_port(ds, port)); in lan937x_port_setup()
430 static int lan937x_dsa_port_setup(struct dsa_switch *ds, int port) in lan937x_dsa_port_setup() argument
432 struct ksz_device *dev = ds in lan937x_dsa_port_setup()
447 lan937x_config_cpu_port(struct dsa_switch * ds) lan937x_config_cpu_port() argument
466 lan937x_change_mtu(struct dsa_switch * ds,int port,int new_mtu) lan937x_change_mtu() argument
497 lan937x_set_ageing_time(struct dsa_switch * ds,unsigned int msecs) lan937x_set_ageing_time() argument
611 lan937x_phylink_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) lan937x_phylink_get_caps() argument
689 struct dsa_switch *ds = dev->ds; lan937x_mdio_register() local
768 lan937x_setup(struct dsa_switch * ds) lan937x_setup() argument
908 lan937x_get_tag_protocol(struct dsa_switch * ds,int port,enum dsa_tag_protocol mp) lan937x_get_tag_protocol() argument
915 lan937x_connect_tag_protocol(struct dsa_switch * ds,enum dsa_tag_protocol proto) lan937x_connect_tag_protocol() argument
[all...]
H A Dksz9477.h16 void ksz9477_flush_dyn_mac_table(struct dsa_switch *ds, int port);
22 int ksz9477_port_vlan_filtering(struct dsa_switch *ds, int port,
24 int ksz9477_max_mtu(struct dsa_switch *ds, int port);
25 int ksz9477_port_vlan_add(struct dsa_switch *ds, int port,
28 int ksz9477_port_vlan_del(struct dsa_switch *ds, int port,
30 int ksz9477_port_mirror_add(struct dsa_switch *ds, int port,
33 void ksz9477_port_mirror_del(struct dsa_switch *ds, int port,
35 int ksz9477_fdb_dump(struct dsa_switch *ds, int port,
37 int ksz9477_fdb_add(struct dsa_switch *ds, int port,
39 int ksz9477_fdb_del(struct dsa_switch *ds, int port,
[all …]
/linux/drivers/net/dsa/
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, por in bcm_sf2_imp_setup()
202 bcm_sf2_gphy_enable_set(struct dsa_switch * ds,bool enable) bcm_sf2_gphy_enable_set() argument
280 bcm_sf2_port_setup(struct dsa_switch * ds,int port,struct phy_device * phy) bcm_sf2_port_setup() argument
349 bcm_sf2_port_disable(struct dsa_switch * ds,int port) bcm_sf2_port_disable() argument
442 struct dsa_switch *ds = dev_id; bcm_sf2_switch_0_isr() local
454 struct dsa_switch *ds = dev_id; bcm_sf2_switch_1_isr() local
607 bcm_sf2_mdio_register(struct dsa_switch * ds) bcm_sf2_mdio_register() argument
708 bcm_sf2_sw_get_phy_flags(struct dsa_switch * ds,int port) bcm_sf2_sw_get_phy_flags() argument
724 bcm_sf2_sw_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) bcm_sf2_sw_get_caps() argument
794 bcm_sf2_sw_mac_link_set(struct dsa_switch * ds,int port,phy_interface_t interface,bool link) bcm_sf2_sw_mac_link_set() argument
906 bcm_sf2_sw_fixed_state(struct dsa_switch * ds,int port,struct phylink_link_state * status) bcm_sf2_sw_fixed_state() argument
936 bcm_sf2_enable_acb(struct dsa_switch * ds) bcm_sf2_enable_acb() argument
950 bcm_sf2_sw_suspend(struct dsa_switch * ds) bcm_sf2_sw_suspend() argument
972 bcm_sf2_sw_resume(struct dsa_switch * ds) bcm_sf2_sw_resume() argument
1004 bcm_sf2_sw_get_wol(struct dsa_switch * ds,int port,struct ethtool_wolinfo * wol) bcm_sf2_sw_get_wol() argument
1028 bcm_sf2_sw_set_wol(struct dsa_switch * ds,int port,struct ethtool_wolinfo * wol) bcm_sf2_sw_set_wol() argument
1058 bcm_sf2_sw_setup(struct dsa_switch * ds) bcm_sf2_sw_setup() argument
1080 bcm_sf2_sw_teardown(struct dsa_switch * ds) bcm_sf2_sw_teardown() argument
1184 bcm_sf2_sw_get_strings(struct dsa_switch * ds,int port,u32 stringset,uint8_t * data) bcm_sf2_sw_get_strings() argument
1194 bcm_sf2_sw_get_ethtool_stats(struct dsa_switch * ds,int port,uint64_t * data) bcm_sf2_sw_get_ethtool_stats() argument
1203 bcm_sf2_sw_get_sset_count(struct dsa_switch * ds,int port,int sset) bcm_sf2_sw_get_sset_count() argument
1376 struct dsa_switch *ds; bcm_sf2_sw_probe() local
[all...]
H A Dmt7628.c165 struct dsa_switch *ds; member
242 static int mt7628_setup_internal_mdio(struct dsa_switch *ds) in mt7628_setup_internal_mdio() argument
244 struct mt7628_esw *esw = ds->priv; in mt7628_setup_internal_mdio()
245 struct device *dev = ds->dev; in mt7628_setup_internal_mdio()
259 ds->user_mii_bus = bus; in mt7628_setup_internal_mdio()
260 bus->phy_mask = ~ds->phys_mii_mask; in mt7628_setup_internal_mdio()
265 static void mt7628_switch_init(struct dsa_switch *ds) in mt7628_switch_init() argument
267 struct mt7628_esw *esw = ds->priv; in mt7628_switch_init()
386 static void mt7628_vlan_sync(struct dsa_switch *ds) in mt7628_vlan_sync() argument
388 struct mt7628_esw *esw = ds in mt7628_vlan_sync()
403 mt7628_setup(struct dsa_switch * ds) mt7628_setup() argument
435 mt7628_port_enable(struct dsa_switch * ds,int port,struct phy_device * phy) mt7628_port_enable() argument
448 mt7628_port_disable(struct dsa_switch * ds,int port) mt7628_port_disable() argument
457 mt7628_get_tag_proto(struct dsa_switch * ds,int port,enum dsa_tag_protocol mp) mt7628_get_tag_proto() argument
462 mt7628_phylink_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mt7628_phylink_get_caps() argument
479 mt7628_dsa_8021q_vlan_add(struct dsa_switch * ds,int port,u16 vid,u16 flags) mt7628_dsa_8021q_vlan_add() argument
515 mt7628_dsa_8021q_vlan_del(struct dsa_switch * ds,int port,u16 vid) mt7628_dsa_8021q_vlan_del() argument
547 mt7628_teardown(struct dsa_switch * ds) mt7628_teardown() argument
569 struct dsa_switch *ds; mt7628_probe() local
[all...]
H A Dmt7530.c191 static void mt7530_port_fast_age(struct dsa_switch *ds, int port) in mt7530_write()
193 struct mt7530_priv *priv = ds->priv; in mt7530_write()
298 mt753x_preferred_default_local_cpu_port(struct dsa_switch *ds) in mt7530_fdb_read()
300 struct dsa_port *cpu_dp = dsa_to_port(ds, 6); in mt7530_fdb_read()
310 mt7530_setup_port6(struct dsa_switch *ds, phy_interface_t interface) in mt7530_fdb_read()
312 struct mt7530_priv *priv = ds->priv;
453 mt7530_mib_reset(struct dsa_switch *ds) in mt7531_pll_setup()
455 struct mt7530_priv *priv = ds->priv; in mt7531_pll_setup()
693 mt7530_get_strings(struct dsa_switch *ds, int port, u32 stringset, in mt7531_ind_c22_phy_write()
721 mt7530_get_ethtool_stats(struct dsa_switch *ds, in in mt7531_ind_c22_phy_write()
372 mt753x_preferred_default_local_cpu_port(struct dsa_switch * ds) mt753x_preferred_default_local_cpu_port() argument
384 mt7530_setup_port6(struct dsa_switch * ds,phy_interface_t interface) mt7530_setup_port6() argument
525 mt7530_mib_reset(struct dsa_switch * ds) mt7530_mib_reset() argument
759 mt7530_get_strings(struct dsa_switch * ds,int port,u32 stringset,uint8_t * data) mt7530_get_strings() argument
787 mt7530_get_ethtool_stats(struct dsa_switch * ds,int port,uint64_t * data) mt7530_get_ethtool_stats() argument
803 mt7530_get_sset_count(struct dsa_switch * ds,int port,int sset) mt7530_get_sset_count() argument
811 mt7530_get_eth_mac_stats(struct dsa_switch * ds,int port,struct ethtool_eth_mac_stats * mac_stats) mt7530_get_eth_mac_stats() argument
876 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
992 mt7530_get_stats64(struct dsa_switch * ds,int port,struct rtnl_link_stats64 * storage) mt7530_get_stats64() argument
1012 mt7530_get_eth_ctrl_stats(struct dsa_switch * ds,int port,struct ethtool_eth_ctrl_stats * ctrl_stats) mt7530_get_eth_ctrl_stats() argument
1025 mt7530_set_ageing_time(struct dsa_switch * ds,unsigned int msecs) mt7530_set_ageing_time() argument
1080 mt7530_setup_port5(struct dsa_switch * ds,phy_interface_t interface) mt7530_setup_port5() argument
1349 mt753x_cpu_port_enable(struct dsa_switch * ds,int port) mt753x_cpu_port_enable() argument
1381 mt7530_port_enable(struct dsa_switch * ds,int port,struct phy_device * phy) mt7530_port_enable() argument
1416 mt7530_port_disable(struct dsa_switch * ds,int port) mt7530_port_disable() argument
1442 mt7530_port_change_mtu(struct dsa_switch * ds,int port,int new_mtu) mt7530_port_change_mtu() argument
1482 mt7530_port_max_mtu(struct dsa_switch * ds,int port) mt7530_port_max_mtu() argument
1488 mt7530_stp_state_set(struct dsa_switch * ds,int port,u8 state) mt7530_stp_state_set() argument
1566 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
1578 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
1615 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
1684 mt7530_port_set_vlan_unaware(struct dsa_switch * ds,int port) mt7530_port_set_vlan_unaware() argument
1728 mt7530_port_set_vlan_aware(struct dsa_switch * ds,int port) mt7530_port_set_vlan_aware() argument
1768 mt7530_port_bridge_leave(struct dsa_switch * ds,int port,struct dsa_bridge bridge) mt7530_port_bridge_leave() argument
1788 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
1805 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
1822 mt7530_port_fdb_dump(struct dsa_switch * ds,int port,dsa_fdb_dump_cb_t * cb,void * data) mt7530_port_fdb_dump() argument
1857 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
1884 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
1912 mt7530_port_vlan_filtering(struct dsa_switch * ds,int port,bool vlan_filtering,struct netlink_ext_ack * extack) mt7530_port_vlan_filtering() argument
2016 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
2070 mt7530_port_vlan_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan) mt7530_port_vlan_del() argument
2108 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
2146 mt753x_port_mirror_del(struct dsa_switch * ds,int port,struct dsa_mall_mirror_tc_entry * mirror) mt753x_port_mirror_del() argument
2170 mtk_get_tag_protocol(struct dsa_switch * ds,int port,enum dsa_tag_protocol mp) mtk_get_tag_protocol() argument
2286 struct dsa_switch *ds = priv->ds; mt7530_setup_mdio_irq() local
2412 struct dsa_switch *ds = priv->ds; mt7530_setup_mdio() local
2458 mt7530_setup(struct dsa_switch * ds) mt7530_setup() argument
2674 mt7531_setup_common(struct dsa_switch * ds) mt7531_setup_common() argument
2745 mt7531_setup(struct dsa_switch * ds) mt7531_setup() argument
2846 mt7530_mac_port_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mt7530_mac_port_get_caps() argument
2877 mt7531_mac_port_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mt7531_mac_port_get_caps() argument
2915 mt7988_mac_port_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mt7988_mac_port_get_caps() argument
2937 en7581_mac_port_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) en7581_mac_port_get_caps() argument
2959 en7528_mac_port_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) en7528_mac_port_get_caps() argument
2984 mt7530_mac_config(struct dsa_switch * ds,int port,unsigned int mode,phy_interface_t interface) mt7530_mac_config() argument
3036 mt7531_mac_config(struct dsa_switch * ds,int port,unsigned int mode,phy_interface_t interface) mt7531_mac_config() argument
3074 struct dsa_switch *ds = dp->ds; mt753x_phylink_mac_config() local
3168 mt753x_phylink_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) mt753x_phylink_get_caps() argument
3269 mt753x_setup(struct dsa_switch * ds) mt753x_setup() argument
3309 mt753x_teardown(struct dsa_switch * ds) mt753x_teardown() argument
3317 mt753x_set_mac_eee(struct dsa_switch * ds,int port,struct ethtool_keee * e) mt753x_set_mac_eee() argument
3327 mt753x_conduit_state_change(struct dsa_switch * ds,const struct net_device * conduit,bool operational) mt753x_conduit_state_change() argument
3359 mt753x_tc_setup_qdisc_tbf(struct dsa_switch * ds,int port,struct tc_tbf_qopt_offload * qopt) mt753x_tc_setup_qdisc_tbf() argument
3395 mt753x_setup_tc(struct dsa_switch * ds,int port,enum tc_setup_type type,void * type_data) mt753x_setup_tc() argument
3406 mt7988_setup(struct dsa_switch * ds) mt7988_setup() argument
[all...]
/linux/drivers/net/dsa/mxl862xx/
H A Dmxl862xx.c164 static enum dsa_tag_protocol mxl862xx_get_tag_protocol(struct dsa_switch *ds, in mxl862xx_get_tag_protocol() argument
225 static int mxl862xx_wait_ready(struct dsa_switch *ds) in mxl862xx_wait_ready() argument
229 struct mxl862xx_priv *priv = ds->priv; in mxl862xx_wait_ready()
249 dev_info(ds->dev, "switch ready after %ums, firmware %u.%u.%u (build %u)\n", in mxl862xx_wait_ready()
263 dev_err(ds->dev, "switch not responding after reset\n"); in mxl862xx_wait_ready()
267 static int mxl862xx_setup_mdio(struct dsa_switch *ds) in mxl862xx_setup_mdio() argument
269 struct mxl862xx_priv *priv = ds->priv; in mxl862xx_setup_mdio()
270 struct device *dev = ds->dev; in mxl862xx_setup_mdio()
287 bus->phy_mask = ~ds->phys_mii_mask; in mxl862xx_setup_mdio()
299 static int mxl862xx_bridge_config_fwd(struct dsa_switch *ds, u1 argument
341 mxl862xx_setup_drop_meter(struct dsa_switch * ds) mxl862xx_setup_drop_meter() argument
384 mxl862xx_set_bridge_port(struct dsa_switch * ds,int port) mxl862xx_set_bridge_port() argument
506 mxl862xx_sync_bridge_members(struct dsa_switch * ds,const struct dsa_bridge * bridge) mxl862xx_sync_bridge_members() argument
599 mxl862xx_free_bridge(struct dsa_switch * ds,const struct dsa_bridge * bridge) mxl862xx_free_bridge() argument
619 mxl862xx_setup(struct dsa_switch * ds) mxl862xx_setup() argument
698 mxl862xx_teardown(struct dsa_switch * ds) mxl862xx_teardown() argument
706 mxl862xx_port_state(struct dsa_switch * ds,int port,bool enable) mxl862xx_port_state() argument
727 mxl862xx_port_enable(struct dsa_switch * ds,int port,struct phy_device * phydev) mxl862xx_port_enable() argument
733 mxl862xx_port_disable(struct dsa_switch * ds,int port) mxl862xx_port_disable() argument
739 mxl862xx_port_fast_age(struct dsa_switch * ds,int port) mxl862xx_port_fast_age() argument
750 mxl862xx_configure_ctp_port(struct dsa_switch * ds,int port,u16 first_ctp_port_id,u16 number_of_ctp_ports) mxl862xx_configure_ctp_port() argument
765 mxl862xx_configure_sp_tag_proto(struct dsa_switch * ds,int port,bool enable) mxl862xx_configure_sp_tag_proto() argument
1089 mxl862xx_port_vlan_filtering(struct dsa_switch * ds,int port,bool vlan_filtering,struct netlink_ext_ack * extack) mxl862xx_port_vlan_filtering() argument
1129 mxl862xx_port_vlan_add(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan,struct netlink_ext_ack * extack) mxl862xx_port_vlan_add() argument
1203 mxl862xx_port_vlan_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan) mxl862xx_port_vlan_del() argument
1271 mxl862xx_setup_cpu_bridge(struct dsa_switch * ds,int port) mxl862xx_setup_cpu_bridge() argument
1287 mxl862xx_port_bridge_join(struct dsa_switch * ds,int port,const struct dsa_bridge bridge,bool * tx_fwd_offload,struct netlink_ext_ack * extack) mxl862xx_port_bridge_join() argument
1315 mxl862xx_port_bridge_leave(struct dsa_switch * ds,int port,const struct dsa_bridge bridge) mxl862xx_port_bridge_leave() argument
1345 mxl862xx_port_setup(struct dsa_switch * ds,int port) mxl862xx_port_setup() argument
1420 mxl862xx_port_teardown(struct dsa_switch * ds,int port) mxl862xx_port_teardown() argument
1438 mxl862xx_get_fid(struct dsa_switch * ds,struct dsa_db db) mxl862xx_get_fid() argument
1456 mxl862xx_port_fdb_add(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) mxl862xx_port_fdb_add() argument
1479 mxl862xx_port_fdb_del(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,const struct dsa_db db) mxl862xx_port_fdb_del() argument
1500 mxl862xx_port_fdb_dump(struct dsa_switch * ds,int port,dsa_fdb_dump_cb_t * cb,void * data) mxl862xx_port_fdb_dump() argument
1532 mxl862xx_port_mdb_add(struct dsa_switch * ds,int port,const struct switchdev_obj_port_mdb * mdb,const struct dsa_db db) mxl862xx_port_mdb_add() argument
1569 mxl862xx_port_mdb_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_mdb * mdb,const struct dsa_db db) mxl862xx_port_mdb_del() argument
1614 mxl862xx_set_ageing_time(struct dsa_switch * ds,unsigned int msecs) mxl862xx_set_ageing_time() argument
1634 mxl862xx_port_stp_state_set(struct dsa_switch * ds,int port,u8 state) mxl862xx_port_stp_state_set() argument
1693 struct dsa_switch *ds = priv->ds; mxl862xx_host_flood_work_fn() local
1714 mxl862xx_port_set_host_flood(struct dsa_switch * ds,int port,bool uc,bool mc) mxl862xx_port_set_host_flood() argument
1725 mxl862xx_port_pre_bridge_flags(struct dsa_switch * ds,int port,const struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) mxl862xx_port_pre_bridge_flags() argument
1736 mxl862xx_port_bridge_flags(struct dsa_switch * ds,int port,const struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) mxl862xx_port_bridge_flags() argument
1782 mxl862xx_get_strings(struct dsa_switch * ds,int port,u32 stringset,u8 * data) mxl862xx_get_strings() argument
1794 mxl862xx_get_sset_count(struct dsa_switch * ds,int port,int sset) mxl862xx_get_sset_count() argument
1802 mxl862xx_read_rmon(struct dsa_switch * ds,int port,struct mxl862xx_rmon_port_cnt * cnt) mxl862xx_read_rmon() argument
1812 mxl862xx_get_ethtool_stats(struct dsa_switch * ds,int port,u64 * data) mxl862xx_get_ethtool_stats() argument
1837 mxl862xx_get_eth_mac_stats(struct dsa_switch * ds,int port,struct ethtool_eth_mac_stats * mac_stats) mxl862xx_get_eth_mac_stats() argument
1862 mxl862xx_get_eth_ctrl_stats(struct dsa_switch * ds,int port,struct ethtool_eth_ctrl_stats * ctrl_stats) mxl862xx_get_eth_ctrl_stats() argument
1874 mxl862xx_get_pause_stats(struct dsa_switch * ds,int port,struct ethtool_pause_stats * pause_stats) mxl862xx_get_pause_stats() argument
1886 mxl862xx_get_rmon_stats(struct dsa_switch * ds,int port,struct ethtool_rmon_stats * rmon_stats,const struct ethtool_rmon_hist_range ** ranges) mxl862xx_get_rmon_stats() argument
1938 mxl862xx_stats_poll(struct dsa_switch * ds,int port) mxl862xx_stats_poll() argument
2027 struct dsa_switch *ds = priv->ds; mxl862xx_stats_work_fn() local
2038 mxl862xx_get_stats64(struct dsa_switch * ds,int port,struct rtnl_link_stats64 * s) mxl862xx_get_stats64() argument
2106 struct dsa_switch *ds; mxl862xx_probe() local
2155 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); mxl862xx_remove() local
2181 struct dsa_switch *ds = dev_get_drvdata(&mdiodev->dev); mxl862xx_shutdown() local
[all...]
/linux/drivers/net/dsa/sja1105/
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 …]
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 …]
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()
93 region = dsa_devlink_region_create(ds, ops, 1, size); in sja1105_setup_devlink_regions()
108 static void sja1105_teardown_devlink_regions(struct dsa_switch *ds) in sja1105_teardown_devlink_regions() argument
111 struct sja1105_private *priv = ds->priv; in sja1105_teardown_devlink_regions()
119 int sja1105_devlink_info_get(struct dsa_switch *ds, in sja1105_devlink_info_get() argument
123 struct sja1105_private *priv = ds->priv; in sja1105_devlink_info_get()
130 int sja1105_devlink_setup(struct dsa_switch *ds) in sja1105_devlink_setup() argument
[all …]
/linux/fs/nfs/
H A Dpnfs_nfs.c90 cinfo->ds->nwritten--; in pnfs_generic_clear_request_commit()
257 cinfo->ds->nwritten -= ret; in pnfs_bucket_scan_ds_commit_list()
258 cinfo->ds->ncommitting += ret; in pnfs_bucket_scan_ds_commit_list()
284 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; in pnfs_generic_scan_commit_lists()
337 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; in pnfs_generic_recover_commit_reqs()
368 cinfo->ds->ncommitting--; in pnfs_bucket_get_committing()
470 struct pnfs_ds_commit_info *fl_cinfo = cinfo->ds; in pnfs_generic_commit_pagelist()
523 print_ds(struct nfs4_pnfs_ds *ds) in print_ds()
525 if (ds == NULL) { in print_ds()
529 printk(KERN_WARNING " ds in print_ds()
520 print_ds(struct nfs4_pnfs_ds * ds) print_ds() argument
612 struct nfs4_pnfs_ds *ds; _data_server_lookup_locked() local
636 destroy_ds(struct nfs4_pnfs_ds * ds) destroy_ds() argument
658 nfs4_pnfs_ds_put(struct nfs4_pnfs_ds * ds) nfs4_pnfs_ds_put() argument
728 struct nfs4_pnfs_ds *tmp_ds, *ds = NULL; nfs4_pnfs_ds_add() local
772 nfs4_wait_ds_connect(struct nfs4_pnfs_ds * ds) nfs4_wait_ds_connect() argument
778 nfs4_clear_ds_conn_bit(struct nfs4_pnfs_ds * ds) nfs4_clear_ds_conn_bit() argument
811 _nfs4_pnfs_v3_ds_connect(struct nfs_server * mds_srv,struct nfs4_pnfs_ds * ds,unsigned int timeo,unsigned int retrans) _nfs4_pnfs_v3_ds_connect() argument
885 _nfs4_pnfs_v4_ds_connect(struct nfs_server * mds_srv,struct nfs4_pnfs_ds * ds,unsigned int timeo,unsigned int retrans,u32 minor_version,bool tightly_coupled) _nfs4_pnfs_v4_ds_connect() argument
1012 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,bool tightly_coupled) nfs4_pnfs_ds_connect() argument
[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, in argument
743 b53_disable_port(struct dsa_switch * ds,int port) b53_disable_port() argument
761 b53_brcm_hdr_setup(struct dsa_switch * ds,int port) b53_brcm_hdr_setup() argument
878 b53_vlan_port_needs_forced_tagged(struct dsa_switch * ds,int port) b53_vlan_port_needs_forced_tagged() argument
885 b53_vlan_port_may_join_untagged(struct dsa_switch * ds,int port) b53_vlan_port_may_join_untagged() argument
901 b53_configure_vlan(struct dsa_switch * ds) b53_configure_vlan() argument
1043 b53_phy_read16(struct dsa_switch * ds,int addr,int reg) b53_phy_read16() argument
1058 b53_phy_write16(struct dsa_switch * ds,int addr,int reg,u16 val) b53_phy_write16() argument
1128 b53_get_phy_device(struct dsa_switch * ds,int port) b53_get_phy_device() argument
1141 b53_get_strings(struct dsa_switch * ds,int port,u32 stringset,uint8_t * data) b53_get_strings() argument
1163 b53_get_ethtool_stats(struct dsa_switch * ds,int port,uint64_t * data) b53_get_ethtool_stats() argument
1196 b53_get_ethtool_phy_stats(struct dsa_switch * ds,int port,uint64_t * data) b53_get_ethtool_phy_stats() argument
1208 b53_get_sset_count(struct dsa_switch * ds,int port,int sset) b53_get_sset_count() argument
1248 b53_setup_devlink_resources(struct dsa_switch * ds) b53_setup_devlink_resources() argument
1276 b53_setup(struct dsa_switch * ds) b53_setup() argument
1340 b53_teardown(struct dsa_switch * ds) b53_teardown() argument
1437 b53_adjust_63xx_rgmii(struct dsa_switch * ds,int port,phy_interface_t interface) b53_adjust_63xx_rgmii() argument
1457 b53_adjust_531x5_rgmii(struct dsa_switch * ds,int port,phy_interface_t interface) b53_adjust_531x5_rgmii() argument
1502 b53_adjust_5325_mii(struct dsa_switch * ds,int port) b53_adjust_5325_mii() argument
1525 b53_port_event(struct dsa_switch * ds,int port) b53_port_event() argument
1537 b53_phylink_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) b53_phylink_get_caps() argument
1598 struct dsa_switch *ds = dp->ds; b53_phylink_mac_config() local
1647 struct dsa_switch *ds = dp->ds; b53_phylink_mac_link_up() local
1681 b53_vlan_filtering(struct dsa_switch * ds,int port,bool vlan_filtering,struct netlink_ext_ack * extack) b53_vlan_filtering() argument
1695 b53_vlan_prepare(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan) b53_vlan_prepare() argument
1716 b53_vlan_add(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan,struct netlink_ext_ack * extack) b53_vlan_add() argument
1770 b53_vlan_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan) b53_vlan_del() argument
2029 b53_fdb_add(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) b53_fdb_add() argument
2044 b53_fdb_del(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) b53_fdb_del() argument
2182 b53_fdb_dump(struct dsa_switch * ds,int port,dsa_fdb_dump_cb_t * cb,void * data) b53_fdb_dump() argument
2226 b53_mdb_add(struct dsa_switch * ds,int port,const struct switchdev_obj_port_mdb * mdb,struct dsa_db db) b53_mdb_add() argument
2247 b53_mdb_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_mdb * mdb,struct dsa_db db) b53_mdb_del() argument
2264 b53_br_join(struct dsa_switch * ds,int port,struct dsa_bridge bridge,bool * tx_fwd_offload,struct netlink_ext_ack * extack) b53_br_join() argument
2331 b53_br_leave(struct dsa_switch * ds,int port,struct dsa_bridge bridge) b53_br_leave() argument
2382 b53_br_set_stp_state(struct dsa_switch * ds,int port,u8 state) b53_br_set_stp_state() argument
2416 b53_br_fast_age(struct dsa_switch * ds,int port) b53_br_fast_age() argument
2425 b53_br_flags_pre(struct dsa_switch * ds,int port,struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) b53_br_flags_pre() argument
2442 b53_br_flags(struct dsa_switch * ds,int port,struct switchdev_brport_flags flags,struct netlink_ext_ack * extack) b53_br_flags() argument
2463 b53_possible_cpu_port(struct dsa_switch * ds,int port) b53_possible_cpu_port() argument
2478 b53_can_enable_brcm_tags(struct dsa_switch * ds,int port,enum dsa_tag_protocol tag_protocol) b53_can_enable_brcm_tags() argument
2504 b53_get_tag_protocol(struct dsa_switch * ds,int port,enum dsa_tag_protocol mprot) b53_get_tag_protocol() argument
2537 b53_mirror_add(struct dsa_switch * ds,int port,struct dsa_mall_mirror_tc_entry * mirror,bool ingress,struct netlink_ext_ack * extack) b53_mirror_add() argument
2563 b53_mirror_del(struct dsa_switch * ds,int port,struct dsa_mall_mirror_tc_entry * mirror) b53_mirror_del() argument
2604 b53_eee_init(struct dsa_switch * ds,int port,struct phy_device * phy) b53_eee_init() argument
2621 b53_support_eee(struct dsa_switch * ds,int port) b53_support_eee() argument
2629 b53_set_mac_eee(struct dsa_switch * ds,int port,struct ethtool_keee * e) b53_set_mac_eee() argument
2641 b53_change_mtu(struct dsa_switch * ds,int port,int mtu) b53_change_mtu() argument
2659 b53_get_max_mtu(struct dsa_switch * ds,int port) b53_get_max_mtu() argument
2669 b53_set_ageing_time(struct dsa_switch * ds,unsigned int msecs) b53_set_ageing_time() argument
3187 struct dsa_switch *ds; b53_switch_alloc() local
[all...]
H A Db53_priv.h136 struct dsa_switch *ds;
293 dsa_unregister_switch(dev->ds); in b53_switch_shutdown()
298 dsa_switch_shutdown(dev->ds);
508 void b53_imp_vlan_setup(struct dsa_switch *ds, int cpu_port);
509 int b53_configure_vlan(struct dsa_switch *ds);
511 void b53_get_strings(struct dsa_switch *ds, int port, u32 stringset,
513 void b53_get_ethtool_stats(struct dsa_switch *ds, int port, uint64_t *data);
514 int b53_get_sset_count(struct dsa_switch *ds, int port, int sset);
515 void b53_get_ethtool_phy_stats(struct dsa_switch *ds, int port, uint64_t *data);
516 int b53_set_ageing_time(struct dsa_switch *ds, unsigne
134 struct dsa_switch *ds; global() member
[all...]
/linux/drivers/net/dsa/lantiq/
H A Dlantiq_gswip_common.c367 vlan_mapping.val[1] = BIT(port) | dsa_cpu_ports(priv->ds); in gswip_add_single_port_br()
390 static int gswip_port_pre_bridge_flags(struct dsa_switch *ds, int port, in gswip_port_pre_bridge_flags() argument
394 struct gswip_priv *priv = ds->priv; in gswip_port_pre_bridge_flags()
406 static int gswip_port_bridge_flags(struct dsa_switch *ds, int port, in gswip_port_bridge_flags() argument
410 struct gswip_priv *priv = ds->priv; in gswip_port_bridge_flags()
419 static int gswip_port_setup(struct dsa_switch *ds, int port) in gswip_port_setup() argument
421 struct gswip_priv *priv = ds->priv; in gswip_port_setup()
425 err = priv->hw_info->port_setup(ds, port); in gswip_port_setup()
430 if (!dsa_is_cpu_port(ds, port)) { in gswip_port_setup()
439 static int gswip_port_enable(struct dsa_switch *ds, in argument
467 gswip_port_disable(struct dsa_switch * ds,int port) gswip_port_disable() argument
565 gswip_port_vlan_filtering(struct dsa_switch * ds,int port,bool vlan_filtering,struct netlink_ext_ack * extack) gswip_port_vlan_filtering() argument
643 gswip_setup(struct dsa_switch * ds) gswip_setup() argument
742 gswip_teardown(struct dsa_switch * ds) gswip_teardown() argument
749 gswip_get_tag_protocol(struct dsa_switch * ds,int port,enum dsa_tag_protocol mp) gswip_get_tag_protocol() argument
947 gswip_port_bridge_join(struct dsa_switch * ds,int port,struct dsa_bridge bridge,bool * tx_fwd_offload,struct netlink_ext_ack * extack) gswip_port_bridge_join() argument
968 gswip_port_bridge_leave(struct dsa_switch * ds,int port,struct dsa_bridge bridge) gswip_port_bridge_leave() argument
981 gswip_port_vlan_prepare(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan,struct netlink_ext_ack * extack) gswip_port_vlan_prepare() argument
1027 gswip_port_vlan_add(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan,struct netlink_ext_ack * extack) gswip_port_vlan_add() argument
1056 gswip_port_vlan_del(struct dsa_switch * ds,int port,const struct switchdev_obj_port_vlan * vlan) gswip_port_vlan_del() argument
1076 gswip_port_fast_age(struct dsa_switch * ds,int port) gswip_port_fast_age() argument
1114 gswip_port_stp_state_set(struct dsa_switch * ds,int port,u8 state) gswip_port_stp_state_set() argument
1146 gswip_port_fdb(struct dsa_switch * ds,int port,struct net_device * bridge,const unsigned char * addr,u16 vid,bool add) gswip_port_fdb() argument
1192 gswip_port_fdb_add(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) gswip_port_fdb_add() argument
1202 gswip_port_fdb_del(struct dsa_switch * ds,int port,const unsigned char * addr,u16 vid,struct dsa_db db) gswip_port_fdb_del() argument
1212 gswip_port_fdb_dump(struct dsa_switch * ds,int port,dsa_fdb_dump_cb_t * cb,void * data) gswip_port_fdb_dump() argument
1260 gswip_port_max_mtu(struct dsa_switch * ds,int port) gswip_port_max_mtu() argument
1266 gswip_port_change_mtu(struct dsa_switch * ds,int port,int new_mtu) gswip_port_change_mtu() argument
1292 gswip_phylink_get_caps(struct dsa_switch * ds,int port,struct phylink_config * config) gswip_phylink_get_caps() argument
1491 gswip_get_strings(struct dsa_switch * ds,int port,u32 stringset,uint8_t * data) gswip_get_strings() argument
1530 gswip_get_ethtool_stats(struct dsa_switch * ds,int port,uint64_t * data) gswip_get_ethtool_stats() argument
1551 gswip_get_sset_count(struct dsa_switch * ds,int port,int sset) gswip_get_sset_count() argument
1559 gswip_set_mac_eee(struct dsa_switch * ds,int port,struct ethtool_keee * e) gswip_set_mac_eee() argument
1592 gswip_support_eee(struct dsa_switch * ds,int port) gswip_support_eee() argument
1654 gswip_validate_cpu_port(struct dsa_switch * ds) gswip_validate_cpu_port() argument
[all...]
/linux/drivers/net/dsa/mv88e6xxx/
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/android/binder/node/
H A Dwrapper.rs48 let ds = &mut inner.delivery_state; in do_work()
50 assert!(ds.has_pushed_wrapper); in do_work() localVariable
51 assert!(ds.has_strong_zero2one); in do_work()
52 ds.has_pushed_wrapper = false; in do_work()
53 ds.has_strong_zero2one = false; in do_work()
72 let ds = &mut inner.delivery_state; in cancel()
73 assert!(ds.has_pushed_wrapper); in cancel()
74 assert!(ds.has_strong_zero2one); in cancel() localVariable
75 ds.has_pushed_wrapper = false; in cancel()
79 ds in cancel()
[all...]

12345678910>>...12