/kernel/linux/linux-5.10/drivers/gpu/drm/i915/display/ |
D | intel_dp_link_training.c | 29 intel_dp_dump_link_status(const u8 link_status[DP_LINK_STATUS_SIZE]) in intel_dp_dump_link_status() 33 link_status[0], link_status[1], link_status[2], in intel_dp_dump_link_status() 34 link_status[3], link_status[4], link_status[5]); in intel_dp_dump_link_status() 53 const u8 link_status[DP_LINK_STATUS_SIZE]) in intel_dp_get_adjust_train() 63 v = max(v, drm_dp_get_adjust_request_voltage(link_status, lane)); in intel_dp_get_adjust_train() 64 p = max(p, drm_dp_get_adjust_request_pre_emphasis(link_status, lane)); in intel_dp_get_adjust_train() 236 u8 link_status[DP_LINK_STATUS_SIZE]; in intel_dp_link_training_clock_recovery() local 240 if (!intel_dp_get_link_status(intel_dp, link_status)) { in intel_dp_link_training_clock_recovery() 245 if (drm_dp_clock_recovery_ok(link_status, intel_dp->lane_count)) { in intel_dp_link_training_clock_recovery() 264 intel_dp_get_adjust_train(intel_dp, link_status); in intel_dp_link_training_clock_recovery() [all …]
|
D | intel_dp_link_training.h | 14 const u8 link_status[DP_LINK_STATUS_SIZE]);
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/dp/ |
D | dp_link.c | 44 u8 link_status[DP_LINK_STATUS_SIZE]; member 748 link->link_status); in dp_link_parse_sink_status_field() 851 drm_dp_get_adjust_request_voltage(link->link_status, 0), in dp_link_parse_vx_px() 852 drm_dp_get_adjust_request_voltage(link->link_status, 1), in dp_link_parse_vx_px() 853 drm_dp_get_adjust_request_voltage(link->link_status, 2), in dp_link_parse_vx_px() 854 drm_dp_get_adjust_request_voltage(link->link_status, 3)); in dp_link_parse_vx_px() 857 drm_dp_get_adjust_request_pre_emphasis(link->link_status, 0), in dp_link_parse_vx_px() 858 drm_dp_get_adjust_request_pre_emphasis(link->link_status, 1), in dp_link_parse_vx_px() 859 drm_dp_get_adjust_request_pre_emphasis(link->link_status, 2), in dp_link_parse_vx_px() 860 drm_dp_get_adjust_request_pre_emphasis(link->link_status, 3)); in dp_link_parse_vx_px() [all …]
|
D | dp_ctrl.c | 1062 u8 *link_status) in dp_ctrl_read_link_status() argument 1066 len = drm_dp_dpcd_read_link_status(ctrl->aux, link_status); in dp_ctrl_read_link_status() 1079 u8 link_status[DP_LINK_STATUS_SIZE]; in dp_ctrl_link_train_1() local 1101 ret = dp_ctrl_read_link_status(ctrl, link_status); in dp_ctrl_link_train_1() 1105 cr->lane_0_1 = link_status[0]; in dp_ctrl_link_train_1() 1106 cr->lane_2_3 = link_status[1]; in dp_ctrl_link_train_1() 1108 if (drm_dp_clock_recovery_ok(link_status, in dp_ctrl_link_train_1() 1126 dp_link_adjust_levels(ctrl->link, link_status); in dp_ctrl_link_train_1() 1189 u8 link_status[DP_LINK_STATUS_SIZE]; in dp_ctrl_link_train_2() local 1213 ret = dp_ctrl_read_link_status(ctrl, link_status); in dp_ctrl_link_train_2() [all …]
|
/kernel/linux/linux-5.10/drivers/net/wan/lmc/ |
D | lmc_media.c | 425 u16 link_status, link_status_11; in lmc_ds3_get_link_status() local 429 link_status = lmc_mii_readreg (sc, 0, 18); in lmc_ds3_get_link_status() 443 if ((link_status & LMC_FRAMER_REG0_DLOS) || in lmc_ds3_get_link_status() 444 (link_status & LMC_FRAMER_REG0_OOFS)){ in lmc_ds3_get_link_status() 471 if((link_status & LMC_FRAMER_REG0_AIS) || in lmc_ds3_get_link_status() 487 link_status = lmc_mii_readreg (sc, 0, 18); in lmc_ds3_get_link_status() 489 if(link_status & LMC_FRAMER_REG9_RBLUE){ in lmc_ds3_get_link_status() 678 u16 link_status; in lmc_ssi_get_link_status() local 703 link_status = lmc_mii_readreg (sc, 0, 16); in lmc_ssi_get_link_status() 731 if ((link_status & LMC_MII16_SSI_DSR) == 0) { /* Also HSSI CA */ in lmc_ssi_get_link_status() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/amd/amdgpu/ |
D | atombios_dp.c | 200 static void amdgpu_atombios_dp_get_adjust_train(const u8 link_status[DP_LINK_STATUS_SIZE], in amdgpu_atombios_dp_get_adjust_train() 209 u8 this_v = drm_dp_get_adjust_request_voltage(link_status, lane); in amdgpu_atombios_dp_get_adjust_train() 210 u8 this_p = drm_dp_get_adjust_request_pre_emphasis(link_status, lane); in amdgpu_atombios_dp_get_adjust_train() 455 u8 link_status[DP_LINK_STATUS_SIZE]; in amdgpu_atombios_dp_needs_link_train() local 458 if (drm_dp_dpcd_read_link_status(&amdgpu_connector->ddc_bus->aux, link_status) in amdgpu_atombios_dp_needs_link_train() 461 if (drm_dp_channel_eq_ok(link_status, dig->dp_lane_count)) in amdgpu_atombios_dp_needs_link_train() 494 u8 link_status[DP_LINK_STATUS_SIZE]; member 616 dp_info->link_status) <= 0) { in amdgpu_atombios_dp_link_train_cr() 621 if (drm_dp_clock_recovery_ok(dp_info->link_status, dp_info->dp_lane_count)) { in amdgpu_atombios_dp_link_train_cr() 647 amdgpu_atombios_dp_get_adjust_train(dp_info->link_status, dp_info->dp_lane_count, in amdgpu_atombios_dp_link_train_cr() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/gma500/ |
D | cdv_intel_dp.c | 272 uint8_t link_status[DP_LINK_STATUS_SIZE]; member 1238 intel_dp->link_status, in cdv_intel_dp_get_link_status() 1243 cdv_intel_dp_link_status(uint8_t link_status[DP_LINK_STATUS_SIZE], in cdv_intel_dp_link_status() 1246 return link_status[r - DP_LANE0_1_STATUS]; in cdv_intel_dp_link_status() 1250 cdv_intel_get_adjust_request_voltage(uint8_t link_status[DP_LINK_STATUS_SIZE], in cdv_intel_get_adjust_request_voltage() 1257 uint8_t l = cdv_intel_dp_link_status(link_status, i); in cdv_intel_get_adjust_request_voltage() 1263 cdv_intel_get_adjust_request_pre_emphasis(uint8_t link_status[DP_LINK_STATUS_SIZE], in cdv_intel_get_adjust_request_pre_emphasis() 1270 uint8_t l = cdv_intel_dp_link_status(link_status, i); in cdv_intel_get_adjust_request_pre_emphasis() 1286 uint8_t this_v = cdv_intel_get_adjust_request_voltage(intel_dp->link_status, lane); in cdv_intel_get_adjust_train() 1287 uint8_t this_p = cdv_intel_get_adjust_request_pre_emphasis(intel_dp->link_status, lane); in cdv_intel_get_adjust_train() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/radeon/ |
D | atombios_dp.c | 256 static void dp_get_adjust_train(const u8 link_status[DP_LINK_STATUS_SIZE], in dp_get_adjust_train() 265 u8 this_v = drm_dp_get_adjust_request_voltage(link_status, lane); in dp_get_adjust_train() 266 u8 this_p = drm_dp_get_adjust_request_pre_emphasis(link_status, lane); in dp_get_adjust_train() 505 u8 link_status[DP_LINK_STATUS_SIZE]; in radeon_dp_needs_link_train() local 508 if (drm_dp_dpcd_read_link_status(&radeon_connector->ddc_bus->aux, link_status) in radeon_dp_needs_link_train() 511 if (drm_dp_channel_eq_ok(link_status, dig->dp_lane_count)) in radeon_dp_needs_link_train() 546 u8 link_status[DP_LINK_STATUS_SIZE]; member 685 dp_info->link_status) <= 0) { in radeon_dp_link_train_cr() 690 if (drm_dp_clock_recovery_ok(dp_info->link_status, dp_info->dp_lane_count)) { in radeon_dp_link_train_cr() 716 dp_get_adjust_train(dp_info->link_status, dp_info->dp_lane_count, dp_info->train_set); in radeon_dp_link_train_cr() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/cadence/ |
D | cdns-mhdp8546-core.c | 475 u8 link_status[DP_LINK_STATUS_SIZE]) in cdns_mhdp_adjust_lt() 515 ret = cdns_mhdp_mailbox_recv_data(mhdp, link_status, in cdns_mhdp_adjust_lt() 910 u8 link_status[DP_LINK_STATUS_SIZE], in cdns_mhdp_get_adjust_train() 924 adjust = drm_dp_get_adjust_request_voltage(link_status, i); in cdns_mhdp_get_adjust_train() 927 adjust = drm_dp_get_adjust_request_pre_emphasis(link_status, i); in cdns_mhdp_get_adjust_train() 954 void cdns_mhdp_set_adjust_request_voltage(u8 link_status[DP_LINK_STATUS_SIZE], in cdns_mhdp_set_adjust_request_voltage() 962 link_status[idx] &= ~(DP_ADJUST_VOLTAGE_SWING_LANE0_MASK << s); in cdns_mhdp_set_adjust_request_voltage() 963 link_status[idx] |= volt << s; in cdns_mhdp_set_adjust_request_voltage() 967 void cdns_mhdp_set_adjust_request_pre_emphasis(u8 link_status[DP_LINK_STATUS_SIZE], in cdns_mhdp_set_adjust_request_pre_emphasis() 975 link_status[idx] &= ~(DP_ADJUST_PRE_EMPHASIS_LANE0_MASK << s); in cdns_mhdp_set_adjust_request_pre_emphasis() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl2/ |
D | hw_atl2_utils_fw.c | 287 struct link_status_s link_status; in aq_a2_fw_update_link_status() local 289 hw_atl2_shared_buffer_read(self, link_status, link_status); in aq_a2_fw_update_link_status() 291 switch (link_status.link_rate) { in aq_a2_fw_update_link_status() 313 self->aq_link_status.full_duplex = link_status.duplex; in aq_a2_fw_update_link_status() 528 struct link_status_s link_status; in aq_a2_fw_get_flow_control() local 530 hw_atl2_shared_buffer_read(self, link_status, link_status); in aq_a2_fw_get_flow_control() 532 *fcmode = ((link_status.pause_rx) ? AQ_NIC_FC_RX : 0) | in aq_a2_fw_get_flow_control() 533 ((link_status.pause_tx) ? AQ_NIC_FC_TX : 0); in aq_a2_fw_get_flow_control()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/aquantia/atlantic/hw_atl/ |
D | hw_atl_utils_fw2x.c | 249 struct aq_hw_link_status_s *link_status = &self->aq_link_status; in aq_fw2x_update_link_status() local 260 link_status->mbps = 10000; in aq_fw2x_update_link_status() 262 link_status->mbps = 5000; in aq_fw2x_update_link_status() 264 link_status->mbps = 2500; in aq_fw2x_update_link_status() 266 link_status->mbps = 1000; in aq_fw2x_update_link_status() 268 link_status->mbps = 100; in aq_fw2x_update_link_status() 270 link_status->mbps = 10000; in aq_fw2x_update_link_status() 272 link_status->mbps = 0; in aq_fw2x_update_link_status() 274 link_status->full_duplex = true; in aq_fw2x_update_link_status()
|
D | hw_atl_utils.c | 701 struct aq_hw_link_status_s *link_status = &self->aq_link_status; in hw_atl_utils_mpi_get_link_status() local 709 link_status->mbps = 0U; in hw_atl_utils_mpi_get_link_status() 713 link_status->mbps = 10000U; in hw_atl_utils_mpi_get_link_status() 718 link_status->mbps = 5000U; in hw_atl_utils_mpi_get_link_status() 722 link_status->mbps = 2500U; in hw_atl_utils_mpi_get_link_status() 726 link_status->mbps = 1000U; in hw_atl_utils_mpi_get_link_status() 730 link_status->mbps = 100U; in hw_atl_utils_mpi_get_link_status() 737 link_status->full_duplex = true; in hw_atl_utils_mpi_get_link_status()
|
/kernel/linux/linux-5.10/drivers/scsi/snic/ |
D | snic_attrs.c | 60 snic->link_status = svnic_dev_link_status(snic->vdev); in snic_show_link_state() 63 (snic->link_status) ? "Link Up" : "Link Down"); in snic_show_link_state()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/broadcom/bnx2x/ |
D | bnx2x_link.c | 248 u32 link_status, cfg_idx, lfa_mask, cfg_size; in bnx2x_check_lfa() local 269 link_status = REG_RD(bp, params->shmem_base + in bnx2x_check_lfa() 271 port_mb[params->port].link_status)); in bnx2x_check_lfa() 272 if (!(link_status & LINK_STATUS_LINK_UP)) in bnx2x_check_lfa() 2099 static void bnx2x_update_mng(struct link_params *params, u32 link_status) in bnx2x_update_mng() argument 2105 port_mb[params->port].link_status), link_status); in bnx2x_update_mng() 2227 vars->link_status |= LINK_STATUS_PFC_ENABLED; in bnx2x_update_pfc() 2229 vars->link_status &= ~LINK_STATUS_PFC_ENABLED; in bnx2x_update_pfc() 2231 bnx2x_update_mng(params, vars->link_status); in bnx2x_update_pfc() 3450 vars->link_status |= LINK_STATUS_AUTO_NEGOTIATE_ENABLED; in set_phy_vars() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/bridge/analogix/ |
D | analogix_dp_core.c | 327 static unsigned char analogix_dp_get_lane_status(u8 link_status[2], int lane) in analogix_dp_get_lane_status() 330 u8 link_value = link_status[lane >> 1]; in analogix_dp_get_lane_status() 335 static int analogix_dp_clock_recovery_ok(u8 link_status[2], int lane_count) in analogix_dp_clock_recovery_ok() 341 lane_status = analogix_dp_get_lane_status(link_status, lane); in analogix_dp_clock_recovery_ok() 348 static int analogix_dp_channel_eq_ok(u8 link_status[2], u8 link_align, in analogix_dp_channel_eq_ok() 358 lane_status = analogix_dp_get_lane_status(link_status, lane); in analogix_dp_channel_eq_ok() 470 u8 link_status[2], adjust_request[2]; in analogix_dp_process_clock_recovery() local 476 retval = drm_dp_dpcd_read(&dp->aux, DP_LANE0_1_STATUS, link_status, 2); in analogix_dp_process_clock_recovery() 485 if (analogix_dp_clock_recovery_ok(link_status, lane_count) == 0) { in analogix_dp_process_clock_recovery() 542 u8 link_align, link_status[2], adjust_request[2]; in analogix_dp_process_equalizer_training() local [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/ |
D | drm_dp_helper.c | 49 static u8 dp_link_status(const u8 link_status[DP_LINK_STATUS_SIZE], int r) in dp_link_status() 51 return link_status[r - DP_LANE0_1_STATUS]; in dp_link_status() 54 static u8 dp_get_lane_status(const u8 link_status[DP_LINK_STATUS_SIZE], in dp_get_lane_status() 59 u8 l = dp_link_status(link_status, i); in dp_get_lane_status() 64 bool drm_dp_channel_eq_ok(const u8 link_status[DP_LINK_STATUS_SIZE], in drm_dp_channel_eq_ok() 71 lane_align = dp_link_status(link_status, in drm_dp_channel_eq_ok() 76 lane_status = dp_get_lane_status(link_status, lane); in drm_dp_channel_eq_ok() 84 bool drm_dp_clock_recovery_ok(const u8 link_status[DP_LINK_STATUS_SIZE], in drm_dp_clock_recovery_ok() 91 lane_status = dp_get_lane_status(link_status, lane); in drm_dp_clock_recovery_ok() 99 u8 drm_dp_get_adjust_request_voltage(const u8 link_status[DP_LINK_STATUS_SIZE], in drm_dp_get_adjust_request_voltage() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/huawei/hinic/ |
D | hinic_sriov.c | 51 u8 link_status) in hinic_notify_vf_link_status() argument 59 link.link = link_status; in hinic_notify_vf_link_status() 75 u8 link_status) in hinic_notify_all_vfs_link_changed() argument 80 nic_io->link_status = link_status; in hinic_notify_all_vfs_link_changed() 83 hinic_notify_vf_link_status(hwdev, i, link_status); in hinic_notify_all_vfs_link_changed() 423 get_link->state = nic_io->link_status; in hinic_get_vf_link_status_msg_handler() 968 u8 link_status = 0; in hinic_set_vf_link_state() local 973 vf_infos[HW_VF_ID_TO_OS(vf_id)].link_up = nic_io->link_status ? in hinic_set_vf_link_state() 975 link_status = nic_io->link_status; in hinic_set_vf_link_state() 980 link_status = HINIC_LINK_UP; in hinic_set_vf_link_state() [all …]
|
/kernel/linux/linux-5.10/drivers/gpu/drm/msm/edp/ |
D | edp_ctrl.c | 507 const u8 *link_status) in edp_sink_train_set_adjust() argument 515 data = drm_dp_get_adjust_request_voltage(link_status, i); in edp_sink_train_set_adjust() 526 data = drm_dp_get_adjust_request_pre_emphasis(link_status, i); in edp_sink_train_set_adjust() 591 u8 link_status[DP_LINK_STATUS_SIZE]; in edp_start_link_train_1() local 613 rlen = drm_dp_dpcd_read_link_status(ctrl->drm_aux, link_status); in edp_start_link_train_1() 618 if (drm_dp_clock_recovery_ok(link_status, ctrl->lane_cnt)) { in edp_start_link_train_1() 639 edp_sink_train_set_adjust(ctrl, link_status); in edp_start_link_train_1() 650 u8 link_status[DP_LINK_STATUS_SIZE]; in edp_start_link_train_2() local 670 rlen = drm_dp_dpcd_read_link_status(ctrl->drm_aux, link_status); in edp_start_link_train_2() 675 if (drm_dp_channel_eq_ok(link_status, ctrl->lane_cnt)) { in edp_start_link_train_2() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_common.c | 15 u16 link_cap, link_status, device_cap, device_control; in fm10k_get_bus_info_generic() local 72 link_status = fm10k_read_pci_cfg_word(hw, FM10K_PCIE_LINK_STATUS); in fm10k_get_bus_info_generic() 74 switch (link_status & FM10K_PCIE_LINK_WIDTH) { in fm10k_get_bus_info_generic() 92 switch (link_status & FM10K_PCIE_LINK_SPEED) { in fm10k_get_bus_info_generic()
|
/kernel/linux/linux-5.10/drivers/gpu/drm/xlnx/ |
D | zynqmp_dp.c | 612 u8 link_status[DP_LINK_STATUS_SIZE]) in zynqmp_dp_adjust_train() 619 u8 v = drm_dp_get_adjust_request_voltage(link_status, i); in zynqmp_dp_adjust_train() 620 u8 p = drm_dp_get_adjust_request_pre_emphasis(link_status, i); in zynqmp_dp_adjust_train() 686 u8 link_status[DP_LINK_STATUS_SIZE]; in zynqmp_dp_link_train_cr() local 711 ret = drm_dp_dpcd_read_link_status(&dp->aux, link_status); in zynqmp_dp_link_train_cr() 715 cr_done = drm_dp_clock_recovery_ok(link_status, lane_cnt); in zynqmp_dp_link_train_cr() 734 zynqmp_dp_adjust_train(dp, link_status); in zynqmp_dp_link_train_cr() 752 u8 link_status[DP_LINK_STATUS_SIZE]; in zynqmp_dp_link_train_ce() local 776 ret = drm_dp_dpcd_read_link_status(&dp->aux, link_status); in zynqmp_dp_link_train_ce() 780 ce_done = drm_dp_channel_eq_ok(link_status, lane_cnt); in zynqmp_dp_link_train_ce() [all …]
|
/kernel/linux/linux-5.10/drivers/scsi/csiostor/ |
D | csio_mb.c | 840 uint8_t cos, bool link_status, uint32_t fcfi, in csio_write_fcoe_link_cond_init_mb() argument 856 cmdp->lstatus = link_status; in csio_write_fcoe_link_cond_init_mb() 1410 uint32_t link_status; in csio_mb_fwevt_handler() local 1429 link_status = ntohl(pcmd->u.info.lstatus_to_modtype); in csio_mb_fwevt_handler() 1430 mod_type = FW_PORT_CMD_MODTYPE_G(link_status); in csio_mb_fwevt_handler() 1431 linkattr = lstatus_to_fwcap(link_status); in csio_mb_fwevt_handler() 1433 hw->pport[port_id].link_status = in csio_mb_fwevt_handler() 1434 FW_PORT_CMD_LSTATUS_G(link_status); in csio_mb_fwevt_handler() 1436 link_status = in csio_mb_fwevt_handler() 1438 mod_type = FW_PORT_CMD_MODTYPE32_G(link_status); in csio_mb_fwevt_handler() [all …]
|
/kernel/linux/linux-5.10/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_xgmac.c | 479 u32 link_status, poll_interval; in xgene_enet_link_state() local 481 link_status = xgene_enet_link_status(pdata); in xgene_enet_link_state() 482 if (pdata->sfp_gpio_en && link_status && in xgene_enet_link_state() 485 link_status = 0; in xgene_enet_link_state() 487 if (link_status) { in xgene_enet_link_state()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
D | hclgevf_mbx.c | 275 u16 link_status, state; in hclgevf_mbx_async_handler() local 301 link_status = msg_q[1]; in hclgevf_mbx_async_handler() 306 hclgevf_update_link_status(hdev, link_status); in hclgevf_mbx_async_handler()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_misc.c | 113 static void hns_cpld_set_led(struct hns_mac_cb *mac_cb, int link_status, in hns_cpld_set_led() argument 134 if (link_status) { in hns_cpld_set_led() 135 dsaf_set_bit(value, DSAF_LED_LINK_B, link_status); in hns_cpld_set_led() 153 static void hns_cpld_set_led_acpi(struct hns_mac_cb *mac_cb, int link_status, in hns_cpld_set_led_acpi() argument 162 link_status, mac_cb->mac_id, data); in hns_cpld_set_led_acpi()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_hw.c | 1128 bool link_status = false; in ixgb_link_reset() local 1140 link_status = in ixgb_link_reset() 1144 } while (!link_status && --wait_retries); in ixgb_link_reset() 1146 } while (!link_status && --lrst_retries); in ixgb_link_reset() 1148 return link_status; in ixgb_link_reset()
|