Lines Matching defs:ph
83 CharPipeHalf* ph = cs->opaque;
85 while (ph->bip_first) {
86 BipBuffer* bip = ph->bip_first;
87 ph->bip_first = bip->next;
90 ph->bip_last = NULL;
91 ph->peer = NULL;
98 CharPipeHalf* ph = cs->opaque;
99 CharPipeHalf* peer = ph->peer;
100 BipBuffer* bip = ph->bip_last;
104 len, ph, quote_bytes( buf, len ));
134 ph->bip_first = ph->bip_last = bip;
147 ph->bip_last = bip_buffer_alloc();
148 bip->next = ph->bip_last;
149 bip = ph->bip_last;
156 charpipehalf_poll( CharPipeHalf* ph )
158 CharPipeHalf* peer = ph->peer;
165 BipBuffer* bip = ph->bip_first;
174 ph->bip_first = bip->next;
175 if (ph->bip_first == NULL)
176 ph->bip_last = NULL;
181 if (ph->cs->chr_can_read) {
195 avail, ph, quote_bytes( base, avail ));
204 charpipehalf_init( CharPipeHalf* ph, CharPipeHalf* peer )
206 CharDriverState* cs = ph->cs;
208 ph->bip_first = NULL;
209 ph->bip_last = NULL;
210 ph->peer = peer;
216 cs->opaque = ph;