/linux/net/dsa/ |
A D | switch.c | 44 return ds->ops->set_ageing_time(ds, ageing_time); in dsa_switch_ageing_time() 78 ret = ds->ops->port_change_mtu(ds, dp->index, in dsa_switch_mtu() 215 struct dsa_switch *ds = dp->ds; in dsa_port_do_mdb_add() local 222 return ds->ops->port_mdb_add(ds, port, mdb); in dsa_port_do_mdb_add() 238 err = ds->ops->port_mdb_add(ds, port, mdb); in dsa_port_do_mdb_add() 258 struct dsa_switch *ds = dp->ds; in dsa_port_do_mdb_del() local 265 return ds->ops->port_mdb_del(ds, port, mdb); in dsa_port_do_mdb_del() 278 err = ds->ops->port_mdb_del(ds, port, mdb); in dsa_port_do_mdb_del() 296 struct dsa_switch *ds = dp->ds; in dsa_port_do_fdb_add() local 319 err = ds->ops->port_fdb_add(ds, port, addr, vid); in dsa_port_do_fdb_add() [all …]
|
A D | dsa2.c | 288 struct dsa_switch *ds = dp->ds; in dsa_link_touch() local 313 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table() local 429 struct dsa_switch *ds = dp->ds; in dsa_port_setup() local 544 struct dsa_switch *ds = dp->ds; in dsa_port_teardown() local 605 struct dsa_switch *ds = dp->ds; in dsa_port_reinit_as_unused() local 848 dl_priv->ds = ds; in dsa_switch_setup() 865 err = ds->ops->setup(ds); in dsa_switch_setup() 896 ds->ops->teardown(ds); in dsa_switch_setup() 924 ds->ops->teardown(ds); in dsa_switch_teardown() 1185 dp->ds = ds; in dsa_port_touch() [all …]
|
A D | port.c | 53 struct dsa_switch *ds = dp->ds; in dsa_port_fast_age() local 58 ds->ops->port_fast_age(ds, dp->index); in dsa_port_fast_age() 68 struct dsa_switch *ds = dp->ds; in dsa_port_can_configure_learning() local 80 struct dsa_switch *ds = dp->ds; in dsa_port_set_state() local 123 struct dsa_switch *ds = dp->ds; in dsa_port_enable_rt() local 155 struct dsa_switch *ds = dp->ds; in dsa_port_disable_rt() local 165 ds->ops->port_disable(ds, port); in dsa_port_disable_rt() 277 struct dsa_switch *ds = dp->ds; in dsa_port_bridge_tx_fwd_unoffload() local 297 struct dsa_switch *ds = dp->ds; in dsa_port_bridge_tx_fwd_offload() local 519 struct dsa_switch *ds = dp->ds; in dsa_port_can_apply_vlan_filtering() local [all …]
|
A D | tag_8021q.c | 145 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_add() local 152 return ds->ops->tag_8021q_vlan_add(ds, port, vid, flags); in dsa_port_do_tag_8021q_vlan_add() 164 err = ds->ops->tag_8021q_vlan_add(ds, port, vid, flags); in dsa_port_do_tag_8021q_vlan_add() 181 struct dsa_switch *ds = dp->ds; in dsa_port_do_tag_8021q_vlan_del() local 188 return ds->ops->tag_8021q_vlan_del(ds, port, vid); in dsa_port_do_tag_8021q_vlan_del() 197 err = ds->ops->tag_8021q_vlan_del(ds, port, vid); in dsa_port_do_tag_8021q_vlan_del() 213 struct dsa_switch *ds = dp->ds; in dsa_port_tag_8021q_vlan_match() local 235 if (!ds->ops->tag_8021q_vlan_add || !ds->tag_8021q_ctx) in dsa_switch_tag_8021q_vlan_add() 266 if (!ds->ops->tag_8021q_vlan_del || !ds->tag_8021q_ctx) in dsa_switch_tag_8021q_vlan_del() 456 dev_err(ds->dev, in dsa_tag_8021q_port_setup() [all …]
|
A D | slave.c | 32 return ds->ops->phy_read(ds, addr, reg); in dsa_slave_phy_read() 49 ds->slave_mii_bus->priv = (void *)ds; in dsa_slave_mii_bus_init() 54 ds->dst->index, ds->index); in dsa_slave_mii_bus_init() 55 ds->slave_mii_bus->parent = ds->dev; in dsa_slave_mii_bus_init() 522 struct dsa_switch *ds = dp->ds; in dsa_slave_get_port_parent_id() local 655 struct dsa_switch *ds = dp->ds; in dsa_slave_get_regs_len() local 667 struct dsa_switch *ds = dp->ds; in dsa_slave_get_regs() local 683 struct dsa_switch *ds = dp->ds; in dsa_slave_get_eeprom_len() local 698 struct dsa_switch *ds = dp->ds; in dsa_slave_get_eeprom() local 2306 ds = dp->ds; in dsa_slave_prechangeupper_sanity_check() [all …]
|
A D | master.c | 15 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs_len() local 31 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs_len() 45 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs() local 67 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs() 81 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_stats() local 100 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_phy_stats() local 124 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_sset_count() local 147 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_strings() local 193 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ioctl() local 226 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ethtool_setup() local [all …]
|
A D | dsa.c | 204 struct dsa_switch *ds = p->dp->ds; in dsa_skb_defer_rx_timestamp() local 220 return ds->ops->port_rxtstamp(ds, p->dp->index, skb, type); in dsa_skb_defer_rx_timestamp() 294 dsa_switch_for_each_port(dp, ds) { in dsa_switch_suspend() 303 if (ds->ops->suspend) in dsa_switch_suspend() 304 ret = ds->ops->suspend(ds); in dsa_switch_suspend() 315 if (ds->ops->resume) in dsa_switch_resume() 316 ret = ds->ops->resume(ds); in dsa_switch_resume() 358 if (!ds->ops->devlink_param_get) in dsa_devlink_param_get() 361 return ds->ops->devlink_param_get(ds, id, ctx); in dsa_devlink_param_get() 370 if (!ds->ops->devlink_param_set) in dsa_devlink_param_set() [all …]
|
/linux/include/net/ |
A D | dsa.h | 248 struct dsa_switch *ds; member 432 if (dp->ds == ds && dp->index == p) in dsa_to_port() 484 if ((_dp)->ds == (_ds)) 488 if ((_dp)->ds == (_ds)) 524 if (dl->dp->ds == ds && dl->link_dp->ds->index == device) in dsa_routing_port() 527 return ds->num_ports; in dsa_routing_port() 549 return dsa_towards_port(ds, cpu_dp->ds->index, cpu_dp->index); in dsa_upstream_port() 580 const struct dsa_switch *ds = dp->ds; in dsa_port_is_vlan_filtering() local 991 struct dsa_switch *ds; member 998 return dl_priv->ds; in dsa_devlink_to_ds() [all …]
|
/linux/fs/xfs/scrub/ |
A D | dabtree.c | 133 if (blkno < ds->lowest || (ds->highest != 0 && blkno >= ds->highest)) { in xchk_da_btree_ptr_ok() 305 memset(&ds->state->altpath, 0, sizeof(ds->state->altpath)); in xchk_da_btree_block_check_siblings() 490 if (!ds) in xchk_da_btree() 496 ds->state = xfs_da_state_alloc(&ds->dargs); in xchk_da_btree() 497 ds->sc = sc; in xchk_da_btree() 501 ds->lowest = 0; in xchk_da_btree() 502 ds->highest = 0; in xchk_da_btree() 505 ds->lowest = ds->dargs.geo->leafblk; in xchk_da_btree() 506 ds->highest = ds->dargs.geo->freeblk; in xchk_da_btree() 573 ds->tree_level--; in xchk_da_btree() [all …]
|
A D | attr.c | 243 struct xchk_da_btree *ds, in xchk_xattr_entry() argument 262 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 266 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 272 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 292 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 295 xchk_da_set_corrupt(ds, level); in xchk_xattr_entry() 303 struct xchk_da_btree *ds, in xchk_xattr_block() argument 339 if (xfs_has_crc(ds->sc->mp)) { in xchk_xattr_block() 355 xchk_da_set_corrupt(ds, level); in xchk_xattr_block() 357 xchk_da_set_corrupt(ds, level); in xchk_xattr_block() [all …]
|
/linux/drivers/acpi/ |
A D | dock.c | 136 return ds; in find_dock_station() 166 if (ds && !find_dock_dependent_device(ds, adev)) in register_dock_dependent_device() 212 if (ds) { in dock_present() 336 handle_dock(ds, 1); in dock() 341 handle_dock(ds, 0); in undock() 402 undock(ds); in handle_eject_request() 428 if (!ds) in dock_notify() 452 begin_dock(ds); in dock_notify() 453 dock(ds); in dock_notify() 466 if (dock_present(ds) || dock_in_progress(ds)) in dock_notify() [all …]
|
/linux/drivers/hid/ |
A D | hid-playstation.c | 835 memcpy(ds->base.mac_address, &buf[1], sizeof(ds->base.mac_address)); in dualsense_get_mac_address() 863 return !!(ds->player_leds_state & BIT(led - ds->player_leds)); in dualsense_player_led_get_brightness() 907 ds->output_seq = 0; in dualsense_init_output_report() 958 dualsense_init_output_report(ds, &report, ds->output_report_dmabuf); in dualsense_output_worker() 992 if (ds->mic_muted) { in dualsense_output_worker() 1084 ds->mic_muted = !ds->mic_muted; /* toggle */ in dualsense_parse_report() 1289 ds = devm_kzalloc(&hdev->dev, sizeof(*ds), GFP_KERNEL); in dualsense_create() 1290 if (!ds) in dualsense_create() 1299 ps_dev = &ds->base; in dualsense_create() 1399 ds->base.hw_version, ds->base.fw_version); in dualsense_create() [all …]
|
/linux/drivers/net/dsa/ocelot/ |
A D | felix.c | 34 struct dsa_switch *ds = felix->ds; in felix_tag_8021q_rxvlan_add() local 80 struct dsa_switch *ds = felix->ds; in felix_tag_8021q_txvlan_add() local 151 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_add() 221 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_del() 273 struct dsa_switch *ds = felix->ds; in felix_setup_mmio_filtering() local 440 dsa_tag_8021q_unregister(ds); in felix_setup_tag_8021q() 455 dsa_tag_8021q_unregister(ds); in felix_teardown_tag_8021q() 1118 struct dsa_switch *ds = xmit_work->dp->ds; in felix_port_deferred_xmit() local 1227 dev_err(ds->dev, in felix_setup() 1418 dev_err_ratelimited(ds->dev, in felix_txtstamp() [all …]
|
/linux/drivers/net/dsa/ |
A D | dsa_loop.c | 302 struct dsa_switch *ds; in dsa_loop_drv_probe() local 308 ds = devm_kzalloc(&mdiodev->dev, sizeof(*ds), GFP_KERNEL); in dsa_loop_drv_probe() 309 if (!ds) in dsa_loop_drv_probe() 312 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe() 325 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe() 327 ds->priv = ps; in dsa_loop_drv_probe() 345 if (!ds) in dsa_loop_drv_remove() 348 ps = ds->priv; in dsa_loop_drv_remove() 350 dsa_unregister_switch(ds); in dsa_loop_drv_remove() 360 if (!ds) in dsa_loop_drv_shutdown() [all …]
|
A D | bcm_sf2.c | 252 bcm_sf2_recalc_clock(ds); in bcm_sf2_port_setup() 328 b53_disable_port(ds, port); in bcm_sf2_port_disable() 337 bcm_sf2_recalc_clock(ds); in bcm_sf2_port_disable() 690 dev_err(ds->dev, in bcm_sf2_sw_validate() 925 if (dsa_is_user_port(ds, port) || dsa_is_cpu_port(ds, port)) in bcm_sf2_sw_suspend() 958 ds->ops->setup(ds); in bcm_sf2_sw_resume() 1033 b53_configure_vlan(ds); in bcm_sf2_sw_setup() 1034 bcm_sf2_enable_acb(ds); in bcm_sf2_sw_setup() 1323 struct dsa_switch *ds; in bcm_sf2_sw_probe() local 1371 ds = dev->ds; in bcm_sf2_sw_probe() [all …]
|
A D | mv88e6060.c | 190 priv->ds = ds; in mv88e6060_setup() 258 struct dsa_switch *ds; in mv88e6060_probe() local 274 ds = devm_kzalloc(dev, sizeof(*ds), GFP_KERNEL); in mv88e6060_probe() 275 if (!ds) in mv88e6060_probe() 278 ds->dev = dev; in mv88e6060_probe() 280 ds->priv = priv; in mv88e6060_probe() 281 ds->dev = dev; in mv88e6060_probe() 284 dev_set_drvdata(dev, ds); in mv88e6060_probe() 293 if (!ds) in mv88e6060_remove() 305 if (!ds) in mv88e6060_shutdown() [all …]
|
/linux/drivers/net/dsa/sja1105/ |
A D | sja1105_main.c | 200 struct dsa_switch *ds = priv->ds; in sja1105_init_mac_settings() local 222 if (dp->ds != ds) in sja1105_init_mac_settings() 251 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 1946 struct dsa_switch *ds = priv->ds; in sja1105_manage_flood_domains() local [all …]
|
A D | sja1105_ptp.h | 74 int sja1105_ptp_clock_register(struct dsa_switch *ds); 76 void sja1105_ptp_clock_unregister(struct dsa_switch *ds); 84 int sja1105_get_ts_info(struct dsa_switch *ds, int port, 87 void sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int slot, 90 bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port, 93 void sja1105_port_txtstamp(struct dsa_switch *ds, int port, 100 int __sja1105_ptp_gettimex(struct dsa_switch *ds, u64 *ns, 103 int __sja1105_ptp_settime(struct dsa_switch *ds, u64 ns, 106 int __sja1105_ptp_adjtime(struct dsa_switch *ds, s64 delta); 127 static inline int sja1105_ptp_clock_register(struct dsa_switch *ds) in sja1105_ptp_clock_register() argument [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 552 dev_err(priv->ds->dev, in sja1105_setup_tc_taprio() 584 struct dsa_switch *ds = priv->ds; in sja1105_tas_check_running() local 631 struct dsa_switch *ds = priv->ds; in sja1105_tas_start() local 658 struct dsa_switch *ds = priv->ds; in sja1105_tas_stop() local 727 struct dsa_switch *ds = priv->ds; in sja1105_tas_state_machine() local [all …]
|
/linux/drivers/md/ |
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/drivers/net/dsa/xrs700x/ |
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() 748 struct dsa_switch *ds; in xrs700x_switch_alloc() local 751 ds = devm_kzalloc(base, sizeof(*ds), GFP_KERNEL); in xrs700x_switch_alloc() 752 if (!ds) in xrs700x_switch_alloc() 755 ds->dev = base; in xrs700x_switch_alloc() 763 ds->ops = &xrs700x_ops; in xrs700x_switch_alloc() 764 ds->priv = priv; in xrs700x_switch_alloc() [all …]
|
/linux/drivers/net/dsa/microchip/ |
A D | ksz_common.c | 26 struct dsa_switch *ds = dev->ds; in ksz_update_port_member() local 31 if (!dsa_is_user_port(ds, port)) in ksz_update_port_member() 34 dp = dsa_to_port(ds, port); in ksz_update_port_member() 42 if (!dsa_is_user_port(ds, i)) in ksz_update_port_member() 350 struct dsa_switch *ds; in ksz_switch_alloc() local 353 ds = devm_kzalloc(base, sizeof(*ds), GFP_KERNEL); in ksz_switch_alloc() 354 if (!ds) in ksz_switch_alloc() 357 ds->dev = base; in ksz_switch_alloc() 358 ds->num_ports = DSA_MAX_PORTS; in ksz_switch_alloc() 364 ds->priv = swdev; in ksz_switch_alloc() [all …]
|
/linux/drivers/net/dsa/b53/ |
A D | b53_priv.h | 104 struct dsa_switch *ds; member 228 dsa_unregister_switch(dev->ds); in b53_switch_remove() 233 dsa_switch_shutdown(dev->ds); in b53_switch_shutdown() 321 int b53_configure_vlan(struct dsa_switch *ds); 334 int b53_br_flags(struct dsa_switch *ds, int port, 359 int b53_vlan_add(struct dsa_switch *ds, int port, 362 int b53_vlan_del(struct dsa_switch *ds, int port, 364 int b53_fdb_add(struct dsa_switch *ds, int port, 366 int b53_fdb_del(struct dsa_switch *ds, int port, 370 int b53_mdb_add(struct dsa_switch *ds, int port, [all …]
|
A D | b53_common.c | 907 b53_configure_vlan(priv->ds); in b53_apply_config() 1131 b53_disable_port(ds, port); in b53_setup() 1289 dev_err(ds->dev, in b53_adjust_link() 2061 dev_warn(ds->dev, in b53_can_enable_brcm_tags() 2662 struct dsa_switch *ds; in b53_switch_alloc() local 2665 ds = devm_kzalloc(base, sizeof(*ds), GFP_KERNEL); in b53_switch_alloc() 2666 if (!ds) in b53_switch_alloc() 2669 ds->dev = base; in b53_switch_alloc() 2675 ds->priv = dev; in b53_switch_alloc() 2678 dev->ds = ds; in b53_switch_alloc() [all …]
|
/linux/fs/nfs/ |
A D | pnfs_nfs.c | 572 refcount_read(&ds->ds_count), ds->ds_clp, in print_ds() 573 ds->ds_clp ? ds->ds_clp->cl_exchange_flags : 0); in print_ds() 656 return ds; in _data_server_lookup_locked() 681 print_ds(ds); in destroy_ds() 694 kfree(ds); in destroy_ds() 772 ds = kzalloc(sizeof(*ds), gfp_flags); in nfs4_pnfs_ds_add() 773 if (!ds) in nfs4_pnfs_ds_add() 793 kfree(ds); in nfs4_pnfs_ds_add() 798 ds = tmp_ds; in nfs4_pnfs_ds_add() 802 return ds; in nfs4_pnfs_ds_add() [all …]
|