Home
last modified time | relevance | path

Searched +full:- +full:- +full:local (Results 1 – 25 of 1072) sorted by relevance

12345678910>>...43

/openbmc/linux/net/mac80211/
H A Ddriver-ops.h1 /* SPDX-License-Identifier: GPL-2.0 */
5 * Copyright (C) 2018 - 2019, 2021 - 2023 Intel Corporation
16 WARN_ONCE(!sdata->local->reconfig_failure && \
17 !(sdata->flags & IEEE80211_SDATA_IN_DRIVER), \
18 "%s: Failed check-sdata-in-driver check, flags: 0x%x\n", \
19 sdata->dev ? sdata->dev->name : sdata->name, sdata->flags); \
20 !!(sdata->flags & IEEE80211_SDATA_IN_DRIVER); \
26 if (sdata && sdata->vif.type == NL80211_IFTYPE_AP_VLAN) in get_bss_sdata()
27 sdata = container_of(sdata->bss, struct ieee80211_sub_if_data, in get_bss_sdata()
33 static inline void drv_tx(struct ieee80211_local *local, in drv_tx() argument
[all …]
H A Dled.c1 // SPDX-License-Identifier: GPL-2.0-only
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
[all …]
H A Dscan.c1 // SPDX-License-Identifier: GPL-2.0-only
8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
10 * Copyright 2013-2015 Intel Mobile Communications GmbH
11 * Copyright 2016-2017 Intel Deutschland GmbH
12 * Copyright (C) 2018-2024 Intel Corporation
25 #include "driver-ops.h"
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()
45 if (elems->wmm_info && elems->wmm_info_len == 7 in is_uapsd_supported()
46 && elems->wmm_info[5] == 1) in is_uapsd_supported()
[all …]
H A Dmain.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2002-2005, Instant802 Networks, Inc.
4 * Copyright 2005-2006, Devicescape Software, Inc.
5 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
6 * Copyright 2013-2014 Intel Mobile Communications GmbH
8 * Copyright (C) 2018-2023 Intel Corporation
30 #include "driver-ops.h"
37 void ieee80211_configure_filter(struct ieee80211_local *local) in ieee80211_configure_filter() argument
43 if (atomic_read(&local->iff_allmultis)) in ieee80211_configure_filter()
46 if (local->monitors || test_bit(SCAN_SW_SCANNING, &local->scanning) || in ieee80211_configure_filter()
[all …]
H A Ddriver-ops.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Copyright (C) 2022-2023 Intel Corporation
9 #include "driver-ops.h"
13 int drv_start(struct ieee80211_local *local) in drv_start() argument
19 if (WARN_ON(local->started)) in drv_start()
20 return -EALREADY; in drv_start()
22 trace_drv_start(local); in drv_start()
23 local->started = true; in drv_start()
26 ret = local->ops->start(&local->hw); in drv_start()
27 trace_drv_return_int(local, ret); in drv_start()
[all …]
H A Doffchannel.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Off-channel operation helpers
8 * Copyright 2006-2007 Jiri Benc <jbenc@suse.cz>
11 * Copyright (C) 2019, 2022-2023 Intel Corporation
16 #include "driver-ops.h"
21 * the frames while we are doing off-channel work. This is optional
22 * because we *may* be doing work on-operating channel, and want our
27 struct ieee80211_local *local = sdata->local; in ieee80211_offchannel_ps_enable() local
28 struct ieee80211_if_managed *ifmgd = &sdata->u.mgd; in ieee80211_offchannel_ps_enable()
31 /* FIXME: what to do when local->pspolling is true? */ in ieee80211_offchannel_ps_enable()
[all …]
H A Dchan.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * mac80211 - channel management
4 * Copyright 2020 - 2022 Intel Corporation
12 #include "driver-ops.h"
15 static int ieee80211_chanctx_num_assigned(struct ieee80211_local *local, in ieee80211_chanctx_num_assigned() argument
21 lockdep_assert_held(&local->chanctx_mtx); in ieee80211_chanctx_num_assigned()
23 list_for_each_entry(link, &ctx->assigned_links, assigned_chanctx_list) in ieee80211_chanctx_num_assigned()
29 static int ieee80211_chanctx_num_reserved(struct ieee80211_local *local, in ieee80211_chanctx_num_reserved() argument
35 lockdep_assert_held(&local->chanctx_mtx); in ieee80211_chanctx_num_reserved()
37 list_for_each_entry(link, &ctx->reserved_links, reserved_chanctx_list) in ieee80211_chanctx_num_reserved()
[all …]
H A Diface.c1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2002-2005, Instant802 Networks, Inc.
6 * Copyright 2005-2006, Devicescape Software, Inc.
9 * Copyright 2013-2014 Intel Mobile Communications GmbH
11 * Copyright (C) 2018-2023 Intel Corporation
26 #include "driver-ops.h"
34 * three-fold:
40 * can traverse the list in RCU-safe blocks.
54 chanctx_conf = rcu_dereference(sdata->vif.bss_conf.chanctx_conf); in __ieee80211_recalc_txpower()
60 power = ieee80211_chandef_max_power(&chanctx_conf->def); in __ieee80211_recalc_txpower()
[all …]
/openbmc/linux/net/mac802154/
H A Ddriver-ops.h1 /* SPDX-License-Identifier: GPL-2.0 */
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_set_pan_id(struct ieee802154_local *local, __le16 pan_id) in drv_set_pan_id() argument
34 if (!local->ops->set_hw_addr_filt) { in drv_set_pan_id()
36 return -EOPNOTSUPP; in drv_set_pan_id()
41 trace_802154_drv_set_pan_id(local, pan_id); in drv_set_pan_id()
42 ret = local->ops->set_hw_addr_filt(&local->hw, &filt, in drv_set_pan_id()
[all …]
H A Dscan.c1 // SPDX-License-Identifier: GPL-2.0-only
7 * - David Girault <david.girault@qorvo.com>
8 * - Miquel Raynal <miquel.raynal@bootlin.com>
16 #include "driver-ops.h"
29 * - Completions are asynchronous, not locked by the rtnl and decided by the
31 * - Aborts are decided by userspace, and locked by the rtnl.
39 * - The sub-interface and device driver module get both their reference
42 * - Data consistency is achieved by the use of rcu protected pointers.
44 static int mac802154_scan_cleanup_locked(struct ieee802154_local *local, in mac802154_scan_cleanup_locked() argument
48 struct wpan_dev *wpan_dev = &sdata->wpan_dev; in mac802154_scan_cleanup_locked()
[all …]
H A Dtx.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright 2007-2012 Siemens AG
6 * Dmitry Eremin-Solenikov <dbaryshkov@gmail.com>
14 #include <linux/crc-ccitt.h>
23 #include "driver-ops.h"
27 struct ieee802154_local *local = in ieee802154_xmit_sync_worker() local
29 struct sk_buff *skb = local->tx_skb; in ieee802154_xmit_sync_worker()
30 struct net_device *dev = skb->dev; in ieee802154_xmit_sync_worker()
33 res = drv_xmit_sync(local, skb); in ieee802154_xmit_sync_worker()
38 DEV_STATS_ADD(dev, tx_bytes, skb->len); in ieee802154_xmit_sync_worker()
[all …]
H A Dmain.c1 // SPDX-License-Identifier: GPL-2.0-only
3 * Copyright (C) 2007-2012 Siemens AG
25 struct ieee802154_local *local = from_tasklet(local, t, tasklet); in ieee802154_tasklet_handler() local
28 while ((skb = skb_dequeue(&local->skb_queue))) { in ieee802154_tasklet_handler()
29 switch (skb->pkt_type) { in ieee802154_tasklet_handler()
31 /* Clear skb->pkt_type in order to not confuse kernel in ieee802154_tasklet_handler()
34 skb->pkt_type = 0; in ieee802154_tasklet_handler()
35 ieee802154_rx(local, skb); in ieee802154_tasklet_handler()
39 skb->pkt_type); in ieee802154_tasklet_handler()
50 struct ieee802154_local *local; in ieee802154_alloc_hw() local
[all …]
/openbmc/linux/net/rxrpc/
H A Dlocal_object.c1 // SPDX-License-Identifier: GPL-2.0-or-later
2 /* Local endpoint object management
21 #include "ar-internal.h"
33 if (ip_hdr(skb)->version == IPVERSION) in rxrpc_encap_err_rcv()
42 void rxrpc_local_dont_fragment(const struct rxrpc_local *local, bool set) in rxrpc_local_dont_fragment() argument
45 ip_sock_set_mtu_discover(local->socket->sk, IP_PMTUDISC_DO); in rxrpc_local_dont_fragment()
47 ip_sock_set_mtu_discover(local->socket->sk, IP_PMTUDISC_DONT); in rxrpc_local_dont_fragment()
51 * Compare a local to an address. Return -ve, 0 or +ve to indicate less than,
59 static long rxrpc_local_cmp_key(const struct rxrpc_local *local, in rxrpc_local_cmp_key() argument
64 diff = ((local->srx.transport_type - srx->transport_type) ?: in rxrpc_local_cmp_key()
[all …]
/openbmc/linux/drivers/net/wireless/intersil/hostap/
H A Dhostap_main.c1 // SPDX-License-Identifier: GPL-2.0-only
4 * Intersil Prism2/2.5/3 - hostap.o module, common routines
6 * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen
8 * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
42 #define PRISM2_MAX_MTU (PRISM2_MAX_FRAME_SIZE - (6 /* LLC */ + 8 /* WEP */))
45 struct net_device * hostap_add_interface(struct local_info *local, in hostap_add_interface() argument
59 iface->dev = dev; in hostap_add_interface()
60 iface->local = local; in hostap_add_interface()
61 iface->type = type; in hostap_add_interface()
62 list_add(&iface->list, &local->hostap_interfaces); in hostap_add_interface()
[all …]
H A Dhostap_hw.c1 // SPDX-License-Identifier: GPL-2.0-only
6 * Copyright (c) 2001-2002, SSH Communications Security Corp and Jouni Malinen
8 * Copyright (c) 2002-2005, Jouni Malinen <j@w1.fi>
11 * - there is currently no way of associating TX packets to correct wds device
24 * host and card memories. BAP0 accesses are protected with local->baplock
88 /* check WTERR events (Wait Time-out) in development versions */
125 static void prism2_check_sta_fw_version(local_info_t *local);
131 static int prism2_download(local_info_t *local,
134 static int prism2_download_volatile(local_info_t *local,
136 static int prism2_download_genesis(local_info_t *local,
[all …]
H A Dhostap_info.c1 // SPDX-License-Identifier: GPL-2.0
14 static void prism2_info_commtallies16(local_info_t *local, unsigned char *buf, in prism2_info_commtallies16() argument
21 "info frame\n", local->dev->name, left); in prism2_info_commtallies16()
27 local->comm_tallies.name += le16_to_cpu(tallies->name) in prism2_info_commtallies16()
54 static void prism2_info_commtallies32(local_info_t *local, unsigned char *buf, in prism2_info_commtallies32() argument
61 "info frame\n", local->dev->name, left); in prism2_info_commtallies32()
67 local->comm_tallies.name += le32_to_cpu(tallies->name) in prism2_info_commtallies32()
94 static void prism2_info_commtallies(local_info_t *local, unsigned char *buf, in prism2_info_commtallies() argument
97 if (local->tallies32) in prism2_info_commtallies()
98 prism2_info_commtallies32(local, buf, left); in prism2_info_commtallies()
[all …]
H A Dhostap_ioctl.c1 // SPDX-License-Identifier: GPL-2.0
20 local_info_t *local; in hostap_get_wireless_stats() local
24 local = iface->local; in hostap_get_wireless_stats()
27 if (iface->type != HOSTAP_INTERFACE_MAIN) in hostap_get_wireless_stats()
30 wstats = &local->wstats; in hostap_get_wireless_stats()
32 wstats->status = 0; in hostap_get_wireless_stats()
33 wstats->discard.code = in hostap_get_wireless_stats()
34 local->comm_tallies.rx_discards_wep_undecryptable; in hostap_get_wireless_stats()
35 wstats->discard.misc = in hostap_get_wireless_stats()
36 local->comm_tallies.rx_fcs_errors + in hostap_get_wireless_stats()
[all …]
H A Dhostap_proc.c1 // SPDX-License-Identifier: GPL-2.0
12 #define PROC_LIMIT (PAGE_SIZE - 80)
17 local_info_t *local = m->private; in prism2_debug_proc_show() local
21 local->next_txfid, local->next_alloc); in prism2_debug_proc_show()
24 local->txfid[i], local->intransmitfid[i]); in prism2_debug_proc_show()
25 seq_printf(m, "FW TX rate control: %d\n", local->fw_tx_rate_control); in prism2_debug_proc_show()
26 seq_printf(m, "beacon_int=%d\n", local->beacon_int); in prism2_debug_proc_show()
27 seq_printf(m, "dtim_period=%d\n", local->dtim_period); in prism2_debug_proc_show()
28 seq_printf(m, "wds_max_connections=%d\n", local->wds_max_connections); in prism2_debug_proc_show()
29 seq_printf(m, "dev_enabled=%d\n", local->dev_enabled); in prism2_debug_proc_show()
[all …]
/openbmc/linux/net/nfc/
H A Dllcp_core.c1 // SPDX-License-Identifier: GPL-2.0-or-later
23 static void nfc_llcp_rx_skb(struct nfc_llcp_local *local, struct sk_buff *skb);
27 write_lock(&l->lock); in nfc_llcp_sock_link()
28 sk_add_node(sk, &l->head); in nfc_llcp_sock_link()
29 write_unlock(&l->lock); in nfc_llcp_sock_link()
34 write_lock(&l->lock); in nfc_llcp_sock_unlink()
36 write_unlock(&l->lock); in nfc_llcp_sock_unlink()
41 sock->remote_rw = LLCP_DEFAULT_RW; in nfc_llcp_socket_remote_param_init()
42 sock->remote_miu = LLCP_MAX_MIU + 1; in nfc_llcp_socket_remote_param_init()
47 struct nfc_llcp_local *local = sock->local; in nfc_llcp_socket_purge() local
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/team/
H A Dnet_forwarding_lib.sh2 # SPDX-License-Identifier: GPL-2.0
37 if [[ -f $relative_path/forwarding.config ]]; then
41 # Kselftest framework requirement - SKIP code is 4.
46 local timeout=$1; shift
48 local start_time="$(date -u +%s%3N)"
51 local out
53 local ret=$?
55 echo -n "$out"
59 local current_time="$(date -u +%s%3N)"
60 if ((current_time - start_time > timeout)); then
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/
H A Dlib.sh2 # SPDX-License-Identifier: GPL-2.0
37 if [[ -f $relative_path/forwarding.config ]]; then
41 # Kselftest framework requirement - SKIP code is 4.
46 local timeout=$1; shift
48 local start_time="$(date -u +%s%3N)"
51 local out
53 local ret=$?
55 echo -n "$out"
59 local current_time="$(date -u +%s%3N)"
60 if ((current_time - start_time > timeout)); then
[all …]
/openbmc/linux/tools/testing/selftests/drivers/net/bonding/
H A Dnet_forwarding_lib.sh2 # SPDX-License-Identifier: GPL-2.0
37 if [[ -f $relative_path/forwarding.config ]]; then
41 # Kselftest framework requirement - SKIP code is 4.
46 local timeout=$1; shift
48 local start_time="$(date -u +%s%3N)"
51 local out
53 local ret=$?
55 echo -n "$out"
59 local current_time="$(date -u +%s%3N)"
60 if ((current_time - start_time > timeout)); then
[all …]
/openbmc/linux/tools/testing/selftests/net/forwarding/
H A Dlib.sh2 # SPDX-License-Identifier: GPL-2.0
37 if [[ -f $relative_path/forwarding.config ]]; then
41 # Kselftest framework requirement - SKIP code is 4.
46 local timeout=$1; shift
48 local start_time="$(date -u +%s%3N)"
51 local out
53 local ret=$?
55 echo -n "$out"
59 local current_time="$(date -u +%s%3N)"
60 if ((current_time - start_time > timeout)); then
[all …]
H A Dmirror_lib.sh1 # SPDX-License-Identifier: GPL-2.0
5 local from_dev=$1; shift
6 local direction=$1; shift
7 local to_dev=$1; shift
8 local filter=$1; shift
17 local from_dev=$1; shift
18 local direction=$1; shift
25 local addr=$1; shift
27 [[ -z ${addr//[0-9a-fA-F:]/} ]]
32 local vrf_name=$1; shift
[all …]
/openbmc/linux/tools/testing/selftests/net/
H A Dtest_vxlan_mdb.sh2 # SPDX-License-Identifier: GPL-2.0
12 # +------------------------------------+ +------------------------------------+
19 # | +---------+---------+ | | +---------+---------+ |
33 # +-----------------|------------------+ +-----------------|------------------+
35 # +-----------------|------------------+ +-----------------|------------------+
49 # | +---------+---------+ | | +---------+---------+ |
56 # +------------------------------------+ +------------------------------------+
59 # Kselftest framework requirement - SKIP code is 4.
122 # All tests in this script. Can be overridden with -t option.
136 local rc=$1
[all …]

12345678910>>...43