Lines Matching refs:srv
611 MppClusterServer *srv = srv_cluster; in mpp_cluster_srv_init() local
616 if (srv) in mpp_cluster_srv_init()
619 srv = mpp_calloc(MppClusterServer, 1); in mpp_cluster_srv_init()
620 if (!srv) { in mpp_cluster_srv_init()
625 memset(srv->clusters, 0, sizeof(srv->clusters)); in mpp_cluster_srv_init()
626 mpp_mutex_init(&srv->mutex); in mpp_cluster_srv_init()
628 srv_cluster = srv; in mpp_cluster_srv_init()
633 MppClusterServer *srv = srv_cluster; in mpp_cluster_srv_deinit() local
636 if (!srv) in mpp_cluster_srv_deinit()
642 mpp_mutex_destroy(&srv->mutex); in mpp_cluster_srv_deinit()
650 MppClusterServer *srv = get_srv_cluster_f(); in MPP_SINGLETON() local
654 if (!srv || client_type >= VPU_CLIENT_BUTT) in MPP_SINGLETON()
658 mpp_mutex_lock(&srv->mutex); in MPP_SINGLETON()
660 p = srv->clusters[client_type]; in MPP_SINGLETON()
662 mpp_mutex_unlock(&srv->mutex); in MPP_SINGLETON()
686 srv->clusters[client_type] = p; in MPP_SINGLETON()
690 mpp_mutex_unlock(&srv->mutex); in MPP_SINGLETON()
704 MppClusterServer *srv = get_srv_cluster_f(); in cluster_server_put() local
708 if (!srv || client_type >= VPU_CLIENT_BUTT) in cluster_server_put()
711 mpp_mutex_lock(&srv->mutex); in cluster_server_put()
713 p = srv->clusters[client_type]; in cluster_server_put()
715 mpp_mutex_unlock(&srv->mutex); in cluster_server_put()
729 srv->clusters[client_type] = NULL; in cluster_server_put()
731 mpp_mutex_unlock(&srv->mutex); in cluster_server_put()