/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" 57 link->ctx->logger 72 /* This link training fallback array is ordered by 73 * link bandwidth from highest to lowest. [all …]
|
H A D | link_edp_panel_control.h | 28 #include "link.h" 30 enum dp_panel_mode dp_get_panel_mode(struct dc_link *link); 31 void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode); 32 bool set_default_brightness_aux(struct dc_link *link); 33 bool is_smartmux_suported(struct dc_link *link); 34 void edp_panel_backlight_power_on(struct dc_link *link, bool wait_for_hpd); 35 int edp_get_backlight_level(const struct dc_link *link); 36 bool edp_get_backlight_level_nits(struct dc_link *link, 39 bool edp_set_backlight_level(const struct dc_link *link, 41 bool edp_set_backlight_level_nits(struct dc_link *link, [all …]
|
H A D | link_dp_training_8b_10b.c | 27 * This file implements dp 8b/10b link training software policies and 36 link->ctx->logger 49 static int32_t get_cr_training_aux_rd_interval(struct dc_link *link, in get_cr_training_aux_rd_interval() argument 58 if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) in get_cr_training_aux_rd_interval() 60 link, in get_cr_training_aux_rd_interval() 64 else if (dp_is_lttpr_present(link)) in get_cr_training_aux_rd_interval() 78 struct dc_link *link, in get_eq_training_aux_rd_interval() argument 86 link, in get_eq_training_aux_rd_interval() 91 if (link->dpcd_caps.dpcd_rev.raw >= DPCD_REV_12) in get_eq_training_aux_rd_interval() 93 link, in get_eq_training_aux_rd_interval() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/link/ |
H A D | link_factory.c | 27 * 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 107 /* link dpms owns the programming sequence of stream's dpms state associated 108 * with the link and link's enable/disable sequences as result of the stream's 126 /* link ddc implements generic display communication protocols such as i2c, aux [all …]
|
H A D | link_dpms.c | 28 * with the link and link's enable/disable sequences as result of the stream's 31 * TODO - The reason link owns stream's dpms programming sequence is 33 * specific link protocols. This unfortunately causes link to own a portion of 35 * boundary between link and stream is not clearly defined. 120 void link_blank_dp_stream(struct dc_link *link, bool hw_init) in link_blank_dp_stream() argument 123 struct dc *dc = link->ctx->dc; in link_blank_dp_stream() 124 enum signal_type signal = link->connector_signal; in link_blank_dp_stream() 128 if (link->ep_type == DISPLAY_ENDPOINT_PHY && in link_blank_dp_stream() 129 link->link_enc->funcs->get_dig_frontend && in link_blank_dp_stream() 130 link->link_enc->funcs->is_dig_enabled(link->link_enc)) { in link_blank_dp_stream() [all …]
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | q_in_q_veto.sh | 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 \ 60 ip link add name br0.100 link br0 type vlan \ [all …]
|
H A D | vxlan.sh | 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 74 ip link set dev vxlan0 master br0 &> /dev/null [all …]
|
H A D | extack.sh | 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 48 ip link set dev $swp1 master br1 [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/link/accessories/ |
H A D | link_dp_trace.c | 26 #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 …]
|
/linux/drivers/acpi/ |
H A D | pci_link.c | 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). 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 D | sof_board_helpers.c | 11 * 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/Documentation/networking/dsa/ |
H A D | b53.rst | 67 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 D | configuration.rst | 101 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/net/wireless/ralink/rt2x00/ |
H A D | rt2x00link.c | 10 Abstract: rt2x00 generic link tuning routines. 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() 48 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_get_rssi_history() 58 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00link_antenna_update_rssi_history() 64 ewma_rssi_init(&rt2x00dev->link.ant.rssi_ant); in rt2x00link_antenna_reset() 69 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity_sample() 110 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity_eval() 150 struct link_ant *ant = &rt2x00dev->link.ant; in rt2x00lib_antenna_diversity() 171 } else if (rt2x00dev->link.count & 1) { in rt2x00lib_antenna_diversity() [all …]
|
/linux/drivers/gpu/drm/amd/display/amdgpu_dm/ |
H A D | amdgpu_dm_psr.c | 33 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() 62 * amdgpu_dm_set_psr_caps() - set link psr capabilities 63 * @link: link 66 void amdgpu_dm_set_psr_caps(struct dc_link *link) in amdgpu_dm_set_psr_caps() argument [all …]
|
H A D | amdgpu_dm_replay.c | 33 #include "dc/inc/link.h" 36 * amdgpu_dm_link_supports_replay() - check if the link supports replay 37 * @link: link 41 bool amdgpu_dm_link_supports_replay(struct dc_link *link, struct amdgpu_dm_connector *aconnector) in amdgpu_dm_link_supports_replay() argument 44 struct dpcd_caps *dpcd_caps = &link->dpcd_caps; in amdgpu_dm_link_supports_replay() 45 struct adaptive_sync_caps *as_caps = &link->dpcd_caps.adaptive_sync_caps; in amdgpu_dm_link_supports_replay() 74 * @link: link 78 bool amdgpu_dm_set_replay_caps(struct dc_link *link, struct amdgpu_dm_connector *aconnector) in amdgpu_dm_set_replay_caps() argument 82 struct dc *dc = link->ctx->dc; in amdgpu_dm_set_replay_caps() 85 if (link->replay_settings.config.replay_supported) in amdgpu_dm_set_replay_caps() [all …]
|
/linux/drivers/gpu/drm/amd/display/dc/link/hwss/ |
H A D | link_hwss_hpo_fixed_vs_pe_retimer_dp.c | 29 static void dp_hpo_fixed_vs_pe_retimer_set_tx_ffe(struct dc_link *link, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe() argument 54 const uint8_t dp_type = dp_dio_fixed_vs_pe_retimer_lane_cfg_to_hw_cfg(link); in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe() 62 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe() 64 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe() 66 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe() 68 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe() 70 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_set_tx_ffe() 74 static void dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern(struct dc_link *link, in dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern() argument 92 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern() 94 link->dc->link_srv->configure_fixed_vs_pe_retimer(link->ddc, in dp_hpo_fixed_vs_pe_retimer_program_override_test_pattern() [all …]
|
/linux/net/mac80211/ |
H A D | chan.c | 18 struct ieee80211_link_data *link; in ieee80211_chanctx_num_assigned() local 23 list_for_each_entry(link, &ctx->assigned_links, assigned_chanctx_list) in ieee80211_chanctx_num_assigned() 32 struct ieee80211_link_data *link; in ieee80211_chanctx_num_reserved() local 37 list_for_each_entry(link, &ctx->reserved_links, reserved_chanctx_list) in ieee80211_chanctx_num_reserved() 76 ieee80211_link_get_chanctx(struct ieee80211_link_data *link) in ieee80211_link_get_chanctx() argument 78 struct ieee80211_local *local __maybe_unused = link->sdata->local; in ieee80211_link_get_chanctx() 81 conf = rcu_dereference_protected(link->conf->chanctx_conf, in ieee80211_link_get_chanctx() 146 struct ieee80211_link_data *link; in ieee80211_chanctx_reserved_chanreq() local 153 list_for_each_entry(link, &ctx->reserved_links, reserved_chanctx_list) { in ieee80211_chanctx_reserved_chanreq() 154 req = ieee80211_chanreq_compatible(&link->reserved, req, tmp); in ieee80211_chanctx_reserved_chanreq() [all …]
|
H A D | link.c | 3 * MLO link handling 18 struct ieee80211_link_data *link; in ieee80211_update_apvlan_links() local 44 link = sdata_dereference(vlan->link[link_id], vlan); in ieee80211_update_apvlan_links() 45 ieee80211_link_vlan_copy_chanctx(link); in ieee80211_update_apvlan_links() 80 void ieee80211_link_setup(struct ieee80211_link_data *link) in ieee80211_link_setup() argument 82 if (link->sdata->vif.type == NL80211_IFTYPE_STATION) in ieee80211_link_setup() 83 ieee80211_mgd_setup_link(link); in ieee80211_link_setup() 88 struct ieee80211_link_data *link, in ieee80211_link_init() argument 107 link->sdata = sdata; in ieee80211_link_init() 108 link->link_id = link_id; in ieee80211_link_init() [all …]
|
/linux/drivers/pci/pcie/ |
H A D | aspm.c | 3 * Enable PCIe link L0s/L1 state and Clock Power Management 228 struct pci_dev *pdev; /* Upstream component of the Link */ 230 struct pcie_link_state *root; /* pointer to the root port link */ 231 struct pcie_link_state *parent; /* pointer to the parent Link state */ 289 static int policy_to_aspm_state(struct pcie_link_state *link) in policy_to_aspm_state() argument 302 return link->aspm_default; in policy_to_aspm_state() 307 static int policy_to_clkpm_state(struct pcie_link_state *link) in policy_to_clkpm_state() argument 318 return link->clkpm_default; in policy_to_clkpm_state() 347 static void pcie_set_clkpm_nocheck(struct pcie_link_state *link, int enable) in pcie_set_clkpm_nocheck() argument 350 struct pci_bus *linkbus = link->pdev->subordinate; in pcie_set_clkpm_nocheck() [all …]
|
/linux/drivers/ata/ |
H A D | libata-sata.c | 31 * @link: ATA link to test SCR accessibility for 33 * Test whether SCRs are accessible for @link. 41 int sata_scr_valid(struct ata_link *link) in sata_scr_valid() argument 43 struct ata_port *ap = link->ap; in sata_scr_valid() 51 * @link: ATA link to read SCR for 55 * Read SCR register @reg of @link into *@val. This function is 56 * guaranteed to succeed if @link is ap->link, the cable type of 60 * None if @link is ap->link. Kernel thread context otherwise. 65 int sata_scr_read(struct ata_link *link, int reg, u32 *val) in sata_scr_read() argument 67 if (ata_is_host_link(link)) { in sata_scr_read() [all …]
|
H A D | libata-pmp.c | 26 * @link: link to read PMP register for 38 static unsigned int sata_pmp_read(struct ata_link *link, int reg, u32 *r_val) in sata_pmp_read() argument 40 struct ata_port *ap = link->ap; in sata_pmp_read() 41 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_read() 50 tf.device = link->pmp; in sata_pmp_read() 63 * @link: link to write PMP register for 75 static unsigned int sata_pmp_write(struct ata_link *link, int reg, u32 val) in sata_pmp_write() argument 77 struct ata_port *ap = link->ap; in sata_pmp_write() 78 struct ata_device *pmp_dev = ap->link.device; in sata_pmp_write() 86 tf.device = link->pmp; in sata_pmp_write() [all …]
|
/linux/tools/bpf/bpftool/Documentation/ |
H A D | bpftool-link.rst | 4 bpftool-link 17 **bpftool** [*OPTIONS*] **link** *COMMAND* 23 LINK COMMANDS 26 | **bpftool** **link { show | list }** [*LINK*] 27 | **bpftool** **link pin** *LINK* *FILE* 28 | **bpftool** **link detach** *LINK* 29 | **bpftool** **link help** 31 | *LINK* := { **id** *LINK_ID* | **pinned** *FILE* } 36 bpftool link { show | list } [*LINK*] 37 Show information about active links. If *LINK* is specified show [all …]
|
/linux/net/netfilter/ |
H A D | nf_bpf_link.c | 24 struct bpf_link link; member 34 get_proto_defrag_hook(struct bpf_nf_link *link, in get_proto_defrag_hook() argument 64 err = hook->enable(link->net); in get_proto_defrag_hook() 75 static int bpf_nf_enable_defrag(struct bpf_nf_link *link) in bpf_nf_enable_defrag() argument 79 switch (link->hook_ops.pf) { in bpf_nf_enable_defrag() 82 hook = get_proto_defrag_hook(link, &nf_defrag_v4_hook, "nf_defrag_ipv4"); in bpf_nf_enable_defrag() 86 link->defrag_hook = hook; in bpf_nf_enable_defrag() 91 hook = get_proto_defrag_hook(link, &nf_defrag_v6_hook, "nf_defrag_ipv6"); in bpf_nf_enable_defrag() 95 link->defrag_hook = hook; in bpf_nf_enable_defrag() 103 static void bpf_nf_disable_defrag(struct bpf_nf_link *link) in bpf_nf_disable_defrag() argument [all …]
|
/linux/tools/testing/selftests/net/ |
H A D | netns-name.sh | 34 ip -netns $NS link set dev $nsim netns $test_ns || 36 ip -netns $test_ns link show dev $nsim >> /dev/null || 43 ip -netns $test_ns link add name $DEV type dummy 44 ip -netns $NS link add name $DEV type dummy || fail 45 ip -netns $NS link set dev $DEV netns $test_ns 2> /dev/null && 47 ip -netns $test_ns link show dev $DEV >> /dev/null || fail "Device not found after move" 48 ip -netns $NS link del $DEV || fail 49 ip -netns $test_ns link del $DEV || fail 54 ip -netns $test_ns link add name $DEV type dummy 55 ip -netns $NS link add name $DEV type dummy || fail [all …]
|