Home
last modified time | relevance | path

Searched refs:sink (Results 1 – 25 of 28) sorted by relevance

12

/drivers/media/
Dmedia-entity.c97 return link->sink->entity; in media_entity_other()
258 struct media_pad *pad = link->sink->entity == entity in media_entity_pipeline_start()
259 ? link->sink : link->source; in media_entity_pipeline_start()
277 if (link->sink != pad || in media_entity_pipeline_start()
428 struct media_entity *sink, u16 sink_pad, u32 flags) in media_entity_create_link() argument
433 BUG_ON(source == NULL || sink == NULL); in media_entity_create_link()
435 BUG_ON(sink_pad >= sink->num_pads); in media_entity_create_link()
442 link->sink = &sink->pads[sink_pad]; in media_entity_create_link()
448 backlink = media_entity_add_link(sink); in media_entity_create_link()
455 backlink->sink = &sink->pads[sink_pad]; in media_entity_create_link()
[all …]
Dmedia-device.c164 media_device_kpad_to_upad(entity->links[l].sink, in __media_device_enum_links()
165 &link.sink); in __media_device_enum_links()
201 struct media_entity *sink; in media_device_setup_link() local
210 sink = find_entity(mdev, ulink.sink.entity); in media_device_setup_link()
212 if (source == NULL || sink == NULL) in media_device_setup_link()
216 ulink.sink.index >= sink->num_pads) in media_device_setup_link()
220 &sink->pads[ulink.sink.index]); in media_device_setup_link()
/drivers/media/platform/exynos4-is/
Dmedia-dev.c708 struct media_entity *sink; in __fimc_md_create_fimc_sink_links() local
731 sink = &fmd->fimc[i]->vid_cap.subdev.entity; in __fimc_md_create_fimc_sink_links()
732 ret = media_entity_create_link(source, pad, sink, in __fimc_md_create_fimc_sink_links()
738 ret = media_entity_call(sink, link_setup, &sink->pads[0], in __fimc_md_create_fimc_sink_links()
744 source->name, flags ? '=' : '-', sink->name); in __fimc_md_create_fimc_sink_links()
751 sink = &fmd->fimc_lite[i]->subdev.entity; in __fimc_md_create_fimc_sink_links()
752 ret = media_entity_create_link(source, pad, sink, in __fimc_md_create_fimc_sink_links()
758 ret = media_entity_call(sink, link_setup, &sink->pads[0], in __fimc_md_create_fimc_sink_links()
764 source->name, sink->name); in __fimc_md_create_fimc_sink_links()
772 struct media_entity *source, *sink; in __fimc_md_create_flite_source_links() local
[all …]
Dfimc-lite.c590 struct flite_frame *sink = &fimc->inp_frame; in fimc_lite_subdev_try_fmt() local
604 mf->code = sink->fmt->mbus_code; in fimc_lite_subdev_try_fmt()
605 mf->colorspace = sink->fmt->colorspace; in fimc_lite_subdev_try_fmt()
606 rect = &sink->rect; in fimc_lite_subdev_try_fmt()
1108 struct flite_frame *sink = &fimc->inp_frame; in fimc_lite_subdev_set_fmt() local
1144 sink->f_width = mf->width; in fimc_lite_subdev_set_fmt()
1145 sink->f_height = mf->height; in fimc_lite_subdev_set_fmt()
1146 sink->fmt = ffmt; in fimc_lite_subdev_set_fmt()
1148 sink->rect.width = mf->width; in fimc_lite_subdev_set_fmt()
1149 sink->rect.height = mf->height; in fimc_lite_subdev_set_fmt()
[all …]
Dfimc-capture.c668 struct fimc_frame *sink = &ctx->s_frame; in fimc_capture_try_selection() local
675 r->width = sink->f_width; in fimc_capture_try_selection()
676 r->height = sink->f_height; in fimc_capture_try_selection()
683 max_sc_h = min(SCALER_MAX_HRATIO, 1 << (ffs(sink->width) - 3)); in fimc_capture_try_selection()
684 max_sc_v = min(SCALER_MAX_VRATIO, 1 << (ffs(sink->height) - 1)); in fimc_capture_try_selection()
687 u32 depth = fimc_get_format_depth(sink->fmt); in fimc_capture_try_selection()
704 rotate ? sink->f_height : sink->f_width); in fimc_capture_try_selection()
705 max_h = min_t(u32, FIMC_CAMIF_MAX_HEIGHT, sink->f_height); in fimc_capture_try_selection()
708 min_w = min_t(u32, max_w, sink->f_width / max_sc_h); in fimc_capture_try_selection()
709 min_h = min_t(u32, max_h, sink->f_height / max_sc_v); in fimc_capture_try_selection()
[all …]
/drivers/media/usb/uvc/
Duvc_entity.c30 struct media_entity *sink; in uvc_mc_register_entity() local
34 sink = (UVC_ENTITY_TYPE(entity) == UVC_TT_STREAMING) in uvc_mc_register_entity()
37 if (sink == NULL) in uvc_mc_register_entity()
60 sink, i, flags); in uvc_mc_register_entity()
/drivers/gpu/drm/nouveau/core/engine/disp/
Ddport.c68 u8 sink[2]; in dp_set_link_config() local
100 sink[0] = dp->link_bw / 27000; in dp_set_link_config()
101 sink[1] = dp->link_nr; in dp_set_link_config()
103 sink[1] |= DPCD_LC01_ENHANCED_FRAME_EN; in dp_set_link_config()
105 return nv_wraux(outp->base.edid, DPCD_LC00_LINK_BW_SET, sink, 2); in dp_set_link_config()
/drivers/media/platform/vsp1/
Dvsp1_drv.c78 static int vsp1_create_links(struct vsp1_device *vsp1, struct vsp1_entity *sink) in vsp1_create_links() argument
80 struct media_entity *entity = &sink->subdev.entity; in vsp1_create_links()
88 if (source->type == sink->type) in vsp1_create_links()
96 sink->type == VSP1_ENTITY_WPF && in vsp1_create_links()
97 source->index == sink->index in vsp1_create_links()
111 source->sink = entity; in vsp1_create_links()
Dvsp1_entity.c136 if (source->sink) in vsp1_entity_link_setup()
138 source->sink = remote->entity; in vsp1_entity_link_setup()
141 source->sink = NULL; in vsp1_entity_link_setup()
Dvsp1_entity.h68 struct media_entity *sink; member
Dvsp1_video.c793 struct vsp1_entity *sink; in vsp1_entity_route_setup() local
798 sink = container_of(source->sink, struct vsp1_entity, subdev.entity); in vsp1_entity_route_setup()
800 sink->route->inputs[source->sink_pad]); in vsp1_entity_route_setup()
Dvsp1_wpf.c292 wpf->entity.sink = &wpf->video.video.entity; in vsp1_wpf_create()
/drivers/media/v4l2-core/
Dv4l2-subdev.c544 struct v4l2_subdev *sink; in v4l2_subdev_link_validate() local
554 link->sink, &sink_fmt); in v4l2_subdev_link_validate()
558 sink = media_entity_to_v4l2_subdev(link->sink->entity); in v4l2_subdev_link_validate()
560 rval = v4l2_subdev_call(sink, pad, link_validate, link, in v4l2_subdev_link_validate()
566 sink, link, &source_fmt, &sink_fmt); in v4l2_subdev_link_validate()
/drivers/staging/media/omap4iss/
Diss.c144 ret = v4l2_subdev_call(media_entity_to_v4l2_subdev(link->sink->entity), in omap4iss_get_external_info()
529 struct media_entity *sink = link->sink->entity; in iss_pipeline_link_notify() local
531 int sink_use = iss_pipeline_pm_use_count(sink); in iss_pipeline_link_notify()
538 iss_pipeline_pm_power(sink, -source_use); in iss_pipeline_link_notify()
548 ret = iss_pipeline_pm_power(sink, source_use); in iss_pipeline_link_notify()
/drivers/media/platform/omap3isp/
Dispresizer.c1185 static void resizer_try_crop(const struct v4l2_mbus_framefmt *sink, in resizer_try_crop() argument
1208 crop->left = clamp_t(u32, crop->left, 0, sink->width - MIN_IN_WIDTH); in resizer_try_crop()
1210 sink->width - crop->left); in resizer_try_crop()
1211 crop->top = clamp_t(u32, crop->top, 0, sink->height - MIN_IN_HEIGHT); in resizer_try_crop()
1213 sink->height - crop->top); in resizer_try_crop()
Disp.c810 struct media_entity *sink = link->sink->entity; in isp_pipeline_link_notify() local
812 int sink_use = isp_pipeline_pm_use_count(sink); in isp_pipeline_link_notify()
819 isp_pipeline_pm_power(sink, -source_use); in isp_pipeline_link_notify()
830 ret = isp_pipeline_pm_power(sink, source_use); in isp_pipeline_link_notify()
Dispccdc.c2076 const struct v4l2_mbus_framefmt *sink, in ccdc_try_crop() argument
2085 info = omap3isp_video_format_info(sink->code); in ccdc_try_crop()
2091 crop->left = clamp_t(u32, crop->left, 0, sink->width - CCDC_MIN_WIDTH); in ccdc_try_crop()
2092 crop->top = clamp_t(u32, crop->top, 0, sink->height - CCDC_MIN_HEIGHT); in ccdc_try_crop()
2099 max_width = (sink->width - crop->left + 15) & ~15; in ccdc_try_crop()
2103 sink->height - crop->top); in ccdc_try_crop()
Disppreview.c1824 const struct v4l2_mbus_framefmt *sink, in preview_try_crop() argument
1828 unsigned int right = sink->width - PREV_MARGIN_RIGHT; in preview_try_crop()
1830 unsigned int bottom = sink->height - PREV_MARGIN_BOTTOM; in preview_try_crop()
1846 if (sink->code != V4L2_MBUS_FMT_Y8_1X8 && in preview_try_crop()
1847 sink->code != V4L2_MBUS_FMT_Y10_1X10) { in preview_try_crop()
/drivers/scsi/
DNCR5380.c2082 int sink = 0; local
2104 if (sink && (phase != PHASE_MSGOUT)) {
2110 sink = 0;
2118 sink = 1;
2180 sink = 1;
2222 sink = 1;
2239 sink = 1;
Datari_NCR5380.c1978 int sink = 0; in NCR5380_information_transfer() local
1997 if (sink && (phase != PHASE_MSGOUT)) { in NCR5380_information_transfer()
2006 sink = 0; in NCR5380_information_transfer()
2015 sink = 1; in NCR5380_information_transfer()
2073 sink = 1; in NCR5380_information_transfer()
2135 sink = 1; in NCR5380_information_transfer()
Dsun3_NCR5380.c1907 int sink = 0; in NCR5380_information_transfer() local
1959 if (sink && (phase != PHASE_MSGOUT)) { in NCR5380_information_transfer()
1967 sink = 0; in NCR5380_information_transfer()
1976 sink = 1; in NCR5380_information_transfer()
2031 sink = 1; in NCR5380_information_transfer()
2099 sink = 1; in NCR5380_information_transfer()
/drivers/staging/lustre/lnet/selftest/
Dselftest.h425 int sink);
437 int sink);
/drivers/isdn/hisax/
Dhfc_usb.c547 int k, tx_offset, num_isoc_packets, sink, len, current_len, in tx_iso_complete() local
587 sink = (threshbit) ? SINK_DMIN : SINK_DMAX; in tx_iso_complete()
589 sink = (threshbit) ? SINK_MIN : SINK_MAX; in tx_iso_complete()
604 fifo->bit_line -= sink; in tx_iso_complete()
643 fifo->bit_line -= sink; /* we lower data margin every msec */ in tx_iso_complete()
/drivers/tty/
DKconfig343 the trace sink line discipline driver and to another tty port (say
350 "Trace data sink for MIPI P1149.7 cJTAG standard" line discipline
354 tristate "Trace data sink for MIPI P1149.7 cJTAG standard"
357 The trace sink uses the Linux line discipline framework to receive
/drivers/isdn/hardware/mISDN/
Dhfcsusb.c1170 int k, tx_offset, num_isoc_packets, sink, remain, current_len, in tx_iso_complete() local
1228 sink = (threshbit) ? SINK_DMIN : SINK_DMAX; in tx_iso_complete()
1230 sink = (threshbit) ? SINK_MIN : SINK_MAX; in tx_iso_complete()
1259 fifo->bit_line -= sink; in tx_iso_complete()
1323 fifo->bit_line -= sink; in tx_iso_complete()

12