Lines Matching refs:pcon
331 PipeConnector* pcon;
333 ANEW0(pcon);
334 pcon->pipe = pipe;
336 return pcon;
342 PipeConnector* pcon = opaque;
343 AFREE(pcon);
349 PipeConnector* pcon = opaque;
354 pcon->pipe->channel,
368 avail = sizeof(pcon->buffer) - pcon->buffpos;
373 memcpy(pcon->buffer + pcon->buffpos, buffers[0].data, avail);
374 pcon->buffpos += avail;
381 if (memchr(pcon->buffer, '\0', pcon->buffpos) != NULL) {
390 D("%s: connector: '%s'", __FUNCTION__, pcon->buffer);
392 if (memcmp(pcon->buffer, "pipe:", 5) != 0) {
394 D("%s: Unknown pipe connection: '%s'", __FUNCTION__, pcon->buffer);
398 pipeName = pcon->buffer + 5;
407 Pipe* pipe = pcon->pipe;
425 AFREE(pcon);
452 PipeConnector* pcon = pipe;
453 qemu_put_sbe32(file, pcon->buffpos);
454 qemu_put_sbuffer(file, (const int8_t*)pcon->buffer, pcon->buffpos);
460 PipeConnector* pcon;
463 if (len < 0 || len > sizeof(pcon->buffer)) {
466 pcon = pipeConnector_new(hwpipe);
467 pcon->buffpos = len;
468 if (qemu_get_buffer(file, (uint8_t*)pcon->buffer, pcon->buffpos) != pcon->buffpos) {
469 AFREE(pcon);
472 return pcon;