Lines Matching defs:periph

112 	struct cam_periph		*periph;
124 * read/write and a CAM periph helper function.
153 xpt_setup_ccb(&sc->ccb->ccb_h, sc->periph->path, CAM_PRIORITY_NONE);
201 cam_periph_lock(sc->periph);
203 cam_periph_unlock(sc->periph);
253 xpt_setup_ccb(&sc->ccb->ccb_h, sc->periph->path, CAM_PRIORITY_NONE);
435 cam_periph_lock(sc->periph);
437 cam_periph_unlock(sc->periph);
592 cam_periph_lock(sc->periph);
593 xpt_announce_periph(sc->periph, NULL);
594 cam_periph_unlock(sc->periph);
903 * CAM periph registration, allocation, and detached from that a discovery
920 pdev = xpt_path_sim_device(sc->periph->path);
922 ("%s: pdev is NULL, sc %p periph %p sim %p\n",
923 __func__, sc, sc->periph, sc->periph->sim));
961 struct cam_periph *periph;
966 periph = (struct cam_periph *)context;
967 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("%s\n", __func__));
970 if ((periph->flags & CAM_PERIPH_INVALID) != 0) {
971 cam_periph_release(periph);
975 sc = periph->softc;
982 xpt_setup_ccb(&sc->ccb->ccb_h, periph->path, CAM_PRIORITY_NONE);
988 cam_periph_lock(periph);
994 cam_periph_unlock(periph);
999 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("%s: num_func %d\n",
1016 sdiobregister(struct cam_periph *periph, void *arg)
1021 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("%s: arg %p\n", __func__, arg));
1024 __func__, periph);
1027 if (xpt_path_sim_device(periph->path) == NULL) {
1028 printf("%s: no device_t for sim %p\n", __func__, periph->sim);
1040 TASK_INIT(&sc->discover_task, 0, sdiobdiscover, periph);
1043 error = cam_periph_hold(periph, PRIBIO);
1045 printf("%s: lost periph during registration!\n", __func__);
1049 periph->softc = sc;
1050 sc->periph = periph;
1051 cam_periph_unlock(periph);
1055 cam_periph_lock(periph);
1057 /* cam_periph_unhold(periph); */
1059 xpt_schedule(periph, CAM_PRIORITY_XPT);
1065 sdioboninvalidate(struct cam_periph *periph)
1068 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("%s:\n", __func__));
1074 sdiobcleanup(struct cam_periph *periph)
1077 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("%s:\n", __func__));
1083 sdiobstart(struct cam_periph *periph, union ccb *ccb)
1086 CAM_DEBUG(periph->path, CAM_DEBUG_TRACE, ("%s: ccb %p\n", __func__, ccb));
1094 struct cam_periph *periph;
1098 periph = (struct cam_periph *)softc;
1132 cam_periph_async(periph, code, path, arg);