/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 | core.h | 130 cfg80211_rdev_free_wowlan(struct cfg80211_registered_device *rdev) in cfg80211_rdev_free_wowlan() argument 135 if (!rdev->wiphy.wowlan_config) in cfg80211_rdev_free_wowlan() 137 for (i = 0; i < rdev->wiphy.wowlan_config->n_patterns; i++) in cfg80211_rdev_free_wowlan() 138 kfree(rdev->wiphy.wowlan_config->patterns[i].mask); in cfg80211_rdev_free_wowlan() 139 kfree(rdev->wiphy.wowlan_config->patterns); in cfg80211_rdev_free_wowlan() 140 if (rdev->wiphy.wowlan_config->tcp && in cfg80211_rdev_free_wowlan() 141 rdev->wiphy.wowlan_config->tcp->sock) in cfg80211_rdev_free_wowlan() 142 sock_release(rdev->wiphy.wowlan_config->tcp->sock); in cfg80211_rdev_free_wowlan() 143 kfree(rdev->wiphy.wowlan_config->tcp); in cfg80211_rdev_free_wowlan() 144 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 | mlme.c | 29 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_rx_assoc_resp() local 94 nl80211_send_rx_assoc(rdev, dev, data); in cfg80211_rx_assoc_resp() 103 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_auth() local 105 nl80211_send_rx_auth(rdev, wdev->netdev, buf, len, GFP_KERNEL); in cfg80211_process_auth() 113 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_deauth() local 119 nl80211_send_deauth(rdev, wdev->netdev, buf, len, reconnect, GFP_KERNEL); in cfg80211_process_deauth() 132 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_process_disassoc() local 138 nl80211_send_disassoc(rdev, wdev->netdev, buf, len, reconnect, in cfg80211_process_disassoc() 174 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_auth_timeout() local 178 nl80211_send_auth_timeout(rdev, dev, addr, GFP_KERNEL); in cfg80211_auth_timeout() [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 | 40 struct cfg80211_registered_device *rdev; in cfg80211_wext_siwmode() local 45 rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwmode() 67 ret = cfg80211_change_iface(rdev, dev, type, &vifparams); in cfg80211_wext_siwmode() 261 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwrts() local 265 wiphy_lock(&rdev->wiphy); in cfg80211_wext_siwrts() 275 err = rdev_set_wiphy_params(rdev, WIPHY_PARAM_RTS_THRESHOLD); in cfg80211_wext_siwrts() 281 wiphy_unlock(&rdev->wiphy); in cfg80211_wext_siwrts() 307 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_wext_siwfrag() local 311 wiphy_lock(&rdev->wiphy); in cfg80211_wext_siwfrag() 322 err = rdev_set_wiphy_params(rdev, WIPHY_PARAM_FRAG_THRESHOLD); in cfg80211_wext_siwfrag() [all …]
|
D | scan.c | 142 static inline void bss_ref_get(struct cfg80211_registered_device *rdev, in bss_ref_get() argument 145 lockdep_assert_held(&rdev->bss_lock); in bss_ref_get() 156 static inline void bss_ref_put(struct cfg80211_registered_device *rdev, in bss_ref_put() argument 159 lockdep_assert_held(&rdev->bss_lock); in bss_ref_put() 184 static bool __cfg80211_unlink_bss(struct cfg80211_registered_device *rdev, in __cfg80211_unlink_bss() argument 187 lockdep_assert_held(&rdev->bss_lock); in __cfg80211_unlink_bss() 205 rb_erase(&bss->rbn, &rdev->bss_tree); in __cfg80211_unlink_bss() 206 rdev->bss_entries--; in __cfg80211_unlink_bss() 207 WARN_ONCE((rdev->bss_entries == 0) ^ list_empty(&rdev->bss_list), in __cfg80211_unlink_bss() 209 rdev->bss_entries, list_empty(&rdev->bss_list)); in __cfg80211_unlink_bss() [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() 175 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() 176 rdev->wiphy.bands[setup->chandef.chan->band]; in __cfg80211_join_mesh() 199 err = cfg80211_chandef_dfs_required(&rdev->wiphy, in __cfg80211_join_mesh() 207 if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef, in __cfg80211_join_mesh() 211 err = rdev_join_mesh(rdev, dev, conf, setup); in __cfg80211_join_mesh() 222 int cfg80211_set_mesh_channel(struct cfg80211_registered_device *rdev, in cfg80211_set_mesh_channel() argument 235 if (rdev->ops->libertas_set_mesh_channel) { in cfg80211_set_mesh_channel() [all …]
|
D | ibss.c | 63 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in cfg80211_ibss_joined() local 83 queue_work(cfg80211_wq, &rdev->event_work); in cfg80211_ibss_joined() 87 int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev, in __cfg80211_join_ibss() argument 95 lockdep_assert_held(&rdev->wiphy.mtx); in __cfg80211_join_ibss() 119 sband = rdev->wiphy.bands[band]; in __cfg80211_join_ibss() 142 err = rdev_join_ibss(rdev, dev, params); in __cfg80211_join_ibss() 157 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wdev->wiphy); in __cfg80211_clear_ibss() local 165 rdev_set_qos_map(rdev, dev, NULL); in __cfg80211_clear_ibss() 171 if (rdev->ops->del_key) in __cfg80211_clear_ibss() 173 rdev_del_key(rdev, dev, -1, i, false, NULL); in __cfg80211_clear_ibss() [all …]
|
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 | 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() 74 err = rdev_leave_ocb(rdev, dev); in __cfg80211_leave_ocb() 81 int cfg80211_leave_ocb(struct cfg80211_registered_device *rdev, in cfg80211_leave_ocb() argument 88 err = __cfg80211_leave_ocb(rdev, dev); in cfg80211_leave_ocb()
|
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 | 10 static int pmsr_parse_ftm(struct cfg80211_registered_device *rdev, in pmsr_parse_ftm() argument 15 const struct cfg80211_pmsr_capabilities *capa = rdev->wiphy.pmsr_capa; in pmsr_parse_ftm() 20 if (!(rdev->wiphy.pmsr_capa->ftm.bandwidths & BIT(out->chandef.width))) { in pmsr_parse_ftm() 184 static int pmsr_parse_peer(struct cfg80211_registered_device *rdev, in pmsr_parse_peer() argument 216 err = nl80211_parse_chandef(rdev, info, &out->chandef); in pmsr_parse_peer() 235 if (out->report_ap_tsf && !rdev->wiphy.pmsr_capa->report_ap_tsf) { in pmsr_parse_peer() 245 err = pmsr_parse_ftm(rdev, treq, out, info); in pmsr_parse_peer() 263 struct cfg80211_registered_device *rdev = info->user_ptr[0]; in nl80211_pmsr_start() local 269 if (!rdev->wiphy.pmsr_capa) in nl80211_pmsr_start() 284 if (count > rdev->wiphy.pmsr_capa->max_peers) { in nl80211_pmsr_start() [all …]
|
D | util.c | 272 cfg80211_igtk_cipher_supported(struct cfg80211_registered_device *rdev) in cfg80211_igtk_cipher_supported() argument 274 struct wiphy *wiphy = &rdev->wiphy; in cfg80211_igtk_cipher_supported() 290 bool cfg80211_valid_key_idx(struct cfg80211_registered_device *rdev, in cfg80211_valid_key_idx() argument 297 else if (wiphy_ext_feature_isset(&rdev->wiphy, in cfg80211_valid_key_idx() 299 wiphy_ext_feature_isset(&rdev->wiphy, in cfg80211_valid_key_idx() 302 else if (cfg80211_igtk_cipher_supported(rdev)) in cfg80211_valid_key_idx() 313 int cfg80211_validate_key_settings(struct cfg80211_registered_device *rdev, in cfg80211_validate_key_settings() argument 317 if (!cfg80211_valid_key_idx(rdev, key_idx, pairwise)) in cfg80211_validate_key_settings() 320 if (!pairwise && mac_addr && !(rdev->wiphy.flags & WIPHY_FLAG_IBSS_RSN)) in cfg80211_validate_key_settings() 347 if (wiphy_ext_feature_isset(&rdev->wiphy, in cfg80211_validate_key_settings() [all …]
|
D | chan.c | 518 cfg80211_dfs_permissive_check_wdev(struct cfg80211_registered_device *rdev, in cfg80211_dfs_permissive_check_wdev() argument 545 ret = rdev_get_channel(rdev, wdev, link_id, &chandef); in cfg80211_dfs_permissive_check_wdev() 564 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in cfg80211_dfs_permissive_chan() local 566 lockdep_assert_held(&rdev->wiphy.mtx); in cfg80211_dfs_permissive_chan() 568 if (!wiphy_ext_feature_isset(&rdev->wiphy, in cfg80211_dfs_permissive_chan() 580 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) { in cfg80211_dfs_permissive_chan() 581 bool ret = cfg80211_dfs_permissive_check_wdev(rdev, iftype, in cfg80211_dfs_permissive_chan() 879 cfg80211_offchan_chain_is_active(struct cfg80211_registered_device *rdev, in cfg80211_offchan_chain_is_active() argument 882 if (!rdev->background_radar_wdev) in cfg80211_offchan_chain_is_active() 885 if (!cfg80211_chandef_valid(&rdev->background_radar_chandef)) in cfg80211_offchan_chain_is_active() [all …]
|
D | reg.c | 2364 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in reg_wdev_chan_valid() local 2410 if (!rdev->ops->get_channel || in reg_wdev_chan_valid() 2411 rdev_get_channel(rdev, wdev, link, &chandef)) in reg_wdev_chan_valid() 2472 struct cfg80211_registered_device *rdev = wiphy_to_rdev(wiphy); in reg_leave_invalid_chans() local 2475 list_for_each_entry(wdev, &rdev->wiphy.wdev_list, list) in reg_leave_invalid_chans() 2477 cfg80211_leave(rdev, wdev); in reg_leave_invalid_chans() 2483 struct cfg80211_registered_device *rdev; in reg_check_chans_work() local 2488 list_for_each_entry(rdev, &cfg80211_rdev_list, list) in reg_check_chans_work() 2489 reg_leave_invalid_chans(&rdev->wiphy); in reg_check_chans_work() 2537 struct cfg80211_registered_device *rdev; in update_all_wiphy_regulatory() 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 | 41 struct cfg802154_registered_device *rdev; in __cfg802154_wpan_dev_from_attrs() local 61 list_for_each_entry(rdev, &cfg802154_rdev_list, list) { in __cfg802154_wpan_dev_from_attrs() 64 if (wpan_phy_net(&rdev->wpan_phy) != netns) in __cfg802154_wpan_dev_from_attrs() 67 if (have_wpan_dev_id && rdev->wpan_phy_idx != wpan_phy_idx) in __cfg802154_wpan_dev_from_attrs() 70 list_for_each_entry(wpan_dev, &rdev->wpan_dev_list, list) { in __cfg802154_wpan_dev_from_attrs() 96 struct cfg802154_registered_device *rdev = NULL, *tmp; in __cfg802154_rdev_from_attrs() local 107 rdev = cfg802154_rdev_by_wpan_phy_idx( in __cfg802154_rdev_from_attrs() 128 if (rdev && tmp != rdev) in __cfg802154_rdev_from_attrs() 130 rdev = tmp; in __cfg802154_rdev_from_attrs() 150 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()
|