Home
last modified time | relevance | path

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

123456

/linux-6.1.9/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.1.9/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.c16 if (link->sdata->vif.type == NL80211_IFTYPE_STATION) in ieee80211_link_setup()
20 void ieee80211_link_init(struct ieee80211_sub_if_data *sdata, in ieee80211_link_init() argument
30 rcu_assign_pointer(sdata->vif.link_conf[link_id], link_conf); in ieee80211_link_init()
31 rcu_assign_pointer(sdata->link[link_id], link); in ieee80211_link_init()
33 link->sdata = sdata; in ieee80211_link_init()
48 switch (sdata->vif.type) { in ieee80211_link_init()
51 sdata->wdev.links[link_id].addr); in ieee80211_link_init()
53 WARN_ON(!(sdata->wdev.valid_links & BIT(link_id))); in ieee80211_link_init()
66 if (link->sdata->vif.type == NL80211_IFTYPE_STATION) in ieee80211_link_stop()
77 static void ieee80211_tear_down_links(struct ieee80211_sub_if_data *sdata, in ieee80211_tear_down_links() argument
[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.c54 struct ieee80211_sub_if_data *sdata) in drv_add_interface() argument
60 if (WARN_ON(sdata->vif.type == NL80211_IFTYPE_AP_VLAN || in drv_add_interface()
61 (sdata->vif.type == NL80211_IFTYPE_MONITOR && in drv_add_interface()
63 !(sdata->u.mntr.flags & MONITOR_FLAG_ACTIVE)))) in drv_add_interface()
66 trace_drv_add_interface(local, sdata); in drv_add_interface()
67 ret = local->ops->add_interface(&local->hw, &sdata->vif); in drv_add_interface()
71 sdata->flags |= IEEE80211_SDATA_IN_DRIVER; in drv_add_interface()
77 struct ieee80211_sub_if_data *sdata, in drv_change_interface() argument
84 if (!check_sdata_in_driver(sdata)) in drv_change_interface()
87 trace_drv_change_interface(local, sdata, type, p2p); in drv_change_interface()
[all …]
Ddriver-ops.h15 #define check_sdata_in_driver(sdata) ({ \ argument
16 !WARN_ONCE(!(sdata->flags & IEEE80211_SDATA_IN_DRIVER), \
18 sdata->dev ? sdata->dev->name : sdata->name, sdata->flags); \
22 get_bss_sdata(struct ieee80211_sub_if_data *sdata) in get_bss_sdata() argument
24 if (sdata->vif.type == NL80211_IFTYPE_AP_VLAN) in get_bss_sdata()
25 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in get_bss_sdata()
28 return sdata; in get_bss_sdata()
42 trace_drv_sync_rx_queues(local, sta->sdata, &sta->sta); in drv_sync_rx_queues()
48 static inline void drv_get_et_strings(struct ieee80211_sub_if_data *sdata, in drv_get_et_strings() argument
51 struct ieee80211_local *local = sdata->local; in drv_get_et_strings()
[all …]
Dmesh.c40 struct ieee80211_sub_if_data *sdata = in ieee80211_mesh_housekeeping_timer() local
41 from_timer(sdata, t, u.mesh.housekeeping_timer); in ieee80211_mesh_housekeeping_timer()
42 struct ieee80211_local *local = sdata->local; in ieee80211_mesh_housekeeping_timer()
43 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in ieee80211_mesh_housekeeping_timer()
47 ieee80211_queue_work(&local->hw, &sdata->work); in ieee80211_mesh_housekeeping_timer()
59 bool mesh_matches_local(struct ieee80211_sub_if_data *sdata, in mesh_matches_local() argument
62 struct ieee80211_if_mesh *ifmsh = &sdata->u.mesh; in mesh_matches_local()
87 sband = ieee80211_get_sband(sdata); in mesh_matches_local()
91 ieee80211_sta_get_rates(sdata, ie, sband->band, in mesh_matches_local()
94 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 ieee80211_queue_work(&local->hw, &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 && sdata->vif.valid_links) 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 …]
Dmesh.h109 struct ieee80211_sub_if_data *sdata; member
177 unsigned int ieee80211_new_mesh_header(struct ieee80211_sub_if_data *sdata,
180 int mesh_rmc_check(struct ieee80211_sub_if_data *sdata,
182 bool mesh_matches_local(struct ieee80211_sub_if_data *sdata,
185 int mesh_add_meshconf_ie(struct ieee80211_sub_if_data *sdata,
187 int mesh_add_meshid_ie(struct ieee80211_sub_if_data *sdata,
189 int mesh_add_rsn_ie(struct ieee80211_sub_if_data *sdata,
191 int mesh_add_vendor_ies(struct ieee80211_sub_if_data *sdata,
193 int mesh_add_ht_cap_ie(struct ieee80211_sub_if_data *sdata,
195 int mesh_add_ht_oper_ie(struct ieee80211_sub_if_data *sdata,
[all …]
Dmlme.c101 static void run_again(struct ieee80211_sub_if_data *sdata, in run_again() argument
104 sdata_assert_lock(sdata); in run_again()
106 if (!timer_pending(&sdata->u.mgd.timer) || in run_again()
107 time_before(timeout, sdata->u.mgd.timer.expires)) in run_again()
108 mod_timer(&sdata->u.mgd.timer, timeout); in run_again()
111 void ieee80211_sta_reset_beacon_monitor(struct ieee80211_sub_if_data *sdata) in ieee80211_sta_reset_beacon_monitor() argument
113 if (sdata->vif.driver_flags & IEEE80211_VIF_BEACON_FILTER) in ieee80211_sta_reset_beacon_monitor()
116 if (ieee80211_hw_check(&sdata->local->hw, CONNECTION_MONITOR)) in ieee80211_sta_reset_beacon_monitor()
119 mod_timer(&sdata->u.mgd.bcn_mon_timer, in ieee80211_sta_reset_beacon_monitor()
120 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 u32 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()
102 sband = ieee80211_get_sband(sdata); in mesh_set_short_slot_time()
123 if (sdata != sta->sdata || in mesh_set_short_slot_time()
136 if (sdata->vif.bss_conf.use_short_slot != short_slot) { in mesh_set_short_slot_time()
137 sdata->vif.bss_conf.use_short_slot = short_slot; in mesh_set_short_slot_time()
139 mpl_dbg(sdata, "mesh_plink %pM: ERP short slot time %d\n", in mesh_set_short_slot_time()
140 sdata->vif.addr, short_slot); in mesh_set_short_slot_time()
[all …]
Ddebugfs_netdev.c26 struct ieee80211_sub_if_data *sdata, in ieee80211_if_read() argument
35 ret = (*format)(sdata, buf, sizeof(buf)); in ieee80211_if_read()
45 struct ieee80211_sub_if_data *sdata, in ieee80211_if_write() argument
61 ret = (*write)(sdata, buf, count); in ieee80211_if_write()
69 const struct ieee80211_sub_if_data *sdata, char *buf, \
72 return scnprintf(buf, buflen, format_string, sdata->field); \
83 const struct ieee80211_sub_if_data *sdata, \
88 for (i = 0; i < sizeof(sdata->field); i++) { \
90 sdata->field[i]); \
98 const struct ieee80211_sub_if_data *sdata, \
[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()
42 static void ieee80211_tdls_add_ext_capab(struct ieee80211_sub_if_data *sdata, in ieee80211_tdls_add_ext_capab() argument
45 struct ieee80211_local *local = sdata->local; in ieee80211_tdls_add_ext_capab()
46 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_tdls_add_ext_capab()
[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 …]
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 …]
Dmesh_pathtbl.c90 memcpy(hdr->addr2, mpath->sdata->vif.addr, ETH_ALEN); in mesh_path_assign_nexthop()
91 ieee80211_mps_set_frame_flags(sta->sdata, sta, hdr); in mesh_path_assign_nexthop()
133 memcpy(hdr->addr2, gate_mpath->sdata->vif.addr, ETH_ALEN); in prepare_for_gate()
176 mpath_dbg(gate_mpath->sdata, "mpath queue full!\n"); in mesh_path_move_to_queue()
194 mpath_dbg(gate_mpath->sdata, "Mpath queue for gate %pM has %d frames\n", in mesh_path_move_to_queue()
207 struct ieee80211_sub_if_data *sdata) in mpath_lookup() argument
231 mesh_path_lookup(struct ieee80211_sub_if_data *sdata, const u8 *dst) in mesh_path_lookup() argument
233 return mpath_lookup(&sdata->u.mesh.mesh_paths, dst, sdata); in mesh_path_lookup()
237 mpp_path_lookup(struct ieee80211_sub_if_data *sdata, const u8 *dst) in mpp_path_lookup() argument
239 return mpath_lookup(&sdata->u.mesh.mpp_paths, dst, sdata); in mpp_path_lookup()
[all …]
Dagg-tx.c61 static void ieee80211_send_addba_request(struct ieee80211_sub_if_data *sdata, in ieee80211_send_addba_request() argument
66 struct ieee80211_local *local = sdata->local; in ieee80211_send_addba_request()
79 memcpy(mgmt->sa, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
80 if (sdata->vif.type == NL80211_IFTYPE_AP || in ieee80211_send_addba_request()
81 sdata->vif.type == NL80211_IFTYPE_AP_VLAN || in ieee80211_send_addba_request()
82 sdata->vif.type == NL80211_IFTYPE_MESH_POINT) in ieee80211_send_addba_request()
83 memcpy(mgmt->bssid, sdata->vif.addr, ETH_ALEN); in ieee80211_send_addba_request()
84 else if (sdata->vif.type == NL80211_IFTYPE_STATION) in ieee80211_send_addba_request()
85 memcpy(mgmt->bssid, sdata->deflink.u.mgd.bssid, ETH_ALEN); in ieee80211_send_addba_request()
86 else if (sdata->vif.type == NL80211_IFTYPE_ADHOC) in ieee80211_send_addba_request()
[all …]
/linux-6.1.9/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.1.9/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 …]
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 = IEEE802154_DEV_TO_SUB_IF(dev); in ieee802154_get_llsec_table() local
273 *table = &sdata->sec.table; in ieee802154_get_llsec_table()
281 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in ieee802154_lock_llsec_table() local
283 mutex_lock(&sdata->sec_mtx); in ieee802154_lock_llsec_table()
291 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in ieee802154_unlock_llsec_table() local
293 mutex_unlock(&sdata->sec_mtx); in ieee802154_unlock_llsec_table()
303 struct ieee802154_sub_if_data *sdata = IEEE802154_DEV_TO_SUB_IF(dev); in ieee802154_set_llsec_params() local
306 mutex_lock(&sdata->sec_mtx); in ieee802154_set_llsec_params()
[all …]
/linux-6.1.9/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()
65 static int cros_typec_send_clear_event(struct cros_typec_switch_data *sdata, int port_num, in cros_typec_send_clear_event() argument
74 return cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_CONTROL, &req, sizeof(req), NULL, 0); in cros_typec_send_clear_event()
77 static bool cros_typec_check_event(struct cros_typec_switch_data *sdata, int port_num, u32 mask) in cros_typec_check_event() argument
85 ret = cros_ec_cmd(sdata->ec, 0, EC_CMD_TYPEC_STATUS, &req, sizeof(req), in cros_typec_check_event()
88 dev_warn(sdata->dev, "EC_CMD_TYPEC_STATUS failed for port: %d\n", port_num); in cros_typec_check_event()
103 static int cros_typec_configure_mux(struct cros_typec_switch_data *sdata, int port_num, int index, in cros_typec_configure_mux() argument
122 ret = cros_typec_send_clear_event(sdata, port_num, event_mask); in cros_typec_configure_mux()
[all …]

123456