Lines Matching refs:osd_slots
237 memcpy(newptr, osd->osd_slots, in osd_set_reserved()
239 free(osd->osd_slots, M_OSD); in osd_set_reserved()
242 newptr = realloc(osd->osd_slots, sizeof(void *) * slot, in osd_set_reserved()
261 osd->osd_slots = newptr; in osd_set_reserved()
267 osd->osd_slots[slot - 1] = value; in osd_set_reserved()
291 value = atomic_load_ptr(&osd->osd_slots[slot - 1]); in osd_get_unlocked()
338 if (osd->osd_slots[slot - 1] != NULL) { in do_osd_del()
339 osdm[type].osd_destructors[slot - 1](osd->osd_slots[slot - 1]); in do_osd_del()
340 osd->osd_slots[slot - 1] = NULL; in do_osd_del()
343 if (osd->osd_slots[i] != NULL) { in do_osd_del()
357 free(osd->osd_slots, M_OSD); in do_osd_del()
358 osd->osd_slots = NULL; in do_osd_del()
362 osd->osd_slots = realloc(osd->osd_slots, in do_osd_del()
368 KASSERT(osd->osd_slots != NULL, ("realloc() failed")); in do_osd_del()
412 KASSERT(osd->osd_slots == NULL, ("Non-null osd_slots.")); in osd_exit()