Home
last modified time | relevance | path

Searched refs:sdata (Results 1 – 25 of 144) sorted by relevance

123456

/linux-6.6.21/drivers/input/touchscreen/
Dstmfts.c112 struct stmfts_data *sdata = container_of(led_cdev, in stmfts_brightness_set() local
116 if (value != sdata->led_status && sdata->ledvdd) { in stmfts_brightness_set()
118 regulator_disable(sdata->ledvdd); in stmfts_brightness_set()
120 err = regulator_enable(sdata->ledvdd); in stmfts_brightness_set()
122 dev_warn(&sdata->client->dev, in stmfts_brightness_set()
128 sdata->led_status = value; in stmfts_brightness_set()
136 struct stmfts_data *sdata = container_of(led_cdev, in stmfts_brightness_get() local
139 return !!regulator_is_enabled(sdata->ledvdd); in stmfts_brightness_get()
146 static int stmfts_read_events(struct stmfts_data *sdata) in stmfts_read_events() argument
151 .addr = sdata->client->addr, in stmfts_read_events()
[all …]
Ds6sy761.c117 static int s6sy761_read_events(struct s6sy761_data *sdata, u16 n_events) in s6sy761_read_events() argument
122 .addr = sdata->client->addr, in s6sy761_read_events()
127 .addr = sdata->client->addr, in s6sy761_read_events()
130 .buf = sdata->data + S6SY761_EVENT_SIZE, in s6sy761_read_events()
135 ret = i2c_transfer(sdata->client->adapter, msgs, ARRAY_SIZE(msgs)); in s6sy761_read_events()
142 static void s6sy761_report_coordinates(struct s6sy761_data *sdata, in s6sy761_report_coordinates() argument
151 input_mt_slot(sdata->input, tid); in s6sy761_report_coordinates()
153 input_mt_report_slot_state(sdata->input, MT_TOOL_FINGER, true); in s6sy761_report_coordinates()
154 input_report_abs(sdata->input, ABS_MT_POSITION_X, x); in s6sy761_report_coordinates()
155 input_report_abs(sdata->input, ABS_MT_POSITION_Y, y); in s6sy761_report_coordinates()
[all …]
/linux-6.6.21/net/mac80211/
Diface.c48 bool __ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata) in __ieee80211_recalc_txpower() argument
54 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in __ieee80211_recalc_txpower()
63 if (sdata->deflink.user_power_level != IEEE80211_UNSET_POWER_LEVEL) in __ieee80211_recalc_txpower()
64 power = min(power, sdata->deflink.user_power_level); in __ieee80211_recalc_txpower()
66 if (sdata->deflink.ap_power_level != IEEE80211_UNSET_POWER_LEVEL) in __ieee80211_recalc_txpower()
67 power = min(power, sdata->deflink.ap_power_level); in __ieee80211_recalc_txpower()
69 if (power != sdata->vif.bss_conf.txpower) { in __ieee80211_recalc_txpower()
70 sdata->vif.bss_conf.txpower = power; in __ieee80211_recalc_txpower()
71 ieee80211_hw_config(sdata->local, 0); in __ieee80211_recalc_txpower()
78 void ieee80211_recalc_txpower(struct ieee80211_sub_if_data *sdata, in ieee80211_recalc_txpower() argument
[all …]
Dlink.c17 if (link->sdata->vif.type == NL80211_IFTYPE_STATION) in ieee80211_link_setup()
21 void ieee80211_link_init(struct ieee80211_sub_if_data *sdata, in ieee80211_link_init() argument
31 rcu_assign_pointer(sdata->vif.link_conf[link_id], link_conf); in ieee80211_link_init()
32 rcu_assign_pointer(sdata->link[link_id], link); in ieee80211_link_init()
34 link->sdata = sdata; in ieee80211_link_init()
38 link_conf->vif = &sdata->vif; in ieee80211_link_init()
52 switch (sdata->vif.type) { in ieee80211_link_init()
55 sdata->wdev.links[link_id].addr); in ieee80211_link_init()
57 WARN_ON(!(sdata->wdev.valid_links & BIT(link_id))); in ieee80211_link_init()
72 if (link->sdata->vif.type == NL80211_IFTYPE_STATION) in ieee80211_link_stop()
[all …]
Ddebug.h95 #define _sdata_info(sdata, fmt, ...) \ argument
96 __sdata_info("%s: " fmt, (sdata)->name, ##__VA_ARGS__)
97 #define _sdata_dbg(print, sdata, fmt, ...) \ argument
98 __sdata_dbg(print, "%s: " fmt, (sdata)->name, ##__VA_ARGS__)
99 #define _sdata_err(sdata, fmt, ...) \ argument
100 __sdata_err("%s: " fmt, (sdata)->name, ##__VA_ARGS__)
104 #define _sdata_info(sdata, fmt, ...) \ argument
107 (sdata)->name, ##__VA_ARGS__); \
110 #define _sdata_dbg(print, sdata, fmt, ...) \ argument
114 (sdata)->name, ##__VA_ARGS__); \
[all …]
Ddriver-ops.h15 #define check_sdata_in_driver(sdata) ({ \ argument
16 WARN_ONCE(!sdata->local->reconfig_failure && \
17 !(sdata->flags & IEEE80211_SDATA_IN_DRIVER), \
19 sdata->dev ? sdata->dev->name : sdata->name, sdata->flags); \
20 !!(sdata->flags & IEEE80211_SDATA_IN_DRIVER); \
24 get_bss_sdata(struct ieee80211_sub_if_data *sdata) in get_bss_sdata() argument
26 if (sdata && sdata->vif.type == NL80211_IFTYPE_AP_VLAN) in get_bss_sdata()
27 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in get_bss_sdata()
30 return sdata; in get_bss_sdata()
44 trace_drv_sync_rx_queues(local, sta->sdata, &sta->sta); in drv_sync_rx_queues()
[all …]
Ddriver-ops.c56 struct ieee80211_sub_if_data *sdata) in drv_add_interface() argument
62 if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_AP_VLAN || in drv_add_interface()
63 (sdata->vif.type == NL80211_IFTYPE_MONITOR && in drv_add_interface()
65 !(sdata->u.mntr.flags & MONITOR_FLAG_ACTIVE)))) in drv_add_interface()
68 trace_drv_add_interface(local, sdata); in drv_add_interface()
69 ret = local->ops->add_interface(&local->hw, &sdata->vif); in drv_add_interface()
73 sdata->flags |= IEEE80211_SDATA_IN_DRIVER; in drv_add_interface()
79 struct ieee80211_sub_if_data *sdata, in drv_change_interface() argument
86 if (!check_sdata_in_driver(sdata)) in drv_change_interface()
89 trace_drv_change_interface(local, sdata, type, p2p); in drv_change_interface()
[all …]
Dmesh.h110 struct ieee80211_sub_if_data *sdata; member
208 unsigned int ieee80211_new_mesh_header(struct ieee80211_sub_if_data *sdata,
211 int mesh_rmc_check(struct ieee80211_sub_if_data *sdata,
213 bool mesh_matches_local(struct ieee80211_sub_if_data *sdata,
215 int mesh_add_meshconf_ie(struct ieee80211_sub_if_data *sdata,
217 int mesh_add_meshid_ie(struct ieee80211_sub_if_data *sdata,
219 int mesh_add_rsn_ie(struct ieee80211_sub_if_data *sdata,
221 int mesh_add_vendor_ies(struct ieee80211_sub_if_data *sdata,
223 int mesh_add_ht_cap_ie(struct ieee80211_sub_if_data *sdata,
225 int mesh_add_ht_oper_ie(struct ieee80211_sub_if_data *sdata,
[all …]
Dmesh.c41 struct ieee80211_sub_if_data *sdata = in ieee80211_mesh_housekeeping_timer() local
42 from_timer(sdata, t, u.mesh.housekeeping_timer); in ieee80211_mesh_housekeeping_timer()
43 struct ieee80211_local *local = sdata->local; in ieee80211_mesh_housekeeping_timer()
44 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping_timer()
48 wiphy_work_queue(local->hw.wiphy, &sdata->work); in ieee80211_mesh_housekeeping_timer()
60 bool mesh_matches_local(struct ieee80211_sub_if_data *sdata, in mesh_matches_local() argument
63 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_matches_local()
88 sband = ieee80211_get_sband(sdata); in mesh_matches_local()
92 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local()
95 if (sdata->vif.bss_conf.basic_rates != basic_rates) in mesh_matches_local()
[all …]
Docb.c39 void ieee80211_ocb_rx_no_sta(struct ieee80211_sub_if_data *sdata, in ieee80211_ocb_rx_no_sta() argument
43 struct ieee80211_if_ocb *ifocb = &sdata->u.ocb; in ieee80211_ocb_rx_no_sta()
44 struct ieee80211_local *local = sdata->local; in ieee80211_ocb_rx_no_sta()
56 sdata->name, addr); in ieee80211_ocb_rx_no_sta()
60 ocb_dbg(sdata, "Adding new OCB station %pM\n", addr); in ieee80211_ocb_rx_no_sta()
63 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in ieee80211_ocb_rx_no_sta()
72 sta = sta_info_alloc(sdata, addr, GFP_ATOMIC); in ieee80211_ocb_rx_no_sta()
84 wiphy_work_queue(local->hw.wiphy, &sdata->work); in ieee80211_ocb_rx_no_sta()
90 struct ieee80211_sub_if_data *sdata = sta->sdata; in ieee80211_ocb_finish_sta() local
95 ocb_dbg(sdata, "Adding new IBSS station %pM (dev=%s)\n", in ieee80211_ocb_finish_sta()
[all …]
Dibss.c38 ieee80211_ibss_build_presp(struct ieee80211_sub_if_data *sdata, in ieee80211_ibss_build_presp() argument
45 struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; in ieee80211_ibss_build_presp()
46 struct ieee80211_local *local = sdata->local; in ieee80211_ibss_build_presp()
80 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_ibss_build_presp()
183 ieee80211_apply_htcap_overrides(sdata, &ht_cap); in ieee80211_ibss_build_presp()
218 static void __ieee80211_sta_join_ibss(struct ieee80211_sub_if_data *sdata, in __ieee80211_sta_join_ibss() argument
225 struct ieee80211_if_ibss *ifibss = &sdata->u.ibss; in __ieee80211_sta_join_ibss()
226 struct ieee80211_local *local = sdata->local; in __ieee80211_sta_join_ibss()
238 sdata_assert_lock(sdata); in __ieee80211_sta_join_ibss()
241 drv_reset_tsf(local, sdata); in __ieee80211_sta_join_ibss()
[all …]
Dcfg.c27 ieee80211_link_or_deflink(struct ieee80211_sub_if_data *sdata, int link_id, in ieee80211_link_or_deflink() argument
38 if (require_valid && ieee80211_vif_is_mld(&sdata->vif)) in ieee80211_link_or_deflink()
41 return &sdata->deflink; in ieee80211_link_or_deflink()
44 link = sdata_dereference(sdata->link[link_id], sdata); in ieee80211_link_or_deflink()
50 static void ieee80211_set_mu_mimo_follow(struct ieee80211_sub_if_data *sdata, in ieee80211_set_mu_mimo_follow() argument
61 memcpy(sdata->vif.bss_conf.mu_group.membership, in ieee80211_set_mu_mimo_follow()
63 memcpy(sdata->vif.bss_conf.mu_group.position, in ieee80211_set_mu_mimo_follow()
66 ieee80211_link_info_change_notify(sdata, &sdata->deflink, in ieee80211_set_mu_mimo_follow()
77 ether_addr_copy(sdata->u.mntr.mu_follow_addr, in ieee80211_set_mu_mimo_follow()
81 sdata->vif.bss_conf.mu_mimo_owner = mu_mimo_groups || mu_mimo_follow; in ieee80211_set_mu_mimo_follow()
[all …]
Dmlme.c175 static void run_again(struct ieee80211_sub_if_data *sdata, in run_again() argument
178 sdata_assert_lock(sdata); in run_again()
180 if (!timer_pending(&sdata->u.mgd.timer) || in run_again()
181 time_before(timeout, sdata->u.mgd.timer.expires)) in run_again()
182 mod_timer(&sdata->u.mgd.timer, timeout); in run_again()
185 void ieee80211_sta_reset_beacon_monitor(struct ieee80211_sub_if_data *sdata) in ieee80211_sta_reset_beacon_monitor() argument
187 if (sdata->vif.driver_flags & IEEE80211_VIF_BEACON_FILTER) in ieee80211_sta_reset_beacon_monitor()
190 if (ieee80211_hw_check(&sdata->local->hw, CONNECTION_MONITOR)) in ieee80211_sta_reset_beacon_monitor()
193 mod_timer(&sdata->u.mgd.bcn_mon_timer, in ieee80211_sta_reset_beacon_monitor()
194 round_jiffies_up(jiffies + sdata->u.mgd.beacon_timeout)); in ieee80211_sta_reset_beacon_monitor()
[all …]
Dmesh_plink.c58 static bool rssi_threshold_check(struct ieee80211_sub_if_data *sdata, in rssi_threshold_check() argument
61 s32 rssi_threshold = sdata->u.mesh.mshcfg.rssi_threshold; in rssi_threshold_check()
93 static u64 mesh_set_short_slot_time(struct ieee80211_sub_if_data *sdata) in mesh_set_short_slot_time() argument
95 struct ieee80211_local *local = sdata->local; in mesh_set_short_slot_time()
103 sband = ieee80211_get_sband(sdata); in mesh_set_short_slot_time()
124 if (sdata != sta->sdata || in mesh_set_short_slot_time()
137 if (sdata->vif.bss_conf.use_short_slot != short_slot) { in mesh_set_short_slot_time()
138 sdata->vif.bss_conf.use_short_slot = short_slot; in mesh_set_short_slot_time()
140 mpl_dbg(sdata, "mesh_plink %pM: ERP short slot time %d\n", in mesh_set_short_slot_time()
141 sdata->vif.addr, short_slot); in mesh_set_short_slot_time()
[all …]
Dkey.c62 update_vlan_tailroom_need_count(struct ieee80211_sub_if_data *sdata, int delta) in update_vlan_tailroom_need_count() argument
66 if (sdata->vif.type != NL80211_IFTYPE_AP) in update_vlan_tailroom_need_count()
70 assert_key_lock(sdata->local); in update_vlan_tailroom_need_count()
74 list_for_each_entry_rcu(vlan, &sdata->u.ap.vlans, u.vlan.list) in update_vlan_tailroom_need_count()
80 static void increment_tailroom_need_count(struct ieee80211_sub_if_data *sdata) in increment_tailroom_need_count() argument
101 assert_key_lock(sdata->local); in increment_tailroom_need_count()
103 update_vlan_tailroom_need_count(sdata, 1); in increment_tailroom_need_count()
105 if (!sdata->crypto_tx_tailroom_needed_cnt++) { in increment_tailroom_need_count()
114 static void decrease_tailroom_need_count(struct ieee80211_sub_if_data *sdata, in decrease_tailroom_need_count() argument
117 assert_key_lock(sdata->local); in decrease_tailroom_need_count()
[all …]
Ddebugfs_netdev.c201 const struct ieee80211_sub_if_data *sdata, in ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_2ghz() argument
205 const u16 *mask = sdata->rc_rateidx_vht_mcs_mask[NL80211_BAND_2GHZ]; in ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_2ghz()
217 const struct ieee80211_sub_if_data *sdata, in ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_5ghz() argument
221 const u16 *mask = sdata->rc_rateidx_vht_mcs_mask[NL80211_BAND_5GHZ]; in ieee80211_if_fmt_rc_rateidx_vht_mcs_mask_5ghz()
239 ieee80211_if_fmt_hw_queues(const struct ieee80211_sub_if_data *sdata, in ieee80211_if_fmt_hw_queues() argument
245 sdata->vif.hw_queue[IEEE80211_AC_VO], in ieee80211_if_fmt_hw_queues()
246 sdata->vif.hw_queue[IEEE80211_AC_VI], in ieee80211_if_fmt_hw_queues()
247 sdata->vif.hw_queue[IEEE80211_AC_BE], in ieee80211_if_fmt_hw_queues()
248 sdata->vif.hw_queue[IEEE80211_AC_BK]); in ieee80211_if_fmt_hw_queues()
250 if (sdata->vif.type == NL80211_IFTYPE_AP) in ieee80211_if_fmt_hw_queues()
[all …]
Dmesh_pathtbl.c52 static void mesh_fast_tx_deinit(struct ieee80211_sub_if_data *sdata) in mesh_fast_tx_deinit() argument
56 cache = &sdata->u.mesh.tx_cache; in mesh_fast_tx_deinit()
61 static void mesh_fast_tx_init(struct ieee80211_sub_if_data *sdata) in mesh_fast_tx_init() argument
65 cache = &sdata->u.mesh.tx_cache; in mesh_fast_tx_init()
126 memcpy(hdr->addr2, mpath->sdata->vif.addr, ETH_ALEN); in mesh_path_assign_nexthop()
127 ieee80211_mps_set_frame_flags(sta->sdata, sta, hdr); in mesh_path_assign_nexthop()
169 memcpy(hdr->addr2, gate_mpath->sdata->vif.addr, ETH_ALEN); in prepare_for_gate()
212 mpath_dbg(gate_mpath->sdata, "mpath queue full!\n"); in mesh_path_move_to_queue()
230 mpath_dbg(gate_mpath->sdata, "Mpath queue for gate %pM has %d frames\n", in mesh_path_move_to_queue()
243 struct ieee80211_sub_if_data *sdata) in mpath_lookup() argument
[all …]
Dtdls.c26 struct ieee80211_sub_if_data *sdata; in ieee80211_tdls_peer_del_work() local
29 sdata = container_of(wk, struct ieee80211_sub_if_data, in ieee80211_tdls_peer_del_work()
31 local = sdata->local; in ieee80211_tdls_peer_del_work()
34 if (!is_zero_ether_addr(sdata->u.mgd.tdls_peer)) { in ieee80211_tdls_peer_del_work()
35 tdls_dbg(sdata, "TDLS del peer %pM\n", sdata->u.mgd.tdls_peer); in ieee80211_tdls_peer_del_work()
36 sta_info_destroy_addr(sdata, sdata->u.mgd.tdls_peer); in ieee80211_tdls_peer_del_work()
37 eth_zero_addr(sdata->u.mgd.tdls_peer); in ieee80211_tdls_peer_del_work()
45 struct ieee80211_sub_if_data *sdata = link->sdata; in ieee80211_tdls_add_ext_capab() local
46 struct ieee80211_local *local = sdata->local; in ieee80211_tdls_add_ext_capab()
47 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_tdls_add_ext_capab()
[all …]
Doffchannel.c25 static void ieee80211_offchannel_ps_enable(struct ieee80211_sub_if_data *sdata) in ieee80211_offchannel_ps_enable() argument
27 struct ieee80211_local *local = sdata->local; in ieee80211_offchannel_ps_enable()
28 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_offchannel_ps_enable()
57 ieee80211_send_nullfunc(local, sdata, true); in ieee80211_offchannel_ps_enable()
61 static void ieee80211_offchannel_ps_disable(struct ieee80211_sub_if_data *sdata) in ieee80211_offchannel_ps_disable() argument
63 struct ieee80211_local *local = sdata->local; in ieee80211_offchannel_ps_disable()
66 ieee80211_send_nullfunc(local, sdata, false); in ieee80211_offchannel_ps_disable()
74 ieee80211_send_nullfunc(local, sdata, false); in ieee80211_offchannel_ps_disable()
79 ieee80211_sta_reset_beacon_monitor(sdata); in ieee80211_offchannel_ps_disable()
80 ieee80211_sta_reset_conn_monitor(sdata); in ieee80211_offchannel_ps_disable()
[all …]
/linux-6.6.21/drivers/iio/common/st_sensors/
Dst_sensors_core.c27 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_write_data_with_mask() local
29 return regmap_update_bits(sdata->regmap, in st_sensors_write_data_with_mask()
37 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_debugfs_reg_access() local
41 return regmap_write(sdata->regmap, reg, writeval); in st_sensors_debugfs_reg_access()
43 err = regmap_read(sdata->regmap, reg, readval); in st_sensors_debugfs_reg_access()
76 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_set_odr() local
78 mutex_lock(&sdata->odr_lock); in st_sensors_set_odr()
80 if (!sdata->sensor_settings->odr.mask) in st_sensors_set_odr()
83 err = st_sensors_match_odr(sdata->sensor_settings, odr, &odr_out); in st_sensors_set_odr()
87 if ((sdata->sensor_settings->odr.addr == in st_sensors_set_odr()
[all …]
Dst_sensors_trigger.c28 struct st_sensor_data *sdata) in st_sensors_new_samples_available() argument
33 if (!sdata->sensor_settings->drdy_irq.stat_drdy.addr) in st_sensors_new_samples_available()
40 ret = regmap_read(sdata->regmap, in st_sensors_new_samples_available()
41 sdata->sensor_settings->drdy_irq.stat_drdy.addr, in st_sensors_new_samples_available()
49 return !!(status & sdata->sensor_settings->drdy_irq.stat_drdy.mask); in st_sensors_new_samples_available()
61 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_irq_handler() local
64 sdata->hw_timestamp = iio_get_time_ns(indio_dev); in st_sensors_irq_handler()
77 struct st_sensor_data *sdata = iio_priv(indio_dev); in st_sensors_irq_thread() local
86 if (sdata->hw_irq_trigger && in st_sensors_irq_thread()
87 st_sensors_new_samples_available(indio_dev, sdata)) { in st_sensors_irq_thread()
[all …]
/linux-6.6.21/net/mac802154/
Dmib.c23 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in mac802154_dev_set_page_channel() local
24 struct ieee802154_local *local = sdata->local; in mac802154_dev_set_page_channel()
43 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in mac802154_get_params() local
48 mutex_lock(&sdata->sec_mtx); in mac802154_get_params()
49 res = mac802154_llsec_get_params(&sdata->sec, params); in mac802154_get_params()
50 mutex_unlock(&sdata->sec_mtx); in mac802154_get_params()
59 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in mac802154_set_params() local
64 mutex_lock(&sdata->sec_mtx); in mac802154_set_params()
65 res = mac802154_llsec_set_params(&sdata->sec, params, changed); in mac802154_set_params()
66 mutex_unlock(&sdata->sec_mtx); in mac802154_set_params()
[all …]
Diface.c27 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in mac802154_wpan_update_llsec() local
29 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_wpan_update_llsec()
51 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in mac802154_wpan_ioctl() local
52 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_wpan_ioctl()
113 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in mac802154_wpan_mac_addr() local
123 if (sdata->wpan_dev.lowpan_dev) { in mac802154_wpan_mac_addr()
124 if (netif_running(sdata->wpan_dev.lowpan_dev)) in mac802154_wpan_mac_addr()
133 sdata->wpan_dev.extended_addr = extended_addr; in mac802154_wpan_mac_addr()
138 if (sdata->wpan_dev.lowpan_dev) in mac802154_wpan_mac_addr()
139 dev_addr_set(sdata->wpan_dev.lowpan_dev, dev->dev_addr); in mac802154_wpan_mac_addr()
[all …]
Dcfg.c36 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in ieee802154_del_iface_deprecated() local
38 ieee802154_if_remove(sdata); in ieee802154_del_iface_deprecated()
271 struct ieee802154_sub_if_data *sdata; in mac802154_trigger_scan() local
273 sdata = IEEE802154_WPAN_DEV_TO_SUB_IF(request->wpan_dev); in mac802154_trigger_scan()
277 return mac802154_trigger_scan_locked(sdata, request); in mac802154_trigger_scan()
284 struct ieee802154_sub_if_data *sdata; in mac802154_abort_scan() local
286 sdata = IEEE802154_WPAN_DEV_TO_SUB_IF(wpan_dev); in mac802154_abort_scan()
290 return mac802154_abort_scan_locked(local, sdata); in mac802154_abort_scan()
296 struct ieee802154_sub_if_data *sdata; in mac802154_send_beacons() local
298 sdata = IEEE802154_WPAN_DEV_TO_SUB_IF(request->wpan_dev); in mac802154_send_beacons()
[all …]
/linux-6.6.21/drivers/platform/chrome/
Dcros_typec_switch.c26 struct cros_typec_switch_data *sdata; member
36 static int cros_typec_cmd_mux_set(struct cros_typec_switch_data *sdata, int port_num, u8 index, in cros_typec_cmd_mux_set() argument
48 return cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_CONTROL, &req, sizeof(req), NULL, 0); in cros_typec_cmd_mux_set()
70 static int cros_typec_send_clear_event(struct cros_typec_switch_data *sdata, int port_num, in cros_typec_send_clear_event() argument
79 return cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_CONTROL, &req, sizeof(req), NULL, 0); in cros_typec_send_clear_event()
82 static bool cros_typec_check_event(struct cros_typec_switch_data *sdata, int port_num, u32 mask) in cros_typec_check_event() argument
90 ret = cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_STATUS, &req, sizeof(req), in cros_typec_check_event()
93 dev_warn(sdata->dev, "EC_CMD_TYPEC_STATUS failed for port: %d\n", port_num); in cros_typec_check_event()
108 static int cros_typec_configure_mux(struct cros_typec_switch_data *sdata, int port_num, int index, in cros_typec_configure_mux() argument
127 ret = cros_typec_send_clear_event(sdata, port_num, event_mask); in cros_typec_configure_mux()
[all …]

123456