Home
last modified time | relevance | path

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

12345

/linux-6.3-rc2/drivers/staging/octeon/
A 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()
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
110 if (priv->link_info != link_info.u64 && in cvm_oct_rgmii_poll()
112 link_info.u64 = priv->link_info; in cvm_oct_rgmii_poll()
113 status_change = priv->link_info != link_info.u64; in cvm_oct_rgmii_poll()
114 priv->link_info = link_info.u64; in cvm_oct_rgmii_poll()
122 if (link_info.s.link_up) { in cvm_oct_rgmii_poll()
[all …]
A 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()
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()
126 cvmx_helper_link_set(priv->port, link_info); in cvm_oct_common_stop()
[all …]
A 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.3-rc2/drivers/net/ethernet/marvell/octeon_ep/
A 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 …]
A Doctep_ethtool.c280 struct octep_iface_link_info *link_info; in octep_get_link_ksettings() local
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()
308 if (link_info->pause) { in octep_get_link_ksettings()
320 cmd->base.speed = link_info->speed; in octep_get_link_ksettings()
334 struct octep_iface_link_info *link_info; in octep_set_link_ksettings() local
339 link_info = &oct->link_info; in octep_set_link_ksettings()
433 if (advertised == link_info->advertised_modes && in octep_set_link_ksettings()
434 cmd->base.speed == link_info->speed && in octep_set_link_ksettings()
[all …]
A 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-6.3-rc2/tools/testing/selftests/bpf/prog_tests/
A 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 …]
A 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()
A 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()
A 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_link_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-6.3-rc2/drivers/gpu/drm/msm/dp/
A 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()
80 link_info->num_lanes = dp_panel->max_dp_lanes; in dp_panel_read_dpcd()
84 link_info->rate = dp_panel->max_dp_link_rate; in dp_panel_read_dpcd()
117 struct dp_link_info *link_info; in dp_panel_get_supported_bpp() local
123 link_info = &dp_panel->link_info; in dp_panel_get_supported_bpp()
124 data_rate_khz = link_info->num_lanes * link_info->rate * 8; in dp_panel_get_supported_bpp()
[all …]
/linux-6.3-rc2/tools/perf/util/
A 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.3-rc2/drivers/net/ethernet/broadcom/bnxt/
A Dbnxt_ethtool.c1726 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_get_link_ksettings() local
1787 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_force_link_speed() local
1892 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_set_link_ksettings() local
1911 link_info->advertising = link_info->support_auto_speeds; in bnxt_set_link_ksettings()
1960 link_info = &bp->link_info; in bnxt_get_fecparam()
2044 link_info = &bp->link_info; in bnxt_set_fecparam()
2087 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_get_pauseparam() local
2117 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_set_pauseparam() local
3114 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_set_eee() local
3374 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_nway_reset() local
[all …]
A Dbnxt.c2222 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_async_event_process() local
9592 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_hwrm_phy_qcaps() local
9656 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_update_link() local
9794 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_get_port_module_status() local
10352 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_eee_config_ok() local
10379 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_update_phy_setting() local
10406 if (link_info->req_duplex != link_info->duplex_setting) in bnxt_update_phy_setting()
12002 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_init_ethtool_link_settings() local
12013 link_info->advertising = link_info->auto_link_speeds; in bnxt_init_ethtool_link_settings()
12023 link_info->req_duplex = link_info->duplex_setting; in bnxt_init_ethtool_link_settings()
[all …]
/linux-6.3-rc2/include/sound/
A 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.3-rc2/sound/soc/generic/
A 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()
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()
505 struct link_info *li), in graph_for_each_link()
509 struct link_info *li)) in graph_for_each_link()
534 struct link_info *li);
539 struct link_info *li; in audio_graph_parse_of()
[all …]
A 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()
434 struct link_info *li, in simple_for_each_link()
438 struct link_info *li, bool is_top), in simple_for_each_link()
548 struct link_info *li) in simple_get_dais_count()
[all …]
A Daudio-graph-card2.c495 struct link_info *li, 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()
869 struct link_info *li) in audio_graph2_link_c2c()
968 struct link_info *li) in graph_link()
1038 struct link_info *li) in graph_count_normal()
1061 struct link_info *li) in graph_count_dpcm()
1096 struct link_info *li) in graph_count_c2c()
1134 struct link_info *li) in graph_count()
[all …]
A 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-6.3-rc2/arch/mips/cavium-octeon/executive/
A 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()
A 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.3-rc2/drivers/thunderbolt/
A Dtb_msgs.h187 u16 link_info; member
209 u16 link_info; member
215 u16 link_info; member
227 u16 link_info; member
270 u16 link_info; member
281 u16 link_info; member
308 u16 link_info; member
314 u16 link_info; member
362 u16 link_info; member
375 u16 link_info; member
/linux-6.3-rc2/drivers/hwtracing/coresight/
A 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()
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()
507 link_info.target = tc->con_dev; in cti_remove_sysfs_link()
[all …]
/linux-6.3-rc2/drivers/net/wireless/realtek/rtlwifi/
A Dbase.c1929 rtlpriv->link_info.bcn_rx_inperiod++; in rtl_beacon_statistic()
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()
2091 rtlpriv->link_info.num_tx_inperiod; in rtl_watchdog_wq_callback()
2191 rtlpriv->link_info.roam_times++; in rtl_watchdog_wq_callback()
2194 (rtlpriv->link_info.roam_times * 2)); in rtl_watchdog_wq_callback()
2201 rtlpriv->link_info.roam_times = 0; in rtl_watchdog_wq_callback()
2206 rtlpriv->link_info.roam_times = 0; in rtl_watchdog_wq_callback()
2219 rtlpriv->link_info.num_rx_inperiod = 0; in rtl_watchdog_wq_callback()
2220 rtlpriv->link_info.num_tx_inperiod = 0; in rtl_watchdog_wq_callback()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/hisilicon/hns3/hns3vf/
A 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()

Completed in 81 milliseconds

12345