/net/wireless/ |
D | rdev-ops.h | 9 static inline int rdev_suspend(struct cfg80211_registered_device *rdev, in rdev_suspend() argument 13 trace_rdev_suspend(&rdev->wiphy, wowlan); in rdev_suspend() 14 ret = rdev->ops->suspend(&rdev->wiphy, wowlan); in rdev_suspend() 15 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_suspend() 19 static inline int rdev_resume(struct cfg80211_registered_device *rdev) in rdev_resume() argument 22 trace_rdev_resume(&rdev->wiphy); in rdev_resume() 23 ret = rdev->ops->resume(&rdev->wiphy); in rdev_resume() 24 trace_rdev_return_int(&rdev->wiphy, ret); in rdev_resume() 28 static inline void rdev_set_wakeup(struct cfg80211_registered_device *rdev, in rdev_set_wakeup() argument 31 trace_rdev_set_wakeup(&rdev->wiphy, enabled); in rdev_set_wakeup() [all …]
|
D | core.c | 58 struct cfg80211_registered_device *result = NULL, *rdev; in cfg80211_rdev_by_wiphy_idx() local 62 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in cfg80211_rdev_by_wiphy_idx() 63 if (rdev->wiphy_idx == wiphy_idx) { in cfg80211_rdev_by_wiphy_idx() 64 result = rdev; in cfg80211_rdev_by_wiphy_idx() 74 struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); in get_wiphy_idx() local 76 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 | 111 cfg80211_rdev_free_wowlan(struct cfg80211_registered_device *rdev) in cfg80211_rdev_free_wowlan() argument 115 if (!rdev->wowlan) in cfg80211_rdev_free_wowlan() 117 for (i = 0; i < rdev->wowlan->n_patterns; i++) in cfg80211_rdev_free_wowlan() 118 kfree(rdev->wowlan->patterns[i].mask); in cfg80211_rdev_free_wowlan() 119 kfree(rdev->wowlan->patterns); in cfg80211_rdev_free_wowlan() 120 if (rdev->wowlan->tcp && rdev->wowlan->tcp->sock) in cfg80211_rdev_free_wowlan() 121 sock_release(rdev->wowlan->tcp->sock); in cfg80211_rdev_free_wowlan() 122 kfree(rdev->wowlan->tcp); in cfg80211_rdev_free_wowlan() 123 kfree(rdev->wowlan); in cfg80211_rdev_free_wowlan() 175 int cfg80211_switch_netns(struct cfg80211_registered_device *rdev, [all …]
|
D | sysfs.c | 75 struct cfg80211_registered_device *rdev = dev_to_rdev(dev); in wiphy_dev_release() local 77 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->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 = get_seconds(); in wiphy_suspend() 102 if (rdev->wiphy.registered) { in wiphy_suspend() 103 if (!rdev->wowlan) in wiphy_suspend() 104 cfg80211_leave_all(rdev); in wiphy_suspend() [all …]
|
D | nl80211.h | 8 void nl80211_notify_dev_rename(struct cfg80211_registered_device *rdev); 9 void nl80211_send_scan_start(struct cfg80211_registered_device *rdev, 11 void nl80211_send_scan_done(struct cfg80211_registered_device *rdev, 13 void nl80211_send_scan_aborted(struct cfg80211_registered_device *rdev, 15 void nl80211_send_sched_scan(struct cfg80211_registered_device *rdev, 17 void nl80211_send_sched_scan_results(struct cfg80211_registered_device *rdev, 20 void nl80211_send_rx_auth(struct cfg80211_registered_device *rdev, 23 void nl80211_send_rx_assoc(struct cfg80211_registered_device *rdev, 26 void nl80211_send_deauth(struct cfg80211_registered_device *rdev, 29 void nl80211_send_disassoc(struct cfg80211_registered_device *rdev, [all …]
|
D | nl80211.c | 28 static int nl80211_crypto_settings(struct cfg80211_registered_device *rdev, 54 struct cfg80211_registered_device *rdev; in __cfg80211_wdev_from_attrs() local 74 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in __cfg80211_wdev_from_attrs() 77 if (wiphy_net(&rdev->wiphy) != netns) in __cfg80211_wdev_from_attrs() 80 if (have_wdev_id && rdev->wiphy_idx != wiphy_idx) in __cfg80211_wdev_from_attrs() 83 mutex_lock(&rdev->devlist_mtx); in __cfg80211_wdev_from_attrs() 84 list_for_each_entry(wdev, &rdev->wdev_list, list) { in __cfg80211_wdev_from_attrs() 95 mutex_unlock(&rdev->devlist_mtx); in __cfg80211_wdev_from_attrs() 109 struct cfg80211_registered_device *rdev = NULL, *tmp; in __cfg80211_rdev_from_attrs() local 120 rdev = cfg80211_rdev_by_wiphy_idx( in __cfg80211_rdev_from_attrs() [all …]
|
D | wext-sme.c | 17 int cfg80211_mgd_wext_connect(struct cfg80211_registered_device *rdev, in cfg80211_mgd_wext_connect() argument 24 ASSERT_RDEV_LOCK(rdev); in cfg80211_mgd_wext_connect() 57 err = __cfg80211_connect(rdev, wdev->netdev, in cfg80211_mgd_wext_connect() 70 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_mgd_wext_siwfreq() local 90 cfg80211_lock_rdev(rdev); in cfg80211_mgd_wext_siwfreq() 91 mutex_lock(&rdev->devlist_mtx); in cfg80211_mgd_wext_siwfreq() 92 mutex_lock(&rdev->sched_scan_mtx); in cfg80211_mgd_wext_siwfreq() 106 err = __cfg80211_disconnect(rdev, dev, in cfg80211_mgd_wext_siwfreq() 128 chandef.chan = ieee80211_get_channel(&rdev->wiphy, freq); in cfg80211_mgd_wext_siwfreq() 130 err = cfg80211_set_monitor_channel(rdev, &chandef); in cfg80211_mgd_wext_siwfreq() [all …]
|
D | mlme.c | 25 struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); in cfg80211_send_rx_auth() local 30 nl80211_send_rx_auth(rdev, dev, buf, len, GFP_KERNEL); in cfg80211_send_rx_auth() 43 struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); in cfg80211_send_rx_assoc() local 65 nl80211_send_rx_assoc(rdev, dev, buf, len, GFP_KERNEL); in cfg80211_send_rx_assoc() 100 struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); in __cfg80211_send_deauth() local 116 nl80211_send_deauth(rdev, dev, buf, len, GFP_KERNEL); in __cfg80211_send_deauth() 149 struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); in __cfg80211_send_disassoc() local 158 nl80211_send_disassoc(rdev, dev, buf, len, GFP_KERNEL); in __cfg80211_send_disassoc() 194 struct cfg80211_registered_device *rdev = wiphy_to_dev(wiphy); in cfg80211_send_auth_timeout() local 199 nl80211_send_auth_timeout(rdev, dev, addr, GFP_KERNEL); in cfg80211_send_auth_timeout() [all …]
|
D | sme.c | 42 struct cfg80211_registered_device *rdev; in cfg80211_is_all_idle() local 53 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in cfg80211_is_all_idle() 54 cfg80211_lock_rdev(rdev); in cfg80211_is_all_idle() 55 list_for_each_entry(wdev, &rdev->wdev_list, list) { in cfg80211_is_all_idle() 61 cfg80211_unlock_rdev(rdev); in cfg80211_is_all_idle() 81 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_conn_scan() local 86 ASSERT_RDEV_LOCK(rdev); in cfg80211_conn_scan() 88 lockdep_assert_held(&rdev->sched_scan_mtx); in cfg80211_conn_scan() 90 if (rdev->scan_req) in cfg80211_conn_scan() 142 request->wiphy = &rdev->wiphy; in cfg80211_conn_scan() [all …]
|
D | mesh.c | 93 int __cfg80211_join_mesh(struct cfg80211_registered_device *rdev, in __cfg80211_join_mesh() argument 108 if (!(rdev->wiphy.flags & WIPHY_FLAG_MESH_AUTH) && in __cfg80211_join_mesh() 118 if (!rdev->ops->join_mesh) in __cfg80211_join_mesh() 135 sband = rdev->wiphy.bands[band]; in __cfg80211_join_mesh() 162 if (!cfg80211_reg_can_beacon(&rdev->wiphy, &setup->chandef)) in __cfg80211_join_mesh() 165 err = cfg80211_can_use_chan(rdev, wdev, setup->chandef.chan, in __cfg80211_join_mesh() 170 err = rdev_join_mesh(rdev, dev, conf, setup); in __cfg80211_join_mesh() 180 int cfg80211_join_mesh(struct cfg80211_registered_device *rdev, in cfg80211_join_mesh() argument 188 mutex_lock(&rdev->devlist_mtx); in cfg80211_join_mesh() 190 err = __cfg80211_join_mesh(rdev, dev, setup, conf); in cfg80211_join_mesh() [all …]
|
D | ibss.c | 61 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_ibss_joined() local 79 queue_work(cfg80211_wq, &rdev->event_work); in cfg80211_ibss_joined() 83 int __cfg80211_join_ibss(struct cfg80211_registered_device *rdev, in __cfg80211_join_ibss() argument 103 rdev->wiphy.bands[params->chandef.chan->band]; in __cfg80211_join_ibss() 125 err = cfg80211_can_use_chan(rdev, wdev, params->chandef.chan, in __cfg80211_join_ibss() 134 err = rdev_join_ibss(rdev, dev, params); in __cfg80211_join_ibss() 147 int cfg80211_join_ibss(struct cfg80211_registered_device *rdev, in cfg80211_join_ibss() argument 155 mutex_lock(&rdev->devlist_mtx); in cfg80211_join_ibss() 157 err = __cfg80211_join_ibss(rdev, dev, params, connkeys); in cfg80211_join_ibss() 159 mutex_unlock(&rdev->devlist_mtx); in cfg80211_join_ibss() [all …]
|
D | ethtool.c | 46 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_get_ringparam() local 50 if (rdev->ops->get_ringparam) in cfg80211_get_ringparam() 51 rdev_get_ringparam(rdev, &rp->tx_pending, &rp->tx_max_pending, in cfg80211_get_ringparam() 59 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_set_ringparam() local 64 if (rdev->ops->set_ringparam) in cfg80211_set_ringparam() 65 return rdev_set_ringparam(rdev, rp->tx_pending, rp->rx_pending); in cfg80211_set_ringparam() 73 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_get_sset_count() local 74 if (rdev->ops->get_et_sset_count) in cfg80211_get_sset_count() 75 return rdev_get_et_sset_count(rdev, dev, sset); in cfg80211_get_sset_count() 83 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_get_stats() local [all …]
|
D | wext-compat.c | 72 struct cfg80211_registered_device *rdev; in cfg80211_wext_siwmode() local 77 rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_wext_siwmode() 101 cfg80211_lock_rdev(rdev); in cfg80211_wext_siwmode() 102 ret = cfg80211_change_iface(rdev, dev, type, NULL, &vifparams); in cfg80211_wext_siwmode() 103 cfg80211_unlock_rdev(rdev); in cfg80211_wext_siwmode() 294 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_wext_siwrts() local 305 err = rdev_set_wiphy_params(rdev, WIPHY_PARAM_RTS_THRESHOLD); in cfg80211_wext_siwrts() 332 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_wext_siwfrag() local 345 err = rdev_set_wiphy_params(rdev, WIPHY_PARAM_FRAG_THRESHOLD); in cfg80211_wext_siwfrag() 372 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_wext_siwretry() local [all …]
|
D | scan.c | 164 void ___cfg80211_scan_done(struct cfg80211_registered_device *rdev, bool leak) in ___cfg80211_scan_done() argument 172 lockdep_assert_held(&rdev->sched_scan_mtx); in ___cfg80211_scan_done() 174 request = rdev->scan_req; in ___cfg80211_scan_done() 190 nl80211_send_scan_aborted(rdev, wdev); in ___cfg80211_scan_done() 194 spin_lock_bh(&rdev->bss_lock); in ___cfg80211_scan_done() 195 __cfg80211_bss_expire(rdev, request->scan_start); in ___cfg80211_scan_done() 196 spin_unlock_bh(&rdev->bss_lock); in ___cfg80211_scan_done() 198 nl80211_send_scan_done(rdev, wdev); in ___cfg80211_scan_done() 212 rdev->scan_req = NULL; in ___cfg80211_scan_done() 228 struct cfg80211_registered_device *rdev; in __cfg80211_scan_done() local [all …]
|
D | util.c | 185 int cfg80211_validate_key_settings(struct cfg80211_registered_device *rdev, in cfg80211_validate_key_settings() argument 192 if (!pairwise && mac_addr && !(rdev->wiphy.flags & WIPHY_FLAG_IBSS_RSN)) in cfg80211_validate_key_settings() 258 if (!cfg80211_supported_cipher_suite(&rdev->wiphy, params->cipher)) in cfg80211_validate_key_settings() 703 struct cfg80211_registered_device *rdev = wiphy_to_dev(wdev->wiphy); in cfg80211_upload_connect_keys() local 713 if (rdev_add_key(rdev, dev, i, false, NULL, in cfg80211_upload_connect_keys() 719 if (rdev_set_default_key(rdev, dev, i, true, true)) { in cfg80211_upload_connect_keys() 724 if (rdev_set_default_mgmt_key(rdev, dev, i)) in cfg80211_upload_connect_keys() 781 void cfg80211_process_rdev_events(struct cfg80211_registered_device *rdev) in cfg80211_process_rdev_events() argument 786 ASSERT_RDEV_LOCK(rdev); in cfg80211_process_rdev_events() 788 mutex_lock(&rdev->devlist_mtx); in cfg80211_process_rdev_events() [all …]
|
D | ap.c | 9 static int __cfg80211_stop_ap(struct cfg80211_registered_device *rdev, in __cfg80211_stop_ap() argument 17 if (!rdev->ops->stop_ap) in __cfg80211_stop_ap() 27 err = rdev_stop_ap(rdev, dev); in __cfg80211_stop_ap() 37 int cfg80211_stop_ap(struct cfg80211_registered_device *rdev, in cfg80211_stop_ap() argument 44 err = __cfg80211_stop_ap(rdev, dev); in cfg80211_stop_ap()
|
D | debugfs.h | 5 void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev); 8 void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev) {} in cfg80211_debugfs_rdev_add() argument
|
D | debugfs.c | 104 debugfs_create_file(#name, S_IRUGO, phyd, &rdev->wiphy, &name## _ops); 106 void cfg80211_debugfs_rdev_add(struct cfg80211_registered_device *rdev) in cfg80211_debugfs_rdev_add() argument 108 struct dentry *phyd = rdev->wiphy.debugfsdir; in cfg80211_debugfs_rdev_add()
|
D | reg.c | 1225 struct cfg80211_registered_device *rdev; in update_all_wiphy_regulatory() local 1230 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in update_all_wiphy_regulatory() 1231 wiphy = &rdev->wiphy; in update_all_wiphy_regulatory() 1607 struct cfg80211_registered_device *rdev; in reg_process_pending_beacon_hints() local 1621 list_for_each_entry(rdev, &cfg80211_rdev_list, list) in reg_process_pending_beacon_hints() 1622 wiphy_update_new_beacon(&rdev->wiphy, pending_beacon); in reg_process_pending_beacon_hints() 1859 struct cfg80211_registered_device *rdev; in restore_regulatory_settings() local 1898 list_for_each_entry(rdev, &cfg80211_rdev_list, list) { in restore_regulatory_settings() 1899 if (rdev->wiphy.flags & WIPHY_FLAG_CUSTOM_REGULATORY) in restore_regulatory_settings() 1900 restore_custom_reg_settings(&rdev->wiphy); in restore_regulatory_settings() [all …]
|
D | chan.c | 437 int cfg80211_set_monitor_channel(struct cfg80211_registered_device *rdev, in cfg80211_set_monitor_channel() argument 440 if (!rdev->ops->set_monitor_channel) in cfg80211_set_monitor_channel() 442 if (!cfg80211_has_monitors_only(rdev)) in cfg80211_set_monitor_channel() 445 return rdev_set_monitor_channel(rdev, chandef); in cfg80211_set_monitor_channel()
|
/net/9p/ |
D | client.c | 2099 dev_t rdev, kgid_t gid, struct p9_qid *qid) in p9_client_mknod_dotl() argument 2108 "minor %d\n", fid->fid, name, mode, MAJOR(rdev), MINOR(rdev)); in p9_client_mknod_dotl() 2110 MAJOR(rdev), MINOR(rdev), gid); in p9_client_mknod_dotl()
|