Lines Matching defs:p_drv

66 static	u_int		camperiphnextunit(struct periph_driver *p_drv,
70 static u_int camperiphunit(struct periph_driver *p_drv,
202 struct periph_driver **p_drv;
265 for (p_drv = periph_drivers; *p_drv != NULL; p_drv++) {
266 if (strcmp((*p_drv)->driver_name, name) == 0)
269 if (*p_drv == NULL) {
276 periph->unit_number = camperiphunit(*p_drv, path_id, target_id, lun_id);
277 cur_periph = TAILQ_FIRST(&(*p_drv)->units);
285 TAILQ_INSERT_TAIL(&(*p_drv)->units, periph, unit_links);
286 (*p_drv)->generation++;
315 TAILQ_REMOVE(&(*p_drv)->units, periph, unit_links);
339 struct periph_driver **p_drv;
343 for (p_drv = periph_drivers; *p_drv != NULL; p_drv++) {
344 if (name != NULL && (strcmp((*p_drv)->driver_name, name) != 0))
347 TAILQ_FOREACH(periph, &(*p_drv)->units, unit_links) {
370 struct periph_driver **p_drv;
380 for (p_drv = periph_drivers; *p_drv != NULL; p_drv++) {
381 TAILQ_FOREACH(periph, &(*p_drv)->units, unit_links) {
539 camperiphnextunit(struct periph_driver *p_drv, u_int newunit, int wired,
547 periph_name = p_drv->driver_name;
549 for (periph = TAILQ_FIRST(&p_drv->units);
595 camperiphunit(struct periph_driver *p_drv, path_id_t pathid,
603 periph_name = p_drv->driver_name;
637 unit = camperiphnextunit(p_drv, unit, wired, pathid, target, lun);
674 struct periph_driver **p_drv;
680 for (p_drv = periph_drivers; *p_drv != NULL; p_drv++) {
681 if (strcmp((*p_drv)->driver_name, periph->periph_name) == 0)
684 if (*p_drv == NULL) {
692 * below, p_drv may change. This doesn't protect against this
696 drv = *p_drv;