Lines Matching refs:magic
58 unsigned long magic; /* SL_ENTRY_MAGIC */ member
66 unsigned long magic; /* SL_LIST_MAGIC */ member
82 entry->magic = SL_ENTRY_MAGIC; in SLCreateEntry()
108 list->magic = SL_LIST_MAGIC; in drmSLCreate()
124 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLDestroy()
127 if (entry->magic != SL_ENTRY_MAGIC) return -1; /* Bad magic */ in drmSLDestroy()
129 entry->magic = SL_FREED_MAGIC; in drmSLDestroy()
133 list->magic = SL_FREED_MAGIC; in drmSLDestroy()
144 if (list->magic != SL_LIST_MAGIC) return NULL; in SLLocate()
163 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLInsert()
195 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLDelete()
207 entry->magic = SL_FREED_MAGIC; in drmSLDelete()
262 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLNext()
280 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLFirst()
293 if (list->magic != SL_LIST_MAGIC) { in drmSLDump()
295 list->magic, SL_LIST_MAGIC); in drmSLDump()
301 if (entry->magic != SL_ENTRY_MAGIC) { in drmSLDump()
303 list->magic, SL_ENTRY_MAGIC); in drmSLDump()