Home
last modified time | relevance | path

Searched refs:graph (Results 1 – 11 of 11) sorted by relevance

/drivers/media/mc/
Dmc-entity.c241 static void stack_push(struct media_graph *graph, in stack_push() argument
244 if (graph->top == MEDIA_ENTITY_ENUM_MAX_DEPTH - 1) { in stack_push()
248 graph->top++; in stack_push()
249 graph->stack[graph->top].link = entity->links.next; in stack_push()
250 graph->stack[graph->top].entity = entity; in stack_push()
253 static struct media_entity *stack_pop(struct media_graph *graph) in stack_pop() argument
257 entity = graph->stack[graph->top].entity; in stack_pop()
258 graph->top--; in stack_pop()
278 struct media_graph *graph, struct media_device *mdev) in media_graph_walk_init() argument
280 return media_entity_enum_init(&graph->ent_enum, mdev); in media_graph_walk_init()
[all …]
/drivers/media/v4l2-core/
Dv4l2-mc.c435 struct media_graph *graph) in pipeline_pm_use_count() argument
439 media_graph_walk_start(graph, entity); in pipeline_pm_use_count()
441 while ((entity = media_graph_walk_next(graph))) { in pipeline_pm_use_count()
494 struct media_graph *graph) in pipeline_pm_power() argument
502 media_graph_walk_start(graph, entity); in pipeline_pm_power()
504 while (!ret && (entity = media_graph_walk_next(graph))) in pipeline_pm_power()
511 media_graph_walk_start(graph, first); in pipeline_pm_power()
513 while ((first = media_graph_walk_next(graph)) in pipeline_pm_power()
559 struct media_graph *graph = &link->graph_obj.mdev->pm_count_walk; in v4l2_pipeline_link_notify() local
566 source_use = pipeline_pm_use_count(source, graph); in v4l2_pipeline_link_notify()
[all …]
/drivers/hwtracing/coresight/
Dcoresight-platform.c475 static inline bool acpi_validate_dsd_graph(const union acpi_object *graph) in acpi_validate_dsd_graph() argument
481 if (graph->package.count < 2) in acpi_validate_dsd_graph()
484 rev = &graph->package.elements[0]; in acpi_validate_dsd_graph()
485 nr_graphs = &graph->package.elements[1]; in acpi_validate_dsd_graph()
501 if (graph->package.count != (n + 2)) in acpi_validate_dsd_graph()
509 const union acpi_object *obj = &graph->package.elements[i]; in acpi_validate_dsd_graph()
586 const union acpi_object *graph_list, *graph; in acpi_get_coresight_graph() local
596 graph = &graph_list->package.elements[i]; in acpi_get_coresight_graph()
597 if (!is_acpi_coresight_graph(graph)) in acpi_get_coresight_graph()
599 if (acpi_validate_coresight_graph(graph)) in acpi_get_coresight_graph()
[all …]
/drivers/iio/adc/
Dsc27xx_adc.c125 struct sc27xx_adc_linear_graph *graph; in sc27xx_adc_scale_calibration() local
134 graph = &big_scale_graph; in sc27xx_adc_scale_calibration()
138 graph = &small_scale_graph; in sc27xx_adc_scale_calibration()
155 graph->adc0 = sc27xx_adc_get_calib_data(calib_data, calib_graph->adc0); in sc27xx_adc_scale_calibration()
156 graph->adc1 = sc27xx_adc_get_calib_data(calib_data >> 8, in sc27xx_adc_scale_calibration()
271 static int sc27xx_adc_to_volt(struct sc27xx_adc_linear_graph *graph, in sc27xx_adc_to_volt() argument
276 tmp = (graph->volt0 - graph->volt1) * (raw_adc - graph->adc1); in sc27xx_adc_to_volt()
277 tmp /= (graph->adc0 - graph->adc1); in sc27xx_adc_to_volt()
278 tmp += graph->volt1; in sc27xx_adc_to_volt()
Dqcom-pm8xxx-xoadc.c410 struct vadc_linear_graph graph[2]; member
590 adc->graph[VADC_CALIB_ABSOLUTE].dx = VADC_ABSOLUTE_RANGE_UV; in pm8xxx_calibrate_device()
591 adc->graph[VADC_CALIB_RATIOMETRIC].dx = VADC_RATIOMETRIC_RANGE; in pm8xxx_calibrate_device()
615 adc->graph[VADC_CALIB_ABSOLUTE].dy = read_1250v - read_0625v; in pm8xxx_calibrate_device()
616 adc->graph[VADC_CALIB_ABSOLUTE].gnd = read_0625v; in pm8xxx_calibrate_device()
619 VADC_ABSOLUTE_RANGE_UV, adc->graph[VADC_CALIB_ABSOLUTE].dy); in pm8xxx_calibrate_device()
637 adc->graph[VADC_CALIB_RATIOMETRIC].dy = in pm8xxx_calibrate_device()
639 adc->graph[VADC_CALIB_RATIOMETRIC].gnd = read_nomux_rsv4; in pm8xxx_calibrate_device()
643 adc->graph[VADC_CALIB_RATIOMETRIC].dy); in pm8xxx_calibrate_device()
670 &adc->graph[ch->calibration], in pm8xxx_read_raw()
Dqcom-spmi-vadc.c122 struct vadc_linear_graph graph[2]; member
358 vadc->graph[VADC_CALIB_RATIOMETRIC].dx = VADC_RATIOMETRIC_RANGE; in vadc_measure_ref_points()
359 vadc->graph[VADC_CALIB_ABSOLUTE].dx = VADC_ABSOLUTE_RANGE_UV; in vadc_measure_ref_points()
380 vadc->graph[VADC_CALIB_ABSOLUTE].dy = read_1 - read_2; in vadc_measure_ref_points()
381 vadc->graph[VADC_CALIB_ABSOLUTE].gnd = read_2; in vadc_measure_ref_points()
399 vadc->graph[VADC_CALIB_RATIOMETRIC].dy = read_1 - read_2; in vadc_measure_ref_points()
400 vadc->graph[VADC_CALIB_RATIOMETRIC].gnd = read_2; in vadc_measure_ref_points()
461 &vadc->graph[prop->calibration], in vadc_read_raw()
/drivers/staging/media/omap4iss/
Diss_video.c208 struct media_graph graph; in iss_video_far_end() local
215 if (media_graph_walk_init(&graph, mdev)) { in iss_video_far_end()
220 media_graph_walk_start(&graph, entity); in iss_video_far_end()
222 while ((entity = media_graph_walk_next(&graph))) { in iss_video_far_end()
238 media_graph_walk_cleanup(&graph); in iss_video_far_end()
855 struct media_graph graph; in iss_video_streamon() local
882 ret = media_graph_walk_init(&graph, entity->graph_obj.mdev); in iss_video_streamon()
893 media_graph_walk_start(&graph, entity); in iss_video_streamon()
894 while ((entity = media_graph_walk_next(&graph))) in iss_video_streamon()
969 media_graph_walk_cleanup(&graph); in iss_video_streamon()
[all …]
/drivers/media/platform/exynos4-is/
Dmedia-dev.c1162 struct media_graph *graph) in __fimc_md_modify_pipelines() argument
1173 media_graph_walk_start(graph, entity); in __fimc_md_modify_pipelines()
1175 while ((entity = media_graph_walk_next(graph))) { in __fimc_md_modify_pipelines()
1188 media_graph_walk_start(graph, entity_err); in __fimc_md_modify_pipelines()
1190 while ((entity_err = media_graph_walk_next(graph))) { in __fimc_md_modify_pipelines()
1206 struct media_graph *graph = in fimc_md_link_notify() local
1214 ret = media_graph_walk_init(graph, in fimc_md_link_notify()
1219 ret = __fimc_md_modify_pipelines(sink, false, graph); in fimc_md_link_notify()
1227 ret = __fimc_md_modify_pipelines(sink, true, graph); in fimc_md_link_notify()
1228 media_graph_walk_cleanup(graph); in fimc_md_link_notify()
/drivers/media/platform/xilinx/
Dxilinx-dma.c177 struct media_graph graph; in xvip_pipeline_validate() local
187 ret = media_graph_walk_init(&graph, mdev); in xvip_pipeline_validate()
193 media_graph_walk_start(&graph, entity); in xvip_pipeline_validate()
195 while ((entity = media_graph_walk_next(&graph))) { in xvip_pipeline_validate()
213 media_graph_walk_cleanup(&graph); in xvip_pipeline_validate()
/drivers/media/platform/vsp1/
Dvsp1_video.c561 struct media_graph graph; in vsp1_video_pipeline_build() local
568 ret = media_graph_walk_init(&graph, mdev); in vsp1_video_pipeline_build()
572 media_graph_walk_start(&graph, entity); in vsp1_video_pipeline_build()
574 while ((entity = media_graph_walk_next(&graph))) { in vsp1_video_pipeline_build()
622 media_graph_walk_cleanup(&graph); in vsp1_video_pipeline_build()
/drivers/media/platform/omap3isp/
Dispvideo.c224 struct media_graph graph; in isp_video_get_graph_data() local
231 ret = media_graph_walk_init(&graph, mdev); in isp_video_get_graph_data()
237 media_graph_walk_start(&graph, entity); in isp_video_get_graph_data()
239 while ((entity = media_graph_walk_next(&graph))) { in isp_video_get_graph_data()
260 media_graph_walk_cleanup(&graph); in isp_video_get_graph_data()