Lines Matching refs:magic
57 unsigned long magic; /* SL_ENTRY_MAGIC */ member
65 unsigned long magic; /* SL_LIST_MAGIC */ member
81 entry->magic = SL_ENTRY_MAGIC; in SLCreateEntry()
107 list->magic = SL_LIST_MAGIC; in drmSLCreate()
123 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLDestroy()
126 if (entry->magic != SL_ENTRY_MAGIC) return -1; /* Bad magic */ in drmSLDestroy()
128 entry->magic = SL_FREED_MAGIC; in drmSLDestroy()
132 list->magic = SL_FREED_MAGIC; in drmSLDestroy()
143 if (list->magic != SL_LIST_MAGIC) return NULL; in SLLocate()
162 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLInsert()
194 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLDelete()
206 entry->magic = SL_FREED_MAGIC; in drmSLDelete()
261 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLNext()
279 if (list->magic != SL_LIST_MAGIC) return -1; /* Bad magic */ in drmSLFirst()
292 if (list->magic != SL_LIST_MAGIC) { in drmSLDump()
294 list->magic, SL_LIST_MAGIC); in drmSLDump()
300 if (entry->magic != SL_ENTRY_MAGIC) { in drmSLDump()
302 list->magic, SL_ENTRY_MAGIC); in drmSLDump()