| /kernel/linux/linux-6.6/include/trace/events/ |
| D | fsi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 TP_PROTO(const struct fsi_master *master, int link, int id, 14 TP_ARGS(master, link, id, addr, size), 17 __field(int, link) 23 __entry->master_idx = master->idx; 24 __entry->link = link; 25 __entry->id = id; 26 __entry->addr = addr; 27 __entry->size = size; 29 TP_printk("fsi%d:%02d:%02d %08x[%zu]", [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/link/protocols/ |
| 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 …]
|
| D | link_dp_training_dpia.c | 44 link->ctx->logger 69 DPIA_TS_UFP_DONE = 0xff /* Done training DPTX-to-DPIA hop. */ 92 /* Configure link as prescribed in link_setting; set LTTPR mode; and 93 * Initialize link training settings. 94 * Abort link training if sink unplug detected. 96 * @param link DPIA link being trained. 97 * @param[in] link_setting Lane count, link rate and downspread control. 98 * @param[out] lt_settings Link settings and drive settings (voltage swing and pre-emphasis). 101 struct dc_link *link, in dpia_configure_link() argument 109 DC_LOG_HW_LINK_TRAINING("%s\n DPIA(%d) configuring\n - LTTPR mode(%d)\n", in dpia_configure_link() [all …]
|
| D | link_dp_training.c | 27 * This file implements all generic dp link training helper functions and top 28 * level generic training sequence. All variations of dp link training sequence 31 * of link encoding and back end hardware. 40 #include "link/accessories/link_dp_trace.h" 44 #include "link/link_detection.h" 45 #include "link/link_validation.h" 52 link->ctx->logger 59 struct dc_link *link, in dp_log_training_result() argument 67 switch (lt_settings->link_settings.link_rate) { in dp_log_training_result() 134 lt_result = "Link loss"; in dp_log_training_result() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/modules/hdcp/ |
| D | hdcp_log.h | 38 "[Link %d] WARNING %s IN STATE %s STAY COUNT %d", \ 39 hdcp->config.index, \ 41 mod_hdcp_state_id_to_str(hdcp->state.id), \ 42 hdcp->state.stay_count) 45 "[Link %d] HDCP 1.4 enabled on display %d", \ 46 hdcp->config.index, displayIndex) 49 "[Link %d] HDCP 2.2 enabled on display %d", \ 50 hdcp->config.index, displayIndex) 53 "[Link %d] HDCP 1.4 disabled on display %d", \ 54 hdcp->config.index, displayIndex) [all …]
|
| /kernel/linux/linux-5.10/tools/testing/selftests/bpf/prog_tests/ |
| D | link_pinning.c | 1 // SPDX-License-Identifier: GPL-2.0 16 struct bpf_link *link; in test_link_pinning_subtest() local 19 link = bpf_program__attach(prog); in test_link_pinning_subtest() 20 if (CHECK(IS_ERR(link), "link_attach", "err: %ld\n", PTR_ERR(link))) in test_link_pinning_subtest() 23 bss->in = 1; in test_link_pinning_subtest() 25 CHECK(bss->out != 1, "res_check1", "exp %d, got %d\n", 1, bss->out); in test_link_pinning_subtest() 27 /* pin link */ in test_link_pinning_subtest() 28 err = bpf_link__pin(link, link_pin_path); in test_link_pinning_subtest() 29 if (CHECK(err, "link_pin", "err: %d\n", err)) in test_link_pinning_subtest() 32 CHECK(strcmp(link_pin_path, bpf_link__pin_path(link)), "pin_path1", in test_link_pinning_subtest() [all …]
|
| D | xdp_link.c | 1 // SPDX-License-Identifier: GPL-2.0 12 DECLARE_LIBBPF_OPTS(bpf_xdp_set_link_opts, opts, .old_fd = -1); in test_xdp_link() 16 struct bpf_link *link; in test_xdp_link() local 23 prog_fd1 = bpf_program__fd(skel1->progs.xdp_handler); in test_xdp_link() 28 prog_fd2 = bpf_program__fd(skel2->progs.xdp_handler); in test_xdp_link() 32 if (CHECK(err, "fd_info1", "failed %d\n", -errno)) in test_xdp_link() 38 if (CHECK(err, "fd_info2", "failed %d\n", -errno)) in test_xdp_link() 44 if (CHECK(err, "fd_attach", "initial prog attach failed: %d\n", err)) in test_xdp_link() 50 "loaded prog id %u != id1 %u, err %d", id0, id1, err); in test_xdp_link() 52 /* BPF link is not allowed to replace prog attachment */ in test_xdp_link() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/msm/dp/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/msm/dp/ |
| 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__ 49 struct dp_link_info *link) in dp_aux_link_power_up() argument 54 if (link->revision < 0x11) in dp_aux_link_power_up() 74 struct dp_link_info *link) in dp_aux_link_power_down() argument 79 if (link->revision < 0x11) in dp_aux_link_power_down() 96 static int dp_link_get_period(struct dp_link_private *link, int const addr) in dp_link_get_period() argument 103 if (drm_dp_dpcd_readb(link->aux, addr, &data) < 0) { in dp_link_get_period() 105 ret = -EINVAL; in dp_link_get_period() [all …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/bpf/prog_tests/ |
| D | link_pinning.c | 1 // SPDX-License-Identifier: GPL-2.0 16 struct bpf_link *link; in test_link_pinning_subtest() local 19 link = bpf_program__attach(prog); in test_link_pinning_subtest() 20 if (!ASSERT_OK_PTR(link, "link_attach")) in test_link_pinning_subtest() 23 bss->in = 1; in test_link_pinning_subtest() 25 CHECK(bss->out != 1, "res_check1", "exp %d, got %d\n", 1, bss->out); in test_link_pinning_subtest() 27 /* pin link */ in test_link_pinning_subtest() 28 err = bpf_link__pin(link, link_pin_path); in test_link_pinning_subtest() 29 if (CHECK(err, "link_pin", "err: %d\n", err)) in test_link_pinning_subtest() 32 CHECK(strcmp(link_pin_path, bpf_link__pin_path(link)), "pin_path1", in test_link_pinning_subtest() [all …]
|
| D | bpf_tcp_ca.c | 1 // SPDX-License-Identifier: GPL-2.0 30 if (CHECK(err == -1, "setsockopt(fd, TCP_CONGESTION)", "errno:%d\n", in settcpca() 32 return -1; in settcpca() 44 while (fd == -1) { in server() 47 err = -errno; in server() 52 err = -errno; in server() 58 MIN(total_bytes - bytes, sizeof(batch)), 0); in server() 59 if (nr_sent == -1 && errno == EINTR) in server() 61 if (nr_sent == -1) { in server() 62 err = -errno; in server() [all …]
|
| /kernel/linux/linux-5.10/include/trace/events/ |
| D | fsi.h | 1 /* SPDX-License-Identifier: GPL-2.0 */ 12 TP_PROTO(const struct fsi_master *master, int link, int id, 14 TP_ARGS(master, link, id, addr, size), 17 __field(int, link) 23 __entry->master_idx = master->idx; 24 __entry->link = link; 25 __entry->id = id; 26 __entry->addr = addr; 27 __entry->size = size; 29 TP_printk("fsi%d:%02d:%02d %08x[%zu]", [all …]
|
| /kernel/linux/linux-6.6/drivers/mtd/maps/ |
| D | pcmciamtd.c | 2 * pcmciamtd.c - MTD driver for PCMCIA flash memory cards 45 /* 2 = do 16-bit transfers, 1 = do 8-bit transfers */ 71 MODULE_PARM_DESC(force_size, "Force size of card in MiB (1-64)"); 85 struct pcmciamtd_dev *dev = (struct pcmciamtd_dev *)map->map_priv_1; in remap_window() 86 struct resource *win = (struct resource *) map->map_priv_2; in remap_window() 90 if (!pcmcia_dev_present(dev->p_dev)) { in remap_window() 95 offset = to & ~(dev->win_size-1); in remap_window() 96 if (offset != dev->offset) { in remap_window() 98 dev->offset, offset); in remap_window() 99 ret = pcmcia_map_mem_page(dev->p_dev, win, offset); in remap_window() [all …]
|
| /kernel/linux/linux-5.10/drivers/mtd/maps/ |
| D | pcmciamtd.c | 2 * pcmciamtd.c - MTD driver for PCMCIA flash memory cards 45 /* 2 = do 16-bit transfers, 1 = do 8-bit transfers */ 71 MODULE_PARM_DESC(force_size, "Force size of card in MiB (1-64)"); 85 struct pcmciamtd_dev *dev = (struct pcmciamtd_dev *)map->map_priv_1; in remap_window() 86 struct resource *win = (struct resource *) map->map_priv_2; in remap_window() 90 if (!pcmcia_dev_present(dev->p_dev)) { in remap_window() 95 offset = to & ~(dev->win_size-1); in remap_window() 96 if (offset != dev->offset) { in remap_window() 98 dev->offset, offset); in remap_window() 99 ret = pcmcia_map_mem_page(dev->p_dev, win, offset); in remap_window() [all …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/tegra/ |
| 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 …]
|
| /kernel/linux/linux-6.6/drivers/gpu/drm/amd/display/dc/link/ |
| 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 …]
|
| 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. 80 for (i = 0; i < dc->link_count; i++) { in link_blank_all_dp_displays() 81 if ((dc->links[i]->connector_signal != SIGNAL_TYPE_DISPLAY_PORT) || in link_blank_all_dp_displays() 82 (dc->links[i]->priv == NULL) || (dc->links[i]->local_sink == NULL)) in link_blank_all_dp_displays() 86 dp_retrieve_lttpr_cap(dc->links[i]); in link_blank_all_dp_displays() 88 status = core_link_read_dpcd(dc->links[i], DP_SET_POWER, in link_blank_all_dp_displays() 92 link_blank_dp_stream(dc->links[i], true); in link_blank_all_dp_displays() [all …]
|
| 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 …]
|
| /kernel/linux/linux-6.6/tools/testing/selftests/drivers/net/bonding/ |
| D | bond_options.sh | 2 # SPDX-License-Identifier: GPL-2.0 20 ip -n ${s_ns} link set eth0 type bond_slave prio 10 21 [[ $? -ne 0 ]] && skip=0 24 ip -n ${s_ns} -d link show eth0 | grep -q "prio 10" 25 [[ $? -ne 0 ]] && skip=0 35 ip -n ${s_ns} link add bond1 type bond ns_ip6_target ${g_ip6} 36 [[ $? -ne 0 ]] && skip=0 39 ip -n ${s_ns} -d link show bond1 | grep -q "ns_ip6_target ${g_ip6}" 40 [[ $? -ne 0 ]] && skip=0 42 ip -n ${s_ns} link del bond1 [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/tegra/ |
| 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 …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/modules/hdcp/ |
| D | hdcp_log.h | 40 "[Link %d] WARNING %s IN STATE %s STAY COUNT %d", \ 41 hdcp->config.index, \ 43 mod_hdcp_state_id_to_str(hdcp->state.id), \ 44 hdcp->state.stay_count) 47 "[Link %d] HDCP 1.4 enabled on display %d", \ 48 hdcp->config.index, displayIndex) 51 "[Link %d] HDCP 2.2 enabled on display %d", \ 52 hdcp->config.index, displayIndex) 55 "[Link %d] HDCP 1.4 disabled on display %d", \ 56 hdcp->config.index, displayIndex) [all …]
|
| /kernel/linux/linux-5.10/drivers/nfc/ |
| D | nfcsim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #define NFCSIM_ERR(d, fmt, args...) nfc_err(&d->nfc_digital_dev->nfc_dev->dev, \ argument 19 #define NFCSIM_DBG(d, fmt, args...) dev_dbg(&d->nfc_digital_dev->nfc_dev->dev, \ argument 67 struct nfcsim_link *link; in nfcsim_link_new() local 69 link = kzalloc(sizeof(struct nfcsim_link), GFP_KERNEL); in nfcsim_link_new() 70 if (!link) in nfcsim_link_new() 73 mutex_init(&link->lock); in nfcsim_link_new() 74 init_waitqueue_head(&link->recv_wait); in nfcsim_link_new() 76 return link; in nfcsim_link_new() 79 static void nfcsim_link_free(struct nfcsim_link *link) in nfcsim_link_free() argument [all …]
|
| /kernel/linux/linux-5.10/arch/mips/pci/ |
| D | msi-xlp.c | 2 * Copyright (c) 2003-2012 Broadcom Corporation 50 #include <asm/netlogic/mips-extns.h> 52 #include <asm/netlogic/xlp-hal/iomap.h> 53 #include <asm/netlogic/xlp-hal/xlp.h> 54 #include <asm/netlogic/xlp-hal/pic.h> 55 #include <asm/netlogic/xlp-hal/pcibus.h> 56 #include <asm/netlogic/xlp-hal/bridge.h> 63 static inline int nlm_link_msiirq(int link, int msivec) in nlm_link_msiirq() argument 65 return NLM_MSI_VEC_BASE + link * XLP_MSIVEC_PER_LINK + msivec; in nlm_link_msiirq() 68 /* get the link MSI vector from irq number */ [all …]
|
| /kernel/linux/linux-6.6/drivers/nfc/ |
| D | nfcsim.c | 1 // SPDX-License-Identifier: GPL-2.0-only 16 #define NFCSIM_ERR(d, fmt, args...) nfc_err(&d->nfc_digital_dev->nfc_dev->dev, \ argument 19 #define NFCSIM_DBG(d, fmt, args...) dev_dbg(&d->nfc_digital_dev->nfc_dev->dev, \ argument 67 struct nfcsim_link *link; in nfcsim_link_new() local 69 link = kzalloc(sizeof(struct nfcsim_link), GFP_KERNEL); in nfcsim_link_new() 70 if (!link) in nfcsim_link_new() 73 mutex_init(&link->lock); in nfcsim_link_new() 74 init_waitqueue_head(&link->recv_wait); in nfcsim_link_new() 76 return link; in nfcsim_link_new() 79 static void nfcsim_link_free(struct nfcsim_link *link) in nfcsim_link_free() argument [all …]
|
| /kernel/linux/linux-5.10/drivers/gpu/drm/amd/display/dc/core/ |
| D | dc_link.c | 2 * Copyright 2012-15 Advanced Micro Devices, Inc. 79 static void dc_link_destruct(struct dc_link *link) in dc_link_destruct() argument 83 if (link->hpd_gpio) { in dc_link_destruct() 84 dal_gpio_destroy_irq(&link->hpd_gpio); in dc_link_destruct() 85 link->hpd_gpio = NULL; in dc_link_destruct() 88 if (link->ddc) in dc_link_destruct() 89 dal_ddc_service_destroy(&link->ddc); in dc_link_destruct() 91 if (link->panel_cntl) in dc_link_destruct() 92 link->panel_cntl->funcs->destroy(&link->panel_cntl); in dc_link_destruct() 94 if (link->link_enc) in dc_link_destruct() [all …]
|