Home
last modified time | relevance | path

Searched refs:cur_periph (Results 1 – 1 of 1) sorted by relevance

/freebsd/sys/cam/
H A Dcam_periph.c204 struct cam_periph *cur_periph; in cam_periph_alloc() local
277 cur_periph = TAILQ_FIRST(&(*p_drv)->units); in cam_periph_alloc()
278 while (cur_periph != NULL in cam_periph_alloc()
279 && cur_periph->unit_number < periph->unit_number) in cam_periph_alloc()
280 cur_periph = TAILQ_NEXT(cur_periph, unit_links); in cam_periph_alloc()
281 if (cur_periph != NULL) { in cam_periph_alloc()
282 KASSERT(cur_periph->unit_number != periph->unit_number, in cam_periph_alloc()
284 TAILQ_INSERT_BEFORE(cur_periph, periph, unit_links); in cam_periph_alloc()