Searched refs:cfg_handler (Results 1 - 1 of 1) sorted by relevance

/linux-4.4.14/drivers/gpu/drm/msm/mdp/mdp5/
H A Dmdp5_cfg.c479 const struct mdp5_cfg_hw *mdp5_cfg_get_hw_config(struct mdp5_cfg_handler *cfg_handler) mdp5_cfg_get_hw_config() argument
481 return cfg_handler->config.hw; mdp5_cfg_get_hw_config()
484 struct mdp5_cfg *mdp5_cfg_get_config(struct mdp5_cfg_handler *cfg_handler) mdp5_cfg_get_config() argument
486 return &cfg_handler->config; mdp5_cfg_get_config()
489 int mdp5_cfg_get_hw_rev(struct mdp5_cfg_handler *cfg_handler) mdp5_cfg_get_hw_rev() argument
491 return cfg_handler->revision; mdp5_cfg_get_hw_rev()
494 void mdp5_cfg_destroy(struct mdp5_cfg_handler *cfg_handler) mdp5_cfg_destroy() argument
496 kfree(cfg_handler); mdp5_cfg_destroy()
504 struct mdp5_cfg_handler *cfg_handler; mdp5_cfg_init() local
508 cfg_handler = kzalloc(sizeof(*cfg_handler), GFP_KERNEL); mdp5_cfg_init()
509 if (unlikely(!cfg_handler)) { mdp5_cfg_init()
536 cfg_handler->revision = minor; mdp5_cfg_init()
537 cfg_handler->config.hw = mdp5_cfg; mdp5_cfg_init()
540 memcpy(&cfg_handler->config.platform, pconfig, sizeof(*pconfig)); mdp5_cfg_init()
544 return cfg_handler; mdp5_cfg_init()
547 if (cfg_handler) mdp5_cfg_init()
548 mdp5_cfg_destroy(cfg_handler); mdp5_cfg_init()

Completed in 548 milliseconds