/linux-6.6.21/net/mac80211/ |
D | link.c | 22 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() 55 sdata->wdev.links[link_id].addr); in ieee80211_link_init() 57 WARN_ON(!(sdata->wdev.valid_links & BIT(link_id))); in ieee80211_link_init() [all …]
|
D | driver-ops.c | 198 !(sdata->vif.active_links & BIT(link->link_id))) in drv_conf_tx() 212 trace_drv_conf_tx(local, sdata, link->link_id, ac, params); in drv_conf_tx() 215 link->link_id, ac, params); in drv_conf_tx() 293 !(sdata->vif.active_links & BIT(link_conf->link_id))) in drv_assign_vif_chanctx() 321 !(sdata->vif.active_links & BIT(link_conf->link_id))) in drv_unassign_vif_chanctx() 416 int link_id, u64 changed) in drv_link_info_changed() argument 439 !(sdata->vif.active_links & BIT(link_id))) in drv_link_info_changed() 466 if (WARN_ON(key->link_id >= 0 && sdata->vif.active_links && in drv_set_key() 467 !(sdata->vif.active_links & BIT(key->link_id)))) in drv_set_key() 484 unsigned int link_id; in drv_change_vif_links() local [all …]
|
D | chan.c | 199 unsigned int link_id) in ieee80211_get_sta_bw() argument 204 link_sta = rcu_dereference(sta->link[link_id]); in ieee80211_get_sta_bw() 243 unsigned int link_id) in ieee80211_get_max_required_bw() argument 253 max_bw = max(max_bw, ieee80211_get_sta_bw(sta, link_id)); in ieee80211_get_max_required_bw() 266 int link_id; in ieee80211_get_chanctx_vif_max_required_bw() local 269 for (link_id = 0; link_id < ARRAY_SIZE(sdata->link); link_id++) { in ieee80211_get_chanctx_vif_max_required_bw() 272 rcu_dereference(sdata->link[link_id]); in ieee80211_get_chanctx_vif_max_required_bw() 284 width = ieee80211_get_max_required_bw(sdata, link_id); in ieee80211_get_chanctx_vif_max_required_bw() 293 ieee80211_get_max_required_bw(sdata, link_id)); in ieee80211_get_chanctx_vif_max_required_bw() 412 unsigned int link_id; in ieee80211_chan_bw_change() local [all …]
|
D | mlme.c | 1024 unsigned int link_id, in ieee80211_assoc_link_elems() argument 1031 struct cfg80211_bss *cbss = assoc_data->link[link_id].bss; in ieee80211_assoc_link_elems() 1131 !(assoc_data->link[link_id].conn_flags & IEEE80211_CONN_DISABLE_HT)) { in ieee80211_assoc_link_elems() 1133 assoc_data->link[link_id].ap_ht_param, in ieee80211_assoc_link_elems() 1135 assoc_data->link[link_id].conn_flags); in ieee80211_assoc_link_elems() 1145 !(assoc_data->link[link_id].conn_flags & IEEE80211_CONN_DISABLE_VHT)) { in ieee80211_assoc_link_elems() 1148 &assoc_data->link[link_id].ap_vht_cap, in ieee80211_assoc_link_elems() 1149 assoc_data->link[link_id].conn_flags); in ieee80211_assoc_link_elems() 1160 if (assoc_data->link[link_id].conn_flags & IEEE80211_CONN_DISABLE_HT || in ieee80211_assoc_link_elems() 1162 assoc_data->link[link_id].conn_flags & IEEE80211_CONN_DISABLE_VHT)) in ieee80211_assoc_link_elems() [all …]
|
D | key.c | 180 if (key->conf.link_id >= 0 && sdata->vif.active_links && in ieee80211_key_enable_hw_accel() 181 !(sdata->vif.active_links & BIT(key->conf.link_id))) in ieee80211_key_enable_hw_accel() 253 if (key->conf.link_id >= 0 && sdata->vif.active_links && in ieee80211_key_disable_hw_accel() 254 !(sdata->vif.active_links & BIT(key->conf.link_id))) in ieee80211_key_disable_hw_accel() 449 int link_id; in ieee80211_key_replace() local 463 link_id = new->conf.link_id; in ieee80211_key_replace() 468 link_id = old->conf.link_id; in ieee80211_key_replace() 471 if (WARN(old && old->conf.link_id != link_id, in ieee80211_key_replace() 473 old->conf.link_id, link_id)) in ieee80211_key_replace() 476 if (link_id >= 0) { in ieee80211_key_replace() [all …]
|
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/ |
D | mld-sta.c | 13 unsigned int link_id; in iwl_mvm_sta_fw_id_mask() local 26 for (link_id = 0; link_id < ARRAY_SIZE(mvmsta->link); link_id++) { in iwl_mvm_sta_fw_id_mask() 30 if (filter_link_id >= 0 && link_id != filter_link_id) in iwl_mvm_sta_fw_id_mask() 34 rcu_dereference_check(mvmsta->link[link_id], in iwl_mvm_sta_fw_id_mask() 61 const u8 *addr, int link_id) in iwl_mvm_mld_add_int_sta_to_fw() argument 70 cmd.link_id = cpu_to_le32(link_id); in iwl_mvm_mld_add_int_sta_to_fw() 138 const u8 *addr, int link_id, in iwl_mvm_mld_add_int_sta_with_queue() argument 150 ret = iwl_mvm_add_aux_sta_to_fw(mvm, sta, link_id); in iwl_mvm_mld_add_int_sta_with_queue() 152 ret = iwl_mvm_mld_add_int_sta_to_fw(mvm, sta, addr, link_id); in iwl_mvm_mld_add_int_sta_with_queue() 179 int link_id, const u8 *addr, u8 tid, in iwl_mvm_mld_add_int_sta() argument [all …]
|
D | link.c | 11 u32 link_id; in iwl_mvm_get_free_fw_link_id() local 15 link_id = ffz(mvm->fw_link_ids_map); in iwl_mvm_get_free_fw_link_id() 18 if (link_id > IWL_MVM_FW_MAX_LINK_ID) in iwl_mvm_get_free_fw_link_id() 21 mvm->fw_link_ids_map |= BIT(link_id); in iwl_mvm_get_free_fw_link_id() 22 return link_id; in iwl_mvm_get_free_fw_link_id() 25 static void iwl_mvm_release_fw_link_id(struct iwl_mvm *mvm, u32 link_id) in iwl_mvm_release_fw_link_id() argument 29 if (!WARN_ON(link_id > IWL_MVM_FW_MAX_LINK_ID)) in iwl_mvm_release_fw_link_id() 30 mvm->fw_link_ids_map &= ~BIT(link_id); in iwl_mvm_release_fw_link_id() 53 unsigned int link_id = link_conf->link_id; in iwl_mvm_add_link() local 54 struct iwl_mvm_vif_link_info *link_info = mvmvif->link[link_id]; in iwl_mvm_add_link() [all …]
|
D | mld-key.c | 21 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() 137 if (sta != data->sta || key->link_id >= 0) in iwl_mvm_mld_update_sta_key() 249 unsigned int link_id = 0; in iwl_mvm_sec_key_add() local 252 if (keyconf->link_id >= 0) in iwl_mvm_sec_key_add() 253 link_id = keyconf->link_id; in iwl_mvm_sec_key_add() 255 mvm_link = mvmvif->link[link_id]; in iwl_mvm_sec_key_add() 305 unsigned int link_id = 0; in _iwl_mvm_sec_key_del() local [all …]
|
D | mld-mac80211.c | 210 int link_id, ret = 0; in iwl_mvm_esr_mode_active() local 220 for_each_mvm_vif_valid_link(mvmvif, link_id) { in iwl_mvm_esr_mode_active() 221 struct iwl_mvm_vif_link_info *link = mvmvif->link[link_id]; in iwl_mvm_esr_mode_active() 247 unsigned int link_id = link_conf->link_id; in __iwl_mvm_mld_assign_vif_chanctx() local 257 if (WARN_ON_ONCE(!mvmvif->link[link_id])) in __iwl_mvm_mld_assign_vif_chanctx() 272 mvmvif->link[link_id]->phy_ctxt = phy_ctxt; in __iwl_mvm_mld_assign_vif_chanctx() 275 mvmvif->link[link_id]->listen_lmac = true; in __iwl_mvm_mld_assign_vif_chanctx() 309 link_sta = rcu_dereference(mvmvif->ap_sta->link[link_id]); in __iwl_mvm_mld_assign_vif_chanctx() 344 mvmvif->link[link_id]->phy_ctxt = NULL; in __iwl_mvm_mld_assign_vif_chanctx() 369 int link_id, ret = 0; in iwl_mvm_esr_mode_inactive() local [all …]
|
/linux-6.6.21/net/wireless/ |
D | ap.c | 15 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() [all …]
|
D | mlme.c | 42 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 …]
|
D | trace.h | 435 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id, 437 TP_ARGS(wiphy, netdev, link_id, key_index, pairwise, mac_addr), 442 __field(int, link_id) 450 __entry->link_id = link_id; 456 WIPHY_PR_ARG, NETDEV_PR_ARG, __entry->link_id, 462 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id, 464 TP_ARGS(wiphy, netdev, link_id, key_index, pairwise, mac_addr) 468 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id, 470 TP_ARGS(wiphy, netdev, link_id, key_index, pairwise, mac_addr) 474 TP_PROTO(struct wiphy *wiphy, struct net_device *netdev, int link_id, [all …]
|
D | rdev-ops.h | 80 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-6.6.21/drivers/soundwire/ |
D | intel.c | 211 unsigned int link_id = sdw->instance; in intel_shim_glue_to_master_ip() local 215 ioctl = intel_readw(shim, SDW_SHIM_IOCTL(link_id)); in intel_shim_glue_to_master_ip() 218 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_glue_to_master_ip() 222 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_glue_to_master_ip() 226 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_glue_to_master_ip() 231 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_glue_to_master_ip() 240 unsigned int link_id = sdw->instance; in intel_shim_master_ip_to_glue() local 245 ioctl = intel_readw(shim, SDW_SHIM_IOCTL(link_id)); in intel_shim_master_ip_to_glue() 248 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_master_ip_to_glue() 252 intel_writew(shim, SDW_SHIM_IOCTL(link_id), ioctl); in intel_shim_master_ip_to_glue() [all …]
|
D | slave.c | 44 bus->controller_id, bus->link_id, id->mfg_id, id->part_id, in sdw_slave_add() 49 bus->controller_id, bus->link_id, id->mfg_id, id->part_id, in sdw_slave_add() 101 unsigned int link_id; in find_slave() local 120 link_id = SDW_DISCO_LINK_ID(addr); in find_slave() 123 if (link_id != bus->link_id) in find_slave() 229 int link_id, ret, len; in sdw_of_find_slaves() local 254 link_id = be32_to_cpup(addr++); in sdw_of_find_slaves() 259 if (link_id != bus->link_id) in sdw_of_find_slaves()
|
D | intel_init.c | 35 int link_id) in intel_link_dev_register() argument 53 auxdev->id = link_id; in intel_link_dev_register() 60 ctx->ldev[link_id] = ldev; in intel_link_dev_register() 68 + (SDW_LINK_SIZE * link_id); in intel_link_dev_register() 74 link->registers = res->mmio_base + SDW_IP_BASE(link_id); in intel_link_dev_register() 76 link->shim = res->mmio_base + SDW_SHIM2_GENERIC_BASE(link_id); in intel_link_dev_register() 77 link->shim_vs = res->mmio_base + SDW_SHIM2_VS_BASE(link_id); in intel_link_dev_register() 94 name, link_id); in intel_link_dev_register() 102 ldev->auxdev.name, link_id); in intel_link_dev_register() 264 ctx->ids[i].link_id = bus->link_id; in sdw_intel_probe_controller()
|
D | intel_ace2x.c | 76 unsigned int link_id = sdw->instance; in intel_link_power_up() local 99 ret = hdac_bus_eml_sdw_power_up_unlocked(sdw->link_res->hbus, link_id); in intel_link_power_up() 116 *shim_mask |= BIT(link_id); in intel_link_power_up() 131 unsigned int link_id = sdw->instance; in intel_link_power_down() local 138 *shim_mask &= ~BIT(link_id); in intel_link_power_down() 140 ret = hdac_bus_eml_sdw_power_down_unlocked(sdw->link_res->hbus, link_id); in intel_link_power_down() 158 unsigned int link_id = sdw->instance; in intel_sync_arm() local 162 hdac_bus_eml_sdw_sync_arm_unlocked(sdw->link_res->hbus, link_id); in intel_sync_arm() 201 int link_id, int alh_stream_id) in intel_params_stream() argument 209 params_data.link_id = link_id; in intel_params_stream() [all …]
|
D | intel_auxdevice.c | 131 "mipi-sdw-link-%d-subproperties", bus->link_id); in sdw_master_read_intel_prop() 240 bus->link_id = auxdev->id; in intel_link_probe() 266 bus->link_id); in intel_link_probe() 294 link_flags = md_flags >> (bus->link_id * 8); in intel_link_startup() 417 bus->link_id); in intel_link_process_wakeen_event() 476 bus->link_id); in intel_pm_prepare() 536 bus->link_id); in intel_suspend() 581 bus->link_id); in intel_suspend_runtime() 620 bus->link_id); in intel_resume() 624 link_flags = md_flags >> (bus->link_id * 8); in intel_resume() [all …]
|
/linux-6.6.21/tools/testing/selftests/bpf/progs/ |
D | bpf_iter_bpf_link.c | 13 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-6.6.21/sound/soc/ |
D | soc-acpi.c | 137 unsigned int part_id, link_id, unique_id, mfg_id, version; in snd_soc_acpi_sdw_link_slaves_found() local 146 link_id = SDW_DISCO_LINK_ID(adr); in snd_soc_acpi_sdw_link_slaves_found() 151 if (ids[j].link_id == link_id && in snd_soc_acpi_sdw_link_slaves_found() 161 if (ids[j].link_id != link_id || in snd_soc_acpi_sdw_link_slaves_found() 184 dev_dbg(dev, "found part_id %#x at link %d\n", part_id, link_id); in snd_soc_acpi_sdw_link_slaves_found() 189 part_id, reported_part_count, expected_part_count, link_id); in snd_soc_acpi_sdw_link_slaves_found()
|
/linux-6.6.21/drivers/net/wireless/st/cw1200/ |
D | txrx.c | 440 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-6.6.21/drivers/gpu/drm/amd/display/dc/link/ |
D | link_factory.c | 411 if (link->link_id.id != CONNECTOR_ID_VIRTUAL) { in link_destruct() 497 link->link_id = in construct_phy() 502 DC_LOG_DC("BIOS object table - link_id: %d", link->link_id.id); in construct_phy() 505 bios->funcs->get_disp_connector_caps_info(bios, link->link_id, &disp_connect_caps_info); in construct_phy() 510 if (link->link_id.type != OBJECT_TYPE_CONNECTOR) { in construct_phy() 513 link->link_id.type, OBJECT_TYPE_CONNECTOR); in construct_phy() 520 link->hpd_gpio = link_get_hpd_gpio(link->ctx->dc_bios, link->link_id, in construct_phy() 532 switch (link->link_id.id) { in construct_phy() 592 link->link_id.id); in construct_phy() 601 ddc_service_init_data.id = link->link_id; in construct_phy() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_link_enc_cfg.c | 153 .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() 424 assignment.ep_id.link_id.enum_id : in link_enc_cfg_link_encs_assign() 425 assignment.ep_id.link_id.enum_id - 1, in link_enc_cfg_link_encs_assign() 437 assignment.ep_id.link_id.enum_id : in link_enc_cfg_link_encs_assign() 438 assignment.ep_id.link_id.enum_id - 1, in link_enc_cfg_link_encs_assign() 515 .link_id = link->link_id, in link_enc_cfg_get_link_enc_used_by_link() [all …]
|
/linux-6.6.21/drivers/gpu/drm/amd/display/dc/link/protocols/ |
D | link_hpd.c | 73 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-6.6.21/kernel/bpf/ |
D | link_iter.c | 10 u32 link_id; member 18 link = bpf_link_get_curr_or_next(&info->link_id); in bpf_link_seq_start() 32 ++info->link_id; in bpf_link_seq_next() 34 return bpf_link_get_curr_or_next(&info->link_id); in bpf_link_seq_next()
|