Searched refs:ncores (Results 1 - 14 of 14) sorted by relevance

/freebsd-12-stable/sys/mips/beri/
H A Dberi_mp.c71 int ncores, ncpus, nthreads; local
77 ncores = beri_get_ncores();
79 KASSERT(ncores <= 0x10000, ("%s: too many cores %d", __func__, ncores));
82 KASSERT(ncores < 0xffff || nthreads < 0xffff,
83 ("%s: cores x thread (%d x %d) would overflow", __func__, ncores,
85 ncpus = ncores * nthreads;
90 ncores, nthreads);
/freebsd-12-stable/sys/arm/annapurna/alpine/
H A Dalpine_machdep_mp.c94 static int ncores = 0; local
98 /* Calculate ncores value only once */
99 if (ncores)
100 return (ncores);
103 ncores = CPUV7_L2CTLR_NPROC(reg);
108 if ((nchilds > 0) && (nchilds < ncores)) {
110 nchilds, ncores);
111 ncores = nchilds;
114 return (ncores);
/freebsd-12-stable/sys/dev/bhnd/siba/
H A Dsiba_erom.c59 struct bhnd_erom_io *eio, u_int ncores);
78 u_int ncores; /**< core count */ member in struct:siba_erom_io
150 * gcc hack: ensure bhnd_chipid.ncores cannot exceed SIBA_MAX_CORES
153 * if (cid.ncores > SIBA_MAX_CORES)
156 _Static_assert((2^sizeof(cid->ncores)) <= SIBA_MAX_CORES,
157 "ncores could result in over-read of backing resource");
174 cid->ncores * SIBA_CORE_SIZE);
177 cid->ncores, error);
182 return (siba_eio_init(&sc->io, eio, cid->ncores));
196 siba_eio_init(struct siba_erom_io *io, struct bhnd_erom_io *eio, u_int ncores) argument
[all...]
H A Dsiba.c1306 cores = malloc(sizeof(*cores) * cid->ncores, M_BHND, M_WAITOK);
1307 children = malloc(sizeof(*children) * cid->ncores, M_BHND,
1319 for (u_int i = 0; i < cid->ncores; i++) {
1356 for (u_int i = 0; i < cid->ncores; i++) {
1382 for (u_int i = 0; i < cid->ncores; i++) {
/freebsd-12-stable/sys/dev/bhnd/bhndb/
H A Dbhndbvar.h65 struct bhnd_core_info *cores, u_int ncores,
83 struct bhnd_core_info *cores, u_int ncores,
H A Dbhndb_pci.c114 struct bhnd_core_info **cores, u_int *ncores);
172 u_int ncores; /**< number of cores */ member in struct:bhndb_pci_probe
363 u_int ncores; local
445 error = bhndb_pci_probe_copy_core_table(probe, &cores, &ncores);
455 error = bhndb_attach(dev, &cid, cores, ncores, &hostb_core, erom_class);
1356 error = bhnd_erom_get_core_table(p->erom, &p->cores, &p->ncores);
1366 error = bhndb_find_hostb_core(p->cores, p->ncores, hostb_devclass,
1423 * @param[out] ncores On success, the number of cores found in
1432 struct bhnd_core_info **cores, u_int *ncores)
1434 size_t len = sizeof(**cores) * probe->ncores;
1431 bhndb_pci_probe_copy_core_table(struct bhndb_pci_probe *probe, struct bhnd_core_info **cores, u_int *ncores) argument
[all...]
H A Dbhndb.c81 struct bhnd_core_info *cores, u_int ncores,
87 struct bhnd_core_info *cores, u_int ncores,
91 struct bhnd_core_info *cores, u_int ncores,
196 * @param ncores The number of cores in @p cores.
201 u_int ncores, const struct bhndb_hw *hw)
210 for (u_int d = 0; d < ncores; d++) {
238 * @param ncores The length of @p cores.
244 struct bhndb_resources *br, struct bhnd_core_info *cores, u_int ncores,
262 for (u_int i = 0; i < ncores; i++) {
353 for (u_int i = 0; i < ncores;
200 bhndb_hw_matches(struct bhndb_softc *sc, struct bhnd_core_info *cores, u_int ncores, const struct bhndb_hw *hw) argument
243 bhndb_init_region_cfg(struct bhndb_softc *sc, bhnd_erom_t *erom, struct bhndb_resources *br, struct bhnd_core_info *cores, u_int ncores, const struct bhndb_hw_priority *table) argument
485 bhndb_find_hwspec(struct bhndb_softc *sc, struct bhnd_core_info *cores, u_int ncores, const struct bhndb_hw **hw) argument
524 bhndb_attach(device_t dev, struct bhnd_chipid *cid, struct bhnd_core_info *cores, u_int ncores, struct bhnd_core_info *bridge_core, bhnd_erom_class_t *erom_class) argument
[all...]
H A Dbhndb_subr.c796 * @param ncores The number of cores in @p cores.
804 bhndb_find_hostb_core(struct bhnd_core_info *cores, u_int ncores, argument
821 for (u_int i = 0; i < ncores; i++) {
/freebsd-12-stable/sys/powerpc/pseries/
H A Dplatform_chrp.c508 int i, ncores; local
510 ncores = 0;
517 ncores++;
521 mp_ncores = ncores;
522 if (mp_ncpus % ncores == 0)
523 smp_threads_per_core = mp_ncpus / ncores;
/freebsd-12-stable/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_affinity.cpp3973 __kmp_ncores = nPackages * __kmp_hws_core.num; // correct ncores
4025 int ncores = 0; local
4038 ncores++;
4044 ncores++;
4046 return ncores;
4560 int ncores = __kmp_affinity_compute_ncores(address2os, __kmp_avail_proc, local
4565 int nproc = ncores * maxprocpercore;
5092 int ncores = __kmp_ncores; local
5095 ncores = nPackages;
5098 int chunk = nthreads / ncores;
5141 int ncores = __kmp_affinity_compute_ncores(address2os, __kmp_avail_proc, local
[all...]
/freebsd-12-stable/sys/x86/x86/
H A Dmp_x86.c765 int ncores; local
783 ncores = 0;
791 ncores++;
796 root->cpu_count > 1 && ncores < 2)
/freebsd-12-stable/sys/dev/bhnd/
H A Dbhnd_erom.c271 * an invalid `ncores` value.
293 cid->ncores = CHIPC_GET_BITS(idreg, CHIPC_ID_NUMCORE);
H A Dbhnd.h229 uint8_t ncores; /**< number of cores, if known. 0 if member in struct:bhnd_chipid
/freebsd-12-stable/sys/kern/
H A Dkern_sig.c3308 SYSCTL_PROC(_debug, OID_AUTO, ncores, CTLTYPE_INT|CTLFLAG_RW,
3377 * To do this we iterate over 0..ncores to find a
3383 int indexlen, int ncores, struct vnode **vpp)
3397 for (i = 0; i < ncores; i++) {
3486 int cmode, error, flags, i, indexpos, indexlen, oflags, ncores; local
3493 ncores = num_cores;
3520 sbuf_printf(&sb, "%u", ncores - 1);
3561 error = corefile_open_last(td, name, indexpos, indexlen, ncores,
3382 corefile_open_last(struct thread *td, char *name, int indexpos, int indexlen, int ncores, struct vnode **vpp) argument

Completed in 130 milliseconds