Lines Matching refs:periph
131 static cam_status targbhenlun(struct cam_periph *periph);
132 static cam_status targbhdislun(struct cam_periph *periph);
136 static void targbhdone(struct cam_periph *periph,
215 struct cam_periph *periph; in targbhasync() local
217 if ((periph = cam_periph_find(new_path, "targbh")) != NULL) in targbhasync()
218 cam_periph_invalidate(periph); in targbhasync()
229 targbhenlun(struct cam_periph *periph) in targbhenlun() argument
236 softc = (struct targbh_softc *)periph->softc; in targbhenlun()
242 xpt_setup_ccb(&immed_ccb.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhenlun()
252 xpt_print(periph->path, in targbhenlun()
282 xpt_setup_ccb(&atio->ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhenlun()
295 xpt_print(periph->path, in targbhenlun()
298 targbhdislun(periph); in targbhenlun()
317 xpt_setup_ccb(&inot->ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhenlun()
329 xpt_print(periph->path, in targbhenlun()
332 targbhdislun(periph); in targbhenlun()
340 targbhdislun(struct cam_periph *periph) in targbhdislun() argument
347 softc = (struct targbh_softc *)periph->softc; in targbhdislun()
360 xpt_setup_ccb(&ccb.cab.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhdislun()
368 xpt_setup_ccb(&ccb.cab.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhdislun()
377 xpt_setup_ccb(&ccb.cel.ccb_h, periph->path, CAM_PRIORITY_NORMAL); in targbhdislun()
391 targbhctor(struct cam_periph *periph, void *arg) in targbhctor() argument
409 periph->softc = softc; in targbhctor()
412 if (targbhenlun(periph) != CAM_REQ_CMP) in targbhctor()
413 cam_periph_invalidate(periph); in targbhctor()
418 targbhdtor(struct cam_periph *periph) in targbhdtor() argument
422 softc = (struct targbh_softc *)periph->softc; in targbhdtor()
426 targbhdislun(periph); in targbhdtor()
435 cam_periph_sleep(periph, softc, PRIBIO, "targbh", hz/2); in targbhdtor()
442 targbhstart(struct cam_periph *periph, union ccb *start_ccb) in targbhstart() argument
451 softc = (struct targbh_softc *)periph->softc; in targbhstart()
503 CAM_DEBUG(periph->path, CAM_DEBUG_SUBTRACE, in targbhstart()
512 cam_release_devq(periph->path, in targbhstart()
522 xpt_schedule(periph, CAM_PRIORITY_NORMAL); in targbhstart()
526 targbhdone(struct cam_periph *periph, union ccb *done_ccb) in targbhdone() argument
530 softc = (struct targbh_softc *)periph->softc; in targbhdone()
560 CAM_DEBUG(periph->path, CAM_DEBUG_SUBTRACE, in targbhdone()
641 xpt_schedule(periph, priority); in targbhdone()
649 CAM_DEBUG(periph->path, CAM_DEBUG_SUBTRACE, in targbhdone()
689 CAM_DEBUG(periph->path, CAM_DEBUG_SUBTRACE, in targbhdone()
716 cam_release_devq(periph->path, in targbhdone()