cregit-Linux how code gets into the kernel

Release 4.17 drivers/gpu/drm/amd/display/dc/virtual/virtual_link_encoder.c

/*
 * Copyright 2012-15 Advanced Micro Devices, Inc.
 *
 * Permission is hereby granted, free of charge, to any person obtaining a
 * copy of this software and associated documentation files (the "Software"),
 * to deal in the Software without restriction, including without limitation
 * the rights to use, copy, modify, merge, publish, distribute, sublicense,
 * and/or sell copies of the Software, and to permit persons to whom the
 * Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
 * THE COPYRIGHT HOLDER(S) OR AUTHOR(S) BE LIABLE FOR ANY CLAIM, DAMAGES OR
 * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
 * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
 * OTHER DEALINGS IN THE SOFTWARE.
 *
 * Authors: AMD
 *
 */

#include "dm_services.h"
#include "dm_services_types.h"

#include "virtual_link_encoder.h"


static bool virtual_link_encoder_validate_output_with_stream( struct link_encoder *enc, const struct dc_stream_state *stream) { return true; }

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland1890.00%266.67%
Andrey Grodzovsky210.00%133.33%
Total20100.00%3100.00%


static void virtual_link_encoder_hw_init(struct link_encoder *enc) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland10100.00%1100.00%
Total10100.00%1100.00%


static void virtual_link_encoder_setup( struct link_encoder *enc, enum signal_type signal) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland14100.00%1100.00%
Total14100.00%1100.00%


static void virtual_link_encoder_enable_tmds_output( struct link_encoder *enc, enum clock_source_id clock_source, enum dc_color_depth color_depth, enum signal_type signal, uint32_t pixel_clock) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland25100.00%2100.00%
Total25100.00%2100.00%


static void virtual_link_encoder_enable_dp_output( struct link_encoder *enc, const struct dc_link_settings *link_settings, enum clock_source_id clock_source) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland20100.00%1100.00%
Total20100.00%1100.00%


static void virtual_link_encoder_enable_dp_mst_output( struct link_encoder *enc, const struct dc_link_settings *link_settings, enum clock_source_id clock_source) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland20100.00%1100.00%
Total20100.00%1100.00%


static void virtual_link_encoder_disable_output( struct link_encoder *link_enc, enum signal_type signal) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland14100.00%1100.00%
Total14100.00%1100.00%


static void virtual_link_encoder_dp_set_lane_settings( struct link_encoder *enc, const struct link_training_settings *link_settings) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland16100.00%1100.00%
Total16100.00%1100.00%


static void virtual_link_encoder_dp_set_phy_pattern( struct link_encoder *enc, const struct encoder_set_dp_phy_pattern_param *param) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland16100.00%1100.00%
Total16100.00%1100.00%


static void virtual_link_encoder_update_mst_stream_allocation_table( struct link_encoder *enc, const struct link_mst_stream_allocation_table *table) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland16100.00%1100.00%
Total16100.00%1100.00%


static void virtual_link_encoder_connect_dig_be_to_fe( struct link_encoder *enc, enum engine_id engine, bool connect) {}

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland17100.00%1100.00%
Total17100.00%1100.00%


static void virtual_link_encoder_destroy(struct link_encoder **enc) { kfree(*enc); *enc = NULL; }

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland23100.00%2100.00%
Total23100.00%2100.00%

static const struct link_encoder_funcs virtual_lnk_enc_funcs = { .validate_output_with_stream = virtual_link_encoder_validate_output_with_stream, .hw_init = virtual_link_encoder_hw_init, .setup = virtual_link_encoder_setup, .enable_tmds_output = virtual_link_encoder_enable_tmds_output, .enable_dp_output = virtual_link_encoder_enable_dp_output, .enable_dp_mst_output = virtual_link_encoder_enable_dp_mst_output, .disable_output = virtual_link_encoder_disable_output, .dp_set_lane_settings = virtual_link_encoder_dp_set_lane_settings, .dp_set_phy_pattern = virtual_link_encoder_dp_set_phy_pattern, .update_mst_stream_allocation_table = virtual_link_encoder_update_mst_stream_allocation_table, .connect_dig_be_to_fe = virtual_link_encoder_connect_dig_be_to_fe, .destroy = virtual_link_encoder_destroy };
bool virtual_link_encoder_construct( struct link_encoder *enc, const struct encoder_init_data *init_data) { enc->funcs = &virtual_lnk_enc_funcs; enc->ctx = init_data->ctx; enc->id = init_data->encoder; enc->hpd_source = init_data->hpd_source; enc->connector = init_data->connector; enc->transmitter = init_data->transmitter; enc->output_signals = SIGNAL_TYPE_VIRTUAL; enc->preferred_engine = ENGINE_ID_VIRTUAL; return true; }

Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland78100.00%1100.00%
Total78100.00%1100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Harry Wentland36599.46%480.00%
Andrey Grodzovsky20.54%120.00%
Andrew Jiang0.00%00.00%
Total367100.00%5100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.