Home
last modified time | relevance | path

Searched refs:link_info (Results 1 – 25 of 129) sorted by relevance

123456

/linux-6.6.21/drivers/staging/octeon/
Dethernet-rgmii.c56 union cvmx_helper_link_info link_info; in cvm_oct_check_preamble_errors() local
59 link_info.u64 = priv->link_info; in cvm_oct_check_preamble_errors()
67 if (link_info.s.speed == 10 && priv->last_speed == 10) { in cvm_oct_check_preamble_errors()
96 if (priv->last_speed != link_info.s.speed) in cvm_oct_check_preamble_errors()
98 priv->last_speed = link_info.s.speed; in cvm_oct_check_preamble_errors()
106 union cvmx_helper_link_info link_info; in cvm_oct_rgmii_poll() local
109 link_info = cvmx_helper_link_get(priv->port); in cvm_oct_rgmii_poll()
110 if (priv->link_info != link_info.u64 && in cvm_oct_rgmii_poll()
111 cvmx_helper_link_set(priv->port, link_info)) in cvm_oct_rgmii_poll()
112 link_info.u64 = priv->link_info; in cvm_oct_rgmii_poll()
[all …]
Dethernet-mdio.c84 union cvmx_helper_link_info link_info; in cvm_oct_adjust_link() local
86 link_info.u64 = 0; in cvm_oct_adjust_link()
87 link_info.s.link_up = dev->phydev->link ? 1 : 0; in cvm_oct_adjust_link()
88 link_info.s.full_duplex = dev->phydev->duplex ? 1 : 0; in cvm_oct_adjust_link()
89 link_info.s.speed = dev->phydev->speed; in cvm_oct_adjust_link()
90 priv->link_info = link_info.u64; in cvm_oct_adjust_link()
100 cvmx_helper_link_set(priv->port, link_info); in cvm_oct_adjust_link()
101 cvm_oct_note_carrier(priv, link_info); in cvm_oct_adjust_link()
109 union cvmx_helper_link_info link_info; in cvm_oct_common_stop() local
123 link_info.u64 = 0; in cvm_oct_common_stop()
[all …]
Dethernet.c460 union cvmx_helper_link_info link_info; in cvm_oct_common_open() local
483 link_info = cvmx_helper_link_get(priv->port); in cvm_oct_common_open()
484 if (!link_info.s.link_up) in cvm_oct_common_open()
496 union cvmx_helper_link_info link_info; in cvm_oct_link_poll() local
498 link_info = cvmx_helper_link_get(priv->port); in cvm_oct_link_poll()
499 if (link_info.u64 == priv->link_info) in cvm_oct_link_poll()
502 if (cvmx_helper_link_set(priv->port, link_info)) in cvm_oct_link_poll()
503 link_info.u64 = priv->link_info; in cvm_oct_link_poll()
505 priv->link_info = link_info.u64; in cvm_oct_link_poll()
507 if (link_info.s.link_up) { in cvm_oct_link_poll()
[all …]
/linux-6.6.21/drivers/net/wireless/intel/iwlwifi/mvm/
Dlink.c54 struct iwl_mvm_vif_link_info *link_info = mvmvif->link[link_id]; in iwl_mvm_add_link() local
57 if (WARN_ON_ONCE(!link_info)) in iwl_mvm_add_link()
60 if (link_info->fw_link_id == IWL_MVM_FW_LINK_ID_INVALID) { in iwl_mvm_add_link()
61 link_info->fw_link_id = iwl_mvm_get_free_fw_link_id(mvm, in iwl_mvm_add_link()
63 if (link_info->fw_link_id >= ARRAY_SIZE(mvm->link_id_to_link_conf)) in iwl_mvm_add_link()
66 rcu_assign_pointer(mvm->link_id_to_link_conf[link_info->fw_link_id], in iwl_mvm_add_link()
76 cmd.link_id = cpu_to_le32(link_info->fw_link_id); in iwl_mvm_add_link()
79 WARN_ON_ONCE(link_info->phy_ctxt); in iwl_mvm_add_link()
87 cmd.listen_lmac = cpu_to_le32(link_info->listen_lmac); in iwl_mvm_add_link()
98 struct iwl_mvm_vif_link_info *link_info = mvmvif->link[link_id]; in iwl_mvm_link_changed() local
[all …]
Dcoex.c270 struct iwl_mvm_vif_link_info *link_info; in iwl_mvm_bt_notif_per_link() local
276 link_info = mvmvif->link[link_id]; in iwl_mvm_bt_notif_per_link()
277 if (!link_info) in iwl_mvm_bt_notif_per_link()
297 iwl_mvm_bt_coex_reduced_txp(mvm, link_info->ap_sta_id, in iwl_mvm_bt_notif_per_link()
320 if (link_info->phy_ctxt && in iwl_mvm_bt_notif_per_link()
321 (mvm->last_bt_notif.rrc_status & BIT(link_info->phy_ctxt->id))) in iwl_mvm_bt_notif_per_link()
326 mvmvif->id, link_info->fw_link_id, in iwl_mvm_bt_notif_per_link()
393 iwl_mvm_bt_coex_reduced_txp(mvm, link_info->ap_sta_id, false); in iwl_mvm_bt_notif_per_link()
406 if (iwl_mvm_bt_coex_reduced_txp(mvm, link_info->ap_sta_id, in iwl_mvm_bt_notif_per_link()
410 if (iwl_mvm_bt_coex_reduced_txp(mvm, link_info->ap_sta_id, in iwl_mvm_bt_notif_per_link()
/linux-6.6.21/tools/testing/selftests/bpf/prog_tests/
Dtc_helpers.h23 struct bpf_link_info link_info = {}; in id_from_link_fd() local
24 __u32 link_info_len = sizeof(link_info); in id_from_link_fd()
27 err = bpf_link_get_info_by_fd(fd, &link_info, &link_info_len); in id_from_link_fd()
31 ASSERT_NEQ(link_info.id, 0, "link_info.id"); in id_from_link_fd()
32 return link_info.id; in id_from_link_fd()
37 struct bpf_link_info link_info = {}; in ifindex_from_link_fd() local
38 __u32 link_info_len = sizeof(link_info); in ifindex_from_link_fd()
41 err = bpf_link_get_info_by_fd(fd, &link_info, &link_info_len); in ifindex_from_link_fd()
45 return link_info.tcx.ifindex; in ifindex_from_link_fd()
Dxdp_link.c14 struct bpf_link_info link_info; in serial_test_xdp_link() local
18 __u32 link_info_len = sizeof(link_info); in serial_test_xdp_link()
121 memset(&link_info, 0, sizeof(link_info)); in serial_test_xdp_link()
123 &link_info, &link_info_len); in serial_test_xdp_link()
127 ASSERT_EQ(link_info.type, BPF_LINK_TYPE_XDP, "link_type"); in serial_test_xdp_link()
128 ASSERT_EQ(link_info.prog_id, id1, "link_prog_id"); in serial_test_xdp_link()
129 ASSERT_EQ(link_info.xdp.ifindex, IFINDEX_LO, "link_ifindex"); in serial_test_xdp_link()
140 memset(&link_info, 0, sizeof(link_info)); in serial_test_xdp_link()
142 &link_info, &link_info_len); in serial_test_xdp_link()
145 ASSERT_EQ(link_info.prog_id, id1, "link_prog_id"); in serial_test_xdp_link()
[all …]
Dcheck_mtu.c41 struct bpf_link_info link_info; in test_check_mtu_xdp_attach() local
42 __u32 link_info_len = sizeof(link_info); in test_check_mtu_xdp_attach()
60 memset(&link_info, 0, sizeof(link_info)); in test_check_mtu_xdp_attach()
62 err = bpf_link_get_info_by_fd(fd, &link_info, &link_info_len); in test_check_mtu_xdp_attach()
66 CHECK(link_info.type != BPF_LINK_TYPE_XDP, "link_type", in test_check_mtu_xdp_attach()
67 "got %u != exp %u\n", link_info.type, BPF_LINK_TYPE_XDP); in test_check_mtu_xdp_attach()
68 CHECK(link_info.xdp.ifindex != IFINDEX_LO, "link_ifindex", in test_check_mtu_xdp_attach()
69 "got %u != exp %u\n", link_info.xdp.ifindex, IFINDEX_LO); in test_check_mtu_xdp_attach()
Dfexit_bpf2bpf.c111 struct bpf_link_info link_info; in test_fexit_bpf2bpf_common() local
137 info_len = sizeof(link_info); in test_fexit_bpf2bpf_common()
138 memset(&link_info, 0, sizeof(link_info)); in test_fexit_bpf2bpf_common()
140 &link_info, &info_len); in test_fexit_bpf2bpf_common()
142 ASSERT_EQ(link_info.tracing.attach_type, in test_fexit_bpf2bpf_common()
145 ASSERT_EQ(link_info.tracing.target_obj_id, tgt_prog_id, "link_tgt_obj_id"); in test_fexit_bpf2bpf_common()
146 ASSERT_EQ(link_info.tracing.target_btf_id, btf_id, "link_tgt_btf_id"); in test_fexit_bpf2bpf_common()
/linux-6.6.21/drivers/gpu/drm/msm/dp/
Ddp_panel.c50 struct dp_link_info *link_info; in dp_panel_read_dpcd() local
57 link_info = &dp_panel->link_info; in dp_panel_read_dpcd()
92 link_info->revision = dpcd[DP_DPCD_REV]; in dp_panel_read_dpcd()
93 major = (link_info->revision >> 4) & 0x0f; in dp_panel_read_dpcd()
94 minor = link_info->revision & 0x0f; in dp_panel_read_dpcd()
96 link_info->rate = drm_dp_bw_code_to_link_rate(dpcd[DP_MAX_LINK_RATE]); in dp_panel_read_dpcd()
97 link_info->num_lanes = dpcd[DP_MAX_LANE_COUNT] & DP_MAX_LANE_COUNT_MASK; in dp_panel_read_dpcd()
100 if (link_info->num_lanes > dp_panel->max_dp_lanes) in dp_panel_read_dpcd()
101 link_info->num_lanes = dp_panel->max_dp_lanes; in dp_panel_read_dpcd()
104 if (link_info->rate > dp_panel->max_dp_link_rate) in dp_panel_read_dpcd()
[all …]
/linux-6.6.21/drivers/net/ethernet/marvell/octeon_ep/
Doctep_ctrl_net.c237 struct octep_iface_link_info *link_info) in octep_ctrl_net_get_link_info() argument
246 req->link_info.cmd = OCTEP_CTRL_NET_CMD_GET; in octep_ctrl_net_get_link_info()
252 link_info->supported_modes = resp->link_info.supported_modes; in octep_ctrl_net_get_link_info()
253 link_info->advertised_modes = resp->link_info.advertised_modes; in octep_ctrl_net_get_link_info()
254 link_info->autoneg = resp->link_info.autoneg; in octep_ctrl_net_get_link_info()
255 link_info->pause = resp->link_info.pause; in octep_ctrl_net_get_link_info()
256 link_info->speed = resp->link_info.speed; in octep_ctrl_net_get_link_info()
262 struct octep_iface_link_info *link_info, in octep_ctrl_net_set_link_info() argument
270 req->link_info.cmd = OCTEP_CTRL_NET_CMD_SET; in octep_ctrl_net_set_link_info()
271 req->link_info.info.advertised_modes = link_info->advertised_modes; in octep_ctrl_net_set_link_info()
[all …]
Doctep_ethtool.c283 struct octep_iface_link_info *link_info; in octep_get_link_ksettings() local
289 link_info = &oct->link_info; in octep_get_link_ksettings()
290 octep_ctrl_net_get_link_info(oct, OCTEP_CTRL_NET_INVALID_VFID, link_info); in octep_get_link_ksettings()
292 advertised_modes = oct->link_info.advertised_modes; in octep_get_link_ksettings()
293 supported_modes = oct->link_info.supported_modes; in octep_get_link_ksettings()
298 if (link_info->autoneg) { in octep_get_link_ksettings()
299 if (link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_SUPPORTED) in octep_get_link_ksettings()
301 if (link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_ADVERTISED) { in octep_get_link_ksettings()
311 if (link_info->pause) { in octep_get_link_ksettings()
312 if (link_info->pause & OCTEP_LINK_MODE_PAUSE_SUPPORTED) in octep_get_link_ksettings()
[all …]
Doctep_ctrl_net.h122 struct octep_ctrl_net_h2f_req_cmd_link_info link_info; member
173 struct octep_ctrl_net_link_info link_info; member
311 struct octep_iface_link_info *link_info);
324 struct octep_iface_link_info *link_info,
/linux-6.6.21/tools/perf/util/
Dbpf_counter.h97 struct bpf_link_info link_info = { .id = 0, }; in bpf_link_get_id() local
98 __u32 link_info_len = sizeof(link_info); in bpf_link_get_id()
100 bpf_obj_get_info_by_fd(fd, &link_info, &link_info_len); in bpf_link_get_id()
101 return link_info.id; in bpf_link_get_id()
106 struct bpf_link_info link_info = { .id = 0, }; in bpf_link_get_prog_id() local
107 __u32 link_info_len = sizeof(link_info); in bpf_link_get_prog_id()
109 bpf_obj_get_info_by_fd(fd, &link_info, &link_info_len); in bpf_link_get_prog_id()
110 return link_info.prog_id; in bpf_link_get_prog_id()
/linux-6.6.21/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c1593 static void bnxt_fw_to_ethtool_advertised_fec(struct bnxt_link_info *link_info, in bnxt_fw_to_ethtool_advertised_fec() argument
1596 u16 fec_cfg = link_info->fec_cfg; in bnxt_fw_to_ethtool_advertised_fec()
1614 static void bnxt_fw_to_ethtool_advertised_spds(struct bnxt_link_info *link_info, in bnxt_fw_to_ethtool_advertised_spds() argument
1617 u16 fw_speeds = link_info->advertising; in bnxt_fw_to_ethtool_advertised_spds()
1620 if (link_info->autoneg & BNXT_AUTONEG_FLOW_CTRL) in bnxt_fw_to_ethtool_advertised_spds()
1621 fw_pause = link_info->auto_pause_setting; in bnxt_fw_to_ethtool_advertised_spds()
1624 fw_speeds = link_info->advertising_pam4; in bnxt_fw_to_ethtool_advertised_spds()
1626 bnxt_fw_to_ethtool_advertised_fec(link_info, lk_ksettings); in bnxt_fw_to_ethtool_advertised_spds()
1629 static void bnxt_fw_to_ethtool_lp_adv(struct bnxt_link_info *link_info, in bnxt_fw_to_ethtool_lp_adv() argument
1632 u16 fw_speeds = link_info->lp_auto_link_speeds; in bnxt_fw_to_ethtool_lp_adv()
[all …]
/linux-6.6.21/include/sound/
Dgraph_card.h14 struct link_info *li);
29 struct device_node *lnk, struct link_info *li);
31 struct device_node *lnk, struct link_info *li);
33 struct device_node *lnk, struct link_info *li);
/linux-6.6.21/sound/soc/generic/
Daudio-graph-card.c108 struct link_info *li, in graph_parse_node()
147 struct link_info *li, in graph_link_init()
170 struct link_info *li) in graph_dai_link_of_dpcm()
264 struct link_info *li) in graph_dai_link_of()
322 struct link_info *li, in __graph_for_each_link()
326 struct link_info *li), in __graph_for_each_link()
330 struct link_info *li)) in __graph_for_each_link()
396 struct link_info *li, in graph_for_each_link()
400 struct link_info *li), in graph_for_each_link()
404 struct link_info *li)) in graph_for_each_link()
[all …]
Dsimple-card.c153 struct link_info *li, in simple_parse_node()
193 struct link_info *li, in simple_link_init()
214 struct link_info *li, in simple_dai_link_of_dpcm()
294 struct link_info *li, in simple_dai_link_of()
352 struct link_info *li, in __simple_for_each_link()
356 struct link_info *li, bool is_top), in __simple_for_each_link()
360 struct link_info *li, bool is_top)) in __simple_for_each_link()
463 struct link_info *li, in simple_for_each_link()
467 struct link_info *li, bool is_top), in simple_for_each_link()
471 struct link_info *li, bool is_top)) in simple_for_each_link()
[all …]
Daudio-graph-card2.c402 struct link_info *li, in __graph_parse_node()
512 struct link_info *li, int is_cpu) in graph_parse_node()
595 struct link_info *li, in graph_link_init()
649 struct link_info *li) in audio_graph2_link_normal()
683 struct link_info *li) in audio_graph2_link_dpcm()
776 struct link_info *li) in audio_graph2_link_c2c()
875 struct link_info *li) in graph_link()
945 struct link_info *li) in graph_count_normal()
974 struct link_info *li) in graph_count_dpcm()
1014 struct link_info *li) in graph_count_c2c()
[all …]
/linux-6.6.21/arch/mips/cavium-octeon/executive/
Dcvmx-helper-rgmii.c295 union cvmx_helper_link_info link_info) in __cvmx_helper_rgmii_link_set() argument
366 else if (!link_info.s.link_up) in __cvmx_helper_rgmii_link_set()
370 new_gmx_cfg.s.duplex = link_info.s.full_duplex; in __cvmx_helper_rgmii_link_set()
373 if (link_info.s.speed == 10) { in __cvmx_helper_rgmii_link_set()
376 } else if (link_info.s.speed == 100) { in __cvmx_helper_rgmii_link_set()
385 if (link_info.s.speed == 10) { in __cvmx_helper_rgmii_link_set()
389 } else if (link_info.s.speed == 100) { in __cvmx_helper_rgmii_link_set()
400 if ((link_info.s.speed == 10) || (link_info.s.speed == 100)) { in __cvmx_helper_rgmii_link_set()
Dcvmx-helper-sgmii.c204 link_info) in __cvmx_helper_sgmii_hardware_init_link_speed()
243 pcsx_miscx_ctl_reg.s.gmxeno = !link_info.s.link_up; in __cvmx_helper_sgmii_hardware_init_link_speed()
246 if (link_info.s.link_up) in __cvmx_helper_sgmii_hardware_init_link_speed()
247 gmxx_prtx_cfg.s.duplex = link_info.s.full_duplex; in __cvmx_helper_sgmii_hardware_init_link_speed()
250 switch (link_info.s.speed) { in __cvmx_helper_sgmii_hardware_init_link_speed()
508 union cvmx_helper_link_info link_info) in __cvmx_helper_sgmii_link_set() argument
514 link_info); in __cvmx_helper_sgmii_link_set()
/linux-6.6.21/drivers/thunderbolt/
Dtb_msgs.h194 u16 link_info; member
216 u16 link_info; member
222 u16 link_info; member
234 u16 link_info; member
277 u16 link_info; member
288 u16 link_info; member
315 u16 link_info; member
321 u16 link_info; member
369 u16 link_info; member
382 u16 link_info; member
/linux-6.6.21/drivers/hwtracing/coresight/
Dcoresight-cti-core.c484 struct coresight_sysfs_link link_info; in cti_add_sysfs_link() local
487 link_info.orig = drvdata->csdev; in cti_add_sysfs_link()
488 link_info.orig_name = tc->con_dev_name; in cti_add_sysfs_link()
489 link_info.target = tc->con_dev; in cti_add_sysfs_link()
490 link_info.target_name = dev_name(&drvdata->csdev->dev); in cti_add_sysfs_link()
492 link_err = coresight_add_sysfs_link(&link_info); in cti_add_sysfs_link()
496 link_info.orig_name, link_info.target_name); in cti_add_sysfs_link()
503 struct coresight_sysfs_link link_info; in cti_remove_sysfs_link() local
505 link_info.orig = drvdata->csdev; in cti_remove_sysfs_link()
506 link_info.orig_name = tc->con_dev_name; in cti_remove_sysfs_link()
[all …]
/linux-6.6.21/drivers/net/wireless/realtek/rtlwifi/
Dbase.c1928 rtlpriv->link_info.bcn_rx_inperiod++; in rtl_beacon_statistic()
2082 rtlpriv->link_info.num_rx_in4period[idx] = in rtl_watchdog_wq_callback()
2083 rtlpriv->link_info.num_rx_in4period[idx + 1]; in rtl_watchdog_wq_callback()
2084 rtlpriv->link_info.num_tx_in4period[idx] = in rtl_watchdog_wq_callback()
2085 rtlpriv->link_info.num_tx_in4period[idx + 1]; in rtl_watchdog_wq_callback()
2087 rtlpriv->link_info.num_rx_in4period[3] = in rtl_watchdog_wq_callback()
2088 rtlpriv->link_info.num_rx_inperiod; in rtl_watchdog_wq_callback()
2089 rtlpriv->link_info.num_tx_in4period[3] = in rtl_watchdog_wq_callback()
2090 rtlpriv->link_info.num_tx_inperiod; in rtl_watchdog_wq_callback()
2093 rtlpriv->link_info.num_rx_in4period[idx]; in rtl_watchdog_wq_callback()
[all …]
/linux-6.6.21/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_mbx.c302 struct hclge_mbx_link_status *link_info; in hclgevf_mbx_async_handler() local
329 link_info = (struct hclge_mbx_link_status *)(msg_q + 1); in hclgevf_mbx_async_handler()
330 link_status = le16_to_cpu(link_info->link_status); in hclgevf_mbx_async_handler()
331 speed = le32_to_cpu(link_info->speed); in hclgevf_mbx_async_handler()
332 duplex = (u8)le16_to_cpu(link_info->duplex); in hclgevf_mbx_async_handler()
333 flag = link_info->flag; in hclgevf_mbx_async_handler()

123456