/net/wireless/ |
D | rdev-ops.h | 15 static inline int rdev_suspend(struct cfg80211_registered_device *rdev, in rdev_suspend() argument 19 trace_rdev_suspend(&rdev->wiphy, wowlan); in rdev_suspend() 20 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend() 21 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_suspend() 25 static inline int rdev_resume(struct cfg80211_registered_device *rdev) in rdev_resume() argument 28 trace_rdev_resume(&rdev->wiphy); in rdev_resume() 29 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume() 30 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_resume() 34 static inline void rdev_set_wakeup(struct cfg80211_registered_device *rdev, in rdev_set_wakeup() argument 37 trace_rdev_set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup() [all …]
|
D | core.c | 59 struct cfg80211_registered_device *result = NULL, *rdev; in cfg80211_rdev_by_wiphy_idx() local 63 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in cfg80211_rdev_by_wiphy_idx() 64 if (rdev->wiphy_idx == wiphy_idx) { in cfg80211_rdev_by_wiphy_idx() 65 result = rdev; in cfg80211_rdev_by_wiphy_idx() 75 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in get_wiphy_idx() local 77 return rdev->wiphy_idx; in get_wiphy_idx() 82 struct cfg80211_registered_device *rdev; in wiphy_idx_to_wiphy() local 86 rdev = cfg80211_rdev_by_wiphy_idx(wiphy_idx); in wiphy_idx_to_wiphy() 87 if (!rdev) in wiphy_idx_to_wiphy() 89 return &rdev->wiphy; in wiphy_idx_to_wiphy() [all …]
|
D | mlme.c | 29 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_rx_assoc_resp() local 90 nl80211_send_rx_assoc(rdev, dev, data); in cfg80211_rx_assoc_resp() 99 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_auth() local 101 nl80211_send_rx_auth(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_auth() 109 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_deauth() local 115 nl80211_send_deauth(rdev, wdev->netdev, buf, len, reconnect, GFP_KERNEL); in cfg80211_process_deauth() 128 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_disassoc() local 134 nl80211_send_disassoc(rdev, wdev->netdev, buf, len, reconnect, in cfg80211_process_disassoc() 170 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_auth_timeout() local 174 nl80211_send_auth_timeout(rdev, dev, addr, GFP_KERNEL); in cfg80211_auth_timeout() [all …]
|
D | core.h | 124 cfg80211_rdev_free_wowlan(struct cfg80211_registered_device *rdev) in cfg80211_rdev_free_wowlan() argument 129 if (!rdev->wiphy.wowlan_config) in cfg80211_rdev_free_wowlan() 131 for (i = 0; i < rdev->wiphy.wowlan_config->n_patterns; i++) in cfg80211_rdev_free_wowlan() 132 kfree(rdev->wiphy.wowlan_config->patterns[i].mask); in cfg80211_rdev_free_wowlan() 133 kfree(rdev->wiphy.wowlan_config->patterns); in cfg80211_rdev_free_wowlan() 134 if (rdev->wiphy.wowlan_config->tcp && in cfg80211_rdev_free_wowlan() 135 rdev->wiphy.wowlan_config->tcp->sock) in cfg80211_rdev_free_wowlan() 136 sock_release(rdev->wiphy.wowlan_config->tcp->sock); in cfg80211_rdev_free_wowlan() 137 kfree(rdev->wiphy.wowlan_config->tcp); in cfg80211_rdev_free_wowlan() 138 kfree(rdev->wiphy.wowlan_config->nd_config); in cfg80211_rdev_free_wowlan() [all …]
|
D | sysfs.c | 80 struct cfg80211_registered_device *rdev = dev_to_rdev(dev); in wiphy_dev_release() local 82 cfg80211_dev_free(rdev); in wiphy_dev_release() 86 static void cfg80211_leave_all(struct cfg80211_registered_device *rdev) in cfg80211_leave_all() argument 90 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) in cfg80211_leave_all() 91 cfg80211_leave(rdev, wdev); in cfg80211_leave_all() 96 struct cfg80211_registered_device *rdev = dev_to_rdev(dev); in wiphy_suspend() local 99 rdev->suspend_at = ktime_get_boottime_seconds(); in wiphy_suspend() 102 wiphy_lock(&rdev->wiphy); in wiphy_suspend() 103 if (rdev->wiphy.registered) { in wiphy_suspend() 104 if (!rdev->wiphy.wowlan_config) { in wiphy_suspend() [all …]
|
D | scan.c | 140 static inline void bss_ref_get(struct cfg80211_registered_device *rdev, in bss_ref_get() argument 143 lockdep_assert_held(&rdev->bss_lock); in bss_ref_get() 154 static inline void bss_ref_put(struct cfg80211_registered_device *rdev, in bss_ref_put() argument 157 lockdep_assert_held(&rdev->bss_lock); in bss_ref_put() 185 static bool __cfg80211_unlink_bss(struct cfg80211_registered_device *rdev, in __cfg80211_unlink_bss() argument 188 lockdep_assert_held(&rdev->bss_lock); in __cfg80211_unlink_bss() 206 rb_erase(&bss->rbn, &rdev->bss_tree); in __cfg80211_unlink_bss() 207 rdev->bss_entries--; in __cfg80211_unlink_bss() 208 WARN_ONCE((rdev->bss_entries == 0) ^ list_empty(&rdev->bss_list), in __cfg80211_unlink_bss() 210 rdev->bss_entries, list_empty(&rdev->bss_list)); in __cfg80211_unlink_bss() [all …]
|
D | nl80211.c | 34 static int nl80211_crypto_settings(struct cfg80211_registered_device *rdev, 67 __cfg80211_wdev_from_attrs(struct cfg80211_registered_device *rdev, in __cfg80211_wdev_from_attrs() argument 87 if (rdev) { in __cfg80211_wdev_from_attrs() 90 lockdep_assert_held(&rdev->wiphy.mtx); in __cfg80211_wdev_from_attrs() 92 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in __cfg80211_wdev_from_attrs() 109 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in __cfg80211_wdev_from_attrs() 112 if (wiphy_net(&rdev->wiphy) != netns) in __cfg80211_wdev_from_attrs() 115 if (have_wdev_id && rdev->wiphy_idx != wiphy_idx) in __cfg80211_wdev_from_attrs() 118 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in __cfg80211_wdev_from_attrs() 142 struct cfg80211_registered_device *rdev = NULL, *tmp; in __cfg80211_rdev_from_attrs() local [all …]
|
D | nl80211.h | 25 int nl80211_parse_chandef(struct cfg80211_registered_device *rdev, 31 void nl80211_notify_wiphy(struct cfg80211_registered_device *rdev, 33 void nl80211_notify_iface(struct cfg80211_registered_device *rdev, 36 void nl80211_send_scan_start(struct cfg80211_registered_device *rdev, 38 struct sk_buff *nl80211_build_scan_msg(struct cfg80211_registered_device *rdev, 40 void nl80211_send_scan_msg(struct cfg80211_registered_device *rdev, 58 void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev, 61 void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev, 64 void nl80211_send_deauth(struct cfg80211_registered_device *rdev, 68 void nl80211_send_disassoc(struct cfg80211_registered_device *rdev, [all …]
|
D | wext-compat.c | 39 struct cfg80211_registered_device *rdev; in cfg80211_wext_siwmode() local 44 rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwmode() 66 ret = cfg80211_change_iface(rdev, dev, type, &vifparams); in cfg80211_wext_siwmode() 257 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwrts() local 261 wiphy_lock(&rdev->wiphy); in cfg80211_wext_siwrts() 271 err = rdev_set_wiphy_params(rdev, WIPHY_PARAM_RTS_THRESHOLD); in cfg80211_wext_siwrts() 277 wiphy_unlock(&rdev->wiphy); in cfg80211_wext_siwrts() 301 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwfrag() local 305 wiphy_lock(&rdev->wiphy); in cfg80211_wext_siwfrag() 316 err = rdev_set_wiphy_params(rdev, WIPHY_PARAM_FRAG_THRESHOLD); in cfg80211_wext_siwfrag() [all …]
|
D | sme.c | 66 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_conn_scan() local 72 if (rdev->scan_req || rdev->scan_msg) in cfg80211_conn_scan() 128 request->wiphy = &rdev->wiphy; in cfg80211_conn_scan() 131 rdev->scan_req = request; in cfg80211_conn_scan() 133 err = rdev_scan(rdev, request); in cfg80211_conn_scan() 136 nl80211_send_scan_start(rdev, wdev); in cfg80211_conn_scan() 139 rdev->scan_req = NULL; in cfg80211_conn_scan() 148 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_conn_do_work() local 168 if (WARN_ON(!rdev->ops->auth)) in cfg80211_conn_do_work() 174 auth_req.bss = cfg80211_get_bss(&rdev->wiphy, params->channel, in cfg80211_conn_do_work() [all …]
|
D | mesh.c | 102 int __cfg80211_join_mesh(struct cfg80211_registered_device *rdev, in __cfg80211_join_mesh() argument 117 if (!(rdev->wiphy.flags & WIPHY_FLAG_MESH_AUTH) && in __cfg80211_join_mesh() 127 if (!rdev->ops->join_mesh) in __cfg80211_join_mesh() 144 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh() 177 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh() 202 err = cfg80211_chandef_dfs_required(&rdev->wiphy, in __cfg80211_join_mesh() 210 if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef, in __cfg80211_join_mesh() 214 err = rdev_join_mesh(rdev, dev, conf, setup); in __cfg80211_join_mesh() 225 int cfg80211_set_mesh_channel(struct cfg80211_registered_device *rdev, in cfg80211_set_mesh_channel() argument 238 if (rdev->ops->libertas_set_mesh_channel) { in cfg80211_set_mesh_channel() [all …]
|
D | ibss.c | 64 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_ibss_joined() local 84 queue_work(cfg80211_wq, &rdev->event_work); in cfg80211_ibss_joined() 88 int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev, in __cfg80211_join_ibss() argument 96 lockdep_assert_held(&rdev->wiphy.mtx); in __cfg80211_join_ibss() 120 sband = rdev->wiphy.bands[band]; in __cfg80211_join_ibss() 143 err = rdev_join_ibss(rdev, dev, params); in __cfg80211_join_ibss() 158 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in __cfg80211_clear_ibss() local 166 rdev_set_qos_map(rdev, dev, NULL); in __cfg80211_clear_ibss() 172 if (rdev->ops->del_key) in __cfg80211_clear_ibss() 174 rdev_del_key(rdev, dev, -1, i, false, NULL); in __cfg80211_clear_ibss() [all …]
|
D | ocb.c | 18 int __cfg80211_join_ocb(struct cfg80211_registered_device *rdev, in __cfg80211_join_ocb() argument 30 if (!rdev->ops->join_ocb) in __cfg80211_join_ocb() 36 err = rdev_join_ocb(rdev, dev, setup); in __cfg80211_join_ocb() 43 int cfg80211_join_ocb(struct cfg80211_registered_device *rdev, in cfg80211_join_ocb() argument 51 err = __cfg80211_join_ocb(rdev, dev, setup); in cfg80211_join_ocb() 57 int __cfg80211_leave_ocb(struct cfg80211_registered_device *rdev, in __cfg80211_leave_ocb() argument 68 if (!rdev->ops->leave_ocb) in __cfg80211_leave_ocb() 71 err = rdev_leave_ocb(rdev, dev); in __cfg80211_leave_ocb() 78 int cfg80211_leave_ocb(struct cfg80211_registered_device *rdev, in cfg80211_leave_ocb() argument 85 err = __cfg80211_leave_ocb(rdev, dev); in cfg80211_leave_ocb()
|
D | ap.c | 14 static int ___cfg80211_stop_ap(struct cfg80211_registered_device *rdev, in ___cfg80211_stop_ap() argument 23 if (!rdev->ops->stop_ap) in ___cfg80211_stop_ap() 33 err = rdev_stop_ap(rdev, dev, link_id); in ___cfg80211_stop_ap() 40 rdev_set_qos_map(rdev, dev, NULL); in ___cfg80211_stop_ap() 47 cfg80211_sched_dfs_chan_update(rdev); in ___cfg80211_stop_ap() 55 int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev, in __cfg80211_stop_ap() argument 63 return ___cfg80211_stop_ap(rdev, dev, link_id, notify); in __cfg80211_stop_ap() 66 int ret1 = ___cfg80211_stop_ap(rdev, dev, link, notify); in __cfg80211_stop_ap() 76 int cfg80211_stop_ap(struct cfg80211_registered_device *rdev, in cfg80211_stop_ap() argument 84 err = __cfg80211_stop_ap(rdev, dev, link_id, notify); in cfg80211_stop_ap()
|
D | wext-sme.c | 18 int cfg80211_mgd_wext_connect(struct cfg80211_registered_device *rdev, in cfg80211_mgd_wext_connect() argument 57 err = cfg80211_connect(rdev, wdev->netdev, in cfg80211_mgd_wext_connect() 70 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mgd_wext_siwfreq() local 103 err = cfg80211_disconnect(rdev, dev, in cfg80211_mgd_wext_siwfreq() 110 err = cfg80211_mgd_wext_connect(rdev, wdev); in cfg80211_mgd_wext_siwfreq() 152 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mgd_wext_siwessid() local 182 err = cfg80211_disconnect(rdev, dev, in cfg80211_mgd_wext_siwessid() 197 err = cfg80211_mgd_wext_connect(rdev, wdev); in cfg80211_mgd_wext_siwessid() 251 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_mgd_wext_siwap() local 279 err = cfg80211_disconnect(rdev, dev, in cfg80211_mgd_wext_siwap() [all …]
|
D | pmsr.c | 12 static int pmsr_parse_ftm(struct cfg80211_registered_device *rdev, in pmsr_parse_ftm() argument 17 const struct cfg80211_pmsr_capabilities *capa = rdev->wiphy.pmsr_capa; in pmsr_parse_ftm() 22 if (!(rdev->wiphy.pmsr_capa->ftm.bandwidths & BIT(out->chandef.width))) { in pmsr_parse_ftm() 186 static int pmsr_parse_peer(struct cfg80211_registered_device *rdev, in pmsr_parse_peer() argument 218 err = nl80211_parse_chandef(rdev, info, &out->chandef); in pmsr_parse_peer() 237 if (out->report_ap_tsf && !rdev->wiphy.pmsr_capa->report_ap_tsf) { in pmsr_parse_peer() 247 err = pmsr_parse_ftm(rdev, treq, out, info); in pmsr_parse_peer() 265 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_pmsr_start() local 271 if (!rdev->wiphy.pmsr_capa) in nl80211_pmsr_start() 286 if (count > rdev->wiphy.pmsr_capa->max_peers) { in nl80211_pmsr_start() [all …]
|
D | util.c | 278 cfg80211_igtk_cipher_supported(struct cfg80211_registered_device *rdev) in cfg80211_igtk_cipher_supported() argument 280 struct wiphy *wiphy = &rdev->wiphy; in cfg80211_igtk_cipher_supported() 296 bool cfg80211_valid_key_idx(struct cfg80211_registered_device *rdev, in cfg80211_valid_key_idx() argument 303 else if (wiphy_ext_feature_isset(&rdev->wiphy, in cfg80211_valid_key_idx() 305 wiphy_ext_feature_isset(&rdev->wiphy, in cfg80211_valid_key_idx() 308 else if (cfg80211_igtk_cipher_supported(rdev)) in cfg80211_valid_key_idx() 319 int cfg80211_validate_key_settings(struct cfg80211_registered_device *rdev, in cfg80211_validate_key_settings() argument 323 if (!cfg80211_valid_key_idx(rdev, key_idx, pairwise)) in cfg80211_validate_key_settings() 326 if (!pairwise && mac_addr && !(rdev->wiphy.flags & WIPHY_FLAG_IBSS_RSN)) in cfg80211_validate_key_settings() 353 if (wiphy_ext_feature_isset(&rdev->wiphy, in cfg80211_validate_key_settings() [all …]
|
D | reg.c | 2376 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in reg_wdev_chan_valid() local 2422 if (!rdev->ops->get_channel || in reg_wdev_chan_valid() 2423 rdev_get_channel(rdev, wdev, link, &chandef)) in reg_wdev_chan_valid() 2477 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in reg_leave_invalid_chans() local 2480 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) in reg_leave_invalid_chans() 2482 cfg80211_leave(rdev, wdev); in reg_leave_invalid_chans() 2488 struct cfg80211_registered_device *rdev; in reg_check_chans_work() local 2493 list_for_each_entry(rdev, &cfg80211_rdev_list, list) in reg_check_chans_work() 2494 if (!(rdev->wiphy.regulatory_flags & in reg_check_chans_work() 2496 reg_leave_invalid_chans(&rdev->wiphy); in reg_check_chans_work() [all …]
|
D | chan.c | 803 cfg80211_offchan_chain_is_active(struct cfg80211_registered_device *rdev, in cfg80211_offchan_chain_is_active() argument 806 if (!rdev->background_radar_wdev) in cfg80211_offchan_chain_is_active() 809 if (!cfg80211_chandef_valid(&rdev->background_radar_chandef)) in cfg80211_offchan_chain_is_active() 812 return cfg80211_is_sub_chan(&rdev->background_radar_chandef, channel, in cfg80211_offchan_chain_is_active() 819 struct cfg80211_registered_device *rdev; in cfg80211_any_wiphy_oper_chan() local 826 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in cfg80211_any_wiphy_oper_chan() 827 if (!reg_dfs_domain_same(wiphy, &rdev->wiphy)) in cfg80211_any_wiphy_oper_chan() 830 if (cfg80211_is_wiphy_oper_chan(&rdev->wiphy, chan)) in cfg80211_any_wiphy_oper_chan() 833 if (cfg80211_offchan_chain_is_active(rdev, chan)) in cfg80211_any_wiphy_oper_chan() 1293 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_ir_permissive_chan() local [all …]
|
D | debugfs.c | 100 debugfs_create_file(#name, 0444, phyd, &rdev->wiphy, &name## _ops) 102 void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev) in cfg80211_debugfs_rdev_add() argument 104 struct dentry *phyd = rdev->wiphy.debugfsdir; in cfg80211_debugfs_rdev_add()
|
D | debugfs.h | 6 void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev); 9 void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev) {} in cfg80211_debugfs_rdev_add() argument
|
/net/ieee802154/ |
D | rdev-ops.h | 11 rdev_add_virtual_intf_deprecated(struct cfg802154_registered_device *rdev, in rdev_add_virtual_intf_deprecated() argument 16 return rdev->ops->add_virtual_intf_deprecated(&rdev->wpan_phy, name, in rdev_add_virtual_intf_deprecated() 21 rdev_del_virtual_intf_deprecated(struct cfg802154_registered_device *rdev, in rdev_del_virtual_intf_deprecated() argument 24 rdev->ops->del_virtual_intf_deprecated(&rdev->wpan_phy, dev); in rdev_del_virtual_intf_deprecated() 28 rdev_suspend(struct cfg802154_registered_device *rdev) in rdev_suspend() argument 31 trace_802154_rdev_suspend(&rdev->wpan_phy); in rdev_suspend() 32 ret = rdev->ops->suspend(&rdev->wpan_phy); in rdev_suspend() 33 trace_802154_rdev_return_int(&rdev->wpan_phy, ret); in rdev_suspend() 38 rdev_resume(struct cfg802154_registered_device *rdev) in rdev_resume() argument 41 trace_802154_rdev_resume(&rdev->wpan_phy); in rdev_resume() [all …]
|
D | core.c | 70 struct cfg802154_registered_device *result = NULL, *rdev; in cfg802154_rdev_by_wpan_phy_idx() local 74 list_for_each_entry(rdev, &cfg802154_rdev_list, list) { in cfg802154_rdev_by_wpan_phy_idx() 75 if (rdev->wpan_phy_idx == wpan_phy_idx) { in cfg802154_rdev_by_wpan_phy_idx() 76 result = rdev; in cfg802154_rdev_by_wpan_phy_idx() 86 struct cfg802154_registered_device *rdev; in wpan_phy_idx_to_wpan_phy() local 90 rdev = cfg802154_rdev_by_wpan_phy_idx(wpan_phy_idx); in wpan_phy_idx_to_wpan_phy() 91 if (!rdev) in wpan_phy_idx_to_wpan_phy() 93 return &rdev->wpan_phy; in wpan_phy_idx_to_wpan_phy() 100 struct cfg802154_registered_device *rdev; in wpan_phy_new() local 103 alloc_size = sizeof(*rdev) + priv_size; in wpan_phy_new() [all …]
|
D | nl802154.c | 39 struct cfg802154_registered_device *rdev; in __cfg802154_wpan_dev_from_attrs() local 59 list_for_each_entry(rdev, &cfg802154_rdev_list, list) { in __cfg802154_wpan_dev_from_attrs() 62 if (wpan_phy_net(&rdev->wpan_phy) != netns) in __cfg802154_wpan_dev_from_attrs() 65 if (have_wpan_dev_id && rdev->wpan_phy_idx != wpan_phy_idx) in __cfg802154_wpan_dev_from_attrs() 68 list_for_each_entry(wpan_dev, &rdev->wpan_dev_list, list) { in __cfg802154_wpan_dev_from_attrs() 94 struct cfg802154_registered_device *rdev = NULL, *tmp; in __cfg802154_rdev_from_attrs() local 105 rdev = cfg802154_rdev_by_wpan_phy_idx( in __cfg802154_rdev_from_attrs() 126 if (rdev && tmp != rdev) in __cfg802154_rdev_from_attrs() 128 rdev = tmp; in __cfg802154_rdev_from_attrs() 148 if (rdev && tmp != rdev) in __cfg802154_rdev_from_attrs() [all …]
|
D | sysfs.c | 49 struct cfg802154_registered_device *rdev = dev_to_rdev(dev); in wpan_phy_release() local 51 cfg802154_dev_free(rdev); in wpan_phy_release() 64 struct cfg802154_registered_device *rdev = dev_to_rdev(dev); in wpan_phy_suspend() local 67 if (rdev->ops->suspend) { in wpan_phy_suspend() 69 ret = rdev_suspend(rdev); in wpan_phy_suspend() 78 struct cfg802154_registered_device *rdev = dev_to_rdev(dev); in wpan_phy_resume() local 81 if (rdev->ops->resume) { in wpan_phy_resume() 83 ret = rdev_resume(rdev); in wpan_phy_resume()
|