Home
last modified time | relevance | path

Searched refs:local (Results 1 – 25 of 592) sorted by relevance

12345678910>>...24

/linux-3.4.99/net/mac80211/
Ddriver-ops.h23 static inline void drv_tx(struct ieee80211_local *local, struct sk_buff *skb) in drv_tx() argument
25 local->ops->tx(&local->hw, skb); in drv_tx()
28 static inline void drv_tx_frags(struct ieee80211_local *local, in drv_tx_frags() argument
33 local->ops->tx_frags(&local->hw, vif, sta, skbs); in drv_tx_frags()
36 static inline int drv_start(struct ieee80211_local *local) in drv_start() argument
42 trace_drv_start(local); in drv_start()
43 local->started = true; in drv_start()
45 ret = local->ops->start(&local->hw); in drv_start()
46 trace_drv_return_int(local, ret); in drv_start()
50 static inline void drv_stop(struct ieee80211_local *local) in drv_stop() argument
[all …]
Dled.c15 void ieee80211_led_rx(struct ieee80211_local *local) in ieee80211_led_rx() argument
17 if (unlikely(!local->rx_led)) in ieee80211_led_rx()
19 if (local->rx_led_counter++ % 2 == 0) in ieee80211_led_rx()
20 led_trigger_event(local->rx_led, LED_OFF); in ieee80211_led_rx()
22 led_trigger_event(local->rx_led, LED_FULL); in ieee80211_led_rx()
26 void ieee80211_led_tx(struct ieee80211_local *local, int q) in ieee80211_led_tx() argument
28 if (unlikely(!local->tx_led)) in ieee80211_led_tx()
31 local->tx_led_counter += 2*q-1; in ieee80211_led_tx()
32 if (local->tx_led_counter % 2 == 0) in ieee80211_led_tx()
33 led_trigger_event(local->tx_led, LED_OFF); in ieee80211_led_tx()
[all …]
Dscan.c33 ieee80211_rx_bss_get(struct ieee80211_local *local, u8 *bssid, int freq, in ieee80211_rx_bss_get() argument
38 cbss = cfg80211_get_bss(local->hw.wiphy, in ieee80211_rx_bss_get()
39 ieee80211_get_channel(local->hw.wiphy, freq), in ieee80211_rx_bss_get()
54 void ieee80211_rx_bss_put(struct ieee80211_local *local, in ieee80211_rx_bss_put() argument
80 ieee80211_bss_info_update(struct ieee80211_local *local, in ieee80211_bss_info_update() argument
93 if (local->hw.flags & IEEE80211_HW_SIGNAL_DBM) in ieee80211_bss_info_update()
95 else if (local->hw.flags & IEEE80211_HW_SIGNAL_UNSPEC) in ieee80211_bss_info_update()
96 signal = (rx_status->signal * 100) / local->hw.max_signal; in ieee80211_bss_info_update()
98 cbss = cfg80211_inform_bss_frame(local->hw.wiphy, channel, in ieee80211_bss_info_update()
237 channel = ieee80211_get_channel(sdata->local->hw.wiphy, freq); in ieee80211_scan_rx()
[all …]
Dmain.c38 void ieee80211_configure_filter(struct ieee80211_local *local) in ieee80211_configure_filter() argument
44 if (atomic_read(&local->iff_promiscs)) in ieee80211_configure_filter()
47 if (atomic_read(&local->iff_allmultis)) in ieee80211_configure_filter()
50 if (local->monitors || test_bit(SCAN_SW_SCANNING, &local->scanning)) in ieee80211_configure_filter()
53 if (local->fif_probe_req || local->probe_req_reg) in ieee80211_configure_filter()
56 if (local->fif_fcsfail) in ieee80211_configure_filter()
59 if (local->fif_plcpfail) in ieee80211_configure_filter()
62 if (local->fif_control) in ieee80211_configure_filter()
65 if (local->fif_other_bss) in ieee80211_configure_filter()
68 if (local->fif_pspoll) in ieee80211_configure_filter()
[all …]
Doffchannel.c30 struct ieee80211_local *local = sdata->local; in ieee80211_offchannel_ps_enable() local
33 local->offchannel_ps_enabled = false; in ieee80211_offchannel_ps_enable()
37 del_timer_sync(&local->dynamic_ps_timer); in ieee80211_offchannel_ps_enable()
41 cancel_work_sync(&local->dynamic_ps_enable_work); in ieee80211_offchannel_ps_enable()
43 if (local->hw.conf.flags & IEEE80211_CONF_PS) { in ieee80211_offchannel_ps_enable()
44 local->offchannel_ps_enabled = true; in ieee80211_offchannel_ps_enable()
45 local->hw.conf.flags &= ~IEEE80211_CONF_PS; in ieee80211_offchannel_ps_enable()
46 ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_PS); in ieee80211_offchannel_ps_enable()
49 if (tell_ap && (!local->offchannel_ps_enabled || in ieee80211_offchannel_ps_enable()
50 !(local->hw.flags & IEEE80211_HW_PS_NULLFUNC_STACK))) in ieee80211_offchannel_ps_enable()
[all …]
Dwork.c37 static inline void ASSERT_WORK_MTX(struct ieee80211_local *local) in ASSERT_WORK_MTX() argument
39 lockdep_assert_held(&local->mtx); in ASSERT_WORK_MTX()
52 static void run_again(struct ieee80211_local *local, in run_again() argument
55 ASSERT_WORK_MTX(local); in run_again()
57 if (!timer_pending(&local->work_timer) || in run_again()
58 time_before(timeout, local->work_timer.expires)) in run_again()
59 mod_timer(&local->work_timer, timeout); in run_again()
108 struct ieee80211_local *local = (void *) data; in ieee80211_work_timer() local
110 if (local->quiescing) in ieee80211_work_timer()
113 ieee80211_queue_work(&local->hw, &local->work_work); in ieee80211_work_timer()
[all …]
Diface.c101 struct ieee80211_local *local = sdata->local; in ieee80211_check_concurrent_iface() local
108 list_for_each_entry(nsdata, &local->interfaces, list) { in ieee80211_check_concurrent_iface()
155 struct ieee80211_local *local = sdata->local; in ieee80211_adjust_monitor_flags() local
160 local->fif_##_s += offset; \ in ieee80211_adjust_monitor_flags()
180 struct ieee80211_local *local = sdata->local; in ieee80211_do_open() local
225 if (local->open_count == 0) { in ieee80211_do_open()
226 res = drv_start(local); in ieee80211_do_open()
229 if (local->ops->napi_poll) in ieee80211_do_open()
230 napi_enable(&local->napi); in ieee80211_do_open()
233 ieee80211_led_radio(local, true); in ieee80211_do_open()
[all …]
Dpm.c33 struct ieee80211_local *local = hw_to_local(hw); in __ieee80211_suspend() local
37 if (!local->open_count) in __ieee80211_suspend()
40 ieee80211_scan_cancel(local); in __ieee80211_suspend()
43 mutex_lock(&local->sta_mtx); in __ieee80211_suspend()
44 list_for_each_entry(sta, &local->sta_list, list) { in __ieee80211_suspend()
48 mutex_unlock(&local->sta_mtx); in __ieee80211_suspend()
57 drv_flush(local, false); in __ieee80211_suspend()
59 local->quiescing = true; in __ieee80211_suspend()
63 flush_workqueue(local->workqueue); in __ieee80211_suspend()
66 del_timer_sync(&local->sta_cleanup); in __ieee80211_suspend()
[all …]
Ddebugfs.c38 struct ieee80211_local *local = file->private_data; \
56 debugfs_create_file(#name, 0400, phyd, local, &name## _ops);
59 debugfs_create_file(#name, mode, phyd, local, &name## _ops);
63 local->user_power_level);
65 local->hw.conf.power_level);
67 local->hw.conf.channel->center_freq);
69 local->total_ps_buffered);
71 local->wep_iv & 0xffffff);
73 local->rate_ctrl ? local->rate_ctrl->ops->name : "hw/driver");
78 struct ieee80211_local *local = file->private_data; in reset_write() local
[all …]
Dled.h15 void ieee80211_led_rx(struct ieee80211_local *local);
16 void ieee80211_led_tx(struct ieee80211_local *local, int q);
17 void ieee80211_led_assoc(struct ieee80211_local *local,
19 void ieee80211_led_radio(struct ieee80211_local *local,
21 void ieee80211_led_names(struct ieee80211_local *local);
22 void ieee80211_led_init(struct ieee80211_local *local);
23 void ieee80211_led_exit(struct ieee80211_local *local);
24 void ieee80211_mod_tpt_led_trig(struct ieee80211_local *local,
27 static inline void ieee80211_led_rx(struct ieee80211_local *local) in ieee80211_led_rx() argument
30 static inline void ieee80211_led_tx(struct ieee80211_local *local, int q) in ieee80211_led_tx() argument
[all …]
Dsta_info.c67 static int sta_info_hash_del(struct ieee80211_local *local, in sta_info_hash_del() argument
72 s = rcu_dereference_protected(local->sta_hash[STA_HASH(sta->sta.addr)], in sta_info_hash_del()
73 lockdep_is_held(&local->sta_mtx)); in sta_info_hash_del()
77 rcu_assign_pointer(local->sta_hash[STA_HASH(sta->sta.addr)], in sta_info_hash_del()
85 lockdep_is_held(&local->sta_mtx)); in sta_info_hash_del()
98 struct ieee80211_local *local = sdata->local; in sta_info_get() local
101 sta = rcu_dereference_check(local->sta_hash[STA_HASH(addr)], in sta_info_get()
102 lockdep_is_held(&local->sta_mtx)); in sta_info_get()
108 lockdep_is_held(&local->sta_mtx)); in sta_info_get()
120 struct ieee80211_local *local = sdata->local; in sta_info_get_bss() local
[all …]
Dutil.c41 struct ieee80211_local *local; in wiphy_to_ieee80211_hw() local
44 local = wiphy_priv(wiphy); in wiphy_to_ieee80211_hw()
45 return &local->hw; in wiphy_to_ieee80211_hw()
109 int ieee80211_frame_duration(struct ieee80211_local *local, size_t len, in ieee80211_frame_duration() argument
123 if (local->hw.conf.channel->band == IEEE80211_BAND_5GHZ || erp) { in ieee80211_frame_duration()
168 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_generic_frame_duration() local
182 dur = ieee80211_frame_duration(local, frame_len, rate->bitrate, erp, in ieee80211_generic_frame_duration()
193 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_rts_duration() local
201 sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; in ieee80211_rts_duration()
216 dur = ieee80211_frame_duration(local, 10, rate->bitrate, in ieee80211_rts_duration()
[all …]
Ddriver-trace.h13 #define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME)
36 TP_PROTO(struct ieee80211_local *local),
37 TP_ARGS(local),
48 TP_PROTO(struct ieee80211_local *local,
50 TP_ARGS(local, sdata),
71 TP_PROTO(struct ieee80211_local *local, u32 value),
72 TP_ARGS(local, value),
91 TP_PROTO(struct ieee80211_local *local,
93 TP_ARGS(local, sdata),
112 TP_PROTO(struct ieee80211_local *local),
[all …]
Dmlme.c160 if (sdata->local->hw.flags & IEEE80211_HW_CONNECTION_MONITOR) in ieee80211_sta_reset_conn_monitor()
184 struct ieee80211_local *local = sdata->local; in ieee80211_enable_ht() local
195 sband = local->hw.wiphy->bands[local->hw.conf.channel->band]; in ieee80211_enable_ht()
202 if (local->hw.conf.channel->center_freq != hti_cfreq) { in ieee80211_enable_ht()
213 local->hw.conf.channel->center_freq, in ieee80211_enable_ht()
237 tx_channel_type = ieee80211_get_tx_channel_type(local, rx_channel_type); in ieee80211_enable_ht()
239 if (local->tmp_channel) in ieee80211_enable_ht()
240 local->tmp_channel_type = rx_channel_type; in ieee80211_enable_ht()
242 if (!ieee80211_set_channel_type(local, sdata, rx_channel_type)) { in ieee80211_enable_ht()
245 WARN_ON(!ieee80211_set_channel_type(local, sdata, in ieee80211_enable_ht()
[all …]
/linux-3.4.99/net/rxrpc/
Dar-local.c33 struct rxrpc_local *local; in rxrpc_alloc_local() local
35 local = kzalloc(sizeof(struct rxrpc_local), GFP_KERNEL); in rxrpc_alloc_local()
36 if (local) { in rxrpc_alloc_local()
37 INIT_WORK(&local->destroyer, &rxrpc_destroy_local); in rxrpc_alloc_local()
38 INIT_WORK(&local->acceptor, &rxrpc_accept_incoming_calls); in rxrpc_alloc_local()
39 INIT_WORK(&local->rejecter, &rxrpc_reject_packets); in rxrpc_alloc_local()
40 INIT_LIST_HEAD(&local->services); in rxrpc_alloc_local()
41 INIT_LIST_HEAD(&local->link); in rxrpc_alloc_local()
42 init_rwsem(&local->defrag_sem); in rxrpc_alloc_local()
43 skb_queue_head_init(&local->accept_queue); in rxrpc_alloc_local()
[all …]
/linux-3.4.99/drivers/net/wireless/hostap/
Dhostap_hw.c128 static void prism2_check_sta_fw_version(local_info_t *local);
135 static int prism2_download(local_info_t *local,
138 static int prism2_download_volatile(local_info_t *local,
140 static int prism2_download_genesis(local_info_t *local,
142 static int prism2_get_ram_size(local_info_t *local);
181 static inline void __hostap_cmd_queue_free(local_info_t *local, in __hostap_cmd_queue_free() argument
189 local->cmd_queue_len--; in __hostap_cmd_queue_free()
206 static inline void hostap_cmd_queue_free(local_info_t *local, in hostap_cmd_queue_free() argument
212 spin_lock_irqsave(&local->cmdlock, flags); in hostap_cmd_queue_free()
213 __hostap_cmd_queue_free(local, entry, del_req); in hostap_cmd_queue_free()
[all …]
Dhostap_info.c12 static void prism2_info_commtallies16(local_info_t *local, unsigned char *buf, in prism2_info_commtallies16() argument
19 "info frame\n", local->dev->name, left); in prism2_info_commtallies16()
25 local->comm_tallies.name += le16_to_cpu(tallies->name) in prism2_info_commtallies16()
52 static void prism2_info_commtallies32(local_info_t *local, unsigned char *buf, in prism2_info_commtallies32() argument
59 "info frame\n", local->dev->name, left); in prism2_info_commtallies32()
65 local->comm_tallies.name += le32_to_cpu(tallies->name) in prism2_info_commtallies32()
92 static void prism2_info_commtallies(local_info_t *local, unsigned char *buf, in prism2_info_commtallies() argument
95 if (local->tallies32) in prism2_info_commtallies()
96 prism2_info_commtallies32(local, buf, left); in prism2_info_commtallies()
98 prism2_info_commtallies16(local, buf, left); in prism2_info_commtallies()
[all …]
Dhostap_main.c49 struct net_device * hostap_add_interface(struct local_info *local, in hostap_add_interface() argument
64 iface->local = local; in hostap_add_interface()
66 list_add(&iface->list, &local->hostap_interfaces); in hostap_add_interface()
68 mdev = local->dev; in hostap_add_interface()
75 hostap_setup_dev(dev, local, type); in hostap_add_interface()
116 if (dev == iface->local->ddev) in hostap_remove_interface()
117 iface->local->ddev = NULL; in hostap_remove_interface()
118 else if (dev == iface->local->apdev) in hostap_remove_interface()
119 iface->local->apdev = NULL; in hostap_remove_interface()
120 else if (dev == iface->local->stadev) in hostap_remove_interface()
[all …]
Dhostap_ioctl.c18 local_info_t *local; in hostap_get_wireless_stats() local
22 local = iface->local; in hostap_get_wireless_stats()
28 wstats = &local->wstats; in hostap_get_wireless_stats()
32 local->comm_tallies.rx_discards_wep_undecryptable; in hostap_get_wireless_stats()
34 local->comm_tallies.rx_fcs_errors + in hostap_get_wireless_stats()
35 local->comm_tallies.rx_discards_no_buffer + in hostap_get_wireless_stats()
36 local->comm_tallies.tx_discards_wrong_sa; in hostap_get_wireless_stats()
39 local->comm_tallies.tx_retry_limit_exceeded; in hostap_get_wireless_stats()
41 local->comm_tallies.rx_message_in_bad_msg_fragments; in hostap_get_wireless_stats()
43 if (local->iw_mode != IW_MODE_MASTER && in hostap_get_wireless_stats()
[all …]
Dhostap_proc.c19 local_info_t *local = (local_info_t *) data; in prism2_debug_proc_read() local
28 local->next_txfid, local->next_alloc); in prism2_debug_proc_read()
31 local->txfid[i], local->intransmitfid[i]); in prism2_debug_proc_read()
32 p += sprintf(p, "FW TX rate control: %d\n", local->fw_tx_rate_control); in prism2_debug_proc_read()
33 p += sprintf(p, "beacon_int=%d\n", local->beacon_int); in prism2_debug_proc_read()
34 p += sprintf(p, "dtim_period=%d\n", local->dtim_period); in prism2_debug_proc_read()
36 local->wds_max_connections); in prism2_debug_proc_read()
37 p += sprintf(p, "dev_enabled=%d\n", local->dev_enabled); in prism2_debug_proc_read()
38 p += sprintf(p, "sw_tick_stuck=%d\n", local->sw_tick_stuck); in prism2_debug_proc_read()
40 if (local->crypt_info.crypt[i] && in prism2_debug_proc_read()
[all …]
Dhostap_80211_rx.c66 local_info_t *local; in prism2_rx_80211() local
73 local = iface->local; in prism2_rx_80211()
76 if (local->monitor_type == PRISM2_MONITOR_PRISM) { in prism2_rx_80211()
164 hdr->channel = htonl(local->channel); in prism2_rx_80211()
185 hdr->chan_freq = cpu_to_le16(freq_list[local->channel - 1]); in prism2_rx_80211()
222 prism2_frag_cache_find(local_info_t *local, unsigned int seq, in prism2_frag_cache_find() argument
229 entry = &local->frag_cache[i]; in prism2_frag_cache_find()
234 local->dev->name, entry->seq, entry->last_frag); in prism2_frag_cache_find()
252 prism2_frag_cache_get(local_info_t *local, struct ieee80211_hdr *hdr) in prism2_frag_cache_get() argument
265 skb = dev_alloc_skb(local->dev->mtu + in prism2_frag_cache_get()
[all …]
/linux-3.4.99/net/nfc/llcp/
Dllcp.c34 static void nfc_llcp_socket_release(struct nfc_llcp_local *local) in nfc_llcp_socket_release() argument
40 mutex_lock(&local->socket_lock); in nfc_llcp_socket_release()
43 parent = local->sockets[i]; in nfc_llcp_socket_release()
63 s->local = NULL; in nfc_llcp_socket_release()
87 lsk->local = NULL; in nfc_llcp_socket_release()
100 parent->local = NULL; in nfc_llcp_socket_release()
103 mutex_unlock(&local->socket_lock); in nfc_llcp_socket_release()
106 static void nfc_llcp_clear_sdp(struct nfc_llcp_local *local) in nfc_llcp_clear_sdp() argument
108 mutex_lock(&local->sdp_lock); in nfc_llcp_clear_sdp()
110 local->local_wks = 0; in nfc_llcp_clear_sdp()
[all …]
Dcommands.c120 int nfc_llcp_parse_tlv(struct nfc_llcp_local *local, in nfc_llcp_parse_tlv() argument
127 if (local == NULL) in nfc_llcp_parse_tlv()
138 local->remote_version = llcp_tlv_version(tlv); in nfc_llcp_parse_tlv()
141 local->remote_miu = llcp_tlv_miux(tlv) + 128; in nfc_llcp_parse_tlv()
144 local->remote_wks = llcp_tlv_wks(tlv); in nfc_llcp_parse_tlv()
147 local->remote_lto = llcp_tlv_lto(tlv) * 10; in nfc_llcp_parse_tlv()
150 local->remote_opt = llcp_tlv_opt(tlv); in nfc_llcp_parse_tlv()
153 local->remote_rw = llcp_tlv_rw(tlv); in nfc_llcp_parse_tlv()
167 local->remote_version, local->remote_miu, in nfc_llcp_parse_tlv()
168 local->remote_lto, local->remote_opt, in nfc_llcp_parse_tlv()
[all …]
/linux-3.4.99/drivers/net/wireless/
Dray_cs.c85 static int translate_frame(ray_dev_t *local, struct tx_msg __iomem *ptx,
87 static void ray_build_header(ray_dev_t *local, struct tx_msg __iomem *ptx,
89 static void untranslate(ray_dev_t *local, struct sk_buff *skb, int len);
94 static void authenticate(ray_dev_t *local);
95 static int build_auth_frame(ray_dev_t *local, UCHAR *dest, int auth_type);
97 static int get_free_ccs(ray_dev_t *local);
98 static int get_free_tx_ccs(ray_dev_t *local);
99 static void init_startup_params(ray_dev_t *local);
103 static int interrupt_ecf(ray_dev_t *local, int ccs);
110 static void clear_interrupt(ray_dev_t *local);
[all …]
/linux-3.4.99/tools/testing/selftests/breakpoints/
Dbreakpoint_test.c50 int local, int global, int set) in toggle_breakpoint() argument
90 if (local) { in toggle_breakpoint()
201 int len, local, global, i; in trigger_tests() local
215 for (local = 0; local < 2; local++) { in trigger_tests()
217 if (!local && !global) in trigger_tests()
229 for (local = 0; local < 2; local++) { in trigger_tests()
231 if (!local && !global) in trigger_tests()
240 for (local = 0; local < 2; local++) { in trigger_tests()
242 if (!local && !global) in trigger_tests()
287 static void launch_instruction_breakpoints(char *buf, int local, int global) in launch_instruction_breakpoints() argument
[all …]

12345678910>>...24