/drivers/gpu/drm/amd/display/dc/core/ |
D | dc_sink.c | 34 static bool dc_sink_construct(struct dc_sink *sink, const struct dc_sink_init_data *init_params) in dc_sink_construct() argument 42 sink->sink_signal = init_params->sink_signal; in dc_sink_construct() 43 sink->link = link; in dc_sink_construct() 44 sink->ctx = link->ctx; in dc_sink_construct() 45 sink->dongle_max_pix_clk = init_params->dongle_max_pix_clk; in dc_sink_construct() 46 sink->converter_disable_audio = init_params->converter_disable_audio; in dc_sink_construct() 47 sink->dc_container_id = NULL; in dc_sink_construct() 48 sink->sink_id = init_params->link->ctx->dc_sink_id_count; in dc_sink_construct() 60 void dc_sink_retain(struct dc_sink *sink) in dc_sink_retain() argument 62 kref_get(&sink->refcount); in dc_sink_retain() [all …]
|
D | dc_stream.c | 40 void update_stream_signal(struct dc_stream_state *stream, struct dc_sink *sink) in update_stream_signal() argument 42 if (sink->sink_signal == SIGNAL_TYPE_NONE) in update_stream_signal() 45 stream->signal = sink->sink_signal; in update_stream_signal() 50 sink->sink_signal != SIGNAL_TYPE_DVI_SINGLE_LINK) in update_stream_signal() 62 stream->sink = dc_sink_data; in dc_stream_construct() 133 dc_sink_release(stream->sink); in dc_stream_destruct() 161 struct dc_sink *sink) in dc_create_stream_for_sink() argument 165 if (sink == NULL) in dc_create_stream_for_sink() 172 if (dc_stream_construct(stream, sink) == false) in dc_create_stream_for_sink() 194 if (new_stream->sink) in dc_copy_stream() [all …]
|
D | dc_link.c | 916 struct dc_sink *sink, in verify_link_capability_destructive() argument 986 static void verify_link_capability(struct dc_link *link, struct dc_sink *sink, in verify_link_capability() argument 990 verify_link_capability_destructive(link, sink, reason); in verify_link_capability() 1015 struct dc_sink *sink = NULL; in detect_link_and_local_sink() local 1175 sink = dc_sink_create(&sink_init_data); in detect_link_and_local_sink() 1176 if (!sink) { in detect_link_and_local_sink() 1183 sink->link->dongle_max_pix_clk = sink_caps.max_hdmi_pixel_clock; in detect_link_and_local_sink() 1184 sink->converter_disable_audio = converter_disable_audio; in detect_link_and_local_sink() 1187 link->local_sink = sink; in detect_link_and_local_sink() 1190 link, sink); in detect_link_and_local_sink() [all …]
|
/drivers/media/mc/ |
D | mc-entity.c | 260 return link->sink->entity; in media_entity_other() 353 link->sink->entity->name, link->sink->index); in media_graph_walk_iter() 595 link->sink->entity->name, link->sink->index); in media_pipeline_explore_next_link() 607 remote = link->sink; in media_pipeline_explore_next_link() 609 local = link->sink; in media_pipeline_explore_next_link() 771 if (link->sink != pad && link->source != pad) in __media_pipeline_start() 786 if (link->sink != pad) in __media_pipeline_start() 798 link->sink->entity->name, in __media_pipeline_start() 799 link->sink->index, ret); in __media_pipeline_start() 807 link->sink->entity->name, in __media_pipeline_start() [all …]
|
D | mc-device.c | 186 media_device_kpad_to_upad(link->sink, in media_device_enum_links() 187 &klink_desc.sink); in media_device_enum_links() 205 struct media_entity *sink; in media_device_setup_link() local 210 sink = find_entity(mdev, linkd->sink.entity); in media_device_setup_link() 212 if (source == NULL || sink == NULL) in media_device_setup_link() 216 linkd->sink.index >= sink->num_pads) in media_device_setup_link() 220 &sink->pads[linkd->sink.index]); in media_device_setup_link()
|
/drivers/thunderbolt/ |
D | lc.c | 485 static int tb_lc_dp_sink_available(struct tb_switch *sw, int sink) in tb_lc_dp_sink_available() argument 499 if (!sink) { in tb_lc_dp_sink_available() 523 int sink; in tb_lc_dp_sink_query() local 532 sink = tb_lc_dp_sink_from_port(sw, in); in tb_lc_dp_sink_query() 533 if (sink < 0) in tb_lc_dp_sink_query() 536 return !tb_lc_dp_sink_available(sw, sink); in tb_lc_dp_sink_query() 551 int ret, sink; in tb_lc_dp_sink_alloc() local 557 sink = tb_lc_dp_sink_from_port(sw, in); in tb_lc_dp_sink_alloc() 558 if (sink < 0) in tb_lc_dp_sink_alloc() 559 return sink; in tb_lc_dp_sink_alloc() [all …]
|
/drivers/hwtracing/coresight/ |
D | coresight-etm-perf.c | 195 struct coresight_device *sink; in free_sink_buffer() local 204 sink = coresight_get_sink(etm_event_cpu_path(event_data, cpu)); in free_sink_buffer() 205 sink_ops(sink)->free_buffer(event_data->snk_config); in free_sink_buffer() 304 struct coresight_device *sink = NULL; in etm_setup_aux() local 316 sink = user_sink = coresight_get_sink_by_id(id); in etm_setup_aux() 366 sink = coresight_find_default_sink(csdev); in etm_setup_aux() 367 if (!sink) { in etm_setup_aux() 373 if (last_sink && !sinks_compatible(last_sink, sink)) { in etm_setup_aux() 377 last_sink = sink; in etm_setup_aux() 385 path = coresight_build_path(csdev, sink); in etm_setup_aux() [all …]
|
D | coresight-core.c | 640 struct coresight_device *sink = NULL; in coresight_find_enabled_sink() local 655 sink = coresight_find_enabled_sink(child_dev); in coresight_find_enabled_sink() 656 if (sink) in coresight_find_enabled_sink() 657 return sink; in coresight_find_enabled_sink() 818 struct coresight_device *sink, in _coresight_build_path() argument 826 if (csdev == sink) in _coresight_build_path() 829 if (coresight_is_percpu_source(csdev) && coresight_is_percpu_sink(sink) && in _coresight_build_path() 830 sink == per_cpu(csdev_sink, source_ops(csdev)->cpu_id(csdev))) { in _coresight_build_path() 831 if (_coresight_build_path(sink, sink, path) == 0) { in _coresight_build_path() 843 _coresight_build_path(child_dev, sink, path) == 0) { in _coresight_build_path() [all …]
|
/drivers/media/platform/renesas/vsp1/ |
D | vsp1_entity.c | 62 route = source->sink->route->inputs[source->sink_pad]; in vsp1_entity_route_setup() 452 struct vsp1_entity *sink in vsp1_entity_link_setup_source() local 459 if (sink->type != VSP1_ENTITY_HGO && in vsp1_entity_link_setup_source() 460 sink->type != VSP1_ENTITY_HGT) { in vsp1_entity_link_setup_source() 461 if (source->sink) in vsp1_entity_link_setup_source() 463 source->sink = sink; in vsp1_entity_link_setup_source() 467 source->sink = NULL; in vsp1_entity_link_setup_source() 478 struct vsp1_entity *sink; in vsp1_entity_link_setup_sink() local 481 sink = media_entity_to_vsp1_entity(sink_pad->entity); in vsp1_entity_link_setup_sink() 486 if (sink->sources[sink_pad->index]) in vsp1_entity_link_setup_sink() [all …]
|
D | vsp1_drv.c | 91 struct vsp1_entity *sink) in vsp1_create_sink_links() argument 93 struct media_entity *entity = &sink->subdev.entity; in vsp1_create_sink_links() 101 if (source->type == sink->type) in vsp1_create_sink_links() 111 sink->type == VSP1_ENTITY_WPF && in vsp1_create_sink_links() 112 source->index == sink->index in vsp1_create_sink_links() 126 source->sink = sink; in vsp1_create_sink_links()
|
/drivers/media/platform/samsung/exynos4-is/ |
D | media-dev.c | 822 struct media_entity *sink; in __fimc_md_create_fimc_sink_links() local 845 sink = &fmd->fimc[i]->vid_cap.subdev.entity; in __fimc_md_create_fimc_sink_links() 846 ret = media_create_pad_link(source, pad, sink, in __fimc_md_create_fimc_sink_links() 852 ret = media_entity_call(sink, link_setup, &sink->pads[0], in __fimc_md_create_fimc_sink_links() 858 source->name, flags ? '=' : '-', sink->name); in __fimc_md_create_fimc_sink_links() 865 sink = &fmd->fimc_lite[i]->subdev.entity; in __fimc_md_create_fimc_sink_links() 866 ret = media_create_pad_link(source, pad, sink, in __fimc_md_create_fimc_sink_links() 872 ret = media_entity_call(sink, link_setup, &sink->pads[0], in __fimc_md_create_fimc_sink_links() 878 source->name, sink->name); in __fimc_md_create_fimc_sink_links() 886 struct media_entity *source, *sink; in __fimc_md_create_flite_source_links() local [all …]
|
D | fimc-lite.c | 572 struct flite_frame *sink = &fimc->inp_frame; in fimc_lite_subdev_try_fmt() local 588 mf->code = sink->fmt->mbus_code; in fimc_lite_subdev_try_fmt() 589 mf->colorspace = sink->fmt->colorspace; in fimc_lite_subdev_try_fmt() 590 rect = &sink->rect; in fimc_lite_subdev_try_fmt() 1061 struct flite_frame *sink = &fimc->inp_frame; in fimc_lite_subdev_set_fmt() local 1098 sink->f_width = mf->width; in fimc_lite_subdev_set_fmt() 1099 sink->f_height = mf->height; in fimc_lite_subdev_set_fmt() 1100 sink->fmt = ffmt; in fimc_lite_subdev_set_fmt() 1102 sink->rect.width = mf->width; in fimc_lite_subdev_set_fmt() 1103 sink->rect.height = mf->height; in fimc_lite_subdev_set_fmt() [all …]
|
/drivers/media/v4l2-core/ |
D | v4l2-mc.c | 313 struct media_pad *sink, u32 flags) in v4l2_create_fwnode_links_to_pad() argument 318 if (!(sink->flags & MEDIA_PAD_FL_SINK) || in v4l2_create_fwnode_links_to_pad() 319 !is_media_entity_v4l2_subdev(sink->entity)) in v4l2_create_fwnode_links_to_pad() 322 sink_sd = media_entity_to_v4l2_subdev(sink->entity); in v4l2_create_fwnode_links_to_pad() 348 if (sink_idx < 0 || sink_idx != sink->index) in v4l2_create_fwnode_links_to_pad() 362 if (media_entity_find_link(src, sink)) in v4l2_create_fwnode_links_to_pad() 561 struct media_entity *sink = link->sink->entity; in v4l2_pipeline_link_notify() local 567 sink_use = pipeline_pm_use_count(sink, graph); in v4l2_pipeline_link_notify() 573 pipeline_pm_power(sink, -source_use, graph); in v4l2_pipeline_link_notify() 584 ret = pipeline_pm_power(sink, source_use, graph); in v4l2_pipeline_link_notify()
|
/drivers/staging/media/imx/ |
D | imx-media-internal-sd.c | 135 struct v4l2_subdev *sink, in create_internal_link() argument 142 &sink->entity.pads[link->remote_pad])) in create_internal_link() 147 sink->name, link->remote_pad); in create_internal_link() 150 &sink->entity, link->remote_pad, 0); in create_internal_link() 176 struct v4l2_subdev *sink; in create_ipu_internal_links() local 179 sink = imxmd->sync_sd[ipu_id][link->remote]; in create_ipu_internal_links() 181 ret = create_internal_link(imxmd, sd, sink, link); in create_ipu_internal_links()
|
/drivers/media/usb/au0828/ |
D | au0828-core.c | 292 struct media_entity *sink; in au0828_enable_source() local 315 sink = entity; in au0828_enable_source() 324 sink = dev->decoder; in au0828_enable_source() 390 list_for_each_entry(link, &sink->links, list) { in au0828_enable_source() 392 if (link->sink->entity == sink && in au0828_enable_source() 409 source->name, sink->name, ret); in au0828_enable_source() 430 dev->active_sink = sink; in au0828_enable_source() 461 if (dev->active_link->sink->entity == dev->active_sink && in au0828_disable_source() 620 if (demod && link->sink->entity == demod) in au0828_media_device_register() 622 if (dev->decoder && link->sink->entity == dev->decoder) in au0828_media_device_register()
|
/drivers/gpu/drm/amd/display/amdgpu_dm/ |
D | amdgpu_dm_helpers.c | 822 if (stream->sink->link->dpcd_caps.dongle_type == DISPLAY_DONGLE_NONE) { in dm_helpers_dp_write_dsc_enable() 827 } else if (stream->sink->link->dpcd_caps.dongle_type == DISPLAY_DONGLE_DP_HDMI_CONVERTER) { in dm_helpers_dp_write_dsc_enable() 856 struct dc_sink *sink) in dm_helpers_read_local_edid() argument 889 sink->dc_edid.length = EDID_LENGTH * (edid->extensions + 1); in dm_helpers_read_local_edid() 890 memmove(sink->dc_edid.raw_edid, (uint8_t *)edid, sink->dc_edid.length); in dm_helpers_read_local_edid() 897 &sink->dc_edid, in dm_helpers_read_local_edid() 898 &sink->edid_caps); in dm_helpers_read_local_edid() 909 …drm_dp_send_real_edid_checksum(&aconnector->dm_dp_aux.aux, sink->dc_edid.raw_edid[sink->dc_edid.le… in dm_helpers_read_local_edid() 946 struct dc_sink *sink) in dm_helpers_init_panel_settings() argument 949 panel_config->pps.extra_t3_ms = sink->edid_caps.panel_patch.extra_t3_ms; in dm_helpers_init_panel_settings() [all …]
|
D | amdgpu_dm_mst_types.c | 778 struct dc_sink *sink; member 824 params[i].sink->ctx->dc->res_pool->dscs[0], in set_dsc_configs_from_fairness_vars() 825 ¶ms[i].sink->dsc_caps.dsc_dec_caps, in set_dsc_configs_from_fairness_vars() 826 params[i].sink->ctx->dc->debug.dsc_min_slice_height_override, in set_dsc_configs_from_fairness_vars() 850 if (params[i].sink) { in set_dsc_configs_from_fairness_vars() 851 if (params[i].sink->sink_signal != SIGNAL_TYPE_VIRTUAL && in set_dsc_configs_from_fairness_vars() 852 params[i].sink->sink_signal != SIGNAL_TYPE_NONE) in set_dsc_configs_from_fairness_vars() 854 params[i].sink->edid_caps.display_name); in set_dsc_configs_from_fairness_vars() 875 param.sink->ctx->dc->res_pool->dscs[0], in bpp_x16_from_pbn() 876 ¶m.sink->dsc_caps.dsc_dec_caps, in bpp_x16_from_pbn() [all …]
|
D | amdgpu_dm_hdcp.c | 459 struct dc_sink *sink = NULL; in update_config() local 474 sink = aconnector->dc_sink; in update_config() 476 sink = aconnector->dc_em_sink; in update_config() 478 if (sink != NULL) in update_config() 479 link->mode = mod_hdcp_signal_type_to_operation_mode(sink->sink_signal); in update_config() 490 if (sink) in update_config() 491 link_is_hdcp14 = dc_link_is_hdcp14(aconnector->dc_link, sink->sink_signal); in update_config()
|
/drivers/gpu/ipu-v3/ |
D | ipu-common.c | 690 struct fsu_link_reg_info sink; member 697 .sink = { IPUV3_CHANNEL_MEM_ROT_ENC, IPU_FS_PROC_FLOW1, 702 .sink = { IPUV3_CHANNEL_MEM_ROT_VF, IPU_FS_PROC_FLOW1, 707 .sink = { IPUV3_CHANNEL_MEM_ROT_PP, IPU_FS_PROC_FLOW1, 711 .sink = { IPUV3_CHANNEL_CSI_VDI_PREV, IPU_FS_PROC_FLOW1, 716 static const struct fsu_link_info *find_fsu_link_info(int src, int sink) in find_fsu_link_info() argument 722 sink == fsu_link_info[i].sink.chno) in find_fsu_link_info() 751 if (link->sink.mask) { in ipu_fsu_link() 752 sink_reg = ipu_cm_read(ipu, link->sink.reg); in ipu_fsu_link() 753 sink_reg &= ~link->sink.mask; in ipu_fsu_link() [all …]
|
/drivers/media/usb/uvc/ |
D | uvc_entity.c | 21 struct media_entity *sink; in uvc_mc_create_links() local 25 sink = (UVC_ENTITY_TYPE(entity) == UVC_TT_STREAMING) in uvc_mc_create_links() 28 if (sink == NULL) in uvc_mc_create_links() 51 sink, i, flags); in uvc_mc_create_links()
|
/drivers/staging/greybus/ |
D | audio_helper.c | 19 struct snd_soc_dapm_widget *src, *sink; in gbaudio_dapm_link_dai_widget() local 46 sink = w; in gbaudio_dapm_link_dai_widget() 49 sink = dai_w; in gbaudio_dapm_link_dai_widget() 51 dev_dbg(dai->dev, "%s -> %s\n", src->name, sink->name); in gbaudio_dapm_link_dai_widget()
|
/drivers/media/platform/renesas/rcar-vin/ |
D | rcar-core.c | 582 struct media_entity *sink; in rvin_parallel_notify_complete() local 602 sink = &vin->vdev.entity; in rvin_parallel_notify_complete() 605 sink, vin->parallel.sink_pad, 0); in rvin_parallel_notify_complete() 608 source->name, sink->name, ret); in rvin_parallel_notify_complete() 785 !is_media_entity_v4l2_video_device(link->sink->entity)) in rvin_csi2_link_notify() 797 vdev = media_entity_to_video_device(link->sink->entity); in rvin_csi2_link_notify() 893 struct media_entity *sink = &group->vin[id]->vdev.entity; in rvin_csi2_create_link() local 894 struct media_pad *sink_pad = &sink->pads[0]; in rvin_csi2_create_link() 906 ret = media_create_pad_link(source, source_idx, sink, 0, 0); in rvin_csi2_create_link() 1005 struct media_entity *source, *sink; in rvin_isp_setup_links() local [all …]
|
/drivers/media/platform/xilinx/ |
D | xilinx-vipp.c | 190 struct media_entity *sink; in xvip_graph_build_dma() local 251 sink = ent->entity; in xvip_graph_build_dma() 252 sink_pad = &sink->pads[link.remote_port]; in xvip_graph_build_dma() 256 sink = &dma->video.entity; in xvip_graph_build_dma() 265 sink->name, sink_pad->index); in xvip_graph_build_dma() 268 sink, sink_pad->index, in xvip_graph_build_dma() 274 sink->name, sink_pad->index); in xvip_graph_build_dma()
|
/drivers/gpu/drm/nouveau/nvkm/engine/disp/ |
D | dp.c | 289 u8 sink[2], data; in nvkm_dp_train_links() local 359 sink[0] = (outp->dp.rate[rate].dpcd < 0) ? ior->dp.bw : 0; in nvkm_dp_train_links() 360 sink[1] = ior->dp.nr; in nvkm_dp_train_links() 362 sink[1] |= DPCD_LC01_ENHANCED_FRAME_EN; in nvkm_dp_train_links() 364 ret = nvkm_wraux(outp->dp.aux, DPCD_LC00_LINK_BW_SET, sink, 2); in nvkm_dp_train_links() 369 ret = nvkm_rdaux(outp->dp.aux, DPCD_LC15_LINK_RATE_SET, &sink[0], sizeof(sink[0])); in nvkm_dp_train_links() 373 sink[0] &= ~DPCD_LC15_LINK_RATE_SET_MASK; in nvkm_dp_train_links() 374 sink[0] |= outp->dp.rate[rate].dpcd; in nvkm_dp_train_links() 376 ret = nvkm_wraux(outp->dp.aux, DPCD_LC15_LINK_RATE_SET, &sink[0], sizeof(sink[0])); in nvkm_dp_train_links()
|
/drivers/gpu/drm/amd/display/dc/ |
D | dm_helpers.h | 157 struct dc_sink *sink); 183 struct dc_sink *sink);
|