Lines Matching refs:phead

49 	phead = pcurrent = NULL;
57 if (!phead) return;
58 while(phead->next != phead) {
59 ptemp = phead;
60 phead = phead->next;
61 phead->prev = ptemp->prev;
62 ptemp->prev->next = phead;
65 delete phead;
66 phead = NULL;
71 if (!phead) {
77 pcurrent = phead->prev;
84 if(!phead) return false;
85 if (phead->next != phead) {
86 ptemp = phead;
87 phead = ptemp->next;
88 phead->prev = ptemp->prev;
89 ptemp->prev->next = phead;
99 if (!phead) {
100 ptemp = phead = new time_stamp_list;
101 if (!phead) {
106 phead->prev = phead->next = phead;
114 ptemp->prev = phead->prev;
115 ptemp->next = phead;
116 phead->prev->next = ptemp;
117 phead->prev = ptemp;
187 if (!phead || !phead->entries_filled) return false;
189 if (phead->input_timestamps[i].in_use && phead->input_timestamps[i].timestamps == ts) {
190 phead->input_timestamps[i].in_use = false;
191 phead->entries_filled--;
197 if (!phead->entries_filled) {
220 if(!phead || !phead->entries_filled) return false;
222 if (phead->input_timestamps[i].in_use) {
225 element = &phead->input_timestamps[i];
227 if (element->timestamps > phead->input_timestamps[i].timestamps){
228 element = &phead->input_timestamps[i];
230 } else if(element->timestamps == phead->input_timestamps[i].timestamps)
231 duplicate = &phead->input_timestamps[i];
236 phead->entries_filled--;
243 phead->entries_filled--;
249 if (phead->input_timestamps[i].in_use) {
251 duplicate = &phead->input_timestamps[i];
253 if (duplicate->timestamps > phead->input_timestamps[i].timestamps)
254 duplicate = &phead->input_timestamps[i];
259 phead->entries_filled--;
266 if (!phead->entries_filled) {