Lines Matching refs:max_bdevsws
114 extern int max_bdevsws, max_cdevsws, max_devsw_convs;
502 for (bmajor = sys_bdevsws; bmajor < max_bdevsws; bmajor++) { in bdevsw_attach()
529 if (*devmajor >= max_bdevsws) { in bdevsw_attach()
535 memcpy(newbdevsw, bdevsw, max_bdevsws * sizeof(bdevsw[0])); in bdevsw_attach()
537 atomic_store_release(&max_bdevsws, MAXDEVSW); in bdevsw_attach()
650 for (bi = 0; bi < max_bdevsws; bi++) { in devsw_detach_locked()
656 KASSERT(bi < max_bdevsws); in devsw_detach_locked()
730 if (bmajor < 0 || bmajor >= atomic_load_relaxed(&max_bdevsws)) in bdevsw_lookup()
759 bmajor >= atomic_load_acquire(&max_bdevsws)) in bdevsw_lookup_acquire()
865 bmax = atomic_load_acquire(&max_bdevsws); in bdevsw_lookup_major()
914 if (bmajor < 0 || bmajor >= max_bdevsws || bdevsw[bmajor] == NULL) { in devsw_blk2name()
1010 if (bmajor < 0 || bmajor >= max_bdevsws || in devsw_name2blk()
1105 if (bmajor >= 0 && bmajor < max_bdevsws && bdevsw[bmajor] != NULL) in devsw_chr2blk()
1130 if (bmajor < 0 || bmajor >= max_bdevsws || bdevsw[bmajor] == NULL) { in devsw_blk2chr()