Home
last modified time | relevance | path

Searched refs:client_shm_fd (Results 1 – 8 of 8) sorted by relevance

/external/adhd/cras/src/server/
Dcras_rstream_config.c29 int *client_shm_fd, size_t client_shm_size, in cras_rstream_config_init() argument
45 stream_config->client_shm_fd = *client_shm_fd; in cras_rstream_config_init()
46 *client_shm_fd = -1; in cras_rstream_config_init()
55 int *aud_fd, int *client_shm_fd, in cras_rstream_config_init_with_message() argument
66 client_shm_fd, msg->client_shm_size, in cras_rstream_config_init_with_message()
75 if (stream_config->client_shm_fd >= 0) in cras_rstream_config_cleanup()
76 close(stream_config->client_shm_fd); in cras_rstream_config_cleanup()
Dcras_rclient_util.c93 static int rclient_validate_stream_connect_fds(int audio_fd, int client_shm_fd, in rclient_validate_stream_connect_fds() argument
103 if (client_shm_size > 0 && client_shm_fd < 0) { in rclient_validate_stream_connect_fds()
107 } else if (client_shm_size == 0 && client_shm_fd >= 0) { in rclient_validate_stream_connect_fds()
117 const struct cras_connect_message *msg, int audio_fd, int client_shm_fd) in rclient_validate_stream_connect_params() argument
125 rc = rclient_validate_stream_connect_fds(audio_fd, client_shm_fd, in rclient_validate_stream_connect_params()
135 int aud_fd, int client_shm_fd) in rclient_handle_client_stream_connect() argument
147 client_shm_fd); in rclient_handle_client_stream_connect()
153 if (client_shm_fd >= 0) in rclient_handle_client_stream_connect()
154 close(client_shm_fd); in rclient_handle_client_stream_connect()
164 client, msg, &aud_fd, &client_shm_fd, &remote_fmt); in rclient_handle_client_stream_connect()
[all …]
Dcras_rstream_config.h50 int client_shm_fd; member
71 int *client_shm_fd, size_t client_shm_size,
90 int *aud_fd, int *client_shm_fd,
Dcras_rclient_util.h58 int client_shm_fd);
73 int aud_fd, int client_shm_fd);
Dserver_stream.c40 int client_shm_fd = -1; in server_stream_create() local
57 server_stream_block_size, &audio_fd, &client_shm_fd, in server_stream_create()
Dcras_rstream.c25 return config && config->client_shm_fd >= 0 && in cras_rstream_config_is_client_shm_stream()
62 rc = cras_shm_info_init_with_fd(config->client_shm_fd, in setup_shm_area()
175 if ((config->client_shm_size > 0 && config->client_shm_fd < 0) || in verify_rstream_parameters()
176 (config->client_shm_size == 0 && config->client_shm_fd >= 0)) { in verify_rstream_parameters()
Dcras_control_rclient.c301 int client_shm_fd = num_fds > 1 ? fds[1] : -1; in ccr_handle_message_from_client() local
306 client_shm_fd); in ccr_handle_message_from_client()
/external/adhd/cras/src/tests/
Drstream_unittest.cc43 config_.client_shm_fd = -1; in SetUp()