Home
last modified time | relevance | path

Searched full:link (Results 1 – 25 of 4816) sorted by relevance

12345678910>>...193

/linux/drivers/gpu/drm/amd/display/dc/core/
H A Ddc_link_exports.c27 * 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"
66 const struct dc_link *link, in dc_get_edp_link_panel_inst() argument
73 if (link->connector_signal != SIGNAL_TYPE_EDP) in dc_get_edp_link_panel_inst()
77 if (link == edp_links[i]) in dc_get_edp_link_panel_inst()
84 bool dc_link_detect(struct dc_link *link, enum dc_detect_reason reason) in dc_link_detect() argument
86 return link->dc->link_srv->detect_link(link, reason); in dc_link_detect()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/
H A Dlink_factory.c27 * This file owns the creation/destruction of link structure.
56 /* link factory owns the creation/destruction of link structures. */
64 /* link_detection manages link detection states and receiver states by using
65 * various link protocols. It also provides helper functions to interpret
87 /* link resource implements accessors to link resource. */
95 /* link validation owns timing validation against various link limitations. (ex.
96 * link bandwidth, receiver capability or our hardware capability) It also
106 /* link dpms owns the programming sequence of stream's dpms state associated
107 * with the link and link's enable/disable sequences as result of the stream's
125 /* link ddc implements generic display communication protocols such as i2c, aux
[all …]
H A Dlink_detection.c27 * This file manages link detection states and receiver states by using various
28 * link protocols. It also provides helper functions to interpret certain
52 link->ctx->logger
167 static enum signal_type link_detect_sink_signal_type(struct dc_link *link, in link_detect_sink_signal_type() argument
173 if (link->is_dig_mapping_flexible) in link_detect_sink_signal_type()
176 enc_id = link->link_enc->id; in link_detect_sink_signal_type()
177 result = get_basic_signal_type(enc_id, link->link_id); in link_detect_sink_signal_type()
179 /* Use basic signal type for link without physical connector. */ in link_detect_sink_signal_type()
180 if (link->ep_type != DISPLAY_ENDPOINT_PHY) in link_detect_sink_signal_type()
196 if (link->link_id.id == CONNECTOR_ID_PCIE) { in link_detect_sink_signal_type()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/protocols/
H A Dlink_dp_capability.c27 * 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 Dlink_edp_panel_control.c43 link->ctx->logger
53 void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode) in dp_set_panel_mode() argument
73 link, in dp_set_panel_mode()
85 link, in dp_set_panel_mode()
93 link->panel_mode = panel_mode; in dp_set_panel_mode()
94 DC_LOG_DETECTION_DP_CAPS("Link: %d eDP panel mode supported: %d " in dp_set_panel_mode()
96 link->link_index, in dp_set_panel_mode()
97 link->dpcd_caps.panel_mode_edp, in dp_set_panel_mode()
101 enum dp_panel_mode dp_get_panel_mode(struct dc_link *link) in dp_get_panel_mode() argument
107 if (link->connector_signal != SIGNAL_TYPE_DISPLAY_PORT) { in dp_get_panel_mode()
[all …]
H A Dlink_dp_dpia_bw.c34 link->ctx->logger
43 * - Is it USB4 link?
54 static void reset_bw_alloc_struct(struct dc_link *link) in reset_bw_alloc_struct() argument
56 link->dpia_bw_alloc_config.bw_alloc_enabled = false; in reset_bw_alloc_struct()
57 link->dpia_bw_alloc_config.link_verified_bw = 0; in reset_bw_alloc_struct()
58 link->dpia_bw_alloc_config.link_max_bw = 0; in reset_bw_alloc_struct()
59 link->dpia_bw_alloc_config.allocated_bw = 0; in reset_bw_alloc_struct()
60 link->dpia_bw_alloc_config.estimated_bw = 0; in reset_bw_alloc_struct()
61 link->dpia_bw_alloc_config.bw_granularity = 0; in reset_bw_alloc_struct()
62 link->dpia_bw_alloc_config.dp_overhead = 0; in reset_bw_alloc_struct()
[all …]
H A Dlink_dp_phy.c30 * link settings.
42 link->ctx->logger
44 void dpcd_write_rx_power_ctrl(struct dc_link *link, bool on) in dpcd_write_rx_power_ctrl() argument
50 if (link->sync_lt_in_progress) in dpcd_write_rx_power_ctrl()
53 core_link_write_dpcd(link, DP_SET_POWER, &state, in dpcd_write_rx_power_ctrl()
59 struct dc_link *link, in dp_enable_link_phy() argument
65 link->cur_link_settings = *link_settings; in dp_enable_link_phy()
66 link->dc->hwss.enable_dp_link_output(link, link_res, signal, in dp_enable_link_phy()
68 dpcd_write_rx_power_ctrl(link, true); in dp_enable_link_phy()
71 void dp_disable_link_phy(struct dc_link *link, in dp_disable_link_phy() argument
[all …]
H A Dlink_dp_irq_handler.c37 #include "link/accessories/link_dp_trace.h"
38 #include "link/link_dpms.h"
42 link->ctx->logger
46 struct dc_link *link, in dp_parse_link_loss_status() argument
59 if (link->cur_link_settings.lane_count == 0) in dp_parse_link_loss_status()
62 /*1. Check that Link Status changed, before re-training.*/ in dp_parse_link_loss_status()
65 for (lane = 0; lane < link->cur_link_settings.lane_count; lane++) { in dp_parse_link_loss_status()
78 * consider it as (link has been in dp_parse_link_loss_status()
87 if (link_dp_get_encoding_format(&link->cur_link_settings) == DP_128b_132b_ENCODING && in dp_parse_link_loss_status()
97 DC_LOG_HW_HPD_IRQ("%s: Link Status changed.\n", __func__); in dp_parse_link_loss_status()
[all …]
H A Dlink_dp_training_dpia.c44 link->ctx->logger
89 /* Configure link as prescribed in link_setting; set LTTPR mode; and
90 * Initialize link training settings.
91 * Abort link training if sink unplug detected.
93 * @param link DPIA link being trained.
94 * @param[in] link_setting Lane count, link rate and downspread control.
95 * @param[out] lt_settings Link settings and drive settings (voltage swing and pre-emphasis).
98 struct dc_link *link, in dpia_configure_link() argument
108 link->link_id.enum_id - ENUM_ID_1, in dpia_configure_link()
112 link, in dpia_configure_link()
[all …]
/linux/drivers/gpu/drm/msm/dp/
H A Ddp_link.c49 struct dp_link_info *link) in dp_aux_link_power_up() argument
55 if (link->revision < 0x11) in dp_aux_link_power_up()
77 struct dp_link_info *link) in dp_aux_link_power_down() argument
82 if (link->revision < 0x11) in dp_aux_link_power_down()
99 static int dp_link_get_period(struct dp_link_private *link, int const addr) in dp_link_get_period() argument
106 if (drm_dp_dpcd_readb(link->aux, addr, &data) < 0) { in dp_link_get_period()
125 static int dp_link_parse_audio_channel_period(struct dp_link_private *link) in dp_link_parse_audio_channel_period() argument
128 struct dp_link_test_audio *req = &link->dp_link.test_audio; in dp_link_parse_audio_channel_period()
130 ret = dp_link_get_period(link, DP_TEST_AUDIO_PERIOD_CH1); in dp_link_parse_audio_channel_period()
135 drm_dbg_dp(link->drm_dev, "test_audio_period_ch_1 = 0x%x\n", ret); in dp_link_parse_audio_channel_period()
[all …]
/linux/drivers/gpu/drm/tegra/
H A Ddp.c34 static void drm_dp_link_reset(struct drm_dp_link *link) in drm_dp_link_reset() argument
38 if (!link) in drm_dp_link_reset()
41 link->revision = 0; in drm_dp_link_reset()
42 link->max_rate = 0; in drm_dp_link_reset()
43 link->max_lanes = 0; in drm_dp_link_reset()
45 drm_dp_link_caps_reset(&link->caps); in drm_dp_link_reset()
46 link->aux_rd_interval.cr = 0; in drm_dp_link_reset()
47 link->aux_rd_interval.ce = 0; in drm_dp_link_reset()
48 link->edp = 0; in drm_dp_link_reset()
50 link->rate = 0; in drm_dp_link_reset()
[all …]
/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dq_in_q_veto.sh28 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 \
60 ip link add name br0.100 link br0 type vlan \
[all …]
H A Dvxlan.sh45 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
74 ip link set dev vxlan0 master br0 &> /dev/null
[all …]
H A Dextack.sh22 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
48 ip link set dev $swp1 master br1
[all …]
H A Drtnetlink.sh49 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
77 ip link del dev vrf-test
91 ip link add name br1 up type bridge vlan_filtering 0
92 ip link set dev br1 addr $swp2_mac
93 ip link set dev $swp2 master br1
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/accessories/
H A Dlink_dp_trace.c26 #include "link/protocols/link_dpcd.h"
28 void dp_trace_init(struct dc_link *link) in dp_trace_init() argument
30 memset(&link->dp_trace, 0, sizeof(link->dp_trace)); in dp_trace_init()
31 link->dp_trace.is_initialized = true; in dp_trace_init()
34 void dp_trace_reset(struct dc_link *link) in dp_trace_reset() argument
36 memset(&link->dp_trace, 0, sizeof(link->dp_trace)); in dp_trace_reset()
39 bool dp_trace_is_initialized(struct dc_link *link) in dp_trace_is_initialized() argument
41 return link->dp_trace.is_initialized; in dp_trace_is_initialized()
44 void dp_trace_detect_lt_init(struct dc_link *link) in dp_trace_detect_lt_init() argument
46 memset(&link->dp_trace.detect_lt_trace, 0, sizeof(link->dp_trace.detect_lt_trace)); in dp_trace_detect_lt_init()
[all …]
H A Dlink_dp_cts.c26 #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
64 static void dp_retrain_link_dp_test(struct dc_link *link, in dp_retrain_link_dp_test() argument
69 struct dc_state *state = link->dc->current_state; in dp_retrain_link_dp_test()
[all …]
/linux/net/smc/
H A Dsmc_wr.c17 * SMC uses this to exchange LLC (link layer control)
44 struct smc_link *link; member
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
63 wait_event(link->wr_tx_wait, !smc_wr_is_tx_pend(link)); in smc_wr_tx_wait_no_pending_sends()
66 static inline int smc_wr_tx_find_pending_index(struct smc_link *link, u64 wr_id) in smc_wr_tx_find_pending_index() argument
70 for (i = 0; i < link->wr_tx_cnt; i++) { in smc_wr_tx_find_pending_index()
[all …]
/linux/drivers/acpi/
H A Dpci_link.c3 * pci_link.c - ACPI PCI Interrupt Link Device Driver ($Revision: 34 $)
10 * 1. Support more than one IRQ resource entry per link device (index).
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
78 PCI Link Device Management
82 * set context (link) possible list from resource list
87 struct acpi_pci_link *link = context; in acpi_pci_link_check_possible() local
88 acpi_handle handle = link->device->handle; in acpi_pci_link_check_possible()
112 link->irq.possible[i] = p->interrupts[i]; in acpi_pci_link_check_possible()
[all …]
/linux/sound/soc/intel/boards/
H A Dsof_board_helpers.c11 * Intel HDMI DAI Link
41 * DMIC DAI Link
74 * HDA External Codec DAI Link
132 * DAI Link Helpers
178 static int set_ssp_codec_link(struct device *dev, struct snd_soc_dai_link *link, in set_ssp_codec_link() argument
184 dev_dbg(dev, "link %d: ssp codec %s, ssp %d\n", be_id, in set_ssp_codec_link()
187 /* link name */ in set_ssp_codec_link()
188 link->name = devm_kasprintf(dev, GFP_KERNEL, "SSP%d-Codec", ssp_codec); in set_ssp_codec_link()
189 if (!link->name) in set_ssp_codec_link()
209 link->cpus = cpus; in set_ssp_codec_link()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/inc/
H A Dlink.h31 * This header defines link component function interfaces aka link_service.
32 * link_service provides the only entry point to link functions with function
38 * The following shows a link component relation map.
44 * DC to Link:
45 * dc_link_exports.c or other dc files include link.h
46 * link_factory.c implements link.h
48 * Link sub-component to Link sub-component:
52 * As you can see if you ever need to add a new dc link function and call it on
55 * to extend or generalize the functionality of existing link function
56 * interfaces so minimal modification is needed outside link component to
[all …]
/linux/Documentation/networking/dsa/
H A Db53.rst67 ip link add link eth0 name eth0.1 type vlan id 1
68 ip link add link eth0 name eth0.2 type vlan id 2
69 ip link add link eth0 name eth0.3 type vlan id 3
72 ip link set eth0 up
73 ip link set eth0.1 up
74 ip link set eth0.2 up
75 ip link set eth0.3 up
78 ip link set wan up
79 ip link set lan1 up
80 ip link set lan2 up
[all …]
H A Dconfiguration.rst101 ip link set eth0 up
104 ip link set lan1 up
105 ip link set lan2 up
106 ip link set lan3 up
113 ip link set eth0 up
116 ip link set lan1 up
117 ip link set lan2 up
118 ip link set lan3 up
121 ip link add name br0 type bridge
124 ip link set dev lan1 master br0
[all …]
/linux/drivers/gpu/drm/amd/display/dc/link/hwss/
H A Dlink_hwss_dio_fixed_vs_pe_retimer.c29 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
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()
62 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_dio_fixed_vs_pe_retimer_exit_manual_automation()
[all …]
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/
H A Damdgpu_dm_psr.c33 static bool link_supports_psrsu(struct dc_link *link) in link_supports_psrsu() argument
35 struct dc *dc = link->ctx->dc; in link_supports_psrsu()
43 if (!is_psr_su_specific_panel(link)) in link_supports_psrsu()
46 if (!link->dpcd_caps.alpm_caps.bits.AUX_WAKE_ALPM_CAP || in link_supports_psrsu()
47 !link->dpcd_caps.psr_info.psr_dpcd_caps.bits.Y_COORDINATE_REQUIRED) in link_supports_psrsu()
50 if (link->dpcd_caps.psr_info.psr_dpcd_caps.bits.SU_GRANULARITY_REQUIRED && in link_supports_psrsu()
51 !link->dpcd_caps.psr_info.psr2_su_y_granularity_cap) in link_supports_psrsu()
61 * amdgpu_dm_set_psr_caps() - set link psr capabilities
62 * @link: link
65 void amdgpu_dm_set_psr_caps(struct dc_link *link) in amdgpu_dm_set_psr_caps() argument
[all …]

12345678910>>...193