/external/adhd/cras/src/server/ |
D | cras_rclient_util.c | 86 static int rclient_validate_stream_connect_fds(int audio_fd, int client_shm_fd, in rclient_validate_stream_connect_fds() argument 96 if (client_shm_size > 0 && client_shm_fd < 0) { in rclient_validate_stream_connect_fds() 100 } else if (client_shm_size == 0 && client_shm_fd >= 0) { in rclient_validate_stream_connect_fds() 110 const struct cras_connect_message *msg, int audio_fd, int client_shm_fd) in rclient_validate_stream_connect_params() argument 118 rc = rclient_validate_stream_connect_fds(audio_fd, client_shm_fd, in rclient_validate_stream_connect_params() 128 int aud_fd, int client_shm_fd) in rclient_handle_client_stream_connect() argument 139 client_shm_fd); in rclient_handle_client_stream_connect() 141 if (client_shm_fd >= 0) in rclient_handle_client_stream_connect() 142 close(client_shm_fd); in rclient_handle_client_stream_connect() 154 &client_shm_fd, &remote_fmt, in rclient_handle_client_stream_connect()
|
D | cras_rstream.c | 29 int *client_shm_fd, size_t client_shm_size, in cras_rstream_config_init() argument 44 stream_config->client_shm_fd = *client_shm_fd; in cras_rstream_config_init() 45 *client_shm_fd = -1; in cras_rstream_config_init() 52 int *aud_fd, int *client_shm_fd, in cras_rstream_config_init_with_message() argument 60 client_shm_fd, msg->client_shm_size, in cras_rstream_config_init_with_message() 68 if (stream_config->client_shm_fd >= 0) in cras_rstream_config_cleanup() 69 close(stream_config->client_shm_fd); in cras_rstream_config_cleanup() 75 static inline int setup_shm_area(struct cras_rstream *stream, int client_shm_fd, in setup_shm_area() argument 102 if (client_shm_fd >= 0 && client_shm_size > 0) { in setup_shm_area() 103 rc = cras_shm_info_init_with_fd(client_shm_fd, client_shm_size, in setup_shm_area() [all …]
|
D | cras_playback_rclient.c | 39 int client_shm_fd = num_fds > 1 ? fds[1] : -1; in cpr_handle_message_from_client() local 45 client_shm_fd); in cpr_handle_message_from_client() 48 client, &cmsg, fd, client_shm_fd); in cpr_handle_message_from_client()
|
D | cras_capture_rclient.c | 39 int client_shm_fd = num_fds > 1 ? fds[1] : -1; in ccr_handle_message_from_client() local 45 client_shm_fd); in ccr_handle_message_from_client() 48 client, &cmsg, fd, client_shm_fd); in ccr_handle_message_from_client()
|
D | cras_rclient_util.h | 58 int client_shm_fd); 73 int aud_fd, int client_shm_fd);
|
D | server_stream.c | 51 int client_shm_fd = -1; in server_stream_create() local 67 server_stream_block_size, &audio_fd, &client_shm_fd, in server_stream_create()
|
D | cras_rstream.h | 125 int client_shm_fd; member 145 int *client_shm_fd, size_t client_shm_size, 162 int *aud_fd, int *client_shm_fd,
|
D | cras_control_rclient.c | 293 int client_shm_fd = num_fds > 1 ? fds[1] : -1; in ccr_handle_message_from_client() local 299 client_shm_fd); in ccr_handle_message_from_client() 302 client, &cmsg, fd, client_shm_fd); in ccr_handle_message_from_client()
|
/external/adhd/cras/src/libcras/ |
D | cras_client.c | 136 int client_shm_fd; member 1466 if (stream->config->client_shm_fd >= 0) { in send_connect_message() 1467 fds[1] = stream->config->client_shm_fd; in send_connect_message() 1481 if (stream->config->client_shm_fd != -1) in send_connect_message() 1482 close(stream->config->client_shm_fd); in send_connect_message() 1490 if (stream->config->client_shm_fd != -1) in send_connect_message() 1491 close(stream->config->client_shm_fd); in send_connect_message() 2263 params->client_shm_fd = -1; in cras_client_stream_params_create() 2316 struct cras_stream_params *params, int client_shm_fd, in cras_client_stream_params_configure_client_shm() argument 2319 params->client_shm_fd = client_shm_fd; in cras_client_stream_params_configure_client_shm() [all …]
|
D | cras_client.h | 583 struct cras_stream_params *params, int client_shm_fd,
|
/external/adhd/cras/src/tests/ |
D | capture_rclient_unittest.cc | 323 int* client_shm_fd, in cras_rstream_config_init_with_message() argument
|
D | playback_rclient_unittest.cc | 323 int* client_shm_fd, in cras_rstream_config_init_with_message() argument
|
D | rstream_unittest.cc | 40 config_.client_shm_fd = -1; in SetUp()
|
D | control_rclient_unittest.cc | 1021 int* client_shm_fd, in cras_rstream_config_init_with_message() argument
|