Home
last modified time | relevance | path

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

12345678910>>...26

/openbmc/linux/net/dsa/
H A Ddevlink.c18 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()
204 return ds->ops->devlink_param_set(ds, id, ctx); in dsa_devlink_param_set()
297 struct dsa_switch *ds = dp->ds; in dsa_port_devlink_setup() local
306 err = ds->ops->port_setup(ds, dp->index); in dsa_port_devlink_setup()
337 ds->ops->port_teardown(ds, dp->index); in dsa_port_devlink_setup()
347 struct dsa_switch *ds = dp->ds; in dsa_port_devlink_teardown() local
352 ds->ops->port_teardown(ds, dp->index); in dsa_port_devlink_teardown()
[all …]
H A Dswitch.c87 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 Dport.c57 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 Ddsa.c291 struct dsa_switch *ds = dp->ds; in dsa_link_touch() local
316 struct dsa_switch *ds = dp->ds; in dsa_port_setup_routing_table() local
467 struct dsa_switch *ds = dp->ds; in dsa_port_setup() local
652 err = ds->ops->setup(ds); in dsa_switch_setup()
687 ds->ops->teardown(ds); in dsa_switch_setup()
711 ds->ops->teardown(ds); in dsa_switch_teardown()
1102 dp->ds = ds; in dsa_port_touch()
1161 struct dsa_switch *ds = dp->ds; in dsa_port_parse_cpu() local
1336 ds->index, ds->dst->index); in dsa_switch_parse_member_of()
1627 ret = ds->ops->suspend(ds); in dsa_switch_suspend()
[all …]
H A Dtag_8021q.c146 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()
326 dev_err(ds->dev, in dsa_tag_8021q_bridge_leave()
354 dev_err(ds->dev, in dsa_tag_8021q_port_setup()
[all …]
H A Dslave.c90 struct dsa_switch *ds = dp->ds; in dsa_slave_standalone_event_work() local
279 struct dsa_switch *ds = dp->ds; in dsa_slave_sync_ha() local
300 struct dsa_switch *ds = dp->ds; in dsa_slave_unsync_ha() local
346 ds->dst->index, ds->index); in dsa_slave_mii_bus_init()
362 struct dsa_switch *ds = dp->ds; in dsa_slave_open() local
403 struct dsa_switch *ds = dp->ds; in dsa_slave_close() local
429 struct dsa_switch *ds = dp->ds; in dsa_slave_change_rx_flags() local
453 struct dsa_switch *ds = dp->ds; in dsa_slave_set_mac_address() local
988 struct dsa_switch *ds = dp->ds; in dsa_slave_get_regs_len() local
3037 ds = dp->ds; in dsa_slave_prechangeupper_sanity_check()
[all …]
H A Dmaster.c23 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs_len() local
39 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs_len()
53 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_regs() local
75 len = ds->ops->get_regs_len(ds, port); in dsa_master_get_regs()
89 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_stats() local
108 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_ethtool_phy_stats() local
132 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_sset_count() local
155 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_get_strings() local
206 struct dsa_switch *ds = cpu_dp->ds; in __dsa_master_hwtstamp_validate() local
226 struct dsa_switch *ds = cpu_dp->ds; in dsa_master_ethtool_setup() local
[all …]
/openbmc/u-boot/drivers/spi/
H A Ddavinci_spi.c291 writel((readl(&ds->regs->gcr1) | SPIGCR1_SPIENA_MASK), &ds->regs->gcr1); in __davinci_spi_claim_bus()
332 if (!ds->half_duplex) in __davinci_spi_xfer()
400 if (!ds) in spi_setup_slave()
421 ds->freq = max_hz; in spi_setup_slave()
422 ds->mode = mode; in spi_setup_slave()
424 return &ds->slave; in spi_setup_slave()
431 free(ds); in spi_free_slave()
453 return __davinci_spi_claim_bus(ds, ds->slave.cs); in spi_claim_bus()
472 ds->freq = max_hz; in davinci_spi_set_speed()
482 ds->mode = mode; in davinci_spi_set_mode()
[all …]
/openbmc/linux/fs/xfs/scrub/
H A Ddabtree.c134 if (blkno < ds->lowest || (ds->highest != 0 && blkno >= ds->highest)) { in xchk_da_btree_ptr_ok()
306 memset(&ds->state->altpath, 0, sizeof(ds->state->altpath)); in xchk_da_btree_block_check_siblings()
491 if (!ds) in xchk_da_btree()
497 ds->state = xfs_da_state_alloc(&ds->dargs); in xchk_da_btree()
498 ds->sc = sc; in xchk_da_btree()
502 ds->lowest = 0; in xchk_da_btree()
503 ds->highest = 0; in xchk_da_btree()
506 ds->lowest = ds->dargs.geo->leafblk; in xchk_da_btree()
507 ds->highest = ds->dargs.geo->freeblk; in xchk_da_btree()
574 ds->tree_level--; in xchk_da_btree()
[all …]
/openbmc/linux/include/net/
H A Ddsa.h256 struct dsa_switch *ds; member
497 if (dp->ds == ds && dp->index == p) in dsa_to_port()
618 if (dl->dp->ds == ds && dl->link_dp->ds->index == device) in dsa_routing_port()
621 return ds->num_ports; in dsa_routing_port()
643 return dsa_towards_port(ds, cpu_dp->ds->index, cpu_dp->index); in dsa_upstream_port()
658 return dsa_is_dsa_port(ds, port) && !dsa_is_upstream_port(ds, port); in dsa_is_downstream_port()
670 return ds->num_ports; in dsa_switch_upstream_port()
692 const struct dsa_switch *ds = dp->ds; in dsa_port_is_vlan_filtering() local
811 return a->ds->dst == b->ds->dst; in dsa_port_tree_same()
1282 return dl_priv->ds; in dsa_devlink_to_ds()
[all …]
/openbmc/linux/drivers/acpi/
H A Ddock.c136 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 …]
/openbmc/linux/drivers/net/dsa/ocelot/
H A Dfelix.c48 struct ocelot *ocelot = ds->priv; in felix_cpu_port_for_master()
71 struct ocelot *ocelot = ds->priv; in felix_tag_8021q_vlan_add_rx()
556 dsa_tag_8021q_unregister(ds); in felix_tag_8021q_teardown()
561 return dsa_cpu_ports(ds); in felix_tag_8021q_get_host_fwd_mask()
690 err = proto_ops->setup(ds); in felix_change_tag_protocol()
699 old_proto_ops->teardown(ds); in felix_change_tag_protocol()
707 proto_ops->teardown(ds); in felix_change_tag_protocol()
1500 struct dsa_switch *ds = xmit_work->dp->ds; in felix_port_deferred_xmit() local
1597 ds->fdb_isolation = true; in felix_setup()
1598 ds->max_num_bridges = ds->num_ports; in felix_setup()
[all …]
H A Docelot_ext.c69 struct dsa_switch *ds; in ocelot_ext_probe() local
87 ds = kzalloc(sizeof(*ds), GFP_KERNEL); in ocelot_ext_probe()
88 if (!ds) { in ocelot_ext_probe()
94 ds->dev = dev; in ocelot_ext_probe()
98 ds->ops = &felix_switch_ops; in ocelot_ext_probe()
99 ds->priv = ocelot; in ocelot_ext_probe()
100 felix->ds = ds; in ocelot_ext_probe()
103 err = dsa_register_switch(ds); in ocelot_ext_probe()
112 kfree(ds); in ocelot_ext_probe()
127 kfree(felix->ds); in ocelot_ext_remove()
[all …]
/openbmc/linux/drivers/net/dsa/
H A Ddsa_loop.c304 struct dsa_switch *ds; in dsa_loop_drv_probe() local
310 ds = devm_kzalloc(&mdiodev->dev, sizeof(*ds), GFP_KERNEL); in dsa_loop_drv_probe()
311 if (!ds) in dsa_loop_drv_probe()
314 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe()
327 ds->dev = &mdiodev->dev; in dsa_loop_drv_probe()
329 ds->priv = ps; in dsa_loop_drv_probe()
347 if (!ds) in dsa_loop_drv_remove()
350 ps = ds->priv; in dsa_loop_drv_remove()
352 dsa_unregister_switch(ds); in dsa_loop_drv_remove()
360 if (!ds) in dsa_loop_drv_shutdown()
[all …]
H A Dmv88e6060.c193 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 Dbcm_sf2.c292 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()
951 if (dsa_is_user_port(ds, port) || dsa_is_cpu_port(ds, port)) in bcm_sf2_sw_suspend()
984 ds->ops->setup(ds); in bcm_sf2_sw_resume()
1059 b53_configure_vlan(ds); in bcm_sf2_sw_setup()
1060 bcm_sf2_enable_acb(ds); in bcm_sf2_sw_setup()
1354 struct dsa_switch *ds; in bcm_sf2_sw_probe() local
1402 ds = dev->ds; in bcm_sf2_sw_probe()
1403 ds->ops = &bcm_sf2_ops; in bcm_sf2_sw_probe()
[all …]
/openbmc/linux/drivers/net/dsa/xrs700x/
H A Dxrs700x.c192 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()
744 struct dsa_switch *ds; in xrs700x_switch_alloc() local
747 ds = devm_kzalloc(base, sizeof(*ds), GFP_KERNEL); in xrs700x_switch_alloc()
748 if (!ds) in xrs700x_switch_alloc()
751 ds->dev = base; in xrs700x_switch_alloc()
759 ds->ops = &xrs700x_ops; in xrs700x_switch_alloc()
760 ds->priv = priv; in xrs700x_switch_alloc()
[all …]
/openbmc/linux/drivers/md/
H A Ddm-bio-prison-v1.c339 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 …]
/openbmc/linux/drivers/net/dsa/sja1105/
H A Dsja1105_main.c200 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
414 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_lookup_params() local
472 struct dsa_switch *ds = priv->ds; in sja1105_init_static_vlan() local
510 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_forwarding() local
644 struct dsa_switch *ds = priv->ds; in sja1110_init_pcp_remapping() local
793 struct dsa_switch *ds = priv->ds; in sja1105_init_topology() local
1009 struct dsa_switch *ds = priv->ds; in sja1105_init_l2_policing() local
1983 struct dsa_switch *ds = priv->ds; in sja1105_manage_flood_domains() local
[all …]
H A Dsja1105_ptp.h93 int sja1105_ptp_clock_register(struct dsa_switch *ds);
95 void sja1105_ptp_clock_unregister(struct dsa_switch *ds);
103 int sja1105_get_ts_info(struct dsa_switch *ds, int port,
106 void sja1105_ptp_txtstamp_skb(struct dsa_switch *ds, int slot,
109 bool sja1105_port_rxtstamp(struct dsa_switch *ds, int port,
112 void sja1105_port_txtstamp(struct dsa_switch *ds, int port,
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 Dsja1105_ptp.c63 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 …]
/openbmc/linux/drivers/hid/
H A Dhid-playstation.c1120 memcpy(ds->base.mac_address, &buf[1], sizeof(ds->base.mac_address)); in dualsense_get_mac_address()
1148 return !!(ds->player_leds_state & BIT(led - ds->player_leds)); in dualsense_player_led_get_brightness()
1192 ds->output_seq = 0; in dualsense_init_output_report()
1253 dualsense_init_output_report(ds, &report, ds->output_report_dmabuf); in dualsense_output_worker()
1382 ds->mic_muted = !ds->mic_muted; /* toggle */ in dualsense_parse_report()
1598 ds = devm_kzalloc(&hdev->dev, sizeof(*ds), GFP_KERNEL); in dualsense_create()
1599 if (!ds) in dualsense_create()
1608 ps_dev = &ds->base; in dualsense_create()
1647 ds->use_vibration_v2 = ds->update_version >= DS_FEATURE_VERSION(2, 21); in dualsense_create()
1725 ds->base.hw_version, ds->base.fw_version); in dualsense_create()
[all …]
/openbmc/linux/drivers/net/dsa/microchip/
H A Dksz_ptp.h36 int ksz_ptp_clock_register(struct dsa_switch *ds);
38 void ksz_ptp_clock_unregister(struct dsa_switch *ds);
40 int ksz_get_ts_info(struct dsa_switch *ds, int port,
42 int ksz_hwtstamp_get(struct dsa_switch *ds, int port, 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 …]
/openbmc/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,
/openbmc/linux/drivers/net/dsa/b53/
H A Db53_priv.h108 struct dsa_switch *ds; member
243 dsa_unregister_switch(dev->ds); in b53_switch_remove()
248 dsa_switch_shutdown(dev->ds); in b53_switch_shutdown()
336 int b53_configure_vlan(struct dsa_switch *ds);
350 int b53_br_flags(struct dsa_switch *ds, int port,
369 int b53_vlan_add(struct dsa_switch *ds, int port,
372 int b53_vlan_del(struct dsa_switch *ds, int port,
374 int b53_fdb_add(struct dsa_switch *ds, int port,
377 int b53_fdb_del(struct dsa_switch *ds, int port,
382 int b53_mdb_add(struct dsa_switch *ds, int port,
[all …]

12345678910>>...26