Lines Matching refs:erom
174 bhnd_erom_t *erom; in bhnd_erom_alloc() local
177 erom = (bhnd_erom_t *)kobj_create((kobj_class_t)cls, M_BHND, in bhnd_erom_alloc()
180 if ((error = BHND_EROM_INIT(erom, cid, eio))) { in bhnd_erom_alloc()
184 kobj_delete((kobj_t)erom, M_BHND); in bhnd_erom_alloc()
188 return (erom); in bhnd_erom_alloc()
213 bhnd_erom_init_static(bhnd_erom_class_t *cls, bhnd_erom_t *erom, size_t esize, in bhnd_erom_init_static() argument
225 kobj_init_static((kobj_t)erom, kcls); in bhnd_erom_init_static()
226 return (BHND_EROM_INIT(erom, cid, eio)); in bhnd_erom_init_static()
237 bhnd_erom_fini_static(bhnd_erom_t *erom) in bhnd_erom_fini_static() argument
239 return (BHND_EROM_FINI(erom)); in bhnd_erom_fini_static()
250 bhnd_erom_free(bhnd_erom_t *erom) in bhnd_erom_free() argument
252 BHND_EROM_FINI(erom); in bhnd_erom_free()
253 kobj_delete((kobj_t)erom, M_BHND); in bhnd_erom_free()