| /linux/net/dsa/ |
| A D | switch.c | 87 if (info->dp->ds == ds) { in dsa_switch_bridge_join() 99 if (info->dp->ds != ds && ds->ops->crosschip_bridge_join) { in dsa_switch_bridge_join() 116 if (info->dp->ds == ds && ds->ops->port_bridge_leave) in dsa_switch_bridge_leave() 119 if (info->dp->ds != ds && ds->ops->crosschip_bridge_leave) in dsa_switch_bridge_leave() 120 ds->ops->crosschip_bridge_leave(ds, info->dp->ds->dst->index, in dsa_switch_bridge_leave() 553 if (info->dp->ds == ds && ds->ops->port_lag_change) in dsa_switch_lag_change() 556 if (info->dp->ds != ds && ds->ops->crosschip_lag_change) in dsa_switch_lag_change() 566 if (info->dp->ds == ds && ds->ops->port_lag_join) in dsa_switch_lag_join() 570 if (info->dp->ds != ds && ds->ops->crosschip_lag_join) in dsa_switch_lag_join() 581 if (info->dp->ds == ds && ds->ops->port_lag_leave) in dsa_switch_lag_leave() [all …]
|
| A D | devlink.c | 18 return ds->ops->devlink_info_get(ds, req, extack); in dsa_devlink_info_get() 32 return ds->ops->devlink_sb_pool_get(ds, sb_index, pool_index, in dsa_devlink_sb_pool_get() 123 return ds->ops->devlink_sb_occ_snapshot(ds, sb_index); in dsa_devlink_sb_occ_snapshot() 192 return ds->ops->devlink_param_get(ds, id, ctx); in dsa_devlink_param_get() 205 return ds->ops->devlink_param_set(ds, id, ctx); in dsa_devlink_param_set() 298 struct dsa_switch *ds = dp->ds; in dsa_port_devlink_setup() local 307 err = ds->ops->port_setup(ds, dp->index); in dsa_port_devlink_setup() 338 ds->ops->port_teardown(ds, dp->index); in dsa_port_devlink_setup() 348 struct dsa_switch *ds = dp->ds; in dsa_port_devlink_teardown() local 353 ds->ops->port_teardown(ds, dp->index); in dsa_port_devlink_teardown() [all …]
|
| A D | port.c | 57 struct dsa_switch *ds = dp->ds; in dsa_port_fast_age() local 70 struct dsa_switch *ds = dp->ds; in dsa_port_vlan_fast_age() local 107 struct dsa_switch *ds = dp->ds; in dsa_port_can_configure_learning() local 119 struct dsa_switch *ds = dp->ds; in dsa_port_supports_hwtstamp() local 137 struct dsa_switch *ds = dp->ds; in dsa_port_set_state() local 171 struct dsa_switch *ds = dp->ds; in dsa_port_set_state_now() local 185 struct dsa_switch *ds = dp->ds; in dsa_port_set_mst_state() local 219 struct dsa_switch *ds = dp->ds; in dsa_port_enable_rt() local 251 struct dsa_switch *ds = dp->ds; in dsa_port_disable_rt() local 276 struct dsa_switch *ds = dp->ds; in dsa_port_reset_vlan_filtering() local [all …]
|
| A D | dsa.c | 290 struct dsa_switch *ds = dp->ds; in dsa_link_touch() local 315 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table() local 466 struct dsa_switch *ds = dp->ds; in dsa_port_setup() local 650 err = ds->ops->setup(ds); in dsa_switch_setup() 682 ds->ops->teardown(ds); in dsa_switch_setup() 706 ds->ops->teardown(ds); in dsa_switch_teardown() 1097 dp->ds = ds; in dsa_port_touch() 1156 struct dsa_switch *ds = dp->ds; in dsa_port_parse_cpu() local 1331 ds->index, ds->dst->index); in dsa_switch_parse_member_of() 1637 ret = ds->ops->suspend(ds); in dsa_switch_suspend() [all …]
|
| A D | user.c | 90 struct dsa_switch *ds = dp->ds; in dsa_user_standalone_event_work() local 279 struct dsa_switch *ds = dp->ds; in dsa_user_sync_ha() local 300 struct dsa_switch *ds = dp->ds; in dsa_user_unsync_ha() local 346 ds->dst->index, ds->index); in dsa_user_mii_bus_init() 362 struct dsa_switch *ds = dp->ds; in dsa_user_host_uc_install() local 390 struct dsa_switch *ds = dp->ds; in dsa_user_host_uc_uninstall() local 451 struct dsa_switch *ds = dp->ds; in dsa_user_change_rx_flags() local 474 struct dsa_switch *ds = dp->ds; in dsa_user_set_mac_address() local 1397 if (dp->ds != to_dp->ds) { in dsa_user_add_cls_matchall_mirred() 3124 ds = dp->ds; in dsa_user_prechangeupper_sanity_check() [all …]
|
| A D | tag_8021q.c | 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() 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() 228 if (!ds->ops->tag_8021q_vlan_add || !ds->tag_8021q_ctx) in dsa_switch_tag_8021q_vlan_add() 255 if (!ds->ops->tag_8021q_vlan_del || !ds->tag_8021q_ctx) in dsa_switch_tag_8021q_vlan_del() 329 dev_err(ds->dev, in dsa_tag_8021q_bridge_leave() 357 dev_err(ds->dev, in dsa_tag_8021q_port_setup() [all …]
|
| A D | conduit.c | 23 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_regs_len() local 39 len = ds->ops->get_regs_len(ds, port); in dsa_conduit_get_regs_len() 53 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_regs() local 75 len = ds->ops->get_regs_len(ds, port); in dsa_conduit_get_regs() 89 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_ethtool_stats() local 108 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_ethtool_phy_stats() local 132 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_sset_count() local 155 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_strings() local 206 struct dsa_switch *ds = cpu_dp->ds; in __dsa_conduit_hwtstamp_validate() local 226 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_ethtool_setup() local [all …]
|
| /linux/fs/xfs/scrub/ |
| A D | dabtree.c | 150 if (blkno < ds->lowest || (ds->highest != 0 && blkno >= ds->highest)) { in xchk_da_btree_ptr_ok() 322 memset(&ds->state->altpath, 0, sizeof(ds->state->altpath)); in xchk_da_btree_block_check_siblings() 514 if (!ds) in xchk_da_btree() 521 ds->state = xfs_da_state_alloc(&ds->dargs); in xchk_da_btree() 522 ds->sc = sc; in xchk_da_btree() 526 ds->lowest = 0; in xchk_da_btree() 527 ds->highest = 0; in xchk_da_btree() 530 ds->lowest = ds->dargs.geo->leafblk; in xchk_da_btree() 531 ds->highest = ds->dargs.geo->freeblk; in xchk_da_btree() 598 ds->tree_level--; in xchk_da_btree() [all …]
|
| A D | attr.c | 322 struct xchk_da_btree *ds, in xchk_xattr_entry() argument 341 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 345 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 351 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 371 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 374 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 382 struct xchk_da_btree *ds, in xchk_xattr_block() argument 408 if (xfs_has_crc(ds->sc->mp)) { in xchk_xattr_block() 430 xchk_da_set_preen(ds, level); in xchk_xattr_block() 443 xchk_da_set_preen(ds, level); in xchk_xattr_block() [all …]
|
| /linux/include/net/ |
| A D | dsa.h | 255 struct dsa_switch *ds; member 516 if (dp->ds == ds && dp->index == p) in dsa_to_port() 641 if (dl->dp->ds == ds && dl->link_dp->ds->index == device) in dsa_routing_port() 644 return ds->num_ports; in dsa_routing_port() 666 return dsa_towards_port(ds, cpu_dp->ds->index, cpu_dp->index); in dsa_upstream_port() 681 return dsa_is_dsa_port(ds, port) && !dsa_is_upstream_port(ds, port); in dsa_is_downstream_port() 693 return ds->num_ports; in dsa_switch_upstream_port() 715 const struct dsa_switch *ds = dp->ds; in dsa_port_is_vlan_filtering() local 834 return a->ds->dst == b->ds->dst; in dsa_port_tree_same() 1307 return dl_priv->ds; in dsa_devlink_to_ds() [all …]
|
| /linux/drivers/acpi/ |
| A D | dock.c | 122 return ds; in find_dock_station() 152 if (ds && !find_dock_dependent_device(ds, adev)) in register_dock_dependent_device() 198 if (ds) { in dock_present() 322 handle_dock(ds, 1); in dock() 327 handle_dock(ds, 0); in undock() 390 undock(ds); in handle_eject_request() 416 if (!ds) in dock_notify() 440 begin_dock(ds); in dock_notify() 441 dock(ds); in dock_notify() 454 if (dock_present(ds) || dock_in_progress(ds)) in dock_notify() [all …]
|
| /linux/drivers/net/dsa/ocelot/ |
| A D | felix.c | 651 return dsa_cpu_ports(ds); in felix_tag_8021q_get_host_fwd_mask() 797 proto_ops->teardown(ds); in felix_change_tag_protocol() 1616 struct dsa_switch *ds = xmit_work->dp->ds; in felix_port_deferred_xmit() local 1728 ds->max_num_bridges = ds->num_ports; in felix_setup() 2313 struct dsa_switch *ds; in felix_register_switch() local 2322 ds = devm_kzalloc(dev, sizeof(*ds), GFP_KERNEL); in felix_register_switch() 2323 if (!ds) in felix_register_switch() 2336 felix->ds = ds; in felix_register_switch() 2339 ds->dev = dev; in felix_register_switch() 2344 ds->priv = ocelot; in felix_register_switch() [all …]
|
| /linux/drivers/net/dsa/ |
| A D | dsa_loop.c | 313 struct dsa_switch *ds; in dsa_loop_drv_probe() local 319 ds = devm_kzalloc(&mdiodev->dev, sizeof(*ds), GFP_KERNEL); in dsa_loop_drv_probe() 320 if (!ds) in dsa_loop_drv_probe() 323 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe() 336 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe() 338 ds->priv = ps; in dsa_loop_drv_probe() 356 if (!ds) in dsa_loop_drv_remove() 359 ps = ds->priv; in dsa_loop_drv_remove() 361 dsa_unregister_switch(ds); in dsa_loop_drv_remove() 369 if (!ds) in dsa_loop_drv_shutdown() [all …]
|
| A D | mv88e6060.c | 193 priv->ds = ds; in mv88e6060_setup() 260 dev_err(ds->dev, in mv88e6060_phylink_get_caps() 306 struct dsa_switch *ds; in mv88e6060_probe() local 322 ds = devm_kzalloc(dev, sizeof(*ds), GFP_KERNEL); in mv88e6060_probe() 323 if (!ds) in mv88e6060_probe() 326 ds->dev = dev; in mv88e6060_probe() 328 ds->priv = priv; in mv88e6060_probe() 329 ds->dev = dev; in mv88e6060_probe() 341 if (!ds) in mv88e6060_remove() 351 if (!ds) in mv88e6060_shutdown() [all …]
|
| A D | bcm_sf2.c | 292 bcm_sf2_recalc_clock(ds); in bcm_sf2_port_setup() 368 b53_disable_port(ds, port); in bcm_sf2_port_disable() 377 bcm_sf2_recalc_clock(ds); in bcm_sf2_port_disable() 962 if (dsa_is_user_port(ds, port) || dsa_is_cpu_port(ds, port)) in bcm_sf2_sw_suspend() 995 ds->ops->setup(ds); in bcm_sf2_sw_resume() 1070 b53_configure_vlan(ds); in bcm_sf2_sw_setup() 1071 bcm_sf2_enable_acb(ds); in bcm_sf2_sw_setup() 1368 struct dsa_switch *ds; in bcm_sf2_sw_probe() local 1416 ds = dev->ds; in bcm_sf2_sw_probe() 1417 ds->ops = &bcm_sf2_ops; in bcm_sf2_sw_probe() [all …]
|
| /linux/drivers/net/dsa/xrs700x/ |
| A D | xrs700x.c | 192 priv->ds->num_ports, in xrs700x_setup_regmap_range() 198 priv->ds->num_ports, in xrs700x_setup_regmap_range() 204 priv->ds->num_ports, in xrs700x_setup_regmap_range() 424 ret = xrs700x_reset(ds); in xrs700x_setup() 767 struct dsa_switch *ds; in xrs700x_switch_alloc() local 770 ds = devm_kzalloc(base, sizeof(*ds), GFP_KERNEL); in xrs700x_switch_alloc() 771 if (!ds) in xrs700x_switch_alloc() 774 ds->dev = base; in xrs700x_switch_alloc() 782 ds->ops = &xrs700x_ops; in xrs700x_switch_alloc() 784 ds->priv = priv; in xrs700x_switch_alloc() [all …]
|
| /linux/drivers/md/ |
| A D | dm-bio-prison-v1.c | 339 ds = kmalloc(sizeof(*ds), GFP_KERNEL); in dm_deferred_set_create() 340 if (!ds) in dm_deferred_set_create() 347 ds->entries[i].ds = ds; in dm_deferred_set_create() 352 return ds; in dm_deferred_set_create() 368 entry = ds->entries + ds->current_entry; in dm_deferred_entry_inc() 383 while ((ds->sweeper != ds->current_entry) && in __sweep() 384 !ds->entries[ds->sweeper].count) { in __sweep() 386 ds->sweeper = ds_next(ds->sweeper); in __sweep() 389 if ((ds->sweeper == ds->current_entry) && !ds->entries[ds->sweeper].count) in __sweep() 414 if ((ds->sweeper == ds->current_entry) && in dm_deferred_set_add_work() [all …]
|
| /linux/drivers/net/dsa/sja1105/ |
| A D | sja1105_main.c | 202 struct dsa_switch *ds = priv->ds; in sja1105_init_mac_settings() local 224 if (dp->ds != ds) in sja1105_init_mac_settings() 253 struct dsa_switch *ds = priv->ds; in sja1105_init_mii_settings() local 416 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_lookup_params() local 474 struct dsa_switch *ds = priv->ds; in sja1105_init_static_vlan() local 512 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_forwarding() local 646 struct dsa_switch *ds = priv->ds; in sja1110_init_pcp_remapping() local 795 struct dsa_switch *ds = priv->ds; in sja1105_init_topology() local 1011 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_policing() local 1990 struct dsa_switch *ds = priv->ds; in sja1105_manage_flood_domains() local [all …]
|
| A D | sja1105_ptp.h | 93 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, 119 int __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns, 122 int __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns, 125 int __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta); 149 static inline int sja1105_ptp_clock_register(struct dsa_switch *ds) in sja1105_ptp_clock_register() argument [all …]
|
| A D | sja1105_ptp.c | 63 struct sja1105_private *priv = ds->priv; in sja1105_hwtstamp_set() 96 struct sja1105_private *priv = ds->priv; in sja1105_hwtstamp_get() 116 struct sja1105_private *priv = ds->priv; in sja1105_get_ts_info() 323 dev_err_ratelimited(priv->ds->dev, in sja1105_extts_poll() 340 struct dsa_switch *ds = priv->ds; in sja1105_rxtstamp_work() local 491 priv->info->txtstamp(ds, port, skb); in sja1105_port_txtstamp() 508 sja1105_tas_clockstep(priv->ds); in sja1105_ptp_reset() 583 sja1105_tas_clockstep(priv->ds); in __sja1105_ptp_settime() 627 sja1105_tas_adjfreq(priv->ds); in sja1105_ptp_adjfine() 649 sja1105_tas_clockstep(priv->ds); in __sja1105_ptp_adjtime() [all …]
|
| A D | sja1105_tas.c | 21 struct dsa_switch *ds = priv->ds; in sja1105_tas_set_runtime_params() local 77 dev_err(ds->dev, in sja1105_tas_set_runtime_params() 167 struct dsa_switch *ds = priv->ds; in sja1105_init_scheduling() local 448 dev_warn(priv->ds->dev, in sja1105_tas_check_conflicts() 472 struct dsa_switch *ds = priv->ds; in sja1105_gating_check_conflicts() local 555 dev_err(priv->ds->dev, in sja1105_setup_tc_taprio() 587 struct dsa_switch *ds = priv->ds; in sja1105_tas_check_running() local 634 struct dsa_switch *ds = priv->ds; in sja1105_tas_start() local 661 struct dsa_switch *ds = priv->ds; in sja1105_tas_stop() local 730 struct dsa_switch *ds = priv->ds; in sja1105_tas_state_machine() local [all …]
|
| /linux/drivers/hid/ |
| A D | hid-playstation.c | 1127 memcpy(ds->base.mac_address, &buf[1], sizeof(ds->base.mac_address)); in dualsense_get_mac_address() 1155 return !!(ds->player_leds_state & BIT(led - ds->player_leds)); in dualsense_player_led_get_brightness() 1199 ds->output_seq = 0; in dualsense_init_output_report() 1260 dualsense_init_output_report(ds, &report, ds->output_report_dmabuf); in dualsense_output_worker() 1389 ds->mic_muted = !ds->mic_muted; /* toggle */ in dualsense_parse_report() 1605 ds = devm_kzalloc(&hdev->dev, sizeof(*ds), GFP_KERNEL); in dualsense_create() 1606 if (!ds) in dualsense_create() 1615 ps_dev = &ds->base; in dualsense_create() 1654 ds->use_vibration_v2 = ds->update_version >= DS_FEATURE_VERSION(2, 21); in dualsense_create() 1732 ds->base.hw_version, ds->base.fw_version); in dualsense_create() [all …]
|
| /linux/drivers/net/dsa/microchip/ |
| A D | ksz_ptp.h | 36 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, struct ifreq *ifr); 43 int ksz_hwtstamp_set(struct dsa_switch *ds, int port, struct ifreq *ifr); 48 int ksz_ptp_irq_setup(struct dsa_switch *ds, u8 p); 49 void ksz_ptp_irq_free(struct dsa_switch *ds, u8 p); 58 static inline int ksz_ptp_clock_register(struct dsa_switch *ds) in ksz_ptp_clock_register() argument 63 static inline void ksz_ptp_clock_unregister(struct dsa_switch *ds) { } in ksz_ptp_clock_unregister() argument 65 static inline int ksz_ptp_irq_setup(struct dsa_switch *ds, u8 p) in ksz_ptp_irq_setup() argument [all …]
|
| /linux/drivers/net/dsa/b53/ |
| A D | b53_common.c | 1332 dev_err(ds->dev, in b53_adjust_5325_mii() 1408 struct dsa_switch *ds = dp->ds; in b53_phylink_mac_config() local 1454 struct dsa_switch *ds = dp->ds; in b53_phylink_mac_link_up() local 2105 dev_warn(ds->dev, in b53_can_enable_brcm_tags() 2722 struct dsa_switch *ds; in b53_switch_alloc() local 2725 ds = devm_kzalloc(base, sizeof(*ds), GFP_KERNEL); in b53_switch_alloc() 2726 if (!ds) in b53_switch_alloc() 2729 ds->dev = base; in b53_switch_alloc() 2735 ds->priv = dev; in b53_switch_alloc() 2738 dev->ds = ds; in b53_switch_alloc() [all …]
|
| /linux/drivers/net/dsa/mv88e6xxx/ |
| A D | devlink.h | 8 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,
|