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

/freebsd-current/sys/arm/annapurna/alpine/
H A Dalpine_machdep_mp.c92 static int ncores = 0; local
96 /* Calculate ncores value only once */
97 if (ncores)
98 return (ncores);
101 ncores = CPUV7_L2CTLR_NPROC(reg);
106 if ((nchilds > 0) && (nchilds < ncores)) {
108 nchilds, ncores);
109 ncores = nchilds;
112 return (ncores);
/freebsd-current/sys/dev/bhnd/siba/
H A Dsiba_erom.c55 struct bhnd_erom_io *eio, u_int ncores);
74 u_int ncores; /**< core count */ member in struct:siba_erom_io
146 * gcc hack: ensure bhnd_chipid.ncores cannot exceed SIBA_MAX_CORES
149 * if (cid.ncores > SIBA_MAX_CORES)
152 _Static_assert((2^sizeof(cid->ncores)) <= SIBA_MAX_CORES,
153 "ncores could result in over-read of backing resource");
170 cid->ncores * SIBA_CORE_SIZE);
173 cid->ncores, error);
178 return (siba_eio_init(&sc->io, eio, cid->ncores));
192 siba_eio_init(struct siba_erom_io *io, struct bhnd_erom_io *eio, u_int ncores) argument
[all...]
H A Dsiba.c1300 cores = malloc(sizeof(*cores) * cid->ncores, M_BHND, M_WAITOK);
1301 children = malloc(sizeof(*children) * cid->ncores, M_BHND,
1313 for (u_int i = 0; i < cid->ncores; i++) {
1350 for (u_int i = 0; i < cid->ncores; i++) {
1376 for (u_int i = 0; i < cid->ncores; i++) {
/freebsd-current/sys/dev/bhnd/bhndb/
H A Dbhndbvar.h64 struct bhnd_core_info *cores, u_int ncores,
82 struct bhnd_core_info *cores, u_int ncores,
H A Dbhndb_pci.c112 struct bhnd_core_info **cores, u_int *ncores);
170 u_int ncores; /**< number of cores */ member in struct:bhndb_pci_probe
360 u_int ncores; local
442 error = bhndb_pci_probe_copy_core_table(probe, &cores, &ncores);
452 error = bhndb_attach(dev, &cid, cores, ncores, &hostb_core, erom_class);
1353 error = bhnd_erom_get_core_table(p->erom, &p->cores, &p->ncores);
1363 error = bhndb_find_hostb_core(p->cores, p->ncores, hostb_devclass,
1420 * @param[out] ncores On success, the number of cores found in
1429 struct bhnd_core_info **cores, u_int *ncores)
1431 size_t len = sizeof(**cores) * probe->ncores;
1428 bhndb_pci_probe_copy_core_table(struct bhndb_pci_probe *probe, struct bhnd_core_info **cores, u_int *ncores) argument
[all...]
H A Dbhndb.c80 struct bhnd_core_info *cores, u_int ncores,
86 struct bhnd_core_info *cores, u_int ncores,
90 struct bhnd_core_info *cores, u_int ncores,
181 * @param ncores The number of cores in @p cores.
186 u_int ncores, const struct bhndb_hw *hw)
195 for (u_int d = 0; d < ncores; d++) {
223 * @param ncores The length of @p cores.
229 struct bhndb_resources *br, struct bhnd_core_info *cores, u_int ncores,
247 for (u_int i = 0; i < ncores; i++) {
338 for (u_int i = 0; i < ncores;
185 bhndb_hw_matches(struct bhndb_softc *sc, struct bhnd_core_info *cores, u_int ncores, const struct bhndb_hw *hw) argument
228 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
470 bhndb_find_hwspec(struct bhndb_softc *sc, struct bhnd_core_info *cores, u_int ncores, const struct bhndb_hw **hw) argument
509 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.c790 * @param ncores The number of cores in @p cores.
798 bhndb_find_hostb_core(struct bhnd_core_info *cores, u_int ncores, argument
815 for (u_int i = 0; i < ncores; i++) {
/freebsd-current/sys/powerpc/pseries/
H A Dplatform_chrp.c537 int i, ncores; local
539 ncores = 0;
546 ncores++;
550 mp_ncores = ncores;
551 if (mp_ncpus % ncores == 0)
552 smp_threads_per_core = mp_ncpus / ncores;
/freebsd-current/sys/powerpc/powernv/
H A Dplatform_powernv.c504 int cpuid, i, j, k, ncores; local
522 ncores = CPU_COUNT(&domcpus) / smp_threads_per_core;
527 core = cpu_group_init(dom, root, &domcpus, ncores, CG_SHARE_L3,
529 for (j = 0; j < ncores; j++, core++) {
/freebsd-current/sys/x86/x86/
H A Dmp_x86.c836 int ncores; local
858 ncores = 0;
866 ncores++;
871 root->cpu_count > 1 && ncores < 2)
/freebsd-current/contrib/llvm-project/openmp/runtime/src/
H A Dkmp_affinity.cpp776 int ncores = get_count(core_level);
798 KMP_INFORM(TopologyGeneric, env_var, buf.str, ncores);
807 int ncores = get_ncores_with_attr(attr);
808 if (ncores > 0) {
809 KMP_INFORM(TopologyHybrid, env_var, ncores,
963 int nthreads_per_core, int ncores) {
972 count[1] = ncores;
4810 int ncores = __kmp_affinity_compute_ncores(__kmp_avail_proc, depth - 1,
4815 int nproc = ncores * maxprocpercore;
5456 int ncores
[all...]
/freebsd-current/sys/dev/bhnd/
H A Dbhnd_erom.c268 * an invalid `ncores` value.
290 cid->ncores = CHIPC_GET_BITS(idreg, CHIPC_ID_NUMCORE);
H A Dbhnd.h222 uint8_t ncores; /**< number of cores, if known. 0 if member in struct:bhnd_chipid
/freebsd-current/sys/kern/
H A Dkern_sig.c3788 SYSCTL_PROC(_debug, OID_AUTO, ncores,
3859 * To do this we iterate over 0..ncores to find a
3865 int indexlen, int ncores, struct vnode **vpp)
3879 for (i = 0; i < ncores; i++) {
3968 int cmode, error, flags, i, indexpos, indexlen, oflags, ncores; local
3975 ncores = num_cores;
4002 sbuf_printf(&sb, "%u", ncores - 1);
4046 error = corefile_open_last(td, name, indexpos, indexlen, ncores,
3864 corefile_open_last(struct thread *td, char *name, int indexpos, int indexlen, int ncores, struct vnode **vpp) argument

Completed in 121 milliseconds