Lines Matching refs:tpn
781 XvVideoNotifyPtr pn, tpn, fpn; in XvdiSelectVideoNotify() local
800 if (!(tpn = malloc(sizeof(XvVideoNotifyRec)))) in XvdiSelectVideoNotify()
802 tpn->next = NULL; in XvdiSelectVideoNotify()
803 tpn->client = NULL; in XvdiSelectVideoNotify()
804 if (!AddResource(pDraw->id, XvRTVideoNotifyList, tpn)) in XvdiSelectVideoNotify()
811 tpn = pn; in XvdiSelectVideoNotify()
812 while (tpn) { in XvdiSelectVideoNotify()
813 if (tpn->client == client) { in XvdiSelectVideoNotify()
815 tpn->client = NULL; in XvdiSelectVideoNotify()
818 if (!tpn->client) in XvdiSelectVideoNotify()
819 fpn = tpn; /* TAKE NOTE OF FREE ENTRY */ in XvdiSelectVideoNotify()
820 tpn = tpn->next; in XvdiSelectVideoNotify()
831 tpn = fpn; in XvdiSelectVideoNotify()
834 if (!(tpn = malloc(sizeof(XvVideoNotifyRec)))) in XvdiSelectVideoNotify()
836 tpn->next = pn->next; in XvdiSelectVideoNotify()
837 pn->next = tpn; in XvdiSelectVideoNotify()
844 tpn->client = NULL; in XvdiSelectVideoNotify()
845 tpn->id = FakeClientID(client->index); in XvdiSelectVideoNotify()
846 if (!AddResource(tpn->id, XvRTVideoNotify, tpn)) in XvdiSelectVideoNotify()
849 tpn->client = client; in XvdiSelectVideoNotify()
857 XvPortNotifyPtr pn, tpn; in XvdiSelectPortNotify() local
861 tpn = NULL; in XvdiSelectPortNotify()
865 tpn = pn; /* TAKE NOTE OF FREE ENTRY */ in XvdiSelectPortNotify()
887 if (!tpn) { in XvdiSelectPortNotify()
888 if (!(tpn = malloc(sizeof(XvPortNotifyRec)))) in XvdiSelectPortNotify()
890 tpn->next = pPort->pNotify; in XvdiSelectPortNotify()
891 pPort->pNotify = tpn; in XvdiSelectPortNotify()
894 tpn->client = client; in XvdiSelectPortNotify()
895 tpn->id = FakeClientID(client->index); in XvdiSelectPortNotify()
896 if (!AddResource(tpn->id, XvRTPortNotify, tpn)) in XvdiSelectPortNotify()