Home
last modified time | relevance | path

Searched refs:link_id (Results 1 – 25 of 176) sorted by relevance

12345678

/linux/net/mac80211/
H A Dlink.c22 int link_id, in ieee80211_link_init() argument
26 bool deflink = link_id < 0; in ieee80211_link_init()
28 if (link_id < 0) in ieee80211_link_init()
29 link_id = 0; in ieee80211_link_init()
31 rcu_assign_pointer(sdata->vif.link_conf[link_id], link_conf); in ieee80211_link_init()
32 rcu_assign_pointer(sdata->link[link_id], link); in ieee80211_link_init()
35 link->link_id = link_id; in ieee80211_link_init()
37 link_conf->link_id = link_id; in ieee80211_link_init()
58 sdata->wdev.links[link_id].addr); in ieee80211_link_init()
60 WARN_ON(!(sdata->wdev.valid_links & BIT(link_id))); in ieee80211_link_init()
[all …]
H A Dmlme.c820 struct cfg80211_bss *cbss, int link_id, in ieee80211_determine_chan_mode() argument
828 .link_id = -1, in ieee80211_determine_chan_mode()
859 mlme_link_id_dbg(sdata, link_id, "determined AP %pM to be %s\n", in ieee80211_determine_chan_mode()
973 mlme_link_id_dbg(sdata, link_id, in ieee80211_determine_chan_mode()
1425 unsigned int link_id, in ieee80211_assoc_link_elems() argument
1432 struct cfg80211_bss *cbss = assoc_data->link[link_id].bss; in ieee80211_assoc_link_elems()
1532 assoc_data->link[link_id].conn.mode >= IEEE80211_CONN_MODE_HT) { in ieee80211_assoc_link_elems()
1534 assoc_data->link[link_id].ap_ht_param, in ieee80211_assoc_link_elems()
1536 &assoc_data->link[link_id].conn); in ieee80211_assoc_link_elems()
1546 assoc_data->link[link_id].conn.mode >= IEEE80211_CONN_MODE_VHT && in ieee80211_assoc_link_elems()
[all …]
H A Dcfg.c27 ieee80211_link_or_deflink(struct ieee80211_sub_if_data *sdata, int link_id, in ieee80211_link_or_deflink() argument
32 if (link_id < 0) { in ieee80211_link_or_deflink()
44 link = sdata_dereference(sdata->link[link_id], sdata); in ieee80211_link_or_deflink()
487 int link_id, u8 key_idx, bool pairwise, in ieee80211_add_key() argument
492 ieee80211_link_or_deflink(sdata, link_id, false); in ieee80211_add_key()
514 if (link_id >= 0) in ieee80211_add_key()
528 key->conf.link_id = link_id; in ieee80211_add_key()
597 ieee80211_lookup_key(struct ieee80211_sub_if_data *sdata, int link_id, in ieee80211_lookup_key() argument
604 if (link_id >= 0) { in ieee80211_lookup_key()
605 link = sdata_dereference(sdata->link[link_id], sdata); in ieee80211_lookup_key()
[all …]
H A Ddebug.h141 (link)->link_id, \
150 (link)->link_id, \
155 #define _link_id_dbg(print, sdata, link_id, fmt, ...) \ argument
159 link_id, ##__VA_ARGS__); \
164 _link_id_dbg(1, (link)->sdata, (link)->link_id, \
230 #define mlme_link_id_dbg(sdata, link_id, fmt, ...) \ argument
231 _link_id_dbg(MAC80211_MLME_DEBUG, sdata, link_id, \
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dmld-sta.c15 unsigned int link_id; in iwl_mvm_sta_fw_id_mask() local
29 for_each_sta_active_link(vif, sta, link_sta, link_id) { in iwl_mvm_sta_fw_id_mask()
33 if (filter_link_id >= 0 && link_id != filter_link_id) in iwl_mvm_sta_fw_id_mask()
37 rcu_dereference_check(mvmsta->link[link_id], in iwl_mvm_sta_fw_id_mask()
64 const u8 *addr, int link_id) in iwl_mvm_mld_add_int_sta_to_fw() argument
73 cmd.link_id = cpu_to_le32(link_id); in iwl_mvm_mld_add_int_sta_to_fw()
141 const u8 *addr, int link_id, in iwl_mvm_mld_add_int_sta_with_queue() argument
153 ret = iwl_mvm_add_aux_sta_to_fw(mvm, sta, link_id); in iwl_mvm_mld_add_int_sta_with_queue()
155 ret = iwl_mvm_mld_add_int_sta_to_fw(mvm, sta, addr, link_id); in iwl_mvm_mld_add_int_sta_with_queue()
182 int link_id, const u8 *addr, u8 tid, in iwl_mvm_mld_add_int_sta() argument
[all …]
H A Dlink.c88 mvmvif->link[link_conf->link_id]; in iwl_mvm_set_link_mapping()
108 unsigned int link_id = link_conf->link_id; in iwl_mvm_add_link() local
109 struct iwl_mvm_vif_link_info *link_info = mvmvif->link[link_id]; in iwl_mvm_add_link()
128 cmd.link_id = cpu_to_le32(link_info->fw_link_id); in iwl_mvm_add_link()
130 cmd.spec_link_id = link_conf->link_id; in iwl_mvm_add_link()
147 unsigned int link_id; member
156 int link_id; in iwl_mvm_esr_vif_iterator() local
161 for_each_mvm_vif_valid_link(mvmvif, link_id) { in iwl_mvm_esr_vif_iterator()
163 mvmvif->link[link_id]; in iwl_mvm_esr_vif_iterator()
164 if (vif == data->vif && link_id == data->link_id) in iwl_mvm_esr_vif_iterator()
[all …]
H A Dmld-key.c21 if (keyconf->link_id >= 0) { in iwl_mvm_get_sec_sta_mask()
22 link_info = mvmvif->link[keyconf->link_id]; in iwl_mvm_get_sec_sta_mask()
50 if (!sta && (keyconf->link_id >= 0 || !ieee80211_vif_is_mld(vif))) in iwl_mvm_get_sec_sta_mask()
56 return iwl_mvm_sta_fw_id_mask(mvm, sta, keyconf->link_id); in iwl_mvm_get_sec_sta_mask()
144 if (sta != data->sta || key->link_id >= 0) in iwl_mvm_mld_update_sta_key()
256 unsigned int link_id = 0; in iwl_mvm_sec_key_add() local
259 if (keyconf->link_id >= 0) in iwl_mvm_sec_key_add()
260 link_id = keyconf->link_id; in iwl_mvm_sec_key_add()
262 mvm_link = mvmvif->link[link_id]; in iwl_mvm_sec_key_add()
312 unsigned int link_id = 0; in _iwl_mvm_sec_key_del() local
[all …]
H A Dmld-mac80211.c241 int link_id, ret = 0; in iwl_mvm_esr_mode_active() local
251 for_each_mvm_vif_valid_link(mvmvif, link_id) { in iwl_mvm_esr_mode_active()
252 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_id]; in iwl_mvm_esr_mode_active()
297 unsigned int link_id = link_conf->link_id; in __iwl_mvm_mld_assign_vif_chanctx() local
300 if (WARN_ON_ONCE(!mvmvif->link[link_id])) in __iwl_mvm_mld_assign_vif_chanctx()
304 if (!mvmvif->link[link_id]->phy_ctxt) in __iwl_mvm_mld_assign_vif_chanctx()
319 mvmvif->link[link_id]->phy_ctxt = phy_ctxt; in __iwl_mvm_mld_assign_vif_chanctx()
322 mvmvif->link[link_id]->listen_lmac = true; in __iwl_mvm_mld_assign_vif_chanctx()
347 if (ieee80211_vif_link_active(vif, link_conf->link_id)) { in __iwl_mvm_mld_assign_vif_chanctx()
379 mvmvif->link[link_id]->phy_ctxt = NULL; in __iwl_mvm_mld_assign_vif_chanctx()
[all …]
H A Dcoex.c325 int link_id) in iwl_mvm_bt_coex_update_link_esr() argument
328 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_id]; in iwl_mvm_bt_coex_update_link_esr()
337 link_id == iwl_mvm_get_primary_link(vif))) in iwl_mvm_bt_coex_update_link_esr()
346 unsigned int link_id) in iwl_mvm_bt_notif_per_link() argument
359 link_info = mvmvif->link[link_id]; in iwl_mvm_bt_notif_per_link()
363 link_conf = rcu_dereference(vif->link_conf[link_id]); in iwl_mvm_bt_notif_per_link()
379 smps_mode, link_id); in iwl_mvm_bt_notif_per_link()
388 iwl_mvm_bt_coex_update_link_esr(mvm, vif, link_id); in iwl_mvm_bt_notif_per_link()
416 smps_mode, link_id); in iwl_mvm_bt_notif_per_link()
509 unsigned int link_id; in iwl_mvm_bt_notif_iterator() local
[all …]
H A Dtime-event.c45 te_data->link_id = -1; in iwl_mvm_te_clear_data()
728 s8 link_id) in iwl_mvm_get_session_prot_id() argument
738 if (WARN(link_id < 0 || !mvmvif->link[link_id], in iwl_mvm_get_session_prot_id()
739 "Invalid link ID for session protection: %u\n", link_id)) in iwl_mvm_get_session_prot_id()
742 if (WARN(!mvmvif->link[link_id]->active, in iwl_mvm_get_session_prot_id()
743 "Session Protection on an inactive link: %u\n", link_id)) in iwl_mvm_get_session_prot_id()
746 return mvmvif->link[link_id]->fw_link_id; in iwl_mvm_get_session_prot_id()
751 u32 id, s8 link_id) in iwl_mvm_cancel_session_protection() argument
753 int mac_link_id = iwl_mvm_get_session_prot_id(mvm, vif, link_id); in iwl_mvm_cancel_session_protection()
795 s8 link_id; in __iwl_mvm_remove_time_event() local
[all …]
/linux/net/wireless/
H A Dap.c15 struct net_device *dev, unsigned int link_id, in ___cfg80211_stop_ap() argument
30 if (!wdev->links[link_id].ap.beacon_interval) in ___cfg80211_stop_ap()
33 err = rdev_stop_ap(rdev, dev, link_id); in ___cfg80211_stop_ap()
36 wdev->links[link_id].ap.beacon_interval = 0; in ___cfg80211_stop_ap()
37 memset(&wdev->links[link_id].ap.chandef, 0, in ___cfg80211_stop_ap()
38 sizeof(wdev->links[link_id].ap.chandef)); in ___cfg80211_stop_ap()
42 nl80211_send_ap_stopped(wdev, link_id); in ___cfg80211_stop_ap()
56 struct net_device *dev, int link_id, in cfg80211_stop_ap() argument
62 if (link_id >= 0) in cfg80211_stop_ap()
63 return ___cfg80211_stop_ap(rdev, dev, link_id, notify); in cfg80211_stop_ap()
H A Dmlme.c42 unsigned int link_id; in cfg80211_rx_assoc_resp() local
44 for (link_id = 0; link_id < ARRAY_SIZE(data->links); link_id++) { in cfg80211_rx_assoc_resp()
45 cr.links[link_id].status = data->links[link_id].status; in cfg80211_rx_assoc_resp()
46 cr.links[link_id].bss = data->links[link_id].bss; in cfg80211_rx_assoc_resp()
48 WARN_ON_ONCE(cr.links[link_id].status != WLAN_STATUS_SUCCESS && in cfg80211_rx_assoc_resp()
49 (!cr.ap_mld_addr || !cr.links[link_id].bss)); in cfg80211_rx_assoc_resp()
51 if (!cr.links[link_id].bss) in cfg80211_rx_assoc_resp()
53 cr.links[link_id].bssid = data->links[link_id].bss->bssid; in cfg80211_rx_assoc_resp()
54 cr.links[link_id].addr = data->links[link_id].addr; in cfg80211_rx_assoc_resp()
57 !is_valid_ether_addr(cr.links[link_id].addr)); in cfg80211_rx_assoc_resp()
[all …]
H A Dtrace.h517 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id,
519 TP_ARGS(wiphy, netdev, link_id, key_index, pairwise, mac_addr),
524 __field(int, link_id)
532 __entry->link_id = link_id;
538 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->link_id,
544 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id,
546 TP_ARGS(wiphy, netdev, link_id, key_index, pairwise, mac_addr)
550 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id,
552 TP_ARGS(wiphy, netdev, link_id, key_index, pairwise, mac_addr)
556 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id,
[all …]
H A Drdev-ops.h80 struct net_device *netdev, int link_id, in rdev_add_key() argument
85 trace_rdev_add_key(&rdev->wiphy, netdev, link_id, key_index, pairwise, in rdev_add_key()
87 ret = rdev->ops->add_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_add_key()
95 int link_id, u8 key_index, bool pairwise, const u8 *mac_addr, in rdev_get_key() argument
100 trace_rdev_get_key(&rdev->wiphy, netdev, link_id, key_index, pairwise, in rdev_get_key()
102 ret = rdev->ops->get_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_get_key()
109 struct net_device *netdev, int link_id, in rdev_del_key() argument
113 trace_rdev_del_key(&rdev->wiphy, netdev, link_id, key_index, pairwise, in rdev_del_key()
115 ret = rdev->ops->del_key(&rdev->wiphy, netdev, link_id, key_index, in rdev_del_key()
123 struct net_device *netdev, int link_id, u8 key_index, in rdev_set_default_key() argument
[all …]
/linux/drivers/soundwire/
H A Dintel.c210 unsigned int link_id = sdw->instance; in intel_shim_glue_to_master_ip() local
214 ioctl = intel_readw(shim, SDW_SHIM_IOCTL(link_id)); in intel_shim_glue_to_master_ip()
217 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_glue_to_master_ip()
221 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_glue_to_master_ip()
225 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_glue_to_master_ip()
230 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_glue_to_master_ip()
239 unsigned int link_id = sdw->instance; in intel_shim_master_ip_to_glue() local
244 ioctl = intel_readw(shim, SDW_SHIM_IOCTL(link_id)); in intel_shim_master_ip_to_glue()
247 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_master_ip_to_glue()
251 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_master_ip_to_glue()
[all …]
H A Dslave.c45 bus->controller_id, bus->link_id, id->mfg_id, id->part_id, in sdw_slave_add()
50 bus->controller_id, bus->link_id, id->mfg_id, id->part_id, in sdw_slave_add()
112 unsigned int link_id; in find_slave() local
127 link_id = SDW_DISCO_LINK_ID(addr); in find_slave()
130 if (link_id != bus->link_id) in find_slave()
236 int link_id, ret, len; in sdw_of_find_slaves() local
261 link_id = be32_to_cpup(addr++); in sdw_of_find_slaves()
266 if (link_id != bus->link_id) in sdw_of_find_slaves()
H A Dintel_init.c36 int link_id) in intel_link_dev_register() argument
54 auxdev->id = link_id; in intel_link_dev_register()
61 ctx->ldev[link_id] = ldev; in intel_link_dev_register()
69 + (SDW_LINK_SIZE * link_id); in intel_link_dev_register()
75 link->registers = res->mmio_base + SDW_IP_BASE(link_id); in intel_link_dev_register()
77 link->shim = res->mmio_base + SDW_SHIM2_GENERIC_BASE(link_id); in intel_link_dev_register()
78 link->shim_vs = res->mmio_base + SDW_SHIM2_VS_BASE(link_id); in intel_link_dev_register()
95 name, link_id); in intel_link_dev_register()
103 ldev->auxdev.name, link_id); in intel_link_dev_register()
/linux/drivers/net/wireless/mediatek/mt76/mt7925/
H A Dmain.c575 struct ieee80211_key_conf *key, int link_id) in mt7925_set_link_key() argument
589 link_conf = mt792x_vif_to_bss_conf(vif, link_id); in mt7925_set_link_key()
590 link_sta = sta ? mt792x_sta_to_link_sta(vif, sta, link_id) : NULL; in mt7925_set_link_key()
591 mconf = mt792x_vif_to_link(mvif, link_id); in mt7925_set_link_key()
592 mlink = mt792x_sta_to_link(msta, link_id); in mt7925_set_link_key()
675 unsigned int link_id; in mt7925_set_key() local
678 add = key->link_id != -1 ? BIT(key->link_id) : msta->valid_links; in mt7925_set_key()
680 for_each_set_bit(link_id, &add, IEEE80211_MLD_MAX_NUM_LINKS) { in mt7925_set_key()
681 err = mt7925_set_link_key(hw, cmd, vif, sta, key, link_id); in mt7925_set_key()
686 err = mt7925_set_link_key(hw, cmd, vif, sta, key, vif->bss_conf.link_id); in mt7925_set_key()
[all …]
/linux/drivers/net/wireless/st/cw1200/
H A Dtxrx.c440 if (t->sta && t->sta_priv->link_id) in cw1200_tx_h_calc_link_ids()
442 t->txpriv.link_id = in cw1200_tx_h_calc_link_ids()
443 t->sta_priv->link_id; in cw1200_tx_h_calc_link_ids()
446 t->txpriv.link_id = 0; in cw1200_tx_h_calc_link_ids()
450 t->txpriv.link_id = CW1200_LINK_ID_AFTER_DTIM; in cw1200_tx_h_calc_link_ids()
453 t->txpriv.link_id = 0; in cw1200_tx_h_calc_link_ids()
456 t->txpriv.link_id = cw1200_find_link_id(priv, t->da); in cw1200_tx_h_calc_link_ids()
457 if (!t->txpriv.link_id) in cw1200_tx_h_calc_link_ids()
458 t->txpriv.link_id = cw1200_alloc_link_id(priv, t->da); in cw1200_tx_h_calc_link_ids()
459 if (!t->txpriv.link_id) { in cw1200_tx_h_calc_link_ids()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_factory.c393 if (link->link_id.id != CONNECTOR_ID_VIRTUAL && link->eng_id != ENGINE_ID_UNKNOWN) { in link_destruct()
478 link->link_id = in construct_phy()
483 DC_LOG_DC("BIOS object table - link_id: %d", link->link_id.id); in construct_phy()
486 bios->funcs->get_disp_connector_caps_info(bios, link->link_id, &disp_connect_caps_info); in construct_phy()
491 if (link->link_id.type != OBJECT_TYPE_CONNECTOR) { in construct_phy()
494 link->link_id.type, OBJECT_TYPE_CONNECTOR); in construct_phy()
501 link->hpd_gpio = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, in construct_phy()
513 switch (link->link_id.id) { in construct_phy()
574 link->link_id.id); in construct_phy()
583 ddc_service_init_data.id = link->link_id; in construct_phy()
[all …]
/linux/tools/testing/selftests/bpf/progs/
H A Dbpf_iter_bpf_link.c13 int link_id; in dump_bpf_link() local
18 link_id = link->id; in dump_bpf_link()
19 bpf_seq_write(seq, &link_id, sizeof(link_id)); in dump_bpf_link()
/linux/drivers/net/wireless/mediatek/mt76/
H A Dmt792x.h123 unsigned int link_id; member
241 mt792x_vif_to_link(struct mt792x_vif *mvif, u8 link_id) in mt792x_vif_to_link() argument
248 link_id >= IEEE80211_LINK_UNSPECIFIED) in mt792x_vif_to_link()
251 return rcu_dereference_protected(mvif->link_conf[link_id], in mt792x_vif_to_link()
256 mt792x_sta_to_link(struct mt792x_sta *msta, u8 link_id) in mt792x_sta_to_link() argument
263 link_id >= IEEE80211_LINK_UNSPECIFIED) in mt792x_sta_to_link()
266 return rcu_dereference_protected(msta->link[link_id], in mt792x_sta_to_link()
276 return mt792x_vif_to_link(mvif, link_conf->link_id); in mt792x_link_conf_to_mconf()
280 mt792x_vif_to_bss_conf(struct ieee80211_vif *vif, unsigned int link_id) in mt792x_vif_to_bss_conf() argument
283 link_id >= IEEE80211_LINK_UNSPECIFIED) in mt792x_vif_to_bss_conf()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_link_enc_cfg.c153 .link_id = stream->link->link_id, in add_link_enc_assignment()
228 if (lhs->link_id.id == rhs->link_id.id && in are_ep_ids_equal()
229 lhs->link_id.enum_id == rhs->link_id.enum_id && in are_ep_ids_equal()
230 lhs->link_id.type == rhs->link_id.type && in are_ep_ids_equal()
246 .link_id = link->link_id, in get_link_enc_used_by_link()
426 assignment.ep_id.link_id.enum_id : in link_enc_cfg_link_encs_assign()
427 assignment.ep_id.link_id.enum_id - 1, in link_enc_cfg_link_encs_assign()
439 assignment.ep_id.link_id.enum_id : in link_enc_cfg_link_encs_assign()
440 assignment.ep_id.link_id.enum_id - 1, in link_enc_cfg_link_encs_assign()
517 .link_id = link->link_id, in link_enc_cfg_get_link_enc_used_by_link()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_hpd.c73 hpd = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, link->ctx->gpio_service); in link_enable_hpd_filter()
97 struct graphics_object_id link_id, in link_get_hpd_gpio() argument
104 if (dcb->funcs->get_hpd_info(dcb, link_id, &hpd_info) != BP_RESULT_OK) in link_get_hpd_gpio()
123 link->ctx->dc_bios, link->link_id, in query_hpd_status()
142 hpd = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, in get_hpd_line()
214 hpd = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, in program_hpd_filter()
/linux/include/net/
H A Dmac80211.h762 unsigned int link_id; member
1672 u8 link_valid:1, link_id:4; member
1832 u8 link_id; member
2085 unsigned int link_id) in ieee80211_vif_link_active() argument
2088 return link_id == 0; in ieee80211_vif_link_active()
2089 return vif->active_links & BIT(link_id); in ieee80211_vif_link_active()
2092 #define for_each_vif_active_link(vif, link, link_id) \ argument
2093 for (link_id = 0; link_id < ARRAY_SIZE((vif)->link_conf); link_id++) \
2095 (vif)->active_links & BIT(link_id)) && \
2096 (link = link_conf_dereference_check(vif, link_id)))
[all …]

12345678