Home
last modified time | relevance | path

Searched refs:hw (Results 1 – 25 of 53) sorted by relevance

123

/net/mac80211/
Dmain.c99 offchannel_flag = local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
116 local->hw.conf.flags |= IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
118 local->hw.conf.flags &= ~IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
120 offchannel_flag ^= local->hw.conf.flags & IEEE80211_CONF_OFFCHANNEL; in ieee80211_hw_conf_chan()
123 !cfg80211_chandef_identical(&local->hw.conf.chandef, in ieee80211_hw_conf_chan()
125 local->hw.conf.chandef = chandef; in ieee80211_hw_conf_chan()
129 if (!conf_is_ht(&local->hw.conf)) { in ieee80211_hw_conf_chan()
135 local->hw.conf.smps_mode = IEEE80211_SMPS_STATIC; in ieee80211_hw_conf_chan()
136 } else if (local->hw.conf.smps_mode != local->smps_mode) { in ieee80211_hw_conf_chan()
137 local->hw.conf.smps_mode = local->smps_mode; in ieee80211_hw_conf_chan()
[all …]
Ddriver-ops.h35 local->ops->tx(&local->hw, control, skb); in drv_tx()
43 local->ops->sync_rx_queues(&local->hw); in drv_sync_rx_queues()
54 local->ops->get_et_strings(&local->hw, &sdata->vif, sset, data); in drv_get_et_strings()
66 local->ops->get_et_stats(&local->hw, &sdata->vif, stats, data); in drv_get_et_stats()
78 rv = local->ops->get_et_sset_count(&local->hw, &sdata->vif, in drv_get_et_sset_count()
97 ret = local->ops->suspend(&local->hw, wowlan); in drv_suspend()
109 ret = local->ops->resume(&local->hw); in drv_resume()
123 local->ops->set_wakeup(&local->hw, enabled); in drv_set_wakeup()
145 ret = local->ops->config(&local->hw, changed); in drv_config()
177 local->ops->bss_info_changed(&local->hw, &sdata->vif, info, changed); in drv_bss_info_changed()
[all …]
Dutil.c47 return &local->hw; in wiphy_to_ieee80211_hw()
130 __le16 ieee80211_generic_frame_duration(struct ieee80211_hw *hw, in ieee80211_generic_frame_duration() argument
157 __le16 ieee80211_rts_duration(struct ieee80211_hw *hw, in ieee80211_rts_duration() argument
161 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_rts_duration()
169 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration()
200 __le16 ieee80211_ctstoself_duration(struct ieee80211_hw *hw, in ieee80211_ctstoself_duration() argument
205 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_ctstoself_duration()
213 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration()
250 if (local->hw.queues < IEEE80211_NUM_ACS) in ieee80211_propagate_queue_wake()
275 static void __ieee80211_wake_queue(struct ieee80211_hw *hw, int queue, in __ieee80211_wake_queue() argument
[all …]
Dpm.c14 cfg80211_sched_scan_stopped_rtnl(local->hw.wiphy, 0); in ieee80211_sched_scan_cancel()
17 int __ieee80211_suspend(struct ieee80211_hw *hw, struct cfg80211_wowlan *wowlan) in __ieee80211_suspend() argument
19 struct ieee80211_local *local = hw_to_local(hw); in __ieee80211_suspend()
34 if (ieee80211_hw_check(hw, AMPDU_AGGREGATION) && in __ieee80211_suspend()
49 ieee80211_stop_queues_by_reason(hw, in __ieee80211_suspend()
103 !(local->hw.conf.flags & IEEE80211_CONF_PS)) { in __ieee80211_suspend()
104 local->hw.conf.flags |= IEEE80211_CONF_PS; in __ieee80211_suspend()
114 if (ieee80211_hw_check(hw, AMPDU_AGGREGATION)) { in __ieee80211_suspend()
122 ieee80211_wake_queues_by_reason(hw, in __ieee80211_suspend()
132 ieee80211_wake_queues_by_reason(hw, in __ieee80211_suspend()
Ddriver-ops.c26 ret = local->ops->start(&local->hw); in drv_start()
43 local->ops->stop(&local->hw); in drv_stop()
64 !ieee80211_hw_check(&local->hw, WANT_MONITOR_VIF) && in drv_add_interface()
69 ret = local->ops->add_interface(&local->hw, &sdata->vif); in drv_add_interface()
90 ret = local->ops->change_interface(&local->hw, &sdata->vif, type, p2p); in drv_change_interface()
104 local->ops->remove_interface(&local->hw, &sdata->vif); in drv_remove_interface()
126 ret = local->ops->sta_state(&local->hw, &sdata->vif, &sta->sta, in drv_sta_state()
155 local->ops->sta_rc_update(&local->hw, &sdata->vif, in drv_sta_rc_update()
185 ret = local->ops->conf_tx(&local->hw, &sdata->vif, in drv_conf_tx()
203 ret = local->ops->get_tsf(&local->hw, &sdata->vif); in drv_get_tsf()
[all …]
Dstatus.c24 void ieee80211_tx_status_irqsafe(struct ieee80211_hw *hw, in ieee80211_tx_status_irqsafe() argument
27 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_tx_status_irqsafe()
38 ieee80211_free_txskb(hw, skb); in ieee80211_tx_status_irqsafe()
56 ieee80211_free_txskb(&local->hw, skb); in ieee80211_handle_filtered_frame()
170 ieee80211_free_txskb(&local->hw, skb); in ieee80211_handle_filtered_frame()
191 if (ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS)) in ieee80211_frame_acked()
231 ieee80211_queue_work(&local->hw, &sdata->recalc_smps); in ieee80211_frame_acked()
357 u16 known = local->hw.radiotap_vht_details & in ieee80211_add_tx_radiotap_header()
425 WARN_ON(!ieee80211_hw_check(&local->hw, REPORTS_TX_ACK_STATUS)); in ieee80211_tdls_td_tx_handle()
572 if (ieee80211_hw_check(&sta->local->hw, REPORTS_LOW_ACK)) in ieee80211_lost_packet()
[all …]
Dscan.c38 cfg80211_put_bss(local->hw.wiphy, in ieee80211_rx_bss_put()
76 if (ieee80211_hw_check(&local->hw, SIGNAL_DBM)) in ieee80211_bss_info_update()
78 else if (ieee80211_hw_check(&local->hw, SIGNAL_UNSPEC)) in ieee80211_bss_info_update()
79 bss_meta.signal = (rx_status->signal * 100) / local->hw.max_signal; in ieee80211_bss_info_update()
102 cbss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta, in ieee80211_bss_info_update()
108 <= local->hw.wiphy->max_adj_channel_rssi_comp; in ieee80211_bss_info_update()
176 local->hw.wiphy->bands[rx_status->band]; in ieee80211_bss_info_update()
238 channel = ieee80211_get_channel(local->hw.wiphy, rx_status->freq); in ieee80211_scan_rx()
282 if (ieee80211_hw_check(&local->hw, SINGLE_SCAN_ON_ALL_BANDS)) { in ieee80211_prep_hw_scan()
329 static void __ieee80211_scan_completed(struct ieee80211_hw *hw, bool aborted) in __ieee80211_scan_completed() argument
[all …]
Dled.c38 wiphy_name(local->hw.wiphy)); in ieee80211_alloc_led_names()
40 wiphy_name(local->hw.wiphy)); in ieee80211_alloc_led_names()
42 wiphy_name(local->hw.wiphy)); in ieee80211_alloc_led_names()
44 wiphy_name(local->hw.wiphy)); in ieee80211_alloc_led_names()
207 const char *__ieee80211_get_radio_led_name(struct ieee80211_hw *hw) in __ieee80211_get_radio_led_name() argument
209 struct ieee80211_local *local = hw_to_local(hw); in __ieee80211_get_radio_led_name()
215 const char *__ieee80211_get_assoc_led_name(struct ieee80211_hw *hw) in __ieee80211_get_assoc_led_name() argument
217 struct ieee80211_local *local = hw_to_local(hw); in __ieee80211_get_assoc_led_name()
223 const char *__ieee80211_get_tx_led_name(struct ieee80211_hw *hw) in __ieee80211_get_tx_led_name() argument
225 struct ieee80211_local *local = hw_to_local(hw); in __ieee80211_get_tx_led_name()
[all …]
Doffchannel.c42 if (local->hw.conf.flags & IEEE80211_CONF_PS) { in ieee80211_offchannel_ps_enable()
44 local->hw.conf.flags &= ~IEEE80211_CONF_PS; in ieee80211_offchannel_ps_enable()
49 !ieee80211_hw_check(&local->hw, PS_NULLFUNC_STACK)) in ieee80211_offchannel_ps_enable()
87 local->hw.conf.flags |= IEEE80211_CONF_PS; in ieee80211_offchannel_ps_disable()
89 } else if (local->hw.conf.dynamic_ps_timeout > 0) { in ieee80211_offchannel_ps_disable()
98 msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout)); in ieee80211_offchannel_ps_disable()
121 ieee80211_stop_queues_by_reason(&local->hw, IEEE80211_MAX_QUEUE_MAP, in ieee80211_offchannel_stop_vifs()
186 ieee80211_wake_queues_by_reason(&local->hw, IEEE80211_MAX_QUEUE_MAP, in ieee80211_offchannel_return()
198 ieee80211_free_txskb(&roc->sdata->local->hw, roc->frame); in ieee80211_roc_notify_destroy()
296 void ieee80211_ready_on_channel(struct ieee80211_hw *hw) in ieee80211_ready_on_channel() argument
[all …]
Dtx.c84 sband = local->hw.wiphy->bands[info->band]; in ieee80211_duration()
219 if (!ieee80211_hw_check(&local->hw, SUPPORTS_PS)) in ieee80211_tx_h_dynamic_ps()
223 if (ieee80211_hw_check(&local->hw, SUPPORTS_DYNAMIC_PS)) in ieee80211_tx_h_dynamic_ps()
227 if (local->hw.conf.dynamic_ps_timeout <= 0) in ieee80211_tx_h_dynamic_ps()
265 if (local->hw.conf.flags & IEEE80211_CONF_PS) { in ieee80211_tx_h_dynamic_ps()
266 ieee80211_stop_queues_by_reason(&local->hw, in ieee80211_tx_h_dynamic_ps()
271 ieee80211_queue_work(&local->hw, in ieee80211_tx_h_dynamic_ps()
280 msecs_to_jiffies(local->hw.conf.dynamic_ps_timeout)); in ieee80211_tx_h_dynamic_ps()
372 ieee80211_free_txskb(&local->hw, skb); in purge_old_ps_buffers()
389 ieee80211_free_txskb(&local->hw, skb); in purge_old_ps_buffers()
[all …]
Diface.c89 if (!(local->hw.conf.flags & IEEE80211_CONF_IDLE)) in __ieee80211_idle_off()
92 local->hw.conf.flags &= ~IEEE80211_CONF_IDLE; in __ieee80211_idle_off()
98 if (local->hw.conf.flags & IEEE80211_CONF_IDLE) in __ieee80211_idle_on()
103 local->hw.conf.flags |= IEEE80211_CONF_IDLE; in __ieee80211_idle_on()
163 if (is_zero_ether_addr(local->hw.wiphy->addr_mask)) in ieee80211_verify_mac()
171 m = local->hw.wiphy->addr_mask; in ieee80211_verify_mac()
319 int n_queues = sdata->local->hw.queues; in ieee80211_check_queues()
339 !ieee80211_hw_check(&sdata->local->hw, QUEUE_CONTROL)) { in ieee80211_check_queues()
379 if (ieee80211_hw_check(&local->hw, QUEUE_CONTROL)) in ieee80211_set_default_queues()
381 else if (local->hw.queues >= IEEE80211_NUM_ACS) in ieee80211_set_default_queues()
[all …]
Dmlme.c116 if (ieee80211_hw_check(&sdata->local->hw, CONNECTION_MONITOR)) in ieee80211_sta_reset_beacon_monitor()
133 if (ieee80211_hw_check(&sdata->local->hw, CONNECTION_MONITOR)) in ieee80211_sta_reset_conn_monitor()
285 while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_determine_chantype()
344 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_config_bw()
617 sband = local->hw.wiphy->bands[chan->band]; in ieee80211_send_assoc()
644 skb = alloc_skb(local->hw.extra_tx_headroom + in ieee80211_send_assoc()
659 skb_reserve(skb, local->hw.extra_tx_headroom); in ieee80211_send_assoc()
672 ieee80211_hw_check(&local->hw, SPECTRUM_MGMT)) in ieee80211_send_assoc()
689 cpu_to_le16(local->hw.conf.listen_interval); in ieee80211_send_assoc()
698 cpu_to_le16(local->hw.conf.listen_interval); in ieee80211_send_assoc()
[all …]
Drc80211_minstrel.c137 if (mp->hw->max_rates >= 3) { in minstrel_update_rates()
142 if (mp->hw->max_rates >= 2) { in minstrel_update_rates()
153 rate_control_set_rates(mp->hw, mi->sta, ratetbl); in minstrel_update_rates()
371 if (mp->hw->max_rates == 1 && in minstrel_get_rate()
504 rate_flags = ieee80211_chandef_rate_flags(&mp->hw->conf.chandef); in minstrel_rate_init()
581 struct ieee80211_hw *hw = mp->hw; in minstrel_alloc_sta() local
590 sband = hw->wiphy->bands[i]; in minstrel_alloc_sta()
628 u32 rate_flags = ieee80211_chandef_rate_flags(&mp->hw->conf.chandef); in minstrel_init_cck_rates()
631 sband = mp->hw->wiphy->bands[NL80211_BAND_2GHZ]; in minstrel_init_cck_rates()
655 minstrel_alloc(struct ieee80211_hw *hw, struct dentry *debugfsdir) in minstrel_alloc() argument
[all …]
Dibss.c95 sband = local->hw.wiphy->bands[chandef->chan->band]; in ieee80211_ibss_build_presp()
207 if (local->hw.queues >= IEEE80211_NUM_ACS) in ieee80211_ibss_build_presp()
269 if (!cfg80211_reg_can_beacon(local->hw.wiphy, &chandef, in __ieee80211_sta_join_ibss()
282 if (!cfg80211_reg_can_beacon(local->hw.wiphy, &chandef, in __ieee80211_sta_join_ibss()
290 err = cfg80211_chandef_dfs_required(sdata->local->hw.wiphy, in __ieee80211_sta_join_ibss()
391 bss = cfg80211_inform_bss_frame_data(local->hw.wiphy, &bss_meta, mgmt, in __ieee80211_sta_join_ibss()
394 cfg80211_put_bss(local->hw.wiphy, bss); in __ieee80211_sta_join_ibss()
446 sband = sdata->local->hw.wiphy->bands[cbss->channel->band]; in ieee80211_sta_join_ibss()
501 cbss = cfg80211_get_bss(sdata->local->hw.wiphy, ifibss->chandef.chan, in ieee80211_ibss_csa_beacon()
515 cfg80211_put_bss(sdata->local->hw.wiphy, cbss); in ieee80211_ibss_csa_beacon()
[all …]
Drate.c55 sband = local->hw.wiphy->bands[chanctx_conf->def.chan->band]; in rate_control_rate_init()
241 debugfsdir = debugfs_create_dir("rc", local->hw.wiphy->debugfsdir); in rate_control_alloc()
246 ref->priv = ref->ops->alloc(&local->hw, debugfsdir); in rate_control_alloc()
284 sband = local->hw.wiphy->bands[band]; in ieee80211_check_rate_mask()
331 static void __rate_control_send_low(struct ieee80211_hw *hw, in __rate_control_send_low() argument
339 ieee80211_chandef_rate_flags(&hw->conf.chandef); in __rate_control_send_low()
366 1 : hw->max_rate_tries; in __rate_control_send_low()
383 __rate_control_send_low(txrc->hw, sband, pubsta, info, in rate_control_send_low()
867 sband = sdata->local->hw.wiphy->bands[info->band]; in ieee80211_get_tx_rates()
873 __rate_control_send_low(&sdata->local->hw, sband, sta, info, in ieee80211_get_tx_rates()
[all …]
Drx.c152 if (ieee80211_hw_check(&local->hw, SIGNAL_DBM)) in ieee80211_rx_radiotap_hdrlen()
175 if (local->hw.radiotap_timestamp.units_pos >= 0) { in ieee80211_rx_radiotap_hdrlen()
242 ieee80211_queue_work(&sdata->local->hw, &sdata->work); in ieee80211_handle_mu_mimo_mon()
274 if (!(has_fcs && ieee80211_hw_check(&local->hw, RX_INCLUDES_FCS))) in ieee80211_add_rx_radiotap_header()
328 if (has_fcs && ieee80211_hw_check(&local->hw, RX_INCLUDES_FCS)) in ieee80211_add_rx_radiotap_header()
378 if (ieee80211_hw_check(&local->hw, SIGNAL_DBM) && in ieee80211_add_rx_radiotap_header()
409 *pos++ = local->hw.radiotap_mcs_details; in ieee80211_add_rx_radiotap_header()
453 u16 known = local->hw.radiotap_vht_details; in ieee80211_add_rx_radiotap_header()
494 if (local->hw.radiotap_timestamp.units_pos >= 0) { in ieee80211_add_rx_radiotap_header()
508 if (local->hw.radiotap_timestamp.accuracy >= 0) { in ieee80211_add_rx_radiotap_header()
[all …]
/net/mac802154/
Dutil.c22 void ieee802154_wake_queue(struct ieee802154_hw *hw) in ieee802154_wake_queue() argument
24 struct ieee802154_local *local = hw_to_local(hw); in ieee802154_wake_queue()
38 void ieee802154_stop_queue(struct ieee802154_hw *hw) in ieee802154_stop_queue() argument
40 struct ieee802154_local *local = hw_to_local(hw); in ieee802154_stop_queue()
59 ieee802154_wake_queue(&local->hw); in ieee802154_xmit_ifs_timer()
64 void ieee802154_xmit_complete(struct ieee802154_hw *hw, struct sk_buff *skb, in ieee802154_xmit_complete() argument
68 struct ieee802154_local *local = hw_to_local(hw); in ieee802154_xmit_complete()
75 if (hw->flags & IEEE802154_HW_TX_OMIT_CKSUM) in ieee802154_xmit_complete()
83 hw->phy->lifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete()
87 hw->phy->sifs_period * NSEC_PER_USEC, in ieee802154_xmit_complete()
[all …]
Ddriver-ops.h16 return local->ops->xmit_async(&local->hw, skb); in drv_xmit_async()
24 return local->ops->xmit_sync(&local->hw, skb); in drv_xmit_sync()
36 ret = local->ops->start(&local->hw); in drv_start()
46 local->ops->stop(&local->hw); in drv_stop()
66 ret = local->ops->set_channel(&local->hw, page, channel); in drv_set_channel()
83 ret = local->ops->set_txpower(&local->hw, mbm); in drv_set_tx_power()
101 ret = local->ops->set_cca_mode(&local->hw, cca); in drv_set_cca_mode()
118 ret = local->ops->set_lbt(&local->hw, mode); in drv_set_lbt_mode()
136 ret = local->ops->set_cca_ed_level(&local->hw, mbm); in drv_set_cca_ed_level()
156 ret = local->ops->set_hw_addr_filt(&local->hw, &filt, in drv_set_pan_id()
[all …]
Dmain.c95 local->hw.phy = local->phy; in ieee802154_alloc_hw()
96 local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN); in ieee802154_alloc_hw()
122 return &local->hw; in ieee802154_alloc_hw()
126 void ieee802154_free_hw(struct ieee802154_hw *hw) in ieee802154_free_hw() argument
128 struct ieee802154_local *local = hw_to_local(hw); in ieee802154_free_hw()
150 int ieee802154_register_hw(struct ieee802154_hw *hw) in ieee802154_register_hw() argument
152 struct ieee802154_local *local = hw_to_local(hw); in ieee802154_register_hw()
166 wpan_phy_set_dev(local->phy, local->hw.parent); in ieee802154_register_hw()
170 if (!(hw->flags & IEEE802154_HW_CSMA_PARAMS)) { in ieee802154_register_hw()
179 if (!(hw->flags & IEEE802154_HW_FRAME_RETRIES)) { in ieee802154_register_hw()
[all …]
Dtx.c45 ieee802154_xmit_complete(&local->hw, skb, false); in ieee802154_xmit_worker()
54 ieee802154_wake_queue(&local->hw); in ieee802154_xmit_worker()
65 if (!(local->hw.flags & IEEE802154_HW_TX_OMIT_CKSUM)) { in ieee802154_tx()
85 ieee802154_stop_queue(&local->hw); in ieee802154_tx()
91 ieee802154_wake_queue(&local->hw); in ieee802154_tx()
Diface.c159 if (local->hw.flags & IEEE802154_HW_PROMISCUOUS) { in ieee802154_setup_hw()
166 if (local->hw.flags & IEEE802154_HW_AFILT) { in ieee802154_setup_hw()
180 if (local->hw.flags & IEEE802154_HW_LBT) { in ieee802154_setup_hw()
186 if (local->hw.flags & IEEE802154_HW_CSMA_PARAMS) { in ieee802154_setup_hw()
194 if (local->hw.flags & IEEE802154_HW_FRAME_RETRIES) { in ieee802154_setup_hw()
240 if (local->hw.flags & IEEE802154_HW_PROMISCUOUS) { in ieee802154_check_mac_settings()
245 if (local->hw.flags & IEEE802154_HW_AFILT) { in ieee802154_check_mac_settings()
252 if (local->hw.flags & IEEE802154_HW_CSMA_PARAMS) { in ieee802154_check_mac_settings()
259 if (local->hw.flags & IEEE802154_HW_FRAME_RETRIES) { in ieee802154_check_mac_settings()
264 if (local->hw.flags & IEEE802154_HW_LBT) { in ieee802154_check_mac_settings()
[all …]
Drx.c133 u64 hw = swab64((__force u64)addr->extended_addr); in ieee802154_print_addr() local
135 pr_debug("%s is hardware: %8phC\n", name, &hw); in ieee802154_print_addr()
270 if (local->hw.flags & IEEE802154_HW_RX_OMIT_CKSUM) { in ieee802154_rx()
282 if (local->hw.flags & IEEE802154_HW_RX_DROP_BAD_CKSUM) { in ieee802154_rx()
302 ieee802154_rx_irqsafe(struct ieee802154_hw *hw, struct sk_buff *skb, u8 lqi) in ieee802154_rx_irqsafe() argument
304 struct ieee802154_local *local = hw_to_local(hw); in ieee802154_rx_irqsafe()
Dieee802154_i.h34 struct ieee802154_hw hw; member
106 hw_to_local(struct ieee802154_hw *hw) in hw_to_local() argument
108 return container_of(hw, struct ieee802154_local, hw); in hw_to_local()
/net/netfilter/ipvs/
Dip_vs_fo.c30 int hw = 0; /* Track highest weight */ in ip_vs_fo_schedule() local
39 atomic_read(&dest->weight) > hw) { in ip_vs_fo_schedule()
41 hw = atomic_read(&dest->weight); in ip_vs_fo_schedule()
Dip_vs_ovf.c34 int hw = 0, w; in ip_vs_ovf_schedule() local
46 if (!h || w > hw) { in ip_vs_ovf_schedule()
48 hw = w; in ip_vs_ovf_schedule()

123