/openbmc/linux/drivers/gpu/drm/amd/display/dc/core/ |
H A D | dc_link_exports.c | 27 * This file provides single entrance to link functionality declared in dc 29 * that directly calls link internal functions without adding new functional 32 * When exporting a new link related dc function, add function declaration in 34 * in this file which calls link functions. 36 #include "link.h" 40 return dc->links[link_index]; in dc_get_link_at_index() 50 for (i = 0; i < dc->link_count; i++) { in dc_get_edp_links() 52 if (!dc->links[i]) in dc_get_edp_links() 54 if (dc->links[i]->connector_signal == SIGNAL_TYPE_EDP) { in dc_get_edp_links() 55 edp_links[*edp_num] = dc->links[i]; in dc_get_edp_links() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/dp/ |
H A D | dp_link.c | 1 // SPDX-License-Identifier: GPL-2.0-only 3 * Copyright (c) 2012-2020, The Linux Foundation. All rights reserved. 6 #define pr_fmt(fmt) "[drm-dp] %s: " fmt, __func__ 50 struct dp_link_info *link) in dp_aux_link_power_up() argument 56 if (link->revision < 0x11) in dp_aux_link_power_up() 78 struct dp_link_info *link) in dp_aux_link_power_down() argument 83 if (link->revision < 0x11) in dp_aux_link_power_down() 100 static int dp_link_get_period(struct dp_link_private *link, int const addr) in dp_link_get_period() argument 107 if (drm_dp_dpcd_readb(link->aux, addr, &data) < 0) { in dp_link_get_period() 109 ret = -EINVAL; in dp_link_get_period() [all …]
|
/openbmc/linux/drivers/gpu/drm/tegra/ |
H A D | dp.c | 1 // SPDX-License-Identifier: MIT 3 * Copyright (C) 2013-2019 NVIDIA Corporation 17 caps->enhanced_framing = false; in drm_dp_link_caps_reset() 18 caps->tps3_supported = false; in drm_dp_link_caps_reset() 19 caps->fast_training = false; in drm_dp_link_caps_reset() 20 caps->channel_coding = false; in drm_dp_link_caps_reset() 21 caps->alternate_scrambler_reset = false; in drm_dp_link_caps_reset() 27 dest->enhanced_framing = src->enhanced_framing; in drm_dp_link_caps_copy() 28 dest->tps3_supported = src->tps3_supported; in drm_dp_link_caps_copy() 29 dest->fast_training = src->fast_training; in drm_dp_link_caps_copy() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/protocols/ |
H A D | link_dp_capability.c | 27 * This file implements dp specific link capability retrieval sequence. It is 29 * from dp link. Link capability consists of encoders, DPRXs, cables, retimers, 31 * include this header file in order to access link capability. Accessing link 34 * structure used to represent link capability instead of function interfaces. 44 #include "link/accessories/link_dp_trace.h" 45 #include "link/link_detection.h" 46 #include "link/link_validation.h" 55 link->ctx->logger 71 /* This link training fallback array is ordered by 72 * link bandwidth from highest to lowest. [all …]
|
H A D | link_edp_panel_control.c | 50 void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode) in dp_set_panel_mode() argument 70 link, in dp_set_panel_mode() 82 link, in dp_set_panel_mode() 90 link->panel_mode = panel_mode; in dp_set_panel_mode() 91 DC_LOG_DETECTION_DP_CAPS("Link: %d eDP panel mode supported: %d " in dp_set_panel_mode() 93 link->link_index, in dp_set_panel_mode() 94 link->dpcd_caps.panel_mode_edp, in dp_set_panel_mode() 98 enum dp_panel_mode dp_get_panel_mode(struct dc_link *link) in dp_get_panel_mode() argument 104 if (link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT) { in dp_get_panel_mode() 106 switch (link->dpcd_caps.branch_dev_id) { in dp_get_panel_mode() [all …]
|
H A D | link_dp_dpia_bw.c | 34 link->ctx->logger 38 // ------------------------------------------------------------------ 40 // ------------------------------------------------------------------ 43 * - Is it USB4 link? 44 * - Is HPD HIGH? 45 * - Is BW Allocation Support Mode enabled on DP-Tx? 49 return (tmp && DISPLAY_ENDPOINT_USB4_DPIA == tmp->ep_type in get_bw_alloc_proceed_flag() 50 && tmp->hpd_status in get_bw_alloc_proceed_flag() 51 && tmp->dpia_bw_alloc_config.bw_alloc_enabled); in get_bw_alloc_proceed_flag() 54 static void reset_bw_alloc_struct(struct dc_link *link) in reset_bw_alloc_struct() argument [all …]
|
H A D | link_dp_phy.c | 30 * link settings. 41 link->ctx->logger 43 void dpcd_write_rx_power_ctrl(struct dc_link *link, bool on) in dpcd_write_rx_power_ctrl() argument 49 if (link->sync_lt_in_progress) in dpcd_write_rx_power_ctrl() 52 core_link_write_dpcd(link, DP_SET_POWER, &state, in dpcd_write_rx_power_ctrl() 58 struct dc_link *link, in dp_enable_link_phy() argument 64 link->cur_link_settings = *link_settings; in dp_enable_link_phy() 65 link->dc->hwss.enable_dp_link_output(link, link_res, signal, in dp_enable_link_phy() 67 dpcd_write_rx_power_ctrl(link, true); in dp_enable_link_phy() 70 void dp_disable_link_phy(struct dc_link *link, in dp_disable_link_phy() argument [all …]
|
H A D | link_dp_irq_handler.c | 37 #include "link/accessories/link_dp_trace.h" 38 #include "link/link_dpms.h" 44 struct dc_link *link, in dp_parse_link_loss_status() argument 57 if (link->cur_link_settings.lane_count == 0) in dp_parse_link_loss_status() 60 /*1. Check that Link Status changed, before re-training.*/ in dp_parse_link_loss_status() 63 for (lane = 0; lane < link->cur_link_settings.lane_count; lane++) { in dp_parse_link_loss_status() 68 &hpd_irq_dpcd_data->bytes.lane01_status.raw, in dp_parse_link_loss_status() 76 * consider it as (link has been in dp_parse_link_loss_status() 85 if (link_dp_get_encoding_format(&link->cur_link_settings) == DP_128b_132b_ENCODING && in dp_parse_link_loss_status() 86 (!hpd_irq_dpcd_data->bytes.lane_status_updated.bits.EQ_INTERLANE_ALIGN_DONE_128b_132b || in dp_parse_link_loss_status() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/ |
H A D | link_factory.c | 27 * This file owns the creation/destruction of link structure. 55 /* link factory owns the creation/destruction of link structures. */ 59 link_srv->create_link = link_create; in construct_link_service_factory() 60 link_srv->destroy_link = link_destroy; in construct_link_service_factory() 63 /* link_detection manages link detection states and receiver states by using 64 * various link protocols. It also provides helper functions to interpret 70 link_srv->detect_link = link_detect; in construct_link_service_detection() 71 link_srv->detect_connection_type = link_detect_connection_type; in construct_link_service_detection() 72 link_srv->add_remote_sink = link_add_remote_sink; in construct_link_service_detection() 73 link_srv->remove_remote_sink = link_remove_remote_sink; in construct_link_service_detection() [all …]
|
H A D | link_detection.c | 27 * This file manages link detection states and receiver states by using various 28 * link protocols. It also provides helper functions to interpret certain 65 static const uint8_t dp_hdmi_dongle_signature_str[] = "DP-HDMI ADAPTOR"; 164 static enum signal_type link_detect_sink_signal_type(struct dc_link *link, in link_detect_sink_signal_type() argument 170 if (link->is_dig_mapping_flexible) in link_detect_sink_signal_type() 173 enc_id = link->link_enc->id; in link_detect_sink_signal_type() 174 result = get_basic_signal_type(enc_id, link->link_id); in link_detect_sink_signal_type() 176 /* Use basic signal type for link without physical connector. */ in link_detect_sink_signal_type() 177 if (link->ep_type != DISPLAY_ENDPOINT_PHY) in link_detect_sink_signal_type() 192 /* PCIE detects the actual connector on add-on board */ in link_detect_sink_signal_type() [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/accessories/ |
H A D | link_dp_trace.c | 26 #include "link/protocols/link_dpcd.h" 27 #include "link.h" 29 void dp_trace_init(struct dc_link *link) in dp_trace_init() argument 31 memset(&link->dp_trace, 0, sizeof(link->dp_trace)); in dp_trace_init() 32 link->dp_trace.is_initialized = true; in dp_trace_init() 35 void dp_trace_reset(struct dc_link *link) in dp_trace_reset() argument 37 memset(&link->dp_trace, 0, sizeof(link->dp_trace)); in dp_trace_reset() 40 bool dp_trace_is_initialized(struct dc_link *link) in dp_trace_is_initialized() argument 42 return link->dp_trace.is_initialized; in dp_trace_is_initialized() 45 void dp_trace_detect_lt_init(struct dc_link *link) in dp_trace_detect_lt_init() argument [all …]
|
H A D | link_dp_cts.c | 26 #include "link/link_resource.h" 27 #include "link/protocols/link_dpcd.h" 28 #include "link/protocols/link_dp_training.h" 29 #include "link/protocols/link_dp_phy.h" 30 #include "link/protocols/link_dp_training_fixed_vs_pe_retimer.h" 31 #include "link/protocols/link_dp_capability.h" 32 #include "link/link_dpms.h" 39 link->ctx->logger 79 static void dp_retrain_link_dp_test(struct dc_link *link, in dp_retrain_link_dp_test() argument 84 struct dc_state *state = link->dc->current_state; in dp_retrain_link_dp_test() [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | vxlan.sh | 2 # SPDX-License-Identifier: GPL-2.0 45 ip link set dev $swp1 up 46 ip link set dev $swp2 up 53 ip link set dev $swp2 down 54 ip link set dev $swp1 down 59 ip link set dev $swp1 master br0 61 ip link set dev vxlan0 master br0 64 ip link set dev $swp1 nomaster 66 ip link set dev $swp1 master br0 72 ip link set dev $swp1 master br0 [all …]
|
H A D | q_in_q_veto.sh | 2 # SPDX-License-Identifier: GPL-2.0 28 ip link set dev $swp1 up 29 ip link set dev $swp2 up 38 ip link set dev $swp2 down 39 ip link set dev $swp1 down 49 ip link add dev br0 type bridge vlan_filtering 1 \ 51 ip link set dev br0 addrgenmode none 53 ip link set dev br0 up 54 ip link set dev $swp1 master br0 56 ip link add name br0.100 link br0 type vlan \ [all …]
|
H A D | extack.sh | 2 # SPDX-License-Identifier: GPL-2.0 22 ip link set dev $swp1 up 23 ip link set dev $swp2 up 30 ip link set dev $swp2 down 31 ip link set dev $swp1 down 38 ip link add name br1 type bridge vlan_filtering 0 mcast_snooping 0 39 ip link set dev br1 addrgenmode none 40 ip link set dev br1 up 41 ip link add name vx1 up type vxlan id 1000 \ 45 ip link set dev vx1 master br1 [all …]
|
H A D | rtnetlink.sh | 2 # SPDX-License-Identifier: GPL-2.0 49 ip link set dev $swp1 up 50 ip link set dev $swp2 up 57 ip link set dev $swp2 down 58 ip link set dev $swp1 down 67 ip link add name vrf-test type vrf table 10 68 ip link set dev $swp1 master vrf-test 70 ip -4 address add 192.0.2.1/24 dev vrf-test 72 ip -6 address add 2001:db8:1::1/64 dev vrf-test 75 log_test "RIF - setting IP address on VRF" [all …]
|
/openbmc/linux/net/smc/ |
H A D | smc_wr.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Shared Memory Communications over RDMA (SMC-R) and RoCE 17 * SMC uses this to exchange LLC (link layer control) 44 struct smc_link *link; member 52 /*------------------------------- completion --------------------------------*/ 54 /* returns true if at least one tx work request is pending on the given link */ 55 static inline bool smc_wr_is_tx_pend(struct smc_link *link) in smc_wr_is_tx_pend() argument 57 return !bitmap_empty(link->wr_tx_mask, link->wr_tx_cnt); in smc_wr_is_tx_pend() 60 /* wait till all pending tx work requests on the given link are completed */ 61 void smc_wr_tx_wait_no_pending_sends(struct smc_link *link) in smc_wr_tx_wait_no_pending_sends() argument [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | pci_link.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 * pci_link.c - ACPI PCI Interrupt Link Device Driver ($Revision: 34 $) 10 * 1. Support more than one IRQ resource entry per link device (index). 12 * for IRQ management (e.g. start()->_SRS). 33 #define ACPI_PCI_LINK_DEVICE_NAME "PCI Interrupt Link" 52 * If a link is initialized, we never change its active and initialized 53 * later even the link is disable. Instead, we just repick the active irq 75 static int sci_irq = -1, sci_penalty; 77 /* -------------------------------------------------------------------------- 78 PCI Link Device Management [all …]
|
/openbmc/openbmc/meta-openpower/recipes-phosphor/host/ |
H A D | op-proc-control-systemd-links.bb | 4 LICENSE = "Apache-2.0" 5 LIC_FILES_CHKSUM = "file://${COREBASE}/meta/files/common-licenses/Apache-2.0;md5=89aea4e17d99a7cacd… 9 RDEPENDS:${PN} += "op-proc-control" 10 RDEPENDS:${PN} += "phosphor-state-manager-obmc-targets" 15 mkdir -p $D$systemd_system_unitdir/obmc-host-stop@0.target.wants 16 mkdir -p $D$systemd_system_unitdir/obmc-host-force-warm-reboot@0.target.requires 17 mkdir -p $D$systemd_system_unitdir/obmc-host-startmin@0.target.requires 18 mkdir -p $D$systemd_system_unitdir/obmc-host-startmin@0.target.wants 19 mkdir -p $D$systemd_system_unitdir/obmc-host-diagnostic-mode@0.target.requires 20 mkdir -p $D$systemd_system_unitdir/obmc-chassis-poweron@0.target.requires [all …]
|
/openbmc/linux/Documentation/networking/dsa/ |
H A D | b53.rst | 1 .. SPDX-License-Identifier: GPL-2.0 20 The switch is, if possible, configured to enable a Broadcom specific 4-bytes 30 configuration described in the :ref:`dsa-config-showcases`. 33 ---------------------------------- 38 See :ref:`dsa-tagged-configuration`. 41 ------------------------------------- 48 The configuration slightly differ from the :ref:`dsa-vlan-configuration`. 54 In difference to the configuration described in :ref:`dsa-vlan-configuration` 64 .. code-block:: sh 67 ip link add link eth0 name eth0.1 type vlan id 1 [all …]
|
H A D | configuration.rst | 1 .. SPDX-License-Identifier: GPL-2.0 10 .. _dsa-config-showcases: 13 ----------------------- 42 - when a DSA slave interface is brought up, the master interface is 44 - when the master interface is brought down, all DSA slave interfaces are 71 * lan1: 192.0.2.1/30 (192.0.2.0 - 192.0.2.3) 72 * lan2: 192.0.2.5/30 (192.0.2.4 - 192.0.2.7) 73 * lan3: 192.0.2.9/30 (192.0.2.8 - 192.0.2.11) 76 * br0: 192.0.2.129/25 (192.0.2.128 - 192.0.2.255) 79 * br0: 192.0.2.129/25 (192.0.2.128 - 192.0.2.255) [all …]
|
/openbmc/linux/drivers/pci/pcie/ |
H A D | aspm.c | 1 // SPDX-License-Identifier: GPL-2.0 3 * Enable PCIe link L0s/L1 state and Clock Power Management 46 struct pci_dev *pdev; /* Upstream component of the Link */ 48 struct pcie_link_state *root; /* pointer to the root port link */ 49 struct pcie_link_state *parent; /* pointer to the parent Link state */ 101 list_for_each_entry(child, &linkbus->devices, bus_list) in pci_function_0() 102 if (PCI_FUNC(child->devfn) == 0) in pci_function_0() 107 static int policy_to_aspm_state(struct pcie_link_state *link) in policy_to_aspm_state() argument 120 return link->aspm_default; in policy_to_aspm_state() 125 static int policy_to_clkpm_state(struct pcie_link_state *link) in policy_to_clkpm_state() argument [all …]
|
/openbmc/linux/drivers/gpu/drm/amd/display/dc/link/hwss/ |
H A D | link_hwss_dio_fixed_vs_pe_retimer.c | 29 uint8_t dp_dio_fixed_vs_pe_retimer_lane_cfg_to_hw_cfg(struct dc_link *link) in dp_dio_fixed_vs_pe_retimer_lane_cfg_to_hw_cfg() argument 31 // TODO: Get USB-C cable orientation in dp_dio_fixed_vs_pe_retimer_lane_cfg_to_hw_cfg() 32 if (link->cur_link_settings.lane_count == LANE_COUNT_FOUR) in dp_dio_fixed_vs_pe_retimer_lane_cfg_to_hw_cfg() 38 void dp_dio_fixed_vs_pe_retimer_exit_manual_automation(struct dc_link *link) in dp_dio_fixed_vs_pe_retimer_exit_manual_automation() argument 40 const uint8_t dp_type = dp_dio_fixed_vs_pe_retimer_lane_cfg_to_hw_cfg(link); in dp_dio_fixed_vs_pe_retimer_exit_manual_automation() 52 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation() 54 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation() 56 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation() 58 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation() 60 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation() [all …]
|
/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | router_bridge_1d_lag.sh | 2 # SPDX-License-Identifier: GPL-2.0 4 # +--------------------------------------------+ 18 # +----------|-----------|---------------------+ 20 # +----------|-----------|---------------------+ 29 # | +------|------------+ +-------|----------+ | 36 # | +-------------------+ +------------------+ | 49 # +-------|---------|--------------------------+ 51 # +-------|---------|--------------------------+ 66 # +--------------------------------------------+ 118 ip link set dev lag1 addrgenmode none [all …]
|
/openbmc/linux/drivers/net/wireless/ralink/rt2x00/ |
H A D | rt2x00link.c | 1 // SPDX-License-Identifier: GPL-2.0-or-later 3 Copyright (C) 2004 - 2009 Ivo van Doorn <IvDoorn@gmail.com> 10 Abstract: rt2x00 generic link tuning routines. 20 * When we lack RSSI information return something less then -80 to 23 #define DEFAULT_RSSI -128 31 return -avg; in rt2x00link_get_avg_rssi() 38 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_link_rssi() 40 if (rt2x00dev->link.qual.rx_success) in rt2x00link_antenna_get_link_rssi() 41 return rt2x00link_get_avg_rssi(&ant->rssi_ant); in rt2x00link_antenna_get_link_rssi() 48 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_rssi_history() [all …]
|