@@ -254,7 +254,7 @@ media_entity_other(struct media_entity *entity, struct media_link *link)
254254}
255255
256256/* push an entity to traversal stack */
257- static void stack_push (struct media_entity_graph * graph ,
257+ static void stack_push (struct media_graph * graph ,
258258 struct media_entity * entity )
259259{
260260 if (graph -> top == MEDIA_ENTITY_ENUM_MAX_DEPTH - 1 ) {
@@ -266,7 +266,7 @@ static void stack_push(struct media_entity_graph *graph,
266266 graph -> stack [graph -> top ].entity = entity ;
267267}
268268
269- static struct media_entity * stack_pop (struct media_entity_graph * graph )
269+ static struct media_entity * stack_pop (struct media_graph * graph )
270270{
271271 struct media_entity * entity ;
272272
@@ -285,35 +285,35 @@ static struct media_entity *stack_pop(struct media_entity_graph *graph)
285285#define MEDIA_ENTITY_MAX_PADS 512
286286
287287/**
288- * media_entity_graph_walk_init - Allocate resources for graph walk
288+ * media_graph_walk_init - Allocate resources for graph walk
289289 * @graph: Media graph structure that will be used to walk the graph
290290 * @mdev: Media device
291291 *
292292 * Reserve resources for graph walk in media device's current
293293 * state. The memory must be released using
294- * media_entity_graph_walk_free ().
294+ * media_graph_walk_free ().
295295 *
296296 * Returns error on failure, zero on success.
297297 */
298- __must_check int media_entity_graph_walk_init (
299- struct media_entity_graph * graph , struct media_device * mdev )
298+ __must_check int media_graph_walk_init (
299+ struct media_graph * graph , struct media_device * mdev )
300300{
301301 return media_entity_enum_init (& graph -> ent_enum , mdev );
302302}
303- EXPORT_SYMBOL_GPL (media_entity_graph_walk_init );
303+ EXPORT_SYMBOL_GPL (media_graph_walk_init );
304304
305305/**
306- * media_entity_graph_walk_cleanup - Release resources related to graph walking
306+ * media_graph_walk_cleanup - Release resources related to graph walking
307307 * @graph: Media graph structure that was used to walk the graph
308308 */
309- void media_entity_graph_walk_cleanup (struct media_entity_graph * graph )
309+ void media_graph_walk_cleanup (struct media_graph * graph )
310310{
311311 media_entity_enum_cleanup (& graph -> ent_enum );
312312}
313- EXPORT_SYMBOL_GPL (media_entity_graph_walk_cleanup );
313+ EXPORT_SYMBOL_GPL (media_graph_walk_cleanup );
314314
315- void media_entity_graph_walk_start (struct media_entity_graph * graph ,
316- struct media_entity * entity )
315+ void media_graph_walk_start (struct media_graph * graph ,
316+ struct media_entity * entity )
317317{
318318 media_entity_enum_zero (& graph -> ent_enum );
319319 media_entity_enum_set (& graph -> ent_enum , entity );
@@ -322,10 +322,9 @@ void media_entity_graph_walk_start(struct media_entity_graph *graph,
322322 graph -> stack [graph -> top ].entity = NULL ;
323323 stack_push (graph , entity );
324324}
325- EXPORT_SYMBOL_GPL (media_entity_graph_walk_start );
325+ EXPORT_SYMBOL_GPL (media_graph_walk_start );
326326
327- struct media_entity *
328- media_entity_graph_walk_next (struct media_entity_graph * graph )
327+ struct media_entity * media_graph_walk_next (struct media_graph * graph )
329328{
330329 if (stack_top (graph ) == NULL )
331330 return NULL ;
@@ -364,30 +363,30 @@ media_entity_graph_walk_next(struct media_entity_graph *graph)
364363
365364 return stack_pop (graph );
366365}
367- EXPORT_SYMBOL_GPL (media_entity_graph_walk_next );
366+ EXPORT_SYMBOL_GPL (media_graph_walk_next );
368367
369368/* -----------------------------------------------------------------------------
370369 * Pipeline management
371370 */
372371
373- __must_check int __media_entity_pipeline_start (struct media_entity * entity ,
374- struct media_pipeline * pipe )
372+ __must_check int __media_pipeline_start (struct media_entity * entity ,
373+ struct media_pipeline * pipe )
375374{
376375 struct media_device * mdev = entity -> graph_obj .mdev ;
377- struct media_entity_graph * graph = & pipe -> graph ;
376+ struct media_graph * graph = & pipe -> graph ;
378377 struct media_entity * entity_err = entity ;
379378 struct media_link * link ;
380379 int ret ;
381380
382381 if (!pipe -> streaming_count ++ ) {
383- ret = media_entity_graph_walk_init (& pipe -> graph , mdev );
382+ ret = media_graph_walk_init (& pipe -> graph , mdev );
384383 if (ret )
385384 goto error_graph_walk_start ;
386385 }
387386
388- media_entity_graph_walk_start (& pipe -> graph , entity );
387+ media_graph_walk_start (& pipe -> graph , entity );
389388
390- while ((entity = media_entity_graph_walk_next (graph ))) {
389+ while ((entity = media_graph_walk_next (graph ))) {
391390 DECLARE_BITMAP (active , MEDIA_ENTITY_MAX_PADS );
392391 DECLARE_BITMAP (has_no_links , MEDIA_ENTITY_MAX_PADS );
393392
@@ -466,9 +465,9 @@ __must_check int __media_entity_pipeline_start(struct media_entity *entity,
466465 * Link validation on graph failed. We revert what we did and
467466 * return the error.
468467 */
469- media_entity_graph_walk_start (graph , entity_err );
468+ media_graph_walk_start (graph , entity_err );
470469
471- while ((entity_err = media_entity_graph_walk_next (graph ))) {
470+ while ((entity_err = media_graph_walk_next (graph ))) {
472471 /* Sanity check for negative stream_count */
473472 if (!WARN_ON_ONCE (entity_err -> stream_count <= 0 )) {
474473 entity_err -> stream_count -- ;
@@ -486,35 +485,35 @@ __must_check int __media_entity_pipeline_start(struct media_entity *entity,
486485
487486error_graph_walk_start :
488487 if (!-- pipe -> streaming_count )
489- media_entity_graph_walk_cleanup (graph );
488+ media_graph_walk_cleanup (graph );
490489
491490 return ret ;
492491}
493- EXPORT_SYMBOL_GPL (__media_entity_pipeline_start );
492+ EXPORT_SYMBOL_GPL (__media_pipeline_start );
494493
495- __must_check int media_entity_pipeline_start (struct media_entity * entity ,
496- struct media_pipeline * pipe )
494+ __must_check int media_pipeline_start (struct media_entity * entity ,
495+ struct media_pipeline * pipe )
497496{
498497 struct media_device * mdev = entity -> graph_obj .mdev ;
499498 int ret ;
500499
501500 mutex_lock (& mdev -> graph_mutex );
502- ret = __media_entity_pipeline_start (entity , pipe );
501+ ret = __media_pipeline_start (entity , pipe );
503502 mutex_unlock (& mdev -> graph_mutex );
504503 return ret ;
505504}
506- EXPORT_SYMBOL_GPL (media_entity_pipeline_start );
505+ EXPORT_SYMBOL_GPL (media_pipeline_start );
507506
508- void __media_entity_pipeline_stop (struct media_entity * entity )
507+ void __media_pipeline_stop (struct media_entity * entity )
509508{
510- struct media_entity_graph * graph = & entity -> pipe -> graph ;
509+ struct media_graph * graph = & entity -> pipe -> graph ;
511510 struct media_pipeline * pipe = entity -> pipe ;
512511
513512
514513 WARN_ON (!pipe -> streaming_count );
515- media_entity_graph_walk_start (graph , entity );
514+ media_graph_walk_start (graph , entity );
516515
517- while ((entity = media_entity_graph_walk_next (graph ))) {
516+ while ((entity = media_graph_walk_next (graph ))) {
518517 /* Sanity check for negative stream_count */
519518 if (!WARN_ON_ONCE (entity -> stream_count <= 0 )) {
520519 entity -> stream_count -- ;
@@ -524,20 +523,20 @@ void __media_entity_pipeline_stop(struct media_entity *entity)
524523 }
525524
526525 if (!-- pipe -> streaming_count )
527- media_entity_graph_walk_cleanup (graph );
526+ media_graph_walk_cleanup (graph );
528527
529528}
530- EXPORT_SYMBOL_GPL (__media_entity_pipeline_stop );
529+ EXPORT_SYMBOL_GPL (__media_pipeline_stop );
531530
532- void media_entity_pipeline_stop (struct media_entity * entity )
531+ void media_pipeline_stop (struct media_entity * entity )
533532{
534533 struct media_device * mdev = entity -> graph_obj .mdev ;
535534
536535 mutex_lock (& mdev -> graph_mutex );
537- __media_entity_pipeline_stop (entity );
536+ __media_pipeline_stop (entity );
538537 mutex_unlock (& mdev -> graph_mutex );
539538}
540- EXPORT_SYMBOL_GPL (media_entity_pipeline_stop );
539+ EXPORT_SYMBOL_GPL (media_pipeline_stop );
541540
542541/* -----------------------------------------------------------------------------
543542 * Module use count
0 commit comments