/drivers/media/mc/ |
D | mc-entity.c | 158 list_add_tail(&gobj->list, &mdev->pads); in media_gobj_create() 195 struct media_pad *pads) in media_entity_pads_init() argument 205 entity->pads = pads; in media_entity_pads_init() 246 if (entity->pads[pad0].flags & entity->pads[pad1].flags & in media_entity_has_pad_interdep() 552 list_for_each_entry(ppad, &pipe->pads, list) { in media_pipeline_add_pad() 568 list_add_tail(&ppad->list, &pipe->pads); in media_pipeline_add_pad() 641 while (!list_empty(&pipe->pads)) { in media_pipeline_cleanup() 644 ppad = list_first_entry(&pipe->pads, typeof(*ppad), list); in media_pipeline_cleanup() 661 INIT_LIST_HEAD(&pipe->pads); in media_pipeline_populate() 686 list_for_each_entry(ppad, &pipe->pads, list) in media_pipeline_populate() [all …]
|
D | mc-device.c | 116 entd->pads = ent->num_pads; in media_device_enum_entities() 160 if (links->pads) { in media_device_enum_links() 167 media_device_kpad_to_upad(&entity->pads[p], &pad); in media_device_enum_links() 168 if (copy_to_user(&links->pads[p], &pad, sizeof(pad))) in media_device_enum_links() 219 link = media_entity_find_link(&source->pads[linkd->source.index], in media_device_setup_link() 220 &sink->pads[linkd->sink.index]); in media_device_setup_link() 488 compat_uptr_t pads; /* struct media_pad_desc * */ member 503 || get_user(pads_ptr, &ulinks->pads) in media_device_enum_links32() 507 links.pads = compat_ptr(pads_ptr); in media_device_enum_links32() 690 INIT_LIST_HEAD(&mdev->pads); in media_device_init()
|
/drivers/staging/media/atomisp/pci/ |
D | atomisp_tpg.c | 50 sd_state->pads->try_fmt = *fmt; in tpg_set_fmt() 144 struct media_pad *pads = tpg->pads; in atomisp_tpg_init() local 154 pads[0].flags = MEDIA_PAD_FL_SINK; in atomisp_tpg_init() 157 ret = media_entity_pads_init(me, 1, pads); in atomisp_tpg_init()
|
D | atomisp_csi2.c | 231 struct media_pad *pads = csi2->pads; in mipi_csi2_init_entities() local 241 pads[CSI2_PAD_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in mipi_csi2_init_entities() 242 pads[CSI2_PAD_SINK].flags = MEDIA_PAD_FL_SINK; in mipi_csi2_init_entities() 246 ret = media_entity_pads_init(me, CSI2_PADS_NUM, pads); in mipi_csi2_init_entities()
|
/drivers/gpu/host1x/ |
D | mipi.c | 96 const struct tegra_mipi_pad *pads; member 133 unsigned long pads; member 242 dev->pads = args.args[0]; in tegra_mipi_request() 341 if (device->pads & BIT(i)) { in tegra_mipi_start_calibration() 351 tegra_mipi_writel(device->mipi, data, soc->pads[i].data); in tegra_mipi_start_calibration() 353 if (soc->has_clk_lane && soc->pads[i].clk != 0) in tegra_mipi_start_calibration() 354 tegra_mipi_writel(device->mipi, clk, soc->pads[i].clk); in tegra_mipi_start_calibration() 403 .pads = tegra114_mipi_pads, 430 .pads = tegra124_mipi_pads, 447 .pads = tegra124_mipi_pads, [all …]
|
/drivers/media/dvb-core/ |
D | dvbdev.c | 213 kfree(dvbdev->pads); in dvb_media_device_free() 215 dvbdev->pads = NULL; in dvb_media_device_free() 267 struct media_pad *pads = &dvbdev->tsout_pads[i]; in dvb_create_tsout_entity() local 275 pads->flags = MEDIA_PAD_FL_SINK; in dvb_create_tsout_entity() 277 ret = media_entity_pads_init(entity, 1, pads); in dvb_create_tsout_entity() 337 dvbdev->pads = kcalloc(npads, sizeof(*dvbdev->pads), in dvb_create_media_entity() 339 if (!dvbdev->pads) { in dvb_create_media_entity() 349 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; in dvb_create_media_entity() 350 dvbdev->pads[1].flags = MEDIA_PAD_FL_SOURCE; in dvb_create_media_entity() 354 dvbdev->pads[0].flags = MEDIA_PAD_FL_SINK; in dvb_create_media_entity() [all …]
|
/drivers/input/joystick/ |
D | gamecon.c | 72 struct gc_pad pads[GC_MAX_DEVICES]; member 213 if (gc->pads[i].type != GC_N64) in gc_n64_process_packet() 216 dev = gc->pads[i].dev; in gc_n64_process_packet() 370 pad = &gc->pads[i]; in gc_nes_process_packet() 478 pad = &gc->pads[i]; in gc_multi_process_packet() 562 struct gc_pad *pad = &gc->pads[j]; in gc_psx_command() 601 struct gc_pad *pad = &gc->pads[i]; in gc_psx_read_packet() 717 pad = &gc->pads[i]; in gc_psx_process_packet() 799 struct gc_pad *pad = &gc->pads[idx]; in gc_setup_pad() 925 int *pads, n_pads; in gc_attach() local [all …]
|
/drivers/media/platform/ |
D | video-mux.c | 26 struct media_pad *pads; member 121 pad = media_pad_remote_pad_first(&sd->entity.pads[vmux->active]); in video_mux_s_stream() 181 struct media_pad *pad = &vmux->pads[sdformat->pad]; in video_mux_set_format() 450 vmux->pads = devm_kcalloc(dev, num_pads, sizeof(*vmux->pads), in video_mux_probe() 452 if (!vmux->pads) in video_mux_probe() 462 vmux->pads[i].flags = (i < num_pads - 1) ? MEDIA_PAD_FL_SINK in video_mux_probe() 469 vmux->pads); in video_mux_probe()
|
/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-csi.c | 39 .pads = csi->pad_cfg in rkisp1_csi_get_pad_fmt() 470 struct media_pad *pads; in rkisp1_csi_register() local 485 pads = csi->pads; in rkisp1_csi_register() 486 pads[RKISP1_CSI_PAD_SINK].flags = MEDIA_PAD_FL_SINK | in rkisp1_csi_register() 488 pads[RKISP1_CSI_PAD_SRC].flags = MEDIA_PAD_FL_SOURCE | in rkisp1_csi_register() 493 ret = media_entity_pads_init(&sd->entity, RKISP1_CSI_PAD_NUM, pads); in rkisp1_csi_register() 497 state.pads = csi->pad_cfg; in rkisp1_csi_register()
|
D | rkisp1-isp.c | 66 .pads = isp->pad_cfg in rkisp1_isp_get_pad_fmt() 81 .pads = isp->pad_cfg in rkisp1_isp_get_pad_crop() 866 sink_pad = &isp->pads[RKISP1_ISP_PAD_SINK_VIDEO]; in rkisp1_isp_s_stream() 947 .pads = rkisp1->isp.pad_cfg in rkisp1_isp_register() 950 struct media_pad *pads = isp->pads; in rkisp1_isp_register() local 963 pads[RKISP1_ISP_PAD_SINK_VIDEO].flags = MEDIA_PAD_FL_SINK | in rkisp1_isp_register() 965 pads[RKISP1_ISP_PAD_SINK_PARAMS].flags = MEDIA_PAD_FL_SINK; in rkisp1_isp_register() 966 pads[RKISP1_ISP_PAD_SOURCE_VIDEO].flags = MEDIA_PAD_FL_SOURCE; in rkisp1_isp_register() 967 pads[RKISP1_ISP_PAD_SOURCE_STATS].flags = MEDIA_PAD_FL_SOURCE; in rkisp1_isp_register() 973 ret = media_entity_pads_init(&sd->entity, RKISP1_ISP_PAD_MAX, pads); in rkisp1_isp_register()
|
D | rkisp1-resizer.c | 126 .pads = rsz->pad_cfg in rkisp1_rsz_get_pad_fmt() 140 .pads = rsz->pad_cfg in rkisp1_rsz_get_pad_crop() 368 .pads = &dummy_cfg in rkisp1_rsz_enum_mbus_code() 736 .pads = rsz->pad_cfg in rkisp1_rsz_register() 742 struct media_pad *pads = rsz->pads; in rkisp1_rsz_register() local 761 pads[RKISP1_RSZ_PAD_SINK].flags = MEDIA_PAD_FL_SINK | in rkisp1_rsz_register() 763 pads[RKISP1_RSZ_PAD_SRC].flags = MEDIA_PAD_FL_SOURCE | in rkisp1_rsz_register() 769 ret = media_entity_pads_init(&sd->entity, RKISP1_RSZ_PAD_MAX, pads); in rkisp1_rsz_register()
|
/drivers/pinctrl/ralink/ |
D | pinctrl-ralink.c | 32 struct pinctrl_pin_desc *pads; member 282 p->pads = devm_kcalloc(p->dev, p->max_pins, in ralink_pinctrl_pins() 284 if (!p->pads || !p->gpio) in ralink_pinctrl_pins() 307 p->pads[i].number = i; in ralink_pinctrl_pins() 308 p->pads[i].name = name; in ralink_pinctrl_pins() 310 p->desc->pins = p->pads; in ralink_pinctrl_pins()
|
/drivers/media/dvb-frontends/ |
D | au8522_decoder.c | 712 state->pads[AU8522_PAD_IF_INPUT].flags = MEDIA_PAD_FL_SINK; in au8522_probe() 713 state->pads[AU8522_PAD_IF_INPUT].sig_type = PAD_SIGNAL_ANALOG; in au8522_probe() 714 state->pads[AU8522_PAD_VID_OUT].flags = MEDIA_PAD_FL_SOURCE; in au8522_probe() 715 state->pads[AU8522_PAD_VID_OUT].sig_type = PAD_SIGNAL_DV; in au8522_probe() 716 state->pads[AU8522_PAD_AUDIO_OUT].flags = MEDIA_PAD_FL_SOURCE; in au8522_probe() 717 state->pads[AU8522_PAD_AUDIO_OUT].sig_type = PAD_SIGNAL_AUDIO; in au8522_probe() 720 ret = media_entity_pads_init(&sd->entity, ARRAY_SIZE(state->pads), in au8522_probe() 721 state->pads); in au8522_probe()
|
/drivers/pinctrl/actions/ |
D | pinctrl-owl.h | 21 .pads = group_name##_pads, \ 39 .pads = group_name##_pads, \ 55 .pads = group_name##_pads, \ 210 unsigned int *pads; member
|
/drivers/media/i2c/ |
D | ov6650.c | 479 rect = &sd_state->pads->try_crop; in ov6650_get_selection() 534 struct v4l2_rect *crop = &sd_state->pads->try_crop; in ov6650_set_selection() 535 struct v4l2_mbus_framefmt *mf = &sd_state->pads->try_fmt; in ov6650_set_selection() 591 mf->width = sd_state->pads->try_fmt.width; in ov6650_get_fmt() 592 mf->height = sd_state->pads->try_fmt.height; in ov6650_get_fmt() 593 mf->code = sd_state->pads->try_fmt.code; in ov6650_get_fmt() 720 crop = &sd_state->pads->try_crop; in ov6650_set_fmt() 728 sd_state->pads->try_fmt.width = crop->width >> half_scale; in ov6650_set_fmt() 729 sd_state->pads->try_fmt.height = crop->height >> half_scale; in ov6650_set_fmt() 730 sd_state->pads->try_fmt.code = mf->code; in ov6650_set_fmt() [all …]
|
/drivers/pinctrl/intel/ |
D | pinctrl-intel.c | 1468 struct intel_pad_context *pads; in intel_pinctrl_pm_init() local 1471 pads = devm_kcalloc(pctrl->dev, soc->npins, sizeof(*pads), GFP_KERNEL); in intel_pinctrl_pm_init() 1472 if (!pads) in intel_pinctrl_pm_init() 1500 pctrl->context.pads = pads; in intel_pinctrl_pm_init() 1728 struct intel_pad_context *pads; in intel_pinctrl_suspend_noirq() local 1731 pads = pctrl->context.pads; in intel_pinctrl_suspend_noirq() 1741 pads[i].padcfg0 = val & ~PADCFG0_GPIORXSTATE; in intel_pinctrl_suspend_noirq() 1743 pads[i].padcfg1 = val; in intel_pinctrl_suspend_noirq() 1747 pads[i].padcfg2 = readl(padcfg); in intel_pinctrl_suspend_noirq() 1838 const struct intel_pad_context *pads; in intel_pinctrl_resume_noirq() local [all …]
|
/drivers/media/i2c/adv748x/ |
D | adv748x-csi2.c | 124 src = adv748x_get_remote_sd(&tx->pads[ADV748X_CSI2_SINK]); in adv748x_csi2_s_stream() 309 tx->pads[ADV748X_CSI2_SINK].flags = MEDIA_PAD_FL_SINK; in adv748x_csi2_init() 310 tx->pads[ADV748X_CSI2_SOURCE].flags = MEDIA_PAD_FL_SOURCE; in adv748x_csi2_init() 313 tx->pads); in adv748x_csi2_init()
|
/drivers/media/usb/uvc/ |
D | uvc_entity.c | 36 if (!(entity->pads[i].flags & MEDIA_PAD_FL_SINK)) in uvc_mc_create_links() 117 entity->num_pads, entity->pads); in uvc_mc_init_entity() 126 entity->num_pads, entity->pads); in uvc_mc_init_entity()
|
/drivers/media/platform/samsung/exynos4-is/ |
D | common.c | 19 struct media_pad *pad = &entity->pads[0]; in fimc_find_remote_sensor() 34 pad = &sd->entity.pads[0]; in fimc_find_remote_sensor()
|
/drivers/media/platform/renesas/vsp1/ |
D | vsp1_entity.c | 637 entity->pads = devm_kcalloc(vsp1->dev, in vsp1_entity_init() 638 num_pads, sizeof(*entity->pads), in vsp1_entity_init() 640 if (entity->pads == NULL) in vsp1_entity_init() 644 entity->pads[i].flags = MEDIA_PAD_FL_SINK; in vsp1_entity_init() 652 entity->pads[num_pads - 1].flags = num_pads > 1 ? MEDIA_PAD_FL_SOURCE in vsp1_entity_init() 657 entity->pads); in vsp1_entity_init()
|
/drivers/staging/media/omap4iss/ |
D | iss_ipipe.c | 501 struct media_pad *pads = ipipe->pads; in ipipe_init_entities() local 514 pads[IPIPE_PAD_SINK].flags = MEDIA_PAD_FL_SINK; in ipipe_init_entities() 515 pads[IPIPE_PAD_SOURCE_VP].flags = MEDIA_PAD_FL_SOURCE; in ipipe_init_entities() 518 ret = media_entity_pads_init(me, IPIPE_PADS_NUM, pads); in ipipe_init_entities()
|
D | iss_ipipeif.c | 736 struct media_pad *pads = ipipeif->pads; in ipipeif_init_entities() local 749 pads[IPIPEIF_PAD_SINK].flags = MEDIA_PAD_FL_SINK; in ipipeif_init_entities() 750 pads[IPIPEIF_PAD_SOURCE_ISIF_SF].flags = MEDIA_PAD_FL_SOURCE; in ipipeif_init_entities() 751 pads[IPIPEIF_PAD_SOURCE_VP].flags = MEDIA_PAD_FL_SOURCE; in ipipeif_init_entities() 754 ret = media_entity_pads_init(me, IPIPEIF_PADS_NUM, pads); in ipipeif_init_entities()
|
/drivers/media/platform/qcom/camss/ |
D | camss-csid.c | 250 !media_pad_remote_pad_first(&csid->pads[MSM_CSID_PAD_SINK])) in csid_set_stream() 527 if (value && media_pad_remote_pad_first(&csid->pads[MSM_CSID_PAD_SINK])) in csid_set_test_pattern() 833 struct media_pad *pads = csid->pads; in msm_csid_register_entity() local 871 pads[MSM_CSID_PAD_SINK].flags = MEDIA_PAD_FL_SINK; in msm_csid_register_entity() 873 pads[i].flags = MEDIA_PAD_FL_SOURCE; in msm_csid_register_entity() 877 ret = media_entity_pads_init(&sd->entity, MSM_CSID_PADS_NUM, pads); in msm_csid_register_entity()
|
/drivers/staging/media/imx/ |
D | imx-media-internal-sd.c | 141 if (media_entity_find_link(&src->entity.pads[link->local_pad], in create_internal_link() 142 &sink->entity.pads[link->remote_pad])) in create_internal_link() 170 pad = &sd->entity.pads[i]; in create_ipu_internal_links()
|
/drivers/media/test-drivers/vimc/ |
D | vimc-scaler.c | 35 struct media_pad pads[2]; member 416 vscaler->pads[VIMC_SCALER_SINK].flags = MEDIA_PAD_FL_SINK; in vimc_scaler_add() 417 vscaler->pads[VIMC_SCALER_SRC].flags = MEDIA_PAD_FL_SOURCE; in vimc_scaler_add() 422 vscaler->pads, &vimc_scaler_ops); in vimc_scaler_add()
|