Lines Matching defs:length

142     int (*proc)(connection *c, esd_proto_t request, const void *data, size_t length);
146 static int sink_input_pop_cb(pa_sink_input *i, size_t length, pa_memchunk *chunk);
156 static int esd_proto_connect(connection *c, esd_proto_t request, const void *data, size_t length);
157 static int esd_proto_stream_play(connection *c, esd_proto_t request, const void *data, size_t length);
158 static int esd_proto_stream_record(connection *c, esd_proto_t request, const void *data, size_t length);
159 static int esd_proto_get_latency(connection *c, esd_proto_t request, const void *data, size_t length);
160 static int esd_proto_server_info(connection *c, esd_proto_t request, const void *data, size_t length);
161 static int esd_proto_all_info(connection *c, esd_proto_t request, const void *data, size_t length);
162 static int esd_proto_stream_pan(connection *c, esd_proto_t request, const void *data, size_t length);
163 static int esd_proto_sample_pan(connection *c, esd_proto_t request, const void *data, size_t length);
164 static int esd_proto_sample_cache(connection *c, esd_proto_t request, const void *data, size_t length);
165 static int esd_proto_sample_free_or_play(connection *c, esd_proto_t request, const void *data, size_t length);
166 static int esd_proto_sample_get_id(connection *c, esd_proto_t request, const void *data, size_t length);
167 static int esd_proto_standby_or_resume(connection *c, esd_proto_t request, const void *data, size_t length);
168 static int esd_proto_standby_mode(connection *c, esd_proto_t request, const void *data, size_t length);
279 static void connection_write_prepare(connection *c, size_t length) {
283 t = c->write_data_length+length;
291 static void connection_write(connection *c, const void *data, size_t length) {
297 connection_write_prepare(c, length);
302 c->write_data_length += length;
304 memcpy((uint8_t*) c->write_data + i, data, length);
335 static int esd_proto_connect(connection *c, esd_proto_t request, const void *data, size_t length) {
341 pa_assert(length == (ESD_KEY_LEN + sizeof(uint32_t)));
380 static int esd_proto_stream_play(connection *c, esd_proto_t request, const void *data, size_t length) {
391 pa_assert(length == (sizeof(int32_t)*2+ESD_NAME_MAX));
469 static int esd_proto_stream_record(connection *c, esd_proto_t request, const void *data, size_t length) {
479 pa_assert(length == (sizeof(int32_t)*2+ESD_NAME_MAX));
563 static int esd_proto_get_latency(connection *c, esd_proto_t request, const void *data, size_t length) {
569 pa_assert(length == 0);
584 static int esd_proto_server_info(connection *c, esd_proto_t request, const void *data, size_t length) {
591 pa_assert(length == sizeof(int32_t));
610 static int esd_proto_all_info(connection *c, esd_proto_t request, const void *data, size_t length) {
619 pa_assert(length == sizeof(int32_t));
621 if (esd_proto_server_info(c, request, data, length) < 0)
743 /*length*/
744 len = PA_MAYBE_INT32_SWAP(c->swap_byte_order, (int) ce->memchunk.length);
758 static int esd_proto_stream_pan(connection *c, esd_proto_t request, const void *data, size_t length) {
765 pa_assert(length == sizeof(int32_t)*3);
794 static int esd_proto_sample_pan(connection *c, esd_proto_t request, const void *data, size_t length) {
802 pa_assert(length == sizeof(int32_t)*3);
833 static int esd_proto_sample_cache(connection *c, esd_proto_t request, const void *data, size_t length) {
841 pa_assert(length == (ESD_NAME_MAX+3*sizeof(int32_t)));
870 c->scache.memchunk.length = (size_t) sc_length;
885 static int esd_proto_sample_get_id(connection *c, esd_proto_t request, const void *data, size_t length) {
892 pa_assert(length == ESD_NAME_MAX);
908 static int esd_proto_sample_free_or_play(connection *c, esd_proto_t request, const void *data, size_t length) {
915 pa_assert(length == sizeof(int32_t));
942 static int esd_proto_standby_or_resume(connection *c, esd_proto_t request, const void *data, size_t length) {
967 static int esd_proto_standby_mode(connection *c, esd_proto_t request, const void *data, size_t length) {
1093 pa_assert(c->scache.memchunk.index < c->scache.memchunk.length);
1096 r = pa_iochannel_read(c->io, (uint8_t*) p+c->scache.memchunk.index, c->scache.memchunk.length-c->scache.memchunk.index);
1108 pa_assert(c->scache.memchunk.index <= c->scache.memchunk.length);
1110 if (c->scache.memchunk.index == c->scache.memchunk.length) {
1177 chunk.length = (size_t) r;
1217 pa_assert(chunk.length);
1220 r = pa_iochannel_write(c->io, (uint8_t*) p+chunk.index, chunk.length);
1309 /* pa_log("got data %u", chunk->length); */
1369 static int sink_input_pop_cb(pa_sink_input *i, size_t length, pa_memchunk *chunk) {
1390 chunk->length = PA_MIN(length, chunk->length);
1391 pa_memblockq_drop(c->input_memblockq, chunk->length);