Lines Matching defs:path

74 	TARG_STATE_LUN_ENABLED	= 0x02  /* Device enabled for a path */
95 struct cam_path *path;
128 static cam_status targendislun(struct cam_path *path, int enable,
131 struct cam_path *path,
153 struct cam_path *path, void *arg);
214 softc->path = NULL;
239 struct cam_path *path;
242 status = xpt_create_path(&path, /*periph*/NULL,
247 printf("Couldn't create path, status %#x\n", status);
250 xpt_path_lock(path);
251 status = targenable(softc, path, new_lun->grp6_len,
253 xpt_path_unlock(path);
254 xpt_free_path(path);
280 xpt_setup_ccb(&cdbg.ccb_h, softc->path, CAM_PRIORITY_NORMAL);
360 targendislun(struct cam_path *path, int enable, int grp6_len, int grp7_len)
366 xpt_setup_ccb(&en_ccb.ccb_h, path, CAM_PRIORITY_NORMAL);
375 xpt_print(path, "%sable lun CCB rejected, status %#x\n",
381 /* Enable target mode on a LUN, given its path */
383 targenable(struct targ_softc *softc, struct cam_path *path, int grp6_len,
394 xpt_setup_ccb(&cpi.ccb_h, path, CAM_PRIORITY_NORMAL);
414 /* Destroy any periph on our path if it is disabled */
415 periph = cam_periph_find(path, "targ");
424 printf("Requested path still in use by targ%d\n",
431 /* Create a periph instance attached to this path */
433 "targ", CAM_PERIPH_BIO, path, targasync, 0, softc);
440 if (cam_periph_find(path, "targ") == NULL) {
446 status = targendislun(path, /*enable*/1, grp6_len, grp7_len);
466 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH, ("targdisable\n"));
472 status = targendislun(softc->path, /*enable*/0,
492 softc->path = periph->path;
520 softc->path = NULL;
536 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
543 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
562 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
573 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
584 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
625 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH, ("targstart %p\n", start_ccb));
639 xpt_print(periph->path,
669 xpt_setup_ccb(k_ccbh, softc->path, descr->priority);
693 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
752 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH, ("sendccb %p\n", ccb));
769 CAM_DEBUG(periph->path, CAM_DEBUG_PERIPH, ("targdone %p\n", done_ccb));
820 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH, ("targread\n"));
854 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
875 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
911 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH, ("targreturnccb %p\n", ccb));
926 xpt_print(softc->path,
943 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH, ("getccb %p\n", ccb));
947 xpt_setup_ccb(&ccb->ccb_h, softc->path, priority);
1011 targasync(void *callback_arg, u_int32_t code, struct cam_path *path, void *arg)
1025 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH, ("abort_all_pending\n"));
1029 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
1039 xpt_setup_ccb(&cab.ccb_h, softc->path, CAM_PRIORITY_NORMAL);
1043 CAM_DEBUG(softc->path, CAM_DEBUG_PERIPH,
1048 xpt_print(cab.ccb_h.path,