Lines Matching refs:worker_threads
409 static int worker_threads = -1; variable
410 SYSCTL_INT(_kern_cam_ctl, OID_AUTO, worker_threads, CTLFLAG_RDTUN,
411 &worker_threads, 1, "Number of worker threads");
2024 if (worker_threads <= 0) in ctl_init()
2025 worker_threads = max(1, mp_ncpus / 4); in ctl_init()
2026 if (worker_threads > CTL_MAX_THREADS) in ctl_init()
2027 worker_threads = CTL_MAX_THREADS; in ctl_init()
2029 for (i = 0; i < worker_threads; i++) { in ctl_init()
2078 for (i = 0; i < worker_threads; i++) { in ctl_shutdown()
13602 io->io_hdr.nexus.initid) % worker_threads;
13616 thr = &softc->threads[io->io_hdr.nexus.targ_mapped_lun % worker_threads];
13629 thr = &softc->threads[io->io_hdr.nexus.targ_mapped_lun % worker_threads];
13642 thr = &softc->threads[io->io_hdr.nexus.targ_mapped_lun % worker_threads];