Home
last modified time | relevance | path

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

1234

/kernel/linux/linux-5.10/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.c464 union cvmx_helper_link_info link_info; in cvm_oct_common_open() local
487 link_info = cvmx_helper_link_get(priv->port); in cvm_oct_common_open()
488 if (!link_info.s.link_up) in cvm_oct_common_open()
500 union cvmx_helper_link_info link_info; in cvm_oct_link_poll() local
502 link_info = cvmx_helper_link_get(priv->port); in cvm_oct_link_poll()
503 if (link_info.u64 == priv->link_info) in cvm_oct_link_poll()
506 if (cvmx_helper_link_set(priv->port, link_info)) in cvm_oct_link_poll()
507 link_info.u64 = priv->link_info; in cvm_oct_link_poll()
509 priv->link_info = link_info.u64; in cvm_oct_link_poll()
511 if (link_info.s.link_up) { in cvm_oct_link_poll()
[all …]
/kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/
Dxdp_link.c14 struct bpf_link_info link_info; in test_xdp_link() local
17 __u32 link_info_len = sizeof(link_info); in test_xdp_link()
122 memset(&link_info, 0, sizeof(link_info)); in test_xdp_link()
123 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), &link_info, &link_info_len); in test_xdp_link()
127 CHECK(link_info.type != BPF_LINK_TYPE_XDP, "link_type", in test_xdp_link()
128 "got %u != exp %u\n", link_info.type, BPF_LINK_TYPE_XDP); in test_xdp_link()
129 CHECK(link_info.prog_id != id1, "link_prog_id", in test_xdp_link()
130 "got %u != exp %u\n", link_info.prog_id, id1); in test_xdp_link()
131 CHECK(link_info.xdp.ifindex != IFINDEX_LO, "link_ifindex", in test_xdp_link()
132 "got %u != exp %u\n", link_info.xdp.ifindex, IFINDEX_LO); in test_xdp_link()
[all …]
Dbpf_obj_id.c301 struct bpf_link_info link_info; in test_bpf_obj_id() local
304 info_len = sizeof(link_info); in test_bpf_obj_id()
305 memset(&link_info, 0, info_len); in test_bpf_obj_id()
325 err = bpf_obj_get_info_by_fd(link_fd, &link_info, &info_len); in test_bpf_obj_id()
326 cmp_res = memcmp(&link_info, &link_infos[i], in test_bpf_obj_id()
328 CHECK(err || info_len != sizeof(link_info) || cmp_res, in test_bpf_obj_id()
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dp/
Ddp_panel.c28 struct dp_link_info *link_info; in dp_panel_read_dpcd() local
35 link_info = &dp_panel->link_info; in dp_panel_read_dpcd()
69 link_info->revision = dpcd[DP_DPCD_REV]; in dp_panel_read_dpcd()
70 major = (link_info->revision >> 4) & 0x0f; in dp_panel_read_dpcd()
71 minor = link_info->revision & 0x0f; in dp_panel_read_dpcd()
73 link_info->rate = drm_dp_bw_code_to_link_rate(dpcd[DP_MAX_LINK_RATE]); in dp_panel_read_dpcd()
74 link_info->num_lanes = dpcd[DP_MAX_LANE_COUNT] & DP_MAX_LANE_COUNT_MASK; in dp_panel_read_dpcd()
76 if (link_info->num_lanes > dp_panel->max_dp_lanes) in dp_panel_read_dpcd()
77 link_info->num_lanes = dp_panel->max_dp_lanes; in dp_panel_read_dpcd()
80 if (link_info->rate >= (drm_dp_bw_code_to_link_rate(DP_LINK_BW_5_4))) in dp_panel_read_dpcd()
[all …]
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c1543 static void bnxt_fw_to_ethtool_advertised_fec(struct bnxt_link_info *link_info, in bnxt_fw_to_ethtool_advertised_fec() argument
1546 u16 fec_cfg = link_info->fec_cfg; in bnxt_fw_to_ethtool_advertised_fec()
1564 static void bnxt_fw_to_ethtool_advertised_spds(struct bnxt_link_info *link_info, in bnxt_fw_to_ethtool_advertised_spds() argument
1567 u16 fw_speeds = link_info->advertising; in bnxt_fw_to_ethtool_advertised_spds()
1570 if (link_info->autoneg & BNXT_AUTONEG_FLOW_CTRL) in bnxt_fw_to_ethtool_advertised_spds()
1571 fw_pause = link_info->auto_pause_setting; in bnxt_fw_to_ethtool_advertised_spds()
1574 fw_speeds = link_info->advertising_pam4; in bnxt_fw_to_ethtool_advertised_spds()
1576 bnxt_fw_to_ethtool_advertised_fec(link_info, lk_ksettings); in bnxt_fw_to_ethtool_advertised_spds()
1579 static void bnxt_fw_to_ethtool_lp_adv(struct bnxt_link_info *link_info, in bnxt_fw_to_ethtool_lp_adv() argument
1582 u16 fw_speeds = link_info->lp_auto_link_speeds; in bnxt_fw_to_ethtool_lp_adv()
[all …]
Dbnxt.c2039 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_async_event_process() local
2045 if (!(link_info->autoneg & BNXT_AUTONEG_SPEED) && in bnxt_async_event_process()
2047 u16 fw_speed = link_info->force_link_speed; in bnxt_async_event_process()
8970 if (bp->link_info.link_up) in bnxt_tx_enable()
8974 static char *bnxt_report_fec(struct bnxt_link_info *link_info) in bnxt_report_fec() argument
8976 u8 active_fec = link_info->active_fec_sig_mode & in bnxt_report_fec()
9000 if (bp->link_info.link_up) { in bnxt_report_link()
9007 speed = bnxt_fw_to_ethtool_speed(bp->link_info.link_speed); in bnxt_report_link()
9012 if (bp->link_info.duplex == BNXT_LINK_DUPLEX_FULL) in bnxt_report_link()
9016 if (bp->link_info.pause == BNXT_LINK_PAUSE_BOTH) in bnxt_report_link()
[all …]
Dbnxt.h1285 #define BNXT_PAM4_SUPPORTED(link_info) \ argument
1286 ((link_info)->support_pam4_speeds)
1288 #define BNXT_FEC_RS_ON(link_info) \ argument
1291 (BNXT_PAM4_SUPPORTED(link_info) ? \
1299 #define BNXT_FEC_RS_OFF(link_info) \ argument
1301 (BNXT_PAM4_SUPPORTED(link_info) ? \
1304 #define BNXT_FEC_BASE_R_ON(link_info) \ argument
1306 BNXT_FEC_RS_OFF(link_info))
1308 #define BNXT_FEC_ALL_OFF(link_info) \ argument
1310 BNXT_FEC_RS_OFF(link_info))
[all …]
/kernel/linux/linux-5.10/drivers/thunderbolt/
Dtb_msgs.h183 u16 link_info; member
205 u16 link_info; member
211 u16 link_info; member
223 u16 link_info; member
266 u16 link_info; member
277 u16 link_info; member
304 u16 link_info; member
310 u16 link_info; member
356 u16 link_info; member
369 u16 link_info; member
Dicm.c552 request.link_info = xd->depth << ICM_LINK_INFO_DEPTH_SHIFT | xd->link; in icm_fr_approve_xdomain_paths()
718 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_connected()
719 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_connected()
721 authorized = pkg->link_info & ICM_LINK_INFO_APPROVED; in icm_fr_device_connected()
724 boot = pkg->link_info & ICM_LINK_INFO_BOOT; in icm_fr_device_connected()
728 if (pkg->link_info & ICM_LINK_INFO_REJECTED) { in icm_fr_device_connected()
857 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_device_disconnected()
858 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_device_disconnected()
887 link = pkg->link_info & ICM_LINK_INFO_LINK_MASK; in icm_fr_xdomain_connected()
888 depth = (pkg->link_info & ICM_LINK_INFO_DEPTH_MASK) >> in icm_fr_xdomain_connected()
[all …]
/kernel/linux/linux-5.10/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()
Dcvmx-helper.c1139 int cvmx_helper_link_set(int ipd_port, union cvmx_helper_link_info link_info) in cvmx_helper_link_set() argument
1153 result = __cvmx_helper_xaui_link_set(ipd_port, link_info); in cvmx_helper_link_set()
1161 result = __cvmx_helper_rgmii_link_set(ipd_port, link_info); in cvmx_helper_link_set()
1164 result = __cvmx_helper_spi_link_set(ipd_port, link_info); in cvmx_helper_link_set()
1168 result = __cvmx_helper_sgmii_link_set(ipd_port, link_info); in cvmx_helper_link_set()
/kernel/linux/linux-5.10/drivers/hwtracing/coresight/
Dcoresight-cti-core.c481 struct coresight_sysfs_link link_info; in cti_add_sysfs_link() local
484 link_info.orig = drvdata->csdev; in cti_add_sysfs_link()
485 link_info.orig_name = tc->con_dev_name; in cti_add_sysfs_link()
486 link_info.target = tc->con_dev; in cti_add_sysfs_link()
487 link_info.target_name = dev_name(&drvdata->csdev->dev); in cti_add_sysfs_link()
489 link_err = coresight_add_sysfs_link(&link_info); in cti_add_sysfs_link()
493 link_info.orig_name, link_info.target_name); in cti_add_sysfs_link()
500 struct coresight_sysfs_link link_info; in cti_remove_sysfs_link() local
502 link_info.orig = drvdata->csdev; in cti_remove_sysfs_link()
503 link_info.orig_name = tc->con_dev_name; in cti_remove_sysfs_link()
[all …]
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/
Dbase.c1929 rtlpriv->link_info.bcn_rx_inperiod++; in rtl_beacon_statistic()
2084 rtlpriv->link_info.num_rx_in4period[idx] = in rtl_watchdog_wq_callback()
2085 rtlpriv->link_info.num_rx_in4period[idx + 1]; in rtl_watchdog_wq_callback()
2086 rtlpriv->link_info.num_tx_in4period[idx] = in rtl_watchdog_wq_callback()
2087 rtlpriv->link_info.num_tx_in4period[idx + 1]; in rtl_watchdog_wq_callback()
2089 rtlpriv->link_info.num_rx_in4period[3] = in rtl_watchdog_wq_callback()
2090 rtlpriv->link_info.num_rx_inperiod; in rtl_watchdog_wq_callback()
2091 rtlpriv->link_info.num_tx_in4period[3] = in rtl_watchdog_wq_callback()
2092 rtlpriv->link_info.num_tx_inperiod; in rtl_watchdog_wq_callback()
2095 rtlpriv->link_info.num_rx_in4period[idx]; in rtl_watchdog_wq_callback()
[all …]
/kernel/linux/linux-5.10/sound/soc/generic/
Dsimple-card.c118 struct link_info *li, in simple_dai_link_of_dpcm()
247 struct link_info *li, in simple_dai_link_of()
346 struct link_info *li, in simple_for_each_link()
350 struct link_info *li, bool is_top), in simple_for_each_link()
354 struct link_info *li, bool is_top)) in simple_for_each_link()
432 struct link_info li; in simple_parse_of()
484 struct link_info *li, bool is_top) in simple_count_noml()
496 struct link_info *li, bool is_top) in simple_count_dpcm()
507 struct link_info *li) in simple_get_dais_count()
595 struct link_info li; in asoc_simple_probe()
Daudio-graph-card.c204 struct link_info *li, in graph_dai_link_of_dpcm()
335 struct link_info *li) in graph_dai_link_of()
408 struct link_info *li, in graph_for_each_link()
412 struct link_info *li), in graph_for_each_link()
416 struct link_info *li, int dup_codec)) in graph_for_each_link()
480 struct link_info li; in graph_parse_of()
518 struct link_info *li) in graph_count_noml()
533 struct link_info *li, in graph_count_dpcm()
553 struct link_info *li) in graph_get_dais_count()
631 struct link_info li; in graph_probe()
/kernel/linux/linux-5.10/arch/mips/include/asm/octeon/
Dcvmx-helper-sgmii.h85 union cvmx_helper_link_info link_info);
Dcvmx-helper-spi.h82 union cvmx_helper_link_info link_info);
Dcvmx-helper-xaui.h85 union cvmx_helper_link_info link_info);
Dcvmx-helper-rgmii.h91 union cvmx_helper_link_info link_info);
Dcvmx-helper.h162 union cvmx_helper_link_info link_info);
/kernel/linux/linux-5.10/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
Dhal_bt_coexist.c24 if (rtlpriv->link_info.busytraffic) { in _rtl8723_dm_bt_check_wifi_state()
28 if (rtlpriv->link_info.tx_busy_traffic) in _rtl8723_dm_bt_check_wifi_state()
35 if (rtlpriv->link_info.rx_busy_traffic) in _rtl8723_dm_bt_check_wifi_state()
512 if (rtlpriv->link_info.tx_busy_traffic) in rtl8723e_dm_bt_is_wifi_up_link()
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ice/
Dice_ethtool.c1054 struct ice_link_status *link_info; in ice_get_fecparam() local
1064 link_info = &pi->phy.link_info; in ice_get_fecparam()
1067 switch (link_info->fec_info) { in ice_get_fecparam()
1504 req_speeds = vsi->port_info->phy.link_info.req_speeds; in ice_phy_type_to_ethtool()
1817 struct ice_link_status *link_info; in ice_get_settings_link_up() local
1820 link_info = &vsi->port_info->phy.link_info; in ice_get_settings_link_up()
1825 switch (link_info->link_speed) { in ice_get_settings_link_up()
1858 link_info->link_speed); in ice_get_settings_link_up()
1863 if (link_info->an_info & ICE_AQ_AN_COMPLETED) in ice_get_settings_link_up()
1932 hw_link_info = &vsi->port_info->phy.link_info; in ice_get_link_ksettings()
[all …]

1234