Lines Matching refs:phead

49     phead = pcurrent = NULL;
58 if (!phead) return;
60 while (phead->next != phead) {
61 ptemp = phead;
62 phead = phead->next;
63 phead->prev = ptemp->prev;
64 ptemp->prev->next = phead;
68 delete phead;
69 phead = NULL;
74 if (!phead) {
81 pcurrent = phead->prev;
89 if (!phead) return false;
91 if (phead->next != phead) {
92 ptemp = phead;
93 phead = ptemp->next;
94 phead->prev = ptemp->prev;
95 ptemp->prev->next = phead;
107 if (!phead) {
108 ptemp = phead = new time_stamp_list;
110 if (!phead) {
116 phead->prev = phead->next = phead;
126 ptemp->prev = phead->prev;
127 ptemp->next = phead;
128 phead->prev->next = ptemp;
129 phead->prev = ptemp;
217 if (!phead || !phead->entries_filled) return false;
220 if (phead->input_timestamps[i].in_use && phead->input_timestamps[i].timestamps == ts) {
221 phead->input_timestamps[i].in_use = false;
222 phead->entries_filled--;
230 if (!phead->entries_filled) {
257 if (!phead || !phead->entries_filled) return false;
260 if (phead->input_timestamps[i].in_use) {
264 element = &phead->input_timestamps[i];
266 if (element->timestamps > phead->input_timestamps[i].timestamps) {
267 element = &phead->input_timestamps[i];
269 } else if (element->timestamps == phead->input_timestamps[i].timestamps)
270 duplicate = &phead->input_timestamps[i];
276 phead->entries_filled--;
286 phead->entries_filled--;
292 if (phead->input_timestamps[i].in_use) {
294 element = &phead->input_timestamps[i];
295 else if (element->timestamps > phead->input_timestamps[i].timestamps)
296 element = &phead->input_timestamps[i];
301 phead->entries_filled--;
307 if (!phead->entries_filled) {