Home
last modified time | relevance | path

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

12345

/linux-5.19.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.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-5.19.10/drivers/net/ethernet/marvell/octeon_ep/
Doctep_ctrl_net.c168 oct->link_info.supported_modes = resp->link_info.supported_modes; in octep_get_link_info()
169 oct->link_info.advertised_modes = resp->link_info.advertised_modes; in octep_get_link_info()
170 oct->link_info.autoneg = resp->link_info.autoneg; in octep_get_link_info()
171 oct->link_info.pause = resp->link_info.pause; in octep_get_link_info()
172 oct->link_info.speed = resp->link_info.speed; in octep_get_link_info()
177 int octep_set_link_info(struct octep_device *oct, struct octep_iface_link_info *link_info) in octep_set_link_info() argument
183 req.link_info.cmd = OCTEP_CTRL_NET_CMD_SET; in octep_set_link_info()
184 req.link_info.info.advertised_modes = link_info->advertised_modes; in octep_set_link_info()
185 req.link_info.info.autoneg = link_info->autoneg; in octep_set_link_info()
186 req.link_info.info.pause = link_info->pause; in octep_set_link_info()
[all …]
Doctep_ethtool.c280 struct octep_iface_link_info *link_info; in octep_get_link_ksettings() local
288 advertised_modes = oct->link_info.advertised_modes; in octep_get_link_ksettings()
289 supported_modes = oct->link_info.supported_modes; in octep_get_link_ksettings()
290 link_info = &oct->link_info; in octep_get_link_ksettings()
295 if (link_info->autoneg) { in octep_get_link_ksettings()
296 if (link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_SUPPORTED) in octep_get_link_ksettings()
298 if (link_info->autoneg & OCTEP_LINK_MODE_AUTONEG_ADVERTISED) { in octep_get_link_ksettings()
308 if (link_info->pause) { in octep_get_link_ksettings()
309 if (link_info->pause & OCTEP_LINK_MODE_PAUSE_SUPPORTED) in octep_get_link_ksettings()
311 if (link_info->pause & OCTEP_LINK_MODE_PAUSE_ADVERTISED) in octep_get_link_ksettings()
[all …]
Doctep_ctrl_net.h120 struct octep_ctrl_net_h2f_req_cmd_link_info link_info; member
161 struct octep_ctrl_net_link_info link_info; member
297 int octep_set_link_info(struct octep_device *oct, struct octep_iface_link_info *link_info);
/linux-5.19.10/tools/testing/selftests/bpf/prog_tests/
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()
122 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), &link_info, &link_info_len); in serial_test_xdp_link()
126 ASSERT_EQ(link_info.type, BPF_LINK_TYPE_XDP, "link_type"); in serial_test_xdp_link()
127 ASSERT_EQ(link_info.prog_id, id1, "link_prog_id"); in serial_test_xdp_link()
128 ASSERT_EQ(link_info.xdp.ifindex, IFINDEX_LO, "link_ifindex"); in serial_test_xdp_link()
139 memset(&link_info, 0, sizeof(link_info)); in serial_test_xdp_link()
140 err = bpf_obj_get_info_by_fd(bpf_link__fd(link), &link_info, &link_info_len); in serial_test_xdp_link()
143 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_obj_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.c108 struct bpf_link_info link_info; in test_fexit_bpf2bpf_common() local
134 info_len = sizeof(link_info); in test_fexit_bpf2bpf_common()
135 memset(&link_info, 0, sizeof(link_info)); in test_fexit_bpf2bpf_common()
137 &link_info, &info_len); in test_fexit_bpf2bpf_common()
139 ASSERT_EQ(link_info.tracing.attach_type, in test_fexit_bpf2bpf_common()
142 ASSERT_EQ(link_info.tracing.target_obj_id, tgt_prog_id, "link_tgt_obj_id"); in test_fexit_bpf2bpf_common()
143 ASSERT_EQ(link_info.tracing.target_btf_id, btf_id, "link_tgt_btf_id"); in test_fexit_bpf2bpf_common()
Dbpf_obj_id.c301 struct bpf_link_info link_info; in serial_test_bpf_obj_id() local
304 info_len = sizeof(link_info); in serial_test_bpf_obj_id()
305 memset(&link_info, 0, info_len); in serial_test_bpf_obj_id()
325 err = bpf_obj_get_info_by_fd(link_fd, &link_info, &info_len); in serial_test_bpf_obj_id()
326 cmp_res = memcmp(&link_info, &link_infos[i], in serial_test_bpf_obj_id()
328 CHECK(err || info_len != sizeof(link_info) || cmp_res, in serial_test_bpf_obj_id()
/linux-5.19.10/drivers/gpu/drm/msm/dp/
Ddp_panel.c29 struct dp_link_info *link_info; in dp_panel_read_dpcd() local
36 link_info = &dp_panel->link_info; in dp_panel_read_dpcd()
71 link_info->revision = dpcd[DP_DPCD_REV]; in dp_panel_read_dpcd()
72 major = (link_info->revision >> 4) & 0x0f; in dp_panel_read_dpcd()
73 minor = link_info->revision & 0x0f; in dp_panel_read_dpcd()
75 link_info->rate = drm_dp_bw_code_to_link_rate(dpcd[DP_MAX_LINK_RATE]); in dp_panel_read_dpcd()
76 link_info->num_lanes = dpcd[DP_MAX_LANE_COUNT] & DP_MAX_LANE_COUNT_MASK; in dp_panel_read_dpcd()
78 if (link_info->num_lanes > dp_panel->max_dp_lanes) in dp_panel_read_dpcd()
79 link_info->num_lanes = dp_panel->max_dp_lanes; in dp_panel_read_dpcd()
82 if (link_info->rate >= (drm_dp_bw_code_to_link_rate(DP_LINK_BW_5_4))) in dp_panel_read_dpcd()
[all …]
/linux-5.19.10/tools/perf/util/
Dbpf_counter.h92 struct bpf_link_info link_info = { .id = 0, }; in bpf_link_get_id() local
93 __u32 link_info_len = sizeof(link_info); in bpf_link_get_id()
95 bpf_obj_get_info_by_fd(fd, &link_info, &link_info_len); in bpf_link_get_id()
96 return link_info.id; in bpf_link_get_id()
101 struct bpf_link_info link_info = { .id = 0, }; in bpf_link_get_prog_id() local
102 __u32 link_info_len = sizeof(link_info); in bpf_link_get_prog_id()
104 bpf_obj_get_info_by_fd(fd, &link_info, &link_info_len); in bpf_link_get_prog_id()
105 return link_info.prog_id; in bpf_link_get_prog_id()
/linux-5.19.10/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c1598 static void bnxt_fw_to_ethtool_advertised_fec(struct bnxt_link_info *link_info, in bnxt_fw_to_ethtool_advertised_fec() argument
1601 u16 fec_cfg = link_info->fec_cfg; in bnxt_fw_to_ethtool_advertised_fec()
1619 static void bnxt_fw_to_ethtool_advertised_spds(struct bnxt_link_info *link_info, in bnxt_fw_to_ethtool_advertised_spds() argument
1622 u16 fw_speeds = link_info->advertising; in bnxt_fw_to_ethtool_advertised_spds()
1625 if (link_info->autoneg & BNXT_AUTONEG_FLOW_CTRL) in bnxt_fw_to_ethtool_advertised_spds()
1626 fw_pause = link_info->auto_pause_setting; in bnxt_fw_to_ethtool_advertised_spds()
1629 fw_speeds = link_info->advertising_pam4; in bnxt_fw_to_ethtool_advertised_spds()
1631 bnxt_fw_to_ethtool_advertised_fec(link_info, lk_ksettings); in bnxt_fw_to_ethtool_advertised_spds()
1634 static void bnxt_fw_to_ethtool_lp_adv(struct bnxt_link_info *link_info, in bnxt_fw_to_ethtool_lp_adv() argument
1637 u16 fw_speeds = link_info->lp_auto_link_speeds; in bnxt_fw_to_ethtool_lp_adv()
[all …]
/linux-5.19.10/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-5.19.10/sound/soc/generic/
Daudio-graph-card.c213 struct link_info *li, in graph_parse_node()
252 struct link_info *li, in graph_link_init()
275 struct link_info *li) in graph_dai_link_of_dpcm()
369 struct link_info *li) in graph_dai_link_of()
427 struct link_info *li, in __graph_for_each_link()
431 struct link_info *li), in __graph_for_each_link()
435 struct link_info *li)) in __graph_for_each_link()
499 struct link_info *li, in graph_for_each_link()
503 struct link_info *li), in graph_for_each_link()
507 struct link_info *li)) in graph_for_each_link()
[all …]
Dsimple-card.c139 struct link_info *li, in simple_parse_node()
179 struct link_info *li, in simple_link_init()
200 struct link_info *li, in simple_dai_link_of_dpcm()
280 struct link_info *li, in simple_dai_link_of()
338 struct link_info *li, in __simple_for_each_link()
342 struct link_info *li, bool is_top), in __simple_for_each_link()
346 struct link_info *li, bool is_top)) in __simple_for_each_link()
435 struct link_info *li, in simple_for_each_link()
439 struct link_info *li, bool is_top), in simple_for_each_link()
443 struct link_info *li, bool is_top)) in simple_for_each_link()
[all …]
Daudio-graph-card2.c495 struct link_info *li, in __graph_parse_node()
605 struct link_info *li, int is_cpu) in graph_parse_node()
688 struct link_info *li, in graph_link_init()
742 struct link_info *li) in audio_graph2_link_normal()
776 struct link_info *li) in audio_graph2_link_dpcm()
868 struct link_info *li) in audio_graph2_link_c2c()
956 struct link_info *li) in graph_link()
1026 struct link_info *li) in graph_count_normal()
1049 struct link_info *li) in graph_count_dpcm()
1084 struct link_info *li) in graph_count_c2c()
[all …]
Daudio-graph-card2-custom-sample.c68 struct link_info *li) in custom_normal()
83 struct link_info *li) in custom_dpcm()
98 struct link_info *li) in custom_c2c()
/linux-5.19.10/drivers/s390/net/
Dqeth_ethtool.c431 struct qeth_link_info link_info; in qeth_get_link_ksettings() local
433 cmd->base.speed = card->info.link_info.speed; in qeth_get_link_ksettings()
434 cmd->base.duplex = card->info.link_info.duplex; in qeth_get_link_ksettings()
435 cmd->base.port = card->info.link_info.port; in qeth_get_link_ksettings()
443 if (!qeth_query_card_info(card, &link_info)) { in qeth_get_link_ksettings()
444 if (link_info.speed != SPEED_UNKNOWN) in qeth_get_link_ksettings()
445 cmd->base.speed = link_info.speed; in qeth_get_link_ksettings()
446 if (link_info.duplex != DUPLEX_UNKNOWN) in qeth_get_link_ksettings()
447 cmd->base.duplex = link_info.duplex; in qeth_get_link_ksettings()
448 if (link_info.port != PORT_OTHER) in qeth_get_link_ksettings()
[all …]
/linux-5.19.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()
/linux-5.19.10/drivers/thunderbolt/
Dtb_msgs.h184 u16 link_info; member
206 u16 link_info; member
212 u16 link_info; member
224 u16 link_info; member
267 u16 link_info; member
278 u16 link_info; member
305 u16 link_info; member
311 u16 link_info; member
359 u16 link_info; member
372 u16 link_info; member
/linux-5.19.10/drivers/hwtracing/coresight/
Dcoresight-cti-core.c482 struct coresight_sysfs_link link_info; in cti_add_sysfs_link() local
485 link_info.orig = drvdata->csdev; in cti_add_sysfs_link()
486 link_info.orig_name = tc->con_dev_name; in cti_add_sysfs_link()
487 link_info.target = tc->con_dev; in cti_add_sysfs_link()
488 link_info.target_name = dev_name(&drvdata->csdev->dev); in cti_add_sysfs_link()
490 link_err = coresight_add_sysfs_link(&link_info); in cti_add_sysfs_link()
494 link_info.orig_name, link_info.target_name); in cti_add_sysfs_link()
501 struct coresight_sysfs_link link_info; in cti_remove_sysfs_link() local
503 link_info.orig = drvdata->csdev; in cti_remove_sysfs_link()
504 link_info.orig_name = tc->con_dev_name; in cti_remove_sysfs_link()
[all …]
/linux-5.19.10/drivers/net/wireless/realtek/rtlwifi/
Dbase.c1929 rtlpriv->link_info.bcn_rx_inperiod++; in rtl_beacon_statistic()
2083 rtlpriv->link_info.num_rx_in4period[idx] = in rtl_watchdog_wq_callback()
2084 rtlpriv->link_info.num_rx_in4period[idx + 1]; in rtl_watchdog_wq_callback()
2085 rtlpriv->link_info.num_tx_in4period[idx] = in rtl_watchdog_wq_callback()
2086 rtlpriv->link_info.num_tx_in4period[idx + 1]; in rtl_watchdog_wq_callback()
2088 rtlpriv->link_info.num_rx_in4period[3] = in rtl_watchdog_wq_callback()
2089 rtlpriv->link_info.num_rx_inperiod; in rtl_watchdog_wq_callback()
2090 rtlpriv->link_info.num_tx_in4period[3] = in rtl_watchdog_wq_callback()
2091 rtlpriv->link_info.num_tx_inperiod; in rtl_watchdog_wq_callback()
2094 rtlpriv->link_info.num_rx_in4period[idx]; in rtl_watchdog_wq_callback()
[all …]
/linux-5.19.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_mbx.c295 struct hclge_mbx_link_status *link_info; in hclgevf_mbx_async_handler() local
322 link_info = (struct hclge_mbx_link_status *)(msg_q + 1); in hclgevf_mbx_async_handler()
323 link_status = le16_to_cpu(link_info->link_status); in hclgevf_mbx_async_handler()
324 speed = le32_to_cpu(link_info->speed); in hclgevf_mbx_async_handler()
325 duplex = (u8)le16_to_cpu(link_info->duplex); in hclgevf_mbx_async_handler()
326 flag = link_info->flag; in hclgevf_mbx_async_handler()

12345