| /OK3568_Linux_fs/u-boot/drivers/net/ |
| H A D | enc28j60.c | 66 static void enc_bset(enc_dev_t *enc, const u8 reg, const u8 data) in enc_bset() argument 72 spi_xfer(enc->slave, 2 * 8, dout, NULL, in enc_bset() 76 static void enc_bclr(enc_dev_t *enc, const u8 reg, const u8 data) in enc_bclr() argument 82 spi_xfer(enc->slave, 2 * 8, dout, NULL, in enc_bclr() 94 static void enc_set_bank(enc_dev_t *enc, const u16 reg) in enc_set_bank() argument 98 if (newbank == 0 || newbank == enc->bank) in enc_set_bank() 102 enc_bclr(enc, CTL_REG_ECON1, in enc_set_bank() 106 enc_bset(enc, CTL_REG_ECON1, ENC_ECON1_BSEL0); in enc_set_bank() 107 enc_bclr(enc, CTL_REG_ECON1, ENC_ECON1_BSEL1); in enc_set_bank() 110 enc_bclr(enc, CTL_REG_ECON1, ENC_ECON1_BSEL0); in enc_set_bank() [all …]
|
| /OK3568_Linux_fs/external/mpp/mpp/codec/ |
| H A D | mpp_enc_v2.cpp | 35 MPP_RET mpp_enc_init_v2(MppEnc *enc, MppEncInitCfg *cfg) in mpp_enc_init_v2() argument 47 if (NULL == enc) { in mpp_enc_init_v2() 52 *enc = NULL; in mpp_enc_init_v2() 147 *enc = p; in mpp_enc_init_v2() 156 MppEncImpl *enc = (MppEncImpl *)ctx; in mpp_enc_deinit_v2() local 158 if (NULL == enc) { in mpp_enc_deinit_v2() 163 if (enc->hal_info) { in mpp_enc_deinit_v2() 164 hal_info_deinit(enc->hal_info); in mpp_enc_deinit_v2() 165 enc->hal_info = NULL; in mpp_enc_deinit_v2() 168 if (enc->impl) { in mpp_enc_deinit_v2() [all …]
|
| H A D | mpp_enc_impl.cpp | 95 static void reset_enc_task(MppEncImpl *enc) in reset_enc_task() argument 97 enc->task_in = NULL; in reset_enc_task() 98 enc->task_out = NULL; in reset_enc_task() 99 enc->packet = NULL; in reset_enc_task() 100 enc->frame = NULL; in reset_enc_task() 102 enc->frm_buf = NULL; in reset_enc_task() 103 enc->pkt_buf = NULL; in reset_enc_task() 106 enc->hdr_status.val = enc->hdr_status.ready; in reset_enc_task() 109 static void update_enc_hal_info(MppEncImpl *enc) in update_enc_hal_info() argument 115 if (NULL == enc->hal_info || NULL == enc->dev) in update_enc_hal_info() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/virtual/ |
| H A D | virtual_stream_encoder.c | 32 struct stream_encoder *enc, in virtual_stream_encoder_dp_set_stream_attribute() argument 39 struct stream_encoder *enc, in virtual_stream_encoder_hdmi_set_stream_attribute() argument 45 struct stream_encoder *enc, in virtual_stream_encoder_dvi_set_stream_attribute() argument 50 struct stream_encoder *enc, in virtual_stream_encoder_set_throttled_vcp_size() argument 55 struct stream_encoder *enc, in virtual_stream_encoder_update_hdmi_info_packets() argument 59 struct stream_encoder *enc) {} in virtual_stream_encoder_stop_hdmi_info_packets() argument 62 struct stream_encoder *enc, in virtual_stream_encoder_set_avmute() argument 65 struct stream_encoder *enc, in virtual_stream_encoder_update_dp_info_packets() argument 69 struct stream_encoder *enc) {} in virtual_stream_encoder_stop_dp_info_packets() argument 72 struct stream_encoder *enc) {} in virtual_stream_encoder_dp_blank() argument [all …]
|
| H A D | virtual_link_encoder.c | 34 struct link_encoder *enc, in virtual_link_encoder_validate_output_with_stream() argument 37 static void virtual_link_encoder_hw_init(struct link_encoder *enc) {} in virtual_link_encoder_hw_init() argument 40 struct link_encoder *enc, in virtual_link_encoder_setup() argument 44 struct link_encoder *enc, in virtual_link_encoder_enable_tmds_output() argument 51 struct link_encoder *enc, in virtual_link_encoder_enable_dp_output() argument 56 struct link_encoder *enc, in virtual_link_encoder_enable_dp_mst_output() argument 65 struct link_encoder *enc, in virtual_link_encoder_dp_set_lane_settings() argument 69 struct link_encoder *enc, in virtual_link_encoder_dp_set_phy_pattern() argument 73 struct link_encoder *enc, in virtual_link_encoder_update_mst_stream_allocation_table() argument 77 struct link_encoder *enc, in virtual_link_encoder_connect_dig_be_to_fe() argument [all …]
|
| /OK3568_Linux_fs/kernel/drivers/video/rockchip/mpp/ |
| H A D | mpp_rkvenc.c | 519 struct rkvenc_dev *enc = to_rkvenc_dev(mpp); in rkvenc_isr() local 545 if (enc->aux_iova != -1) { in rkvenc_isr() 546 iommu_unmap(mpp->iommu_info->domain, enc->aux_iova, IOMMU_PAGE_SIZE); in rkvenc_isr() 547 enc->aux_iova = -1; in rkvenc_isr() 729 struct rkvenc_dev *enc = to_rkvenc_dev(mpp); in rkvenc_procfs_remove() local 731 if (enc->procfs) { in rkvenc_procfs_remove() 732 proc_remove(enc->procfs); in rkvenc_procfs_remove() 733 enc->procfs = NULL; in rkvenc_procfs_remove() 806 struct rkvenc_dev *enc = to_rkvenc_dev(mpp); in rkvenc_procfs_init() local 808 enc->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in rkvenc_procfs_init() [all …]
|
| H A D | mpp_rkvenc2.c | 806 struct rkvenc_dev *enc = to_rkvenc_dev(mpp); in rkvenc2_set_rcbbuf() local 812 if (priv && enc->sram_iova) { in rkvenc2_set_rcbbuf() 823 if (rcb_offset > enc->sram_size || in rkvenc2_set_rcbbuf() 824 (rcb_offset + rcb_size) > enc->sram_used) in rkvenc2_set_rcbbuf() 832 *reg = enc->sram_iova + rcb_offset; in rkvenc2_set_rcbbuf() 838 if (enc->sram_enabled != sram_enabled) { in rkvenc2_set_rcbbuf() 840 enc->sram_enabled = sram_enabled; in rkvenc2_set_rcbbuf() 1036 static void rkvenc2_patch_dchs(struct rkvenc_dev *enc, struct rkvenc_task *task) in rkvenc2_patch_dchs() argument 1042 int core_id = enc->mpp.core_id; in rkvenc2_patch_dchs() 1046 if (!enc->ccu) in rkvenc2_patch_dchs() [all …]
|
| H A D | mpp_vepu2.c | 317 struct vepu_dev *enc = to_vepu_dev(mpp); in vepu_prepare() local 318 struct vepu_ccu *ccu = enc->ccu; in vepu_prepare() 426 struct vepu_dev *enc = to_vepu_dev(mpp); in vepu_isr() local 427 struct vepu_ccu *ccu = enc->ccu; in vepu_isr() 601 struct vepu_dev *enc = to_vepu_dev(mpp); in vepu_procfs_remove() local 603 if (enc->procfs) { in vepu_procfs_remove() 604 proc_remove(enc->procfs); in vepu_procfs_remove() 605 enc->procfs = NULL; in vepu_procfs_remove() 679 struct vepu_dev *enc = to_vepu_dev(mpp); in vepu_procfs_init() local 685 if (enc->ccu) in vepu_procfs_init() [all …]
|
| H A D | mpp_vepu1.c | 483 struct vepu_dev *enc = to_vepu_dev(mpp); in vepu_procfs_remove() local 485 if (enc->procfs) { in vepu_procfs_remove() 486 proc_remove(enc->procfs); in vepu_procfs_remove() 487 enc->procfs = NULL; in vepu_procfs_remove() 560 struct vepu_dev *enc = to_vepu_dev(mpp); in vepu_procfs_init() local 562 enc->procfs = proc_mkdir(mpp->dev->of_node->name, mpp->srv->procfs); in vepu_procfs_init() 563 if (IS_ERR_OR_NULL(enc->procfs)) { in vepu_procfs_init() 565 enc->procfs = NULL; in vepu_procfs_init() 570 mpp_procfs_create_common(enc->procfs, mpp); in vepu_procfs_init() 573 enc->procfs, &enc->aclk_info.debug_rate_hz); in vepu_procfs_init() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/inc/hw/ |
| H A D | stream_encoder.h | 125 struct stream_encoder *enc, 132 struct stream_encoder *enc, 138 struct stream_encoder *enc, 143 struct stream_encoder *enc, 147 struct stream_encoder *enc, 151 struct stream_encoder *enc, 155 struct stream_encoder *enc); 158 struct stream_encoder *enc, 162 struct stream_encoder *enc, 167 struct stream_encoder *enc); [all …]
|
| H A D | link_encoder.h | 131 struct link_encoder *enc, struct link_enc_state *s); 133 struct link_encoder *enc, const struct dc_stream_state *stream); 134 void (*hw_init)(struct link_encoder *enc); 135 void (*setup)(struct link_encoder *enc, 137 void (*enable_tmds_output)(struct link_encoder *enc, 142 void (*enable_dp_output)(struct link_encoder *enc, 145 void (*enable_dp_mst_output)(struct link_encoder *enc, 148 void (*enable_lvds_output)(struct link_encoder *enc, 153 void (*dp_set_lane_settings)(struct link_encoder *enc, 155 void (*dp_set_phy_pattern)(struct link_encoder *enc, [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn30/ |
| H A D | dcn30_dio_stream_encoder.c | 214 struct stream_encoder *enc, in enc3_stream_encoder_update_hdmi_info_packets() argument 217 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc3_stream_encoder_update_hdmi_info_packets() 233 struct stream_encoder *enc) in enc3_stream_encoder_stop_hdmi_info_packets() argument 235 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc3_stream_encoder_stop_hdmi_info_packets() 320 static void enc3_dp_set_dsc_config(struct stream_encoder *enc, in enc3_dp_set_dsc_config() argument 325 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc3_dp_set_dsc_config() 336 static void enc3_dp_set_dsc_pps_info_packet(struct stream_encoder *enc, in enc3_dp_set_dsc_pps_info_packet() argument 340 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc3_dp_set_dsc_pps_info_packet() 402 static void enc3_read_state(struct stream_encoder *enc, struct enc_state *s) in enc3_read_state() argument 404 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc3_read_state() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/rtmpdump/git/ |
| H A D | rtmpsrv.c | 189 char *enc = packet.m_body; in SendConnectResult() local 190 enc = AMF_EncodeString(enc, pend, &av__result); in SendConnectResult() 191 enc = AMF_EncodeNumber(enc, pend, txn); in SendConnectResult() 192 *enc++ = AMF_OBJECT; in SendConnectResult() 195 enc = AMF_EncodeNamedString(enc, pend, &av_fmsVer, &av); in SendConnectResult() 196 enc = AMF_EncodeNamedNumber(enc, pend, &av_capabilities, 31.0); in SendConnectResult() 197 enc = AMF_EncodeNamedNumber(enc, pend, &av_mode, 1.0); in SendConnectResult() 198 *enc++ = 0; in SendConnectResult() 199 *enc++ = 0; in SendConnectResult() 200 *enc++ = AMF_OBJECT_END; in SendConnectResult() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn10/ |
| H A D | dcn10_stream_encoder.c | 247 struct stream_encoder *enc, in enc1_stream_encoder_dp_set_stream_attribute() argument 266 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc1_stream_encoder_dp_set_stream_attribute() 491 struct stream_encoder *enc, in enc1_stream_encoder_hdmi_set_stream_attribute() argument 496 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc1_stream_encoder_hdmi_set_stream_attribute() 598 struct stream_encoder *enc, in enc1_stream_encoder_dvi_set_stream_attribute() argument 602 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc1_stream_encoder_dvi_set_stream_attribute() 623 struct stream_encoder *enc, in enc1_stream_encoder_set_throttled_vcp_size() argument 626 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc1_stream_encoder_set_throttled_vcp_size() 649 struct stream_encoder *enc, in enc1_stream_encoder_update_hdmi_info_packets() argument 652 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc1_stream_encoder_update_hdmi_info_packets() [all …]
|
| H A D | dcn10_link_encoder.c | 211 struct link_encoder *enc, in dcn10_link_encoder_set_dp_phy_pattern_training_pattern() argument 214 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn10_link_encoder_set_dp_phy_pattern_training_pattern() 451 unsigned int dcn10_get_dig_frontend(struct link_encoder *enc) in dcn10_get_dig_frontend() argument 453 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn10_get_dig_frontend() 502 void dcn10_psr_program_dp_dphy_fast_training(struct link_encoder *enc, in dcn10_psr_program_dp_dphy_fast_training() argument 505 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn10_psr_program_dp_dphy_fast_training() 526 void dcn10_psr_program_secondary_packet(struct link_encoder *enc, in dcn10_psr_program_secondary_packet() argument 529 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn10_psr_program_secondary_packet() 536 bool dcn10_is_dig_enabled(struct link_encoder *enc) in dcn10_is_dig_enabled() argument 538 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn10_is_dig_enabled() [all …]
|
| /OK3568_Linux_fs/buildroot/dl/rtmpdump/git/librtmp/ |
| H A D | rtmp.c | 1583 char *enc; in SendConnectPacket() local 1596 enc = packet.m_body; in SendConnectPacket() 1597 enc = AMF_EncodeString(enc, pend, &av_connect); in SendConnectPacket() 1598 enc = AMF_EncodeNumber(enc, pend, ++r->m_numInvokes); in SendConnectPacket() 1599 *enc++ = AMF_OBJECT; in SendConnectPacket() 1601 enc = AMF_EncodeNamedString(enc, pend, &av_app, &r->Link.app); in SendConnectPacket() 1602 if (!enc) in SendConnectPacket() 1606 enc = AMF_EncodeNamedString(enc, pend, &av_type, &av_nonprivate); in SendConnectPacket() 1607 if (!enc) in SendConnectPacket() 1612 enc = AMF_EncodeNamedString(enc, pend, &av_flashVer, &r->Link.flashVer); in SendConnectPacket() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn20/ |
| H A D | dcn20_link_encoder.c | 174 void enc2_fec_set_enable(struct link_encoder *enc, bool enable) in enc2_fec_set_enable() argument 176 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in enc2_fec_set_enable() 178 enable ? "Enabling" : "Disabling", enc->id.enum_id); in enc2_fec_set_enable() 182 void enc2_fec_set_ready(struct link_encoder *enc, bool ready) in enc2_fec_set_ready() argument 184 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in enc2_fec_set_ready() 189 bool enc2_fec_is_active(struct link_encoder *enc) in enc2_fec_is_active() argument 192 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in enc2_fec_is_active() 202 void link_enc2_read_state(struct link_encoder *enc, struct link_enc_state *s) in link_enc2_read_state() argument 204 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in link_enc2_read_state() 247 struct link_encoder *enc, in dcn20_link_encoder_enable_dp_output() argument [all …]
|
| H A D | dcn20_stream_encoder.c | 145 struct stream_encoder *enc, in enc2_stream_encoder_update_hdmi_info_packets() argument 148 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc2_stream_encoder_update_hdmi_info_packets() 163 struct stream_encoder *enc) in enc2_stream_encoder_stop_hdmi_info_packets() argument 165 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc2_stream_encoder_stop_hdmi_info_packets() 275 static void enc2_dp_set_dsc_config(struct stream_encoder *enc, in enc2_dp_set_dsc_config() argument 280 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc2_dp_set_dsc_config() 291 static void enc2_dp_set_dsc_pps_info_packet(struct stream_encoder *enc, in enc2_dp_set_dsc_pps_info_packet() argument 295 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc2_dp_set_dsc_pps_info_packet() 345 static void enc2_read_state(struct stream_encoder *enc, struct enc_state *s) in enc2_read_state() argument 347 struct dcn10_stream_encoder *enc1 = DCN10STRENC_FROM_STRENC(enc); in enc2_read_state() [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dce/ |
| H A D | dce_stream_encoder.c | 275 struct stream_encoder *enc, in dce110_stream_encoder_dp_set_stream_attribute() argument 294 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_dp_set_stream_attribute() 553 struct stream_encoder *enc, in dce110_stream_encoder_hdmi_set_stream_attribute() argument 558 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_hdmi_set_stream_attribute() 668 struct stream_encoder *enc, in dce110_stream_encoder_dvi_set_stream_attribute() argument 672 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_dvi_set_stream_attribute() 694 struct stream_encoder *enc, in dce110_stream_encoder_lvds_set_stream_attribute() argument 697 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_lvds_set_stream_attribute() 715 struct stream_encoder *enc, in dce110_stream_encoder_set_throttled_vcp_size() argument 718 struct dce110_stream_encoder *enc110 = DCE110STRENC_FROM_STRENC(enc); in dce110_stream_encoder_set_throttled_vcp_size() [all …]
|
| H A D | dce_link_encoder.c | 239 unsigned int dce110_get_dig_frontend(struct link_encoder *enc) in dce110_get_dig_frontend() argument 241 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_get_dig_frontend() 278 struct link_encoder *enc, in dce110_link_encoder_set_dp_phy_pattern_training_pattern() argument 281 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_link_encoder_set_dp_phy_pattern_training_pattern() 650 void dce110_psr_program_dp_dphy_fast_training(struct link_encoder *enc, in dce110_psr_program_dp_dphy_fast_training() argument 653 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_psr_program_dp_dphy_fast_training() 674 void dce110_psr_program_secondary_packet(struct link_encoder *enc, in dce110_psr_program_secondary_packet() argument 677 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_psr_program_secondary_packet() 684 bool dce110_is_dig_enabled(struct link_encoder *enc) in dce110_is_dig_enabled() argument 686 struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); in dce110_is_dig_enabled() [all …]
|
| H A D | dce_link_encoder.h | 231 struct link_encoder *enc, 237 void dce110_link_encoder_hw_init(struct link_encoder *enc); 239 void dce110_link_encoder_destroy(struct link_encoder **enc); 244 struct link_encoder *enc, 250 struct link_encoder *enc, 258 struct link_encoder *enc, 264 struct link_encoder *enc, 270 struct link_encoder *enc, 276 struct link_encoder *enc, 281 struct link_encoder *enc, [all …]
|
| /OK3568_Linux_fs/kernel/crypto/ |
| H A D | authencesn.c | 27 struct crypto_skcipher_spawn enc; member 33 struct crypto_skcipher *enc; member 63 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_setkey() local 77 crypto_skcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_esn_setkey() 78 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc_esn) & in crypto_authenc_esn_setkey() 80 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_esn_setkey() 188 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_esn_encrypt() local 207 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_esn_encrypt() 253 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_esn_decrypt_tail() 328 struct crypto_skcipher *enc; in crypto_authenc_esn_init_tfm() local [all …]
|
| H A D | authenc.c | 24 struct crypto_skcipher_spawn enc; member 30 struct crypto_skcipher *enc; member 89 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_setkey() local 103 crypto_skcipher_clear_flags(enc, CRYPTO_TFM_REQ_MASK); in crypto_authenc_setkey() 104 crypto_skcipher_set_flags(enc, crypto_aead_get_flags(authenc) & in crypto_authenc_setkey() 106 err = crypto_skcipher_setkey(enc, keys.enckey, keys.enckeylen); in crypto_authenc_setkey() 199 struct crypto_skcipher *enc = ctx->enc; in crypto_authenc_encrypt() local 217 skcipher_request_set_tfm(skreq, enc); in crypto_authenc_encrypt() 255 skcipher_request_set_tfm(skreq, ctx->enc); in crypto_authenc_decrypt_tail() 313 struct crypto_skcipher *enc; in crypto_authenc_init_tfm() local [all …]
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/tidss/ |
| H A D | tidss_encoder.c | 75 struct drm_encoder *enc; in tidss_encoder_create() local 78 enc = kzalloc(sizeof(*enc), GFP_KERNEL); in tidss_encoder_create() 79 if (!enc) in tidss_encoder_create() 82 enc->possible_crtcs = possible_crtcs; in tidss_encoder_create() 84 ret = drm_encoder_init(&tidss->ddev, enc, &encoder_funcs, in tidss_encoder_create() 87 kfree(enc); in tidss_encoder_create() 91 drm_encoder_helper_add(enc, &encoder_helper_funcs); in tidss_encoder_create() 95 return enc; in tidss_encoder_create()
|
| /OK3568_Linux_fs/kernel/drivers/gpu/drm/amd/display/dc/dcn21/ |
| H A D | dcn21_link_encoder.c | 206 bool dcn21_link_encoder_acquire_phy(struct link_encoder *enc) in dcn21_link_encoder_acquire_phy() argument 208 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn21_link_encoder_acquire_phy() 211 if (enc->features.flags.bits.DP_IS_USB_C) { in dcn21_link_encoder_acquire_phy() 241 static void dcn21_link_encoder_release_phy(struct link_encoder *enc) in dcn21_link_encoder_release_phy() argument 243 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn21_link_encoder_release_phy() 245 if (enc->features.flags.bits.DP_IS_USB_C) { in dcn21_link_encoder_release_phy() 255 struct link_encoder *enc, in dcn21_link_encoder_enable_dp_output() argument 259 struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc); in dcn21_link_encoder_enable_dp_output() 263 if (!dcn21_link_encoder_acquire_phy(enc)) in dcn21_link_encoder_enable_dp_output() 266 if (!enc->ctx->dc->debug.avoid_vbios_exec_table) { in dcn21_link_encoder_enable_dp_output() [all …]
|