Lines Matching refs:worker_threads
411 static int worker_threads = -1; variable
412 SYSCTL_INT(_kern_cam_ctl, OID_AUTO, worker_threads, CTLFLAG_RDTUN,
413 &worker_threads, 1, "Number of worker threads");
1951 if (worker_threads <= 0) in ctl_init()
1952 worker_threads = max(1, mp_ncpus / 4); in ctl_init()
1953 if (worker_threads > CTL_MAX_THREADS) in ctl_init()
1954 worker_threads = CTL_MAX_THREADS; in ctl_init()
1956 for (i = 0; i < worker_threads; i++) { in ctl_init()
2005 for (i = 0; i < worker_threads; i++) { in ctl_shutdown()
13528 io->io_hdr.nexus.initid) % worker_threads;
13542 thr = &softc->threads[io->io_hdr.nexus.targ_mapped_lun % worker_threads];
13555 thr = &softc->threads[io->io_hdr.nexus.targ_mapped_lun % worker_threads];
13568 thr = &softc->threads[io->io_hdr.nexus.targ_mapped_lun % worker_threads];