Lines Matching defs:srb
127 pa_srbchannel *srb, *srbpending;
247 if (!p->dead && p->srb) {
286 static bool srb_callback(pa_srbchannel *srb, void *userdata) {
292 pa_assert(p->srb == srb);
298 /* If either pstream or the srb is going away, return false.
300 b = (PA_REFCNT_VALUE(p) > 1) && (p->srb == srb);
737 if (p->srb)
738 pa_srbchannel_free(p->srb);
740 p->srb = p->srbpending;
743 if (p->srb)
744 pa_srbchannel_set_callback(p->srb, srb_callback, p);
802 if (p->srb)
803 r = pa_srbchannel_write(p->srb, d, l);
890 r = pa_srbchannel_read(p->srb, d, l);
1203 while (p->srb || p->is_srbpending) /* In theory there could be one active and one pending */
1278 void pa_pstream_set_srbchannel(pa_pstream *p, pa_srbchannel *srb) {
1280 pa_assert(PA_REFCNT_VALUE(p) > 0 || srb == NULL);
1282 if (srb == p->srb)
1288 p->srbpending = srb;