/net/mac80211/ |
D | driver-ops.h | 32 static inline void drv_tx(struct ieee80211_local *local, in drv_tx() argument 36 local->ops->tx(&local->hw, control, skb); in drv_tx() 39 static inline void drv_sync_rx_queues(struct ieee80211_local *local, in drv_sync_rx_queues() argument 42 if (local->ops->sync_rx_queues) { in drv_sync_rx_queues() 43 trace_drv_sync_rx_queues(local, sta->sdata, &sta->sta); in drv_sync_rx_queues() 44 local->ops->sync_rx_queues(&local->hw); in drv_sync_rx_queues() 45 trace_drv_return_void(local); in drv_sync_rx_queues() 52 struct ieee80211_local *local = sdata->local; in drv_get_et_strings() local 53 if (local->ops->get_et_strings) { in drv_get_et_strings() 54 trace_drv_get_et_strings(local, sset); in drv_get_et_strings() [all …]
|
D | scan.c | 32 void ieee80211_rx_bss_put(struct ieee80211_local *local, in ieee80211_rx_bss_put() argument 37 cfg80211_put_bss(local->hw.wiphy, in ieee80211_rx_bss_put() 59 ieee80211_update_bss_from_elems(struct ieee80211_local *local, in ieee80211_update_bss_from_elems() argument 129 local->hw.wiphy->bands[rx_status->band]; in ieee80211_update_bss_from_elems() 138 ieee80211_bss_info_update(struct ieee80211_local *local, in ieee80211_bss_info_update() argument 157 else if (ieee80211_hw_check(&local->hw, SIGNAL_DBM)) in ieee80211_bss_info_update() 159 else if (ieee80211_hw_check(&local->hw, SIGNAL_UNSPEC)) in ieee80211_bss_info_update() 160 bss_meta.signal = (rx_status->signal * 100) / local->hw.max_signal; in ieee80211_bss_info_update() 171 scan_sdata = rcu_dereference(local->scan_sdata); in ieee80211_bss_info_update() 176 ieee80211_calculate_rx_timestamp(local, rx_status, in ieee80211_bss_info_update() [all …]
|
D | main.c | 36 void ieee80211_configure_filter(struct ieee80211_local *local) in ieee80211_configure_filter() argument 42 if (atomic_read(&local->iff_allmultis)) in ieee80211_configure_filter() 45 if (local->monitors || test_bit(SCAN_SW_SCANNING, &local->scanning) || in ieee80211_configure_filter() 46 test_bit(SCAN_ONCHANNEL_SCANNING, &local->scanning)) in ieee80211_configure_filter() 49 if (local->fif_probe_req || local->probe_req_reg) in ieee80211_configure_filter() 52 if (local->fif_fcsfail) in ieee80211_configure_filter() 55 if (local->fif_plcpfail) in ieee80211_configure_filter() 58 if (local->fif_control) in ieee80211_configure_filter() 61 if (local->fif_other_bss) in ieee80211_configure_filter() 64 if (local->fif_pspoll) in ieee80211_configure_filter() [all …]
|
D | led.c | 12 void ieee80211_led_assoc(struct ieee80211_local *local, bool associated) in ieee80211_led_assoc() argument 14 if (!atomic_read(&local->assoc_led_active)) in ieee80211_led_assoc() 17 led_trigger_event(&local->assoc_led, LED_FULL); in ieee80211_led_assoc() 19 led_trigger_event(&local->assoc_led, LED_OFF); in ieee80211_led_assoc() 22 void ieee80211_led_radio(struct ieee80211_local *local, bool enabled) in ieee80211_led_radio() argument 24 if (!atomic_read(&local->radio_led_active)) in ieee80211_led_radio() 27 led_trigger_event(&local->radio_led, LED_FULL); in ieee80211_led_radio() 29 led_trigger_event(&local->radio_led, LED_OFF); in ieee80211_led_radio() 32 void ieee80211_alloc_led_names(struct ieee80211_local *local) in ieee80211_alloc_led_names() argument 34 local->rx_led.name = kasprintf(GFP_KERNEL, "%srx", in ieee80211_alloc_led_names() [all …]
|
D | driver-ops.c | 10 int drv_start(struct ieee80211_local *local) in drv_start() argument 16 if (WARN_ON(local->started)) in drv_start() 19 trace_drv_start(local); in drv_start() 20 local->started = true; in drv_start() 23 ret = local->ops->start(&local->hw); in drv_start() 24 trace_drv_return_int(local, ret); in drv_start() 27 local->started = false; in drv_start() 32 void drv_stop(struct ieee80211_local *local) in drv_stop() argument 36 if (WARN_ON(!local->started)) in drv_stop() 39 trace_drv_stop(local); in drv_stop() [all …]
|
D | offchannel.c | 27 struct ieee80211_local *local = sdata->local; in ieee80211_offchannel_ps_enable() local 30 local->offchannel_ps_enabled = false; in ieee80211_offchannel_ps_enable() 34 del_timer_sync(&local->dynamic_ps_timer); in ieee80211_offchannel_ps_enable() 38 cancel_work_sync(&local->dynamic_ps_enable_work); in ieee80211_offchannel_ps_enable() 40 if (local->hw.conf.flags & IEEE80211_CONF_PS) { in ieee80211_offchannel_ps_enable() 41 local->offchannel_ps_enabled = true; in ieee80211_offchannel_ps_enable() 42 local->hw.conf.flags &= ~IEEE80211_CONF_PS; in ieee80211_offchannel_ps_enable() 43 ieee80211_hw_config(local, IEEE80211_CONF_CHANGE_PS); in ieee80211_offchannel_ps_enable() 46 if (!local->offchannel_ps_enabled || in ieee80211_offchannel_ps_enable() 47 !ieee80211_hw_check(&local->hw, PS_NULLFUNC_STACK)) in ieee80211_offchannel_ps_enable() [all …]
|
D | chan.c | 13 static int ieee80211_chanctx_num_assigned(struct ieee80211_local *local, in ieee80211_chanctx_num_assigned() argument 19 lockdep_assert_held(&local->chanctx_mtx); in ieee80211_chanctx_num_assigned() 27 static int ieee80211_chanctx_num_reserved(struct ieee80211_local *local, in ieee80211_chanctx_num_reserved() argument 33 lockdep_assert_held(&local->chanctx_mtx); in ieee80211_chanctx_num_reserved() 41 int ieee80211_chanctx_refcount(struct ieee80211_local *local, in ieee80211_chanctx_refcount() argument 44 return ieee80211_chanctx_num_assigned(local, ctx) + in ieee80211_chanctx_refcount() 45 ieee80211_chanctx_num_reserved(local, ctx); in ieee80211_chanctx_refcount() 48 static int ieee80211_num_chanctx(struct ieee80211_local *local) in ieee80211_num_chanctx() argument 53 lockdep_assert_held(&local->chanctx_mtx); in ieee80211_num_chanctx() 55 list_for_each_entry(ctx, &local->chanctx_list, list) in ieee80211_num_chanctx() [all …]
|
D | iface.c | 70 ieee80211_hw_config(sdata->local, 0); in __ieee80211_recalc_txpower() 85 static u32 __ieee80211_idle_off(struct ieee80211_local *local) in __ieee80211_idle_off() argument 87 if (!(local->hw.conf.flags & IEEE80211_CONF_IDLE)) in __ieee80211_idle_off() 90 local->hw.conf.flags &= ~IEEE80211_CONF_IDLE; in __ieee80211_idle_off() 94 static u32 __ieee80211_idle_on(struct ieee80211_local *local) in __ieee80211_idle_on() argument 96 if (local->hw.conf.flags & IEEE80211_CONF_IDLE) in __ieee80211_idle_on() 99 ieee80211_flush_queues(local, NULL, false); in __ieee80211_idle_on() 101 local->hw.conf.flags |= IEEE80211_CONF_IDLE; in __ieee80211_idle_on() 105 static u32 __ieee80211_recalc_idle(struct ieee80211_local *local, in __ieee80211_recalc_idle() argument 111 lockdep_assert_held(&local->mtx); in __ieee80211_recalc_idle() [all …]
|
D | pm.c | 10 static void ieee80211_sched_scan_cancel(struct ieee80211_local *local) in ieee80211_sched_scan_cancel() argument 12 if (ieee80211_request_sched_scan_stop(local)) in ieee80211_sched_scan_cancel() 14 cfg80211_sched_scan_stopped_rtnl(local->hw.wiphy, 0); in ieee80211_sched_scan_cancel() 19 struct ieee80211_local *local = hw_to_local(hw); in __ieee80211_suspend() local 23 if (!local->open_count) in __ieee80211_suspend() 26 ieee80211_scan_cancel(local); in __ieee80211_suspend() 28 ieee80211_dfs_cac_cancel(local); in __ieee80211_suspend() 30 ieee80211_roc_purge(local, NULL); in __ieee80211_suspend() 32 ieee80211_del_virtual_monitor(local); in __ieee80211_suspend() 36 mutex_lock(&local->sta_mtx); in __ieee80211_suspend() [all …]
|
D | led.h | 13 static inline void ieee80211_led_rx(struct ieee80211_local *local) in ieee80211_led_rx() argument 18 if (!atomic_read(&local->rx_led_active)) in ieee80211_led_rx() 20 led_trigger_blink_oneshot(&local->rx_led, &led_delay, &led_delay, 0); in ieee80211_led_rx() 24 static inline void ieee80211_led_tx(struct ieee80211_local *local) in ieee80211_led_tx() argument 29 if (!atomic_read(&local->tx_led_active)) in ieee80211_led_tx() 31 led_trigger_blink_oneshot(&local->tx_led, &led_delay, &led_delay, 0); in ieee80211_led_tx() 36 void ieee80211_led_assoc(struct ieee80211_local *local, 38 void ieee80211_led_radio(struct ieee80211_local *local, 40 void ieee80211_alloc_led_names(struct ieee80211_local *local); 41 void ieee80211_free_led_names(struct ieee80211_local *local); [all …]
|
D | trace.h | 20 #define LOCAL_ASSIGN strlcpy(__entry->wiphy_name, wiphy_name(local->hw.wiphy), MAXNAME) 116 TP_PROTO(struct ieee80211_local *local), 117 TP_ARGS(local), 128 TP_PROTO(struct ieee80211_local *local, 130 TP_ARGS(local, sdata), 151 TP_PROTO(struct ieee80211_local *local, u32 value), 152 TP_ARGS(local, value), 171 TP_PROTO(struct ieee80211_local *local, 173 TP_ARGS(local, sdata), 192 TP_PROTO(struct ieee80211_local *local), [all …]
|
D | util.c | 41 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() 159 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_rts_duration() local 167 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_rts_duration() 203 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_ctstoself_duration() local 211 sband = local->hw.wiphy->bands[frame_txctl->band]; in ieee80211_ctstoself_duration() 242 struct ieee80211_local *local = sdata->local; in __ieee80211_wake_txqs() local 244 struct fq *fq = &local->fq; in __ieee80211_wake_txqs() 258 list_for_each_entry_rcu(sta, &local->sta_list, list) { in __ieee80211_wake_txqs() [all …]
|
D | sta_info.c | 77 static int sta_info_hash_del(struct ieee80211_local *local, in sta_info_hash_del() argument 80 return rhltable_remove(&local->sta_hash, &sta->hash_node, in sta_info_hash_del() 89 struct ieee80211_local *local = sdata->local; in __cleanup_single_sta() local 119 ieee80211_txq_purge(local, txqi); in __cleanup_single_sta() 124 local->total_ps_buffered -= skb_queue_len(&sta->ps_tx_buf[ac]); in __cleanup_single_sta() 125 ieee80211_purge_tx_queue(&local->hw, &sta->ps_tx_buf[ac]); in __cleanup_single_sta() 126 ieee80211_purge_tx_queue(&local->hw, &sta->tx_filtered[ac]); in __cleanup_single_sta() 145 ieee80211_purge_tx_queue(&local->hw, &tid_tx->pending); in __cleanup_single_sta() 153 struct ieee80211_local *local = sdata->local; in cleanup_single_sta() local 156 sta_info_free(local, sta); in cleanup_single_sta() [all …]
|
D | tx.c | 57 struct ieee80211_local *local = tx->local; in ieee80211_duration() local 80 sband = local->hw.wiphy->bands[info->band]; in ieee80211_duration() 212 struct ieee80211_local *local = tx->local; in ieee80211_tx_h_dynamic_ps() local 217 if (!ieee80211_hw_check(&local->hw, SUPPORTS_PS)) in ieee80211_tx_h_dynamic_ps() 221 if (ieee80211_hw_check(&local->hw, SUPPORTS_DYNAMIC_PS)) in ieee80211_tx_h_dynamic_ps() 225 if (local->hw.conf.dynamic_ps_timeout <= 0) in ieee80211_tx_h_dynamic_ps() 229 if (local->scanning) in ieee80211_tx_h_dynamic_ps() 232 if (!local->ps_sdata) in ieee80211_tx_h_dynamic_ps() 236 if (local->quiescing) in ieee80211_tx_h_dynamic_ps() 266 if (local->hw.conf.flags & IEEE80211_CONF_PS) { in ieee80211_tx_h_dynamic_ps() [all …]
|
D | debugfs.c | 38 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->total_ps_buffered); 69 local->wep_iv & 0xffffff); 71 local->rate_ctrl ? local->rate_ctrl->ops->name : "hw/driver"); 78 struct ieee80211_local *local = file->private_data; in aqm_read() local 79 struct fq *fq = &local->fq; in aqm_read() [all …]
|
D | cfg.c | 63 struct ieee80211_local *local = sdata->local; in ieee80211_set_mon_options() local 84 monitor_sdata = rtnl_dereference(local->monitor_sdata); in ieee80211_set_mon_options() 101 ieee80211_configure_filter(local); in ieee80211_set_mon_options() 121 struct ieee80211_local *local = wiphy_priv(wiphy); in ieee80211_add_iface() local 126 err = ieee80211_if_add(local, name, name_assign_type, &wdev, type, params); in ieee80211_add_iface() 184 mutex_lock(&sdata->local->chanctx_mtx); in ieee80211_start_p2p_device() 186 mutex_unlock(&sdata->local->chanctx_mtx); in ieee80211_start_p2p_device() 206 mutex_lock(&sdata->local->chanctx_mtx); in ieee80211_start_nan() 208 mutex_unlock(&sdata->local->chanctx_mtx); in ieee80211_start_nan() 216 ret = drv_start_nan(sdata->local, sdata, conf); in ieee80211_start_nan() [all …]
|
D | status.c | 24 struct ieee80211_local *local = hw_to_local(hw); in ieee80211_tx_status_irqsafe() local 30 &local->skb_queue : &local->skb_queue_unreliable, skb); in ieee80211_tx_status_irqsafe() 31 tmp = skb_queue_len(&local->skb_queue) + in ieee80211_tx_status_irqsafe() 32 skb_queue_len(&local->skb_queue_unreliable); in ieee80211_tx_status_irqsafe() 34 (skb = skb_dequeue(&local->skb_queue_unreliable))) { in ieee80211_tx_status_irqsafe() 37 I802_DEBUG_INC(local->tx_status_drop); in ieee80211_tx_status_irqsafe() 39 tasklet_schedule(&local->tasklet); in ieee80211_tx_status_irqsafe() 43 static void ieee80211_handle_filtered_frame(struct ieee80211_local *local, in ieee80211_handle_filtered_frame() argument 53 ieee80211_free_txskb(&local->hw, skb); in ieee80211_handle_filtered_frame() 148 if (!timer_pending(&local->sta_cleanup)) in ieee80211_handle_filtered_frame() [all …]
|
D | mlme.c | 115 if (ieee80211_hw_check(&sdata->local->hw, CONNECTION_MONITOR)) in ieee80211_sta_reset_beacon_monitor() 132 if (ieee80211_hw_check(&sdata->local->hw, CONNECTION_MONITOR)) in ieee80211_sta_reset_conn_monitor() 221 if (!ieee80211_chandef_vht_oper(&sdata->local->hw, in ieee80211_determine_chantype() 230 } else if (!ieee80211_chandef_vht_oper(&sdata->local->hw, vht_oper, in ieee80211_determine_chantype() 299 while (!cfg80211_chandef_usable(sdata->local->hw.wiphy, chandef, in ieee80211_determine_chantype() 327 struct ieee80211_local *local = sdata->local; in ieee80211_config_bw() local 331 local->hw.wiphy->bands[chan->band]; in ieee80211_config_bw() 430 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw() 444 rate_control_rate_update(local, sband, sta, in ieee80211_config_bw() 532 struct ieee80211_local *local = sdata->local; in ieee80211_add_vht_ie() local [all …]
|
/net/rxrpc/ |
D | local_object.c | 34 static long rxrpc_local_cmp_key(const struct rxrpc_local *local, in rxrpc_local_cmp_key() argument 39 diff = ((local->srx.transport_type - srx->transport_type) ?: in rxrpc_local_cmp_key() 40 (local->srx.transport_len - srx->transport_len) ?: in rxrpc_local_cmp_key() 41 (local->srx.transport.family - srx->transport.family)); in rxrpc_local_cmp_key() 50 return ((u16 __force)local->srx.transport.sin.sin_port - in rxrpc_local_cmp_key() 52 memcmp(&local->srx.transport.sin.sin_addr, in rxrpc_local_cmp_key() 60 return ((u16 __force)local->srx.transport.sin6.sin6_port - in rxrpc_local_cmp_key() 62 memcmp(&local->srx.transport.sin6.sin6_addr, in rxrpc_local_cmp_key() 77 struct rxrpc_local *local; in rxrpc_alloc_local() local 79 local = kzalloc(sizeof(struct rxrpc_local), GFP_KERNEL); in rxrpc_alloc_local() [all …]
|
/net/mac802154/ |
D | driver-ops.h | 14 drv_xmit_async(struct ieee802154_local *local, struct sk_buff *skb) in drv_xmit_async() argument 16 return local->ops->xmit_async(&local->hw, skb); in drv_xmit_async() 20 drv_xmit_sync(struct ieee802154_local *local, struct sk_buff *skb) in drv_xmit_sync() argument 24 return local->ops->xmit_sync(&local->hw, skb); in drv_xmit_sync() 27 static inline int drv_start(struct ieee802154_local *local) in drv_start() argument 33 trace_802154_drv_start(local); in drv_start() 34 local->started = true; in drv_start() 36 ret = local->ops->start(&local->hw); in drv_start() 37 trace_802154_drv_return_int(local, ret); in drv_start() 41 static inline void drv_stop(struct ieee802154_local *local) in drv_stop() argument [all …]
|
D | main.c | 25 struct ieee802154_local *local = (struct ieee802154_local *)data; in ieee802154_tasklet_handler() local 28 while ((skb = skb_dequeue(&local->skb_queue))) { in ieee802154_tasklet_handler() 35 ieee802154_rx(local, skb); in ieee802154_tasklet_handler() 50 struct ieee802154_local *local; in ieee802154_alloc_hw() local 75 priv_size = ALIGN(sizeof(*local), NETDEV_ALIGN) + priv_data_len; in ieee802154_alloc_hw() 85 local = wpan_phy_priv(phy); in ieee802154_alloc_hw() 86 local->phy = phy; in ieee802154_alloc_hw() 87 local->hw.phy = local->phy; in ieee802154_alloc_hw() 88 local->hw.priv = (char *)local + ALIGN(sizeof(*local), NETDEV_ALIGN); in ieee802154_alloc_hw() 89 local->ops = ops; in ieee802154_alloc_hw() [all …]
|
D | trace.h | 18 wpan_phy_name(local->hw.phy), MAXNAME) 37 TP_PROTO(struct ieee802154_local *local), 38 TP_ARGS(local), 49 TP_PROTO(struct ieee802154_local *local), 50 TP_ARGS(local) 54 TP_PROTO(struct ieee802154_local *local, int ret), 55 TP_ARGS(local, ret), 69 TP_PROTO(struct ieee802154_local *local), 70 TP_ARGS(local) 74 TP_PROTO(struct ieee802154_local *local), [all …]
|
/net/nfc/ |
D | llcp_core.c | 21 static void nfc_llcp_rx_skb(struct nfc_llcp_local *local, struct sk_buff *skb); 45 struct nfc_llcp_local *local = sock->local; in nfc_llcp_socket_purge() local 53 if (local == NULL) in nfc_llcp_socket_purge() 57 skb_queue_walk_safe(&local->tx_queue, s, tmp) { in nfc_llcp_socket_purge() 61 skb_unlink(s, &local->tx_queue); in nfc_llcp_socket_purge() 66 static void nfc_llcp_socket_release(struct nfc_llcp_local *local, bool device, in nfc_llcp_socket_release() argument 73 skb_queue_purge(&local->tx_queue); in nfc_llcp_socket_release() 75 write_lock(&local->sockets.lock); in nfc_llcp_socket_release() 77 sk_for_each_safe(sk, tmp, &local->sockets.head) { in nfc_llcp_socket_release() 118 write_unlock(&local->sockets.lock); in nfc_llcp_socket_release() [all …]
|
D | llcp_commands.c | 192 int nfc_llcp_parse_gb_tlv(struct nfc_llcp_local *local, in nfc_llcp_parse_gb_tlv() argument 199 if (local == NULL) in nfc_llcp_parse_gb_tlv() 210 local->remote_version = llcp_tlv_version(tlv); in nfc_llcp_parse_gb_tlv() 213 local->remote_miu = llcp_tlv_miux(tlv) + 128; in nfc_llcp_parse_gb_tlv() 216 local->remote_wks = llcp_tlv_wks(tlv); in nfc_llcp_parse_gb_tlv() 219 local->remote_lto = llcp_tlv_lto(tlv) * 10; in nfc_llcp_parse_gb_tlv() 222 local->remote_opt = llcp_tlv_opt(tlv); in nfc_llcp_parse_gb_tlv() 234 local->remote_version, local->remote_miu, in nfc_llcp_parse_gb_tlv() 235 local->remote_lto, local->remote_opt, in nfc_llcp_parse_gb_tlv() 236 local->remote_wks); in nfc_llcp_parse_gb_tlv() [all …]
|
/net/smc/ |
D | smc_cdc.h | 213 union smc_host_cursor *local, in smc_host_cursor_to_cdc() argument 217 smc_curs_copy(save, local, conn); in smc_host_cursor_to_cdc() 227 struct smc_host_cdc_msg *local = &conn->local_tx_ctrl; in smc_host_msg_to_cdc() local 229 peer->common.type = local->common.type; in smc_host_msg_to_cdc() 230 peer->len = local->len; in smc_host_msg_to_cdc() 231 peer->seqno = htons(local->seqno); in smc_host_msg_to_cdc() 232 peer->token = htonl(local->token); in smc_host_msg_to_cdc() 233 smc_host_cursor_to_cdc(&peer->prod, &local->prod, save, conn); in smc_host_msg_to_cdc() 234 smc_host_cursor_to_cdc(&peer->cons, &local->cons, save, conn); in smc_host_msg_to_cdc() 235 peer->prod_flags = local->prod_flags; in smc_host_msg_to_cdc() [all …]
|