Lines Matching refs:ril_event
1 /* //device/libs/telephony/ril_event.cpp
25 #include <ril_event.h>
71 static struct ril_event * watch_table[MAX_FD_EVENTS];
72 static struct ril_event timer_list;
73 static struct ril_event pending_list;
79 static void dump_event(struct ril_event * ev)
108 static void init_list(struct ril_event * list)
110 memset(list, 0, sizeof(struct ril_event));
116 static void addToList(struct ril_event * ev, struct ril_event * list)
125 static void removeFromList(struct ril_event * ev)
137 static void removeWatch(struct ril_event * ev, int index)
148 struct ril_event * rev = watch_table[i];
164 struct ril_event * tev = timer_list.next;
165 struct ril_event * next;
189 struct ril_event * rev = watch_table[i];
206 struct ril_event * ev = pending_list.next;
208 struct ril_event * next = ev->next;
218 struct ril_event * tev = timer_list.next;
253 void ril_event_set(struct ril_event * ev, int fd, bool persist, ril_event_cb func, void * param)
256 memset(ev, 0, sizeof(struct ril_event));
266 void ril_event_add(struct ril_event * ev)
287 void ril_timer_add(struct ril_event * ev, struct timeval * tv)
292 struct ril_event * list;
316 void ril_event_del(struct ril_event * ev)
336 struct ril_event * rev = watch_table[i];
373 LOGE("ril_event: select error (%d)", errno);