/drivers/gpu/drm/ |
D | drm_dp_helper.c | 235 static u8 dp_link_status(const u8 link_status[DP_LINK_STATUS_SIZE], int r) in dp_link_status() 237 return link_status[r - DP_LANE0_1_STATUS]; in dp_link_status() 240 static u8 dp_get_lane_status(const u8 link_status[DP_LINK_STATUS_SIZE], in dp_get_lane_status() 245 u8 l = dp_link_status(link_status, i); in dp_get_lane_status() 249 bool drm_dp_channel_eq_ok(const u8 link_status[DP_LINK_STATUS_SIZE], in drm_dp_channel_eq_ok() 256 lane_align = dp_link_status(link_status, in drm_dp_channel_eq_ok() 261 lane_status = dp_get_lane_status(link_status, lane); in drm_dp_channel_eq_ok() 269 bool drm_dp_clock_recovery_ok(const u8 link_status[DP_LINK_STATUS_SIZE], in drm_dp_clock_recovery_ok() 276 lane_status = dp_get_lane_status(link_status, lane); in drm_dp_clock_recovery_ok() 284 u8 drm_dp_get_adjust_request_voltage(const u8 link_status[DP_LINK_STATUS_SIZE], in drm_dp_get_adjust_request_voltage() [all …]
|
/drivers/net/wan/lmc/ |
D | lmc_media.c | 426 u16 link_status, link_status_11; in lmc_ds3_get_link_status() local 430 link_status = lmc_mii_readreg (sc, 0, 18); in lmc_ds3_get_link_status() 444 if ((link_status & LMC_FRAMER_REG0_DLOS) || in lmc_ds3_get_link_status() 445 (link_status & LMC_FRAMER_REG0_OOFS)){ in lmc_ds3_get_link_status() 472 if((link_status & LMC_FRAMER_REG0_AIS) || in lmc_ds3_get_link_status() 488 link_status = lmc_mii_readreg (sc, 0, 18); in lmc_ds3_get_link_status() 490 if(link_status & LMC_FRAMER_REG9_RBLUE){ in lmc_ds3_get_link_status() 679 u16 link_status; in lmc_ssi_get_link_status() local 704 link_status = lmc_mii_readreg (sc, 0, 16); in lmc_ssi_get_link_status() 732 if ((link_status & LMC_MII16_SSI_DSR) == 0) { /* Also HSSI CA */ in lmc_ssi_get_link_status() [all …]
|
/drivers/gpu/drm/gma500/ |
D | cdv_intel_dp.c | 76 uint8_t link_status[DP_LINK_STATUS_SIZE]; member 1042 intel_dp->link_status, in cdv_intel_dp_get_link_status() 1047 cdv_intel_dp_link_status(uint8_t link_status[DP_LINK_STATUS_SIZE], in cdv_intel_dp_link_status() 1050 return link_status[r - DP_LANE0_1_STATUS]; in cdv_intel_dp_link_status() 1054 cdv_intel_get_adjust_request_voltage(uint8_t link_status[DP_LINK_STATUS_SIZE], in cdv_intel_get_adjust_request_voltage() 1061 uint8_t l = cdv_intel_dp_link_status(link_status, i); in cdv_intel_get_adjust_request_voltage() 1067 cdv_intel_get_adjust_request_pre_emphasis(uint8_t link_status[DP_LINK_STATUS_SIZE], in cdv_intel_get_adjust_request_pre_emphasis() 1074 uint8_t l = cdv_intel_dp_link_status(link_status, i); in cdv_intel_get_adjust_request_pre_emphasis() 1119 uint8_t this_v = cdv_intel_get_adjust_request_voltage(intel_dp->link_status, lane); in cdv_intel_get_adjust_train() 1120 uint8_t this_p = cdv_intel_get_adjust_request_pre_emphasis(intel_dp->link_status, lane); in cdv_intel_get_adjust_train() [all …]
|
/drivers/gpu/drm/radeon/ |
D | atombios_dp.c | 240 static void dp_get_adjust_train(u8 link_status[DP_LINK_STATUS_SIZE], in dp_get_adjust_train() 249 u8 this_v = drm_dp_get_adjust_request_voltage(link_status, lane); in dp_get_adjust_train() 250 u8 this_p = drm_dp_get_adjust_request_pre_emphasis(link_status, lane); in dp_get_adjust_train() 517 u8 link_status[DP_LINK_STATUS_SIZE]; in radeon_dp_needs_link_train() local 520 if (drm_dp_dpcd_read_link_status(&radeon_connector->ddc_bus->aux, link_status) in radeon_dp_needs_link_train() 523 if (drm_dp_channel_eq_ok(link_status, dig->dp_lane_count)) in radeon_dp_needs_link_train() 558 u8 link_status[DP_LINK_STATUS_SIZE]; member 697 dp_info->link_status) <= 0) { in radeon_dp_link_train_cr() 702 if (drm_dp_clock_recovery_ok(dp_info->link_status, dp_info->dp_lane_count)) { in radeon_dp_link_train_cr() 728 dp_get_adjust_train(dp_info->link_status, dp_info->dp_lane_count, dp_info->train_set); in radeon_dp_link_train_cr() [all …]
|
/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() 2103 static void bnx2x_update_mng(struct link_params *params, u32 link_status) in bnx2x_update_mng() argument 2109 port_mb[params->port].link_status), link_status); in bnx2x_update_mng() 2231 vars->link_status |= LINK_STATUS_PFC_ENABLED; in bnx2x_update_pfc() 2233 vars->link_status &= ~LINK_STATUS_PFC_ENABLED; in bnx2x_update_pfc() 2235 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 …]
|
/drivers/gpu/drm/exynos/ |
D | exynos_dp_core.c | 341 static unsigned char exynos_dp_get_lane_status(u8 link_status[2], int lane) in exynos_dp_get_lane_status() 344 u8 link_value = link_status[lane>>1]; in exynos_dp_get_lane_status() 349 static int exynos_dp_clock_recovery_ok(u8 link_status[2], int lane_count) in exynos_dp_clock_recovery_ok() 355 lane_status = exynos_dp_get_lane_status(link_status, lane); in exynos_dp_clock_recovery_ok() 362 static int exynos_dp_channel_eq_ok(u8 link_status[2], u8 link_align, in exynos_dp_channel_eq_ok() 372 lane_status = exynos_dp_get_lane_status(link_status, lane); in exynos_dp_channel_eq_ok() 484 u8 link_status[2], adjust_request[2]; in exynos_dp_process_clock_recovery() local 491 DP_LANE0_1_STATUS, 2, link_status); in exynos_dp_process_clock_recovery() 500 if (exynos_dp_clock_recovery_ok(link_status, lane_count) == 0) { in exynos_dp_process_clock_recovery() 559 u8 link_align, link_status[2], adjust_request[2]; in exynos_dp_process_equalizer_training() local [all …]
|
/drivers/net/ethernet/intel/fm10k/ |
D | fm10k_common.c | 32 u16 link_cap, link_status, device_cap, device_control; in fm10k_get_bus_info_generic() local 89 link_status = fm10k_read_pci_cfg_word(hw, FM10K_PCIE_LINK_STATUS); in fm10k_get_bus_info_generic() 91 switch (link_status & FM10K_PCIE_LINK_WIDTH) { in fm10k_get_bus_info_generic() 109 switch (link_status & FM10K_PCIE_LINK_SPEED) { in fm10k_get_bus_info_generic()
|
/drivers/ntb/ |
D | ntb_hw.h | 152 unsigned char link_status; member 202 return ndev->link_status == NTB_LINK_UP; in ntb_hw_link_status()
|
/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_xgmac.c | 297 u32 link_status, poll_interval; in xgene_enet_link_state() local 299 link_status = xgene_enet_link_status(pdata); in xgene_enet_link_state() 300 if (link_status) { in xgene_enet_link_state()
|
/drivers/scsi/csiostor/ |
D | csio_mb.c | 834 uint8_t cos, bool link_status, uint32_t fcfi, in csio_write_fcoe_link_cond_init_mb() argument 850 cmdp->lstatus = link_status; in csio_write_fcoe_link_cond_init_mb() 1403 uint32_t link_status; in csio_mb_fwevt_handler() local 1419 link_status = ntohl(pcmd->u.info.lstatus_to_modtype); in csio_mb_fwevt_handler() 1420 mod_type = FW_PORT_CMD_MODTYPE_GET(link_status); in csio_mb_fwevt_handler() 1422 hw->pport[port_id].link_status = in csio_mb_fwevt_handler() 1423 FW_PORT_CMD_LSTATUS_GET(link_status); in csio_mb_fwevt_handler() 1425 FW_PORT_CMD_LSPEED_GET(link_status); in csio_mb_fwevt_handler() 1428 FW_PORT_CMD_LSTATUS_GET(link_status) ? "UP" : "DOWN"); in csio_mb_fwevt_handler()
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_hw.c | 1157 bool link_status = false; in ixgb_link_reset() local 1169 link_status = in ixgb_link_reset() 1173 } while (!link_status && --wait_retries); in ixgb_link_reset() 1175 } while (!link_status && --lrst_retries); in ixgb_link_reset() 1177 return link_status; in ixgb_link_reset()
|
/drivers/staging/wlan-ng/ |
D | prism2sta.c | 1183 if (hw->link_status == hw->link_status_new) in prism2sta_processing_defer() 1186 hw->link_status = hw->link_status_new; in prism2sta_processing_defer() 1188 switch (hw->link_status) { in prism2sta_processing_defer() 1335 hw->link_status = HFA384x_LINK_CONNECTED; in prism2sta_processing_defer() 1370 hw->link_status = HFA384x_LINK_CONNECTED; in prism2sta_processing_defer() 1409 "unknown linkstatus=0x%02x\n", hw->link_status); in prism2sta_processing_defer() 1413 wlandev->linkstatus = (hw->link_status == HFA384x_LINK_CONNECTED); in prism2sta_processing_defer()
|
/drivers/net/ethernet/sis/ |
D | sis190.c | 292 } link_status; member 935 if (!(val & BMSR_ANEGCOMPLETE) && tp->link_status != LNK_AUTONEG) { in sis190_phy_task() 938 tp->link_status = LNK_AUTONEG; in sis190_phy_task() 939 } else if ((val & BMSR_LSTATUS) && tp->link_status != LNK_ON) { in sis190_phy_task() 1012 tp->link_status = LNK_ON; in sis190_phy_task() 1013 } else if (!(val & BMSR_LSTATUS) && tp->link_status != LNK_AUTONEG) in sis190_phy_task() 1014 tp->link_status = LNK_OFF; in sis190_phy_task() 1524 tp->link_status = LNK_OFF; in sis190_init_board()
|
/drivers/net/ethernet/emulex/benet/ |
D | be_ethtool.c | 606 u8 link_status; in be_get_settings() local 614 &link_status, 0); in be_get_settings() 616 be_link_status_update(adapter, link_status); in be_get_settings() 855 u8 link_status = 0; in be_self_test() local 885 status = be_cmd_link_status_query(adapter, NULL, &link_status, 0); in be_self_test() 889 } else if (!link_status) { in be_self_test()
|
/drivers/net/hyperv/ |
D | rndis_filter.c | 248 u32 link_status; in rndis_set_link_state() local 255 memcpy(&link_status, (void *)((unsigned long)query_complete + in rndis_set_link_state() 257 rdev->link_state = link_status != 0; in rndis_set_link_state() 778 u32 link_status; in rndis_filter_query_device_link_status() local 783 &link_status, &size); in rndis_filter_query_device_link_status()
|
/drivers/gpu/drm/i915/ |
D | intel_dp.c | 2830 intel_dp_get_link_status(struct intel_dp *intel_dp, uint8_t link_status[DP_LINK_STATUS_SIZE]) in intel_dp_get_link_status() 2834 link_status, in intel_dp_get_link_status() 3172 const uint8_t link_status[DP_LINK_STATUS_SIZE]) in intel_get_adjust_train() 3181 uint8_t this_v = drm_dp_get_adjust_request_voltage(link_status, lane); in intel_get_adjust_train() 3182 uint8_t this_p = drm_dp_get_adjust_request_pre_emphasis(link_status, lane); in intel_get_adjust_train() 3412 const uint8_t link_status[DP_LINK_STATUS_SIZE]) in intel_dp_update_link_train() 3419 intel_get_adjust_train(intel_dp, link_status); in intel_dp_update_link_train() 3502 uint8_t link_status[DP_LINK_STATUS_SIZE]; in intel_dp_start_link_train() local 3505 if (!intel_dp_get_link_status(intel_dp, link_status)) { in intel_dp_start_link_train() 3510 if (drm_dp_clock_recovery_ok(link_status, intel_dp->lane_count)) { in intel_dp_start_link_train() [all …]
|
/drivers/net/ethernet/intel/ixgbe/ |
D | ixgbe_common.h | 44 enum ixgbe_bus_width ixgbe_convert_bus_width(u16 link_status); 45 enum ixgbe_bus_speed ixgbe_convert_bus_speed(u16 link_status);
|
D | ixgbe_common.c | 610 enum ixgbe_bus_width ixgbe_convert_bus_width(u16 link_status) in ixgbe_convert_bus_width() argument 612 switch (link_status & IXGBE_PCI_LINK_WIDTH) { in ixgbe_convert_bus_width() 626 enum ixgbe_bus_speed ixgbe_convert_bus_speed(u16 link_status) in ixgbe_convert_bus_speed() argument 628 switch (link_status & IXGBE_PCI_LINK_SPEED) { in ixgbe_convert_bus_speed() 648 u16 link_status; in ixgbe_get_bus_info_generic() local 653 link_status = ixgbe_read_pci_cfg_word(hw, IXGBE_PCI_LINK_STATUS); in ixgbe_get_bus_info_generic() 655 hw->bus.width = ixgbe_convert_bus_width(link_status); in ixgbe_get_bus_info_generic() 656 hw->bus.speed = ixgbe_convert_bus_speed(link_status); in ixgbe_get_bus_info_generic()
|
/drivers/power/ |
D | ab8500_charger.c | 673 enum ab8500_charger_link_status link_status) in ab8500_charger_max_usb_curr() argument 686 switch (link_status) { in ab8500_charger_max_usb_curr() 722 dev_dbg(di->dev, "USB Type - 0x%02x MaxCurr: %d", link_status, in ab8500_charger_max_usb_curr() 764 link_status, in ab8500_charger_max_usb_curr() 774 dev_dbg(di->dev, "USB Type - 0x%02x MaxCurr: %d", link_status, in ab8500_charger_max_usb_curr() 791 link_status, di->max_usb_in_curr.set_max); in ab8500_charger_max_usb_curr() 2312 u8 link_status; in ab8500_charger_usb_link_status_work() local 2345 link_status = AB8500_USB_LINK_STATUS; in ab8500_charger_usb_link_status_work() 2347 link_status = AB8505_USB_LINK_STATUS; in ab8500_charger_usb_link_status_work() 2350 if (((val & link_status) >> USB_LINK_STATUS_SHIFT) == in ab8500_charger_usb_link_status_work() [all …]
|
/drivers/net/ethernet/intel/i40evf/ |
D | i40e_virtchnl.h | 337 bool link_status; member
|
/drivers/net/ethernet/intel/i40e/ |
D | i40e_virtchnl.h | 337 bool link_status; member
|
/drivers/net/ethernet/brocade/bna/ |
D | bna_enet.c | 125 ethport->link_status = BNA_LINK_DOWN; in bna_bfi_ethport_admin_rsp() 243 ethport->link_status = BNA_LINK_UP; in bna_bfi_ethport_linkup_aen() 246 ethport->link_cbfn(ethport->bna->bnad, ethport->link_status); in bna_bfi_ethport_linkup_aen() 253 ethport->link_status = BNA_LINK_DOWN; in bna_bfi_ethport_linkdown_aen() 733 ethport->link_status = BNA_LINK_DOWN; in bna_ethport_init() 778 if (ethport->link_status != BNA_LINK_DOWN) { in bna_ethport_fail() 779 ethport->link_status = BNA_LINK_DOWN; in bna_ethport_fail()
|
/drivers/net/ethernet/dlink/ |
D | dl2k.c | 258 np->link_status = 0; in rio_probe1() 608 if (np->link_status == 0) { /* Link Down */ in start_xmit() 949 np->link_status = 1; in rio_error() 953 np->link_status = 0; in rio_error() 1184 if ( np->link_status ) { in rio_get_settings() 1240 return np->link_status; in rio_get_link()
|
/drivers/scsi/fnic/ |
D | fnic_fcs.c | 64 old_link_status = fnic->link_status; in fnic_handle_link() 65 fnic->link_status = vnic_dev_link_status(fnic->vdev); in fnic_handle_link() 68 if (old_link_status == fnic->link_status) { in fnic_handle_link() 69 if (!fnic->link_status) { in fnic_handle_link() 113 } else if (fnic->link_status) { in fnic_handle_link()
|
/drivers/net/ethernet/dec/tulip/ |
D | xircom_cb.c | 136 static int link_status(struct xircom_private *card); 352 newlink = link_status(card); in xircom_interrupt() 969 static int link_status(struct xircom_private *card) in link_status() function
|