/linux-6.1.9/drivers/staging/octeon/ |
D | ethernet-rgmii.c | 56 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 …]
|
D | ethernet-mdio.c | 84 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 …]
|
D | ethernet.c | 460 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.1.9/drivers/net/ethernet/marvell/octeon_ep/ |
D | octep_ctrl_net.c | 168 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 …]
|
D | octep_ethtool.c | 280 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 …]
|
D | octep_ctrl_net.h | 120 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.1.9/tools/testing/selftests/bpf/prog_tests/ |
D | xdp_link.c | 14 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 …]
|
D | check_mtu.c | 41 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()
|
D | fexit_bpf2bpf.c | 109 struct bpf_link_info link_info; in test_fexit_bpf2bpf_common() local 135 info_len = sizeof(link_info); in test_fexit_bpf2bpf_common() 136 memset(&link_info, 0, sizeof(link_info)); in test_fexit_bpf2bpf_common() 138 &link_info, &info_len); in test_fexit_bpf2bpf_common() 140 ASSERT_EQ(link_info.tracing.attach_type, in test_fexit_bpf2bpf_common() 143 ASSERT_EQ(link_info.tracing.target_obj_id, tgt_prog_id, "link_tgt_obj_id"); in test_fexit_bpf2bpf_common() 144 ASSERT_EQ(link_info.tracing.target_btf_id, btf_id, "link_tgt_btf_id"); in test_fexit_bpf2bpf_common()
|
D | bpf_obj_id.c | 301 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-6.1.9/drivers/gpu/drm/msm/dp/ |
D | dp_panel.c | 29 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-6.1.9/tools/perf/util/ |
D | bpf_counter.h | 97 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.1.9/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ethtool.c | 1598 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 …]
|
D | bnxt.c | 2219 struct bnxt_link_info *link_info = &bp->link_info; in bnxt_async_event_process() local 2225 if (!(link_info->autoneg & BNXT_AUTONEG_SPEED) && in bnxt_async_event_process() 2227 u16 fw_speed = link_info->force_link_speed; in bnxt_async_event_process() 9458 static char *bnxt_report_fec(struct bnxt_link_info *link_info) in bnxt_report_fec() argument 9460 u8 active_fec = link_info->active_fec_sig_mode & in bnxt_report_fec() 9492 speed = bnxt_fw_to_ethtool_speed(bp->link_info.link_speed); in bnxt_report_link() 9497 if (bp->link_info.duplex == BNXT_LINK_DUPLEX_FULL) in bnxt_report_link() 9501 if (bp->link_info.pause == BNXT_LINK_PAUSE_BOTH) in bnxt_report_link() 9503 else if (bp->link_info.pause == BNXT_LINK_PAUSE_TX) in bnxt_report_link() 9505 else if (bp->link_info.pause == BNXT_LINK_PAUSE_RX) in bnxt_report_link() [all …]
|
/linux-6.1.9/include/sound/ |
D | graph_card.h | 14 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.1.9/sound/soc/generic/ |
D | audio-graph-card.c | 213 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() 501 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() [all …]
|
D | simple-card.c | 139 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() 442 struct link_info *li, bool is_top)) in simple_for_each_link() [all …]
|
D | audio-graph-card2.c | 495 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() 967 struct link_info *li) in graph_link() 1037 struct link_info *li) in graph_count_normal() 1060 struct link_info *li) in graph_count_dpcm() 1095 struct link_info *li) in graph_count_c2c() [all …]
|
D | audio-graph-card2-custom-sample.c | 68 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.1.9/arch/mips/cavium-octeon/executive/ |
D | cvmx-helper-rgmii.c | 295 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()
|
D | cvmx-helper-sgmii.c | 204 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.1.9/drivers/thunderbolt/ |
D | tb_msgs.h | 184 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-6.1.9/drivers/hwtracing/coresight/ |
D | coresight-cti-core.c | 477 struct coresight_sysfs_link link_info; in cti_add_sysfs_link() local 480 link_info.orig = drvdata->csdev; in cti_add_sysfs_link() 481 link_info.orig_name = tc->con_dev_name; in cti_add_sysfs_link() 482 link_info.target = tc->con_dev; in cti_add_sysfs_link() 483 link_info.target_name = dev_name(&drvdata->csdev->dev); in cti_add_sysfs_link() 485 link_err = coresight_add_sysfs_link(&link_info); in cti_add_sysfs_link() 489 link_info.orig_name, link_info.target_name); in cti_add_sysfs_link() 496 struct coresight_sysfs_link link_info; in cti_remove_sysfs_link() local 498 link_info.orig = drvdata->csdev; in cti_remove_sysfs_link() 499 link_info.orig_name = tc->con_dev_name; in cti_remove_sysfs_link() [all …]
|
/linux-6.1.9/drivers/net/wireless/realtek/rtlwifi/ |
D | base.c | 1929 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-6.1.9/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_mbx.c | 295 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()
|