Lines Matching refs:client_int
253 struct client_int { struct
259 ((struct client_int *)((char *)cptr - offsetof(struct client_int, client))) argument
295 struct client_int *client_int; in server_state_unlock() local
299 client_int = to_client_int(client); in server_state_unlock()
301 pthread_rwlock_unlock(&client_int->server_state_rwlock); in server_state_unlock()
317 struct client_int *client_int; in server_state_rdlock() local
322 client_int = to_client_int(client); in server_state_rdlock()
323 lock_rc = pthread_rwlock_rdlock(&client_int->server_state_rwlock); in server_state_rdlock()
327 pthread_rwlock_unlock(&client_int->server_state_rwlock); in server_state_rdlock()
343 struct client_int *client_int; in server_state_wrlock() local
347 client_int = to_client_int(client); in server_state_wrlock()
348 return pthread_rwlock_wrlock(&client_int->server_state_rwlock); in server_state_wrlock()
2121 struct client_int *client_int; in cras_client_create() local
2131 client_int = (struct client_int *)calloc(1, sizeof(*client_int)); in cras_client_create()
2132 if (!client_int) in cras_client_create()
2134 *client = &client_int->client; in cras_client_create()
2138 rc = pthread_rwlock_init(&client_int->server_state_rwlock, NULL); in cras_client_create()
2216 pthread_rwlock_destroy(&client_int->server_state_rwlock); in cras_client_create()
2219 free(client_int); in cras_client_create()
2225 struct client_int *client_int; in cras_client_destroy() local
2228 client_int = to_client_int(client); in cras_client_destroy()
2239 pthread_rwlock_destroy(&client_int->server_state_rwlock); in cras_client_destroy()
2241 free(client_int); in cras_client_destroy()