HomeSort by: relevance | last modified time | path
    Searched defs:spc (Results 1 - 25 of 44) sorted by relevancy

1 2

  /src/sys/kern/
kern_idle.c 48 struct schedstate_percpu *spc; local
54 spc = &ci->ci_schedstate;
55 KASSERT(lwp_locked(l, spc->spc_lwplock));
59 spc->spc_flags |= SPCF_RUNNING;
83 if ((spc->spc_flags & SPCF_OFFLINE) == 0) {
kern_clock.c 414 struct schedstate_percpu *spc = &ci->ci_schedstate; local
425 if (spc->spc_psdiv != psdiv) {
426 spc->spc_psdiv = psdiv;
427 spc->spc_pscnt = psdiv;
449 if (--spc->spc_pscnt > 0) {
460 spc->spc_cp_time[CP_NICE]++;
462 spc->spc_cp_time[CP_USER]++;
489 if (--spc->spc_pscnt > 0) {
510 spc->spc_cp_time[CP_INTR]++;
513 spc->spc_cp_time[CP_SYS]++
    [all...]
kern_sleepq.c 123 struct schedstate_percpu *spc; local
141 spc = &ci->ci_schedstate;
149 lwp_setlock(l, spc->spc_lwplock);
160 lwp_setlock(l, spc->spc_lwplock);
171 spc = &ci->ci_schedstate;
177 lwp_setlock(l, spc->spc_mutex);
183 /* LWP & SPC now unlocked, but we still hold sleep queue lock. */
sched_m2.c 281 struct schedstate_percpu *spc = &l->l_cpu->ci_schedstate; local
286 spc->spc_ticks = l->l_sched.timeslice;
299 struct schedstate_percpu *spc = &ci->ci_schedstate; local
307 KASSERT(l->l_mutex != spc->spc_mutex);
315 spc->spc_ticks = l->l_sched.timeslice;
340 if (lwp_eprio(l) <= spc->spc_maxpriority || l->l_target_cpu) {
341 spc->spc_flags |= SPCF_SHOULDYIELD;
344 /* spc now unlocked */
346 spc->spc_ticks = l->l_sched.timeslice;
subr_interrupt.c 68 struct schedstate_percpu *spc; local
73 spc = &ci->ci_schedstate;
77 spc->spc_flags &= ~SPCF_NOINTR;
79 spc->spc_flags |= SPCF_NOINTR;
90 struct schedstate_percpu *spc; local
98 spc = &ci->ci_schedstate;
100 if ((spc->spc_flags & SPCF_NOINTR) == 0)
103 if ((spc->spc_flags & SPCF_NOINTR) != 0)
116 spc->spc_lastmod = time_second;
sched_4bsd.c 104 struct schedstate_percpu *spc = &ci->ci_schedstate; local
108 spc->spc_ticks = sched_rrticks;
113 /* spc now unlocked */
124 KASSERT(l->l_mutex != spc->spc_mutex);
134 if (spc->spc_flags & SPCF_SHOULDYIELD) {
141 } else if (spc->spc_flags & SPCF_SEENRR) {
148 spc->spc_flags |= SPCF_SHOULDYIELD;
156 spc->spc_flags |= SPCF_SHOULDYIELD;
158 spc->spc_flags |= SPCF_SEENRR;
166 /* spc now unlocked *
    [all...]
kern_cpu.c 315 struct schedstate_percpu *spc, *mspc = NULL; local
325 spc = &ci->ci_schedstate;
327 spc->spc_flags |= SPCF_OFFLINE;
385 spc->spc_flags &= ~SPCF_OFFLINE;
392 struct schedstate_percpu *spc; local
397 spc = &ci->ci_schedstate;
399 spc->spc_flags &= ~SPCF_OFFLINE;
406 struct schedstate_percpu *spc; local
413 spc = &ci->ci_schedstate;
418 if ((spc->spc_flags & SPCF_OFFLINE) == 0
498 struct schedstate_percpu *spc; local
510 struct schedstate_percpu *spc; local
522 struct schedstate_percpu *spc; local
    [all...]
sys_pset.c 222 struct schedstate_percpu *spc; local
224 spc = &ci->ci_schedstate;
225 if (spc->spc_psid != psid)
227 spc->spc_psid = PS_NONE;
306 struct schedstate_percpu *spc = NULL; local
325 spc = ispc;
338 opsid = spc->spc_psid;
350 if (spc->spc_psid == psid)
356 if (psid != PS_NONE && ((spc->spc_flags & SPCF_OFFLINE) ||
357 (nnone == 1 && spc->spc_psid == PS_NONE)))
    [all...]
kern_runq.c 138 struct schedstate_percpu *spc; local
143 spc = &ci->ci_schedstate;
144 spc->spc_nextpkg = ci;
146 if (spc->spc_lwplock == NULL) {
147 spc->spc_lwplock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_SCHED);
151 lwp0.l_mutex = spc->spc_lwplock;
153 if (spc->spc_mutex != NULL) {
159 size = roundup2(sizeof(spc->spc_queue[0]) * PRI_COUNT, coherency_unit) +
162 spc->spc_queue = (void *)roundup2((uintptr_t)p, coherency_unit);
165 spc->spc_mutex = mutex_obj_alloc(MUTEX_DEFAULT, IPL_SCHED)
188 struct schedstate_percpu *spc; local
262 struct schedstate_percpu *spc; local
322 struct schedstate_percpu *spc; local
455 const struct schedstate_percpu *spc = &ci->ci_schedstate; local
476 struct schedstate_percpu *spc = &curcpu()->ci_schedstate; local
569 struct schedstate_percpu *spc; local
655 struct schedstate_percpu *spc, *curspc; local
717 struct schedstate_percpu *spc, *tspc; local
795 struct schedstate_percpu *spc, *tspc; local
819 struct schedstate_percpu *spc, *tspc; local
1076 struct schedstate_percpu *spc; local
1113 const struct schedstate_percpu *spc; local
1188 struct schedstate_percpu *spc; local
    [all...]
kern_synch.c 549 nextlwp(struct cpu_info *ci, struct schedstate_percpu *spc)
565 KASSERT(lwp_locked(newl, spc->spc_mutex));
570 spc->spc_curpriority = lwp_eprio(newl);
571 spc->spc_flags &= ~(SPCF_SWITCHCLEAR | SPCF_IDLE);
572 lwp_setlock(newl, spc->spc_lwplock);
580 spc->spc_curpriority = PRI_IDLE;
581 spc->spc_flags = (spc->spc_flags & ~SPCF_SWITCHCLEAR) |
611 struct schedstate_percpu *spc; local
631 spc = &ci->ci_schedstate
1057 struct schedstate_percpu *spc; local
1086 struct schedstate_percpu *spc; local
    [all...]
  /src/sys/dev/pcmcia/
spc_pcmcia.c 106 struct spc_softc *spc = &sc->sc_spc; local
112 spc->sc_dev = self;
122 spc->sc_iot = cfe->iospace[0].handle.iot;
123 spc->sc_ioh = cfe->iospace[0].handle.ioh;
129 spc->sc_initiator = 7; /* XXX */
130 spc->sc_adapter.adapt_enable = spc_pcmcia_enable;
131 spc->sc_adapter.adapt_refcnt = 1;
136 spc_attach(spc);
137 scsipi_adapter_delref(&spc->sc_adapter);
  /src/sys/arch/i386/stand/lib/
biosdisk_ll.c 213 int cyl, head, sec, nsec, spc, dblk32; local
216 spc = d->head * d->sec;
217 cyl = dblk32 / spc;
218 head = (dblk32 % spc) / d->sec;
  /src/sys/dev/pci/
sti_pci.c 98 struct sti_pci_softc *spc = device_private(self); local
102 spc->sc_dev = self;
104 spc->sc_pc = paa->pa_pc;
105 spc->sc_tag = paa->pa_tag;
106 spc->sc_base.sc_dev = self;
107 spc->sc_base.sc_enable_rom = sti_pci_enable_rom;
108 spc->sc_base.sc_disable_rom = sti_pci_disable_rom;
112 if (sti_check_rom(spc, paa) != 0)
116 ret = sti_pci_is_console(paa, spc->sc_base. bases);
118 spc->sc_base.sc_flags |= STI_CONSOLE
129 struct sti_pci_softc *spc = device_private(dev); local
396 struct sti_pci_softc *spc = device_private(sc->sc_dev); local
422 struct sti_pci_softc *spc = device_private(sc->sc_dev); local
    [all...]
  /src/distrib/utils/edlabel/
edlabel.c 181 int nsect, ntrack, ncyl, spc; local
183 nsect = ntrack = ncyl = spc = 0;
199 spc = nsect * ntrack;
200 if (!(ncyl = d->d_secperunit / spc))
205 d->d_secpercyl = spc;
  /src/lib/libcurses/
slk.c 733 size_t spc, len, width, x; local
737 spc = screen->slk_label_len;
756 if (width + w > spc)
766 if (len > spc)
767 len = spc;
776 x = (spc - width) / 2;
777 if (x + width > spc)
781 x = spc - width;
791 spc -= x;
796 spc -= width
    [all...]
  /src/sys/arch/aarch64/aarch64/
db_interface.c 563 const char *spc = spaces[level]; local
569 pr("%sL%d: pa=%lx pg=NULL\n", spc, level, pa);
571 pr("%sL%d: pa=%lx pg=%p\n", spc, level, pa, pg);
579 spc, level, i, n, va, pde);
  /src/sys/arch/sh3/include/
cpu.h 82 int spc; /* program counter at time of interrupt */ member in struct:clockframe
89 #define CLKF_PC(cf) ((cf)->spc)
  /src/usr.sbin/diskpart/
diskpart.c 124 int spc, def, part, layout, j, ch; local
176 spc = dp->d_secpercyl;
188 threshold = howmany(spc, badsecttable);
199 dp->d_ncylinders = howmany(totsize, spc);
200 badsecttable = spc * dp->d_ncylinders - totsize;
212 curcyl += howmany(defpart[def][part], spc);
231 numcyls[part] = howmany(defpart[def][part], spc);
239 defpart[def][PART('f')] = numcyls[PART('f')] * spc - badsecttable;
240 defpart[def][PART('g')] = numcyls[PART('g')] * spc - badsecttable;
241 defpart[def][PART('c')] = numcyls[PART('c')] * spc;
    [all...]
  /src/crypto/dist/ipsec-tools/src/racoon/
proposal.c 979 char spc[21]; local
981 memset(spc, ' ', sizeof(spc));
982 spc[sizeof(spc) - 1] = '\0';
984 spc[level] = '\0';
988 "%s%p: next=%p tnext=%p\n", spc, p, p->next, p->tnext);
  /src/external/gpl3/gdb.old/dist/sim/sh/
sh-sim.h 67 int spc; member in struct:__anon22708::__anon22709::__anon22712::__anon22713
  /src/external/gpl3/gdb/dist/sim/sh/
sh-sim.h 67 int spc; member in struct:__anon2097::__anon2098::__anon2101::__anon2102
  /src/external/bsd/elftoolchain/dist/libdwarf/
libdwarf_lineno.c 820 Dwarf_Unsigned address, file, line, spc; local
912 spc = (line0 - li->li_lbase) +
914 if (spc <= 255) {
915 RCHECK(WRITE_VALUE(spc, 1));
932 spc = (line0 - li->li_lbase) +
934 if (addr0 >= maddr && spc <= 255) {
936 RCHECK(WRITE_VALUE(spc, 1));
  /src/usr.bin/tftp/
tftp.c 638 const char *spc; local
701 spc = "";
705 (void)printf("%s%s=%s", spc, opt, cp);
706 spc = ", ";
  /src/sbin/newfs_msdos/
mkfs_msdos.c 120 u_int8_t spc; /* sectors per cluster */ member in struct:bsbpb
164 u_int spc; /* sectors per cluster */ member in struct:bpb
182 { .bps = a, .spc = b, .res = c, .nft = d, .rde = e, \
340 if (bpb.spc == 0) { /* set defaults */
344 bpb.spc = 1; /* use 512 bytes */
348 bpb.spc = 1; /* use 512 bytes */
352 bpb.spc = 8; /* use 4k */
357 while (bpb.spc < 128 && x < x1) {
359 bpb.spc *= 2;
424 bpb.spc = o.block_size / bpb.bps
    [all...]
  /src/sys/external/bsd/gnu-efi/dist/lib/
print.c 323 POOL_PRINT *spc; local
325 spc = Context;
332 if (spc->len + len > spc->maxlen) {
333 len = spc->maxlen - spc->len;
340 CopyMem (spc->str + spc->len, Buffer, len * sizeof(CHAR16));
341 spc->len += len;
347 if (spc->len < spc->maxlen)
365 POOL_PRINT *spc; local
456 POOL_PRINT spc; local
530 POOL_PRINT spc; local
    [all...]

Completed in 100 milliseconds

1 2