| /linux-6.15/net/dsa/ |
| H 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() 307 struct dsa_switch *ds = dp->ds; in dsa_port_devlink_setup() local 316 err = ds->ops->port_setup(ds, dp->index); in dsa_port_devlink_setup() 347 ds->ops->port_teardown(ds, dp->index); in dsa_port_devlink_setup() 357 struct dsa_switch *ds = dp->ds; in dsa_port_devlink_teardown() local 362 ds->ops->port_teardown(ds, dp->index); in dsa_port_devlink_teardown() [all …]
|
| H 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 …]
|
| H 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() 1104 dp->ds = ds; in dsa_port_touch() 1163 struct dsa_switch *ds = dp->ds; in dsa_port_parse_cpu() local 1338 ds->index, ds->dst->index); in dsa_switch_parse_member_of() 1668 ret = ds->ops->suspend(ds); in dsa_switch_suspend() [all …]
|
| H 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 …]
|
| H 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 1441 if (dp->ds != to_dp->ds) { in dsa_user_add_cls_matchall_mirred() 3181 ds = dp->ds; in dsa_user_prechangeupper_sanity_check() [all …]
|
| H 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 …]
|
| H A D | conduit.c | 24 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_regs_len() local 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 82 len = ds->ops->get_regs_len(ds, port); in dsa_conduit_get_regs() 96 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_ethtool_stats() local 117 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_ethtool_phy_stats() local 143 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_sset_count() local 168 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_get_strings() local 221 struct dsa_switch *ds = cpu_dp->ds; in __dsa_conduit_hwtstamp_validate() local 241 struct dsa_switch *ds = cpu_dp->ds; in dsa_conduit_ethtool_setup() local [all …]
|
| /linux-6.15/fs/xfs/scrub/ |
| H 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 …]
|
| H 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-6.15/include/net/ |
| H 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() 1293 return dl_priv->ds; in dsa_devlink_to_ds() [all …]
|
| /linux-6.15/drivers/acpi/ |
| H 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-6.15/drivers/net/dsa/ocelot/ |
| H 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() 1624 struct dsa_switch *ds = xmit_work->dp->ds; in felix_port_deferred_xmit() local 1736 ds->max_num_bridges = ds->num_ports; in felix_setup() 2322 struct dsa_switch *ds; in felix_register_switch() local 2331 ds = devm_kzalloc(dev, sizeof(*ds), GFP_KERNEL); in felix_register_switch() 2332 if (!ds) in felix_register_switch() 2345 felix->ds = ds; in felix_register_switch() 2348 ds->dev = dev; in felix_register_switch() 2353 ds->priv = ocelot; in felix_register_switch() [all …]
|
| /linux-6.15/drivers/net/dsa/ |
| H A D | dsa_loop.c | 312 struct dsa_switch *ds; in dsa_loop_drv_probe() local 318 ds = devm_kzalloc(&mdiodev->dev, sizeof(*ds), GFP_KERNEL); in dsa_loop_drv_probe() 319 if (!ds) in dsa_loop_drv_probe() 322 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe() 335 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe() 337 ds->priv = ps; in dsa_loop_drv_probe() 355 if (!ds) in dsa_loop_drv_remove() 358 ps = ds->priv; in dsa_loop_drv_remove() 360 dsa_unregister_switch(ds); in dsa_loop_drv_remove() 368 if (!ds) in dsa_loop_drv_shutdown() [all …]
|
| H 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 …]
|
| H 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() 1371 struct dsa_switch *ds; in bcm_sf2_sw_probe() local 1420 ds = dev->ds; in bcm_sf2_sw_probe() 1421 ds->ops = &bcm_sf2_ops; in bcm_sf2_sw_probe() [all …]
|
| /linux-6.15/drivers/md/ |
| H A D | dm-bio-prison-v1.c | 304 ds = kmalloc(sizeof(*ds), GFP_KERNEL); in dm_deferred_set_create() 305 if (!ds) in dm_deferred_set_create() 312 ds->entries[i].ds = ds; in dm_deferred_set_create() 317 return ds; in dm_deferred_set_create() 333 entry = ds->entries + ds->current_entry; in dm_deferred_entry_inc() 348 while ((ds->sweeper != ds->current_entry) && in __sweep() 349 !ds->entries[ds->sweeper].count) { in __sweep() 351 ds->sweeper = ds_next(ds->sweeper); in __sweep() 354 if ((ds->sweeper == ds->current_entry) && !ds->entries[ds->sweeper].count) in __sweep() 379 if ((ds->sweeper == ds->current_entry) && in dm_deferred_set_add_work() [all …]
|
| /linux-6.15/drivers/net/dsa/sja1105/ |
| H A D | sja1105_main.c | 201 struct dsa_switch *ds = priv->ds; in sja1105_init_mac_settings() local 223 if (dp->ds != ds) in sja1105_init_mac_settings() 252 struct dsa_switch *ds = priv->ds; in sja1105_init_mii_settings() local 415 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_lookup_params() local 473 struct dsa_switch *ds = priv->ds; in sja1105_init_static_vlan() local 511 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_forwarding() local 645 struct dsa_switch *ds = priv->ds; in sja1110_init_pcp_remapping() local 794 struct dsa_switch *ds = priv->ds; in sja1105_init_topology() local 1010 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_policing() local 1988 struct dsa_switch *ds = priv->ds; in sja1105_manage_flood_domains() local [all …]
|
| H 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 …]
|
| H 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-6.15/drivers/net/dsa/xrs700x/ |
| H A D | xrs700x.c | 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() 422 ret = xrs700x_reset(ds); in xrs700x_setup() 765 struct dsa_switch *ds; in xrs700x_switch_alloc() local 768 ds = devm_kzalloc(base, sizeof(*ds), GFP_KERNEL); in xrs700x_switch_alloc() 769 if (!ds) in xrs700x_switch_alloc() 772 ds->dev = base; in xrs700x_switch_alloc() 780 ds->ops = &xrs700x_ops; in xrs700x_switch_alloc() 782 ds->priv = priv; in xrs700x_switch_alloc() [all …]
|
| /linux-6.15/drivers/hid/ |
| H 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-6.15/drivers/net/dsa/b53/ |
| H A D | b53_common.c | 805 dp = dsa_to_port(ds, port); in b53_vlan_port_may_join_untagged() 1419 dev_err(ds->dev, in b53_adjust_5325_mii() 1495 struct dsa_switch *ds = dp->ds; in b53_phylink_mac_config() local 1541 struct dsa_switch *ds = dp->ds; in b53_phylink_mac_link_up() local 2238 dev_warn(ds->dev, in b53_can_enable_brcm_tags() 2863 struct dsa_switch *ds; in b53_switch_alloc() local 2866 ds = devm_kzalloc(base, sizeof(*ds), GFP_KERNEL); in b53_switch_alloc() 2867 if (!ds) in b53_switch_alloc() 2870 ds->dev = base; in b53_switch_alloc() 2876 ds->priv = dev; in b53_switch_alloc() [all …]
|
| H A D | b53_priv.h | 110 struct dsa_switch *ds; member 247 dsa_unregister_switch(dev->ds); in b53_switch_remove() 252 dsa_switch_shutdown(dev->ds); in b53_switch_shutdown() 340 int b53_configure_vlan(struct dsa_switch *ds); 354 int b53_br_flags(struct dsa_switch *ds, int port, 361 int b53_vlan_add(struct dsa_switch *ds, int port, 364 int b53_vlan_del(struct dsa_switch *ds, int port, 366 int b53_fdb_add(struct dsa_switch *ds, int port, 369 int b53_fdb_del(struct dsa_switch *ds, int port, 374 int b53_mdb_add(struct dsa_switch *ds, int port, [all …]
|
| /linux-6.15/drivers/net/dsa/microchip/ |
| H 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-6.15/fs/nfs/ |
| H A D | pnfs_nfs.c | 530 refcount_read(&ds->ds_count), ds->ds_clp, in print_ds() 531 ds->ds_clp ? ds->ds_clp->cl_exchange_flags : 0); in print_ds() 614 return ds; in _data_server_lookup_locked() 639 print_ds(ds); in destroy_ds() 652 kfree(ds); in destroy_ds() 732 ds = kzalloc(sizeof(*ds), gfp_flags); in nfs4_pnfs_ds_add() 733 if (!ds) in nfs4_pnfs_ds_add() 754 kfree(ds); in nfs4_pnfs_ds_add() 759 ds = tmp_ds; in nfs4_pnfs_ds_add() 763 return ds; in nfs4_pnfs_ds_add() [all …]
|