Home
last modified time | relevance | path

Searched refs:spc (Results 1 – 25 of 142) sorted by relevance

123456

/netbsd-src/lib/librumpuser/
H A Drumpuser_sp.c148 waitresp(struct spclient *spc, struct respwait *rw) in waitresp() argument
153 pthread_mutex_lock(&spc->spc_mtx); in waitresp()
154 sendunlockl(spc); in waitresp()
155 while (!rw->rw_done && spc->spc_state != SPCSTATE_DYING) { in waitresp()
156 pthread_cond_wait(&rw->rw_cv, &spc->spc_mtx); in waitresp()
158 TAILQ_REMOVE(&spc->spc_respwait, rw, rw_entries); in waitresp()
159 spcstate = spc->spc_state; in waitresp()
160 pthread_mutex_unlock(&spc->spc_mtx); in waitresp()
195 lwproc_rfork(struct spclient *spc, int flags, const char *comm) in lwproc_rfork() argument
200 rv = rumpuser__hyp.hyp_lwproc_rfork(spc, flags, comm); in lwproc_rfork()
[all …]
H A Dsp_common.c254 spcresetbuf(struct spclient *spc) in spcresetbuf() argument
257 spc->spc_buf = NULL; in spcresetbuf()
258 spc->spc_off = 0; in spcresetbuf()
262 spcfreebuf(struct spclient *spc) in spcfreebuf() argument
265 free(spc->spc_buf); in spcfreebuf()
266 spcresetbuf(spc); in spcfreebuf()
270 sendlockl(struct spclient *spc) in sendlockl() argument
273 while (spc->spc_ostatus != SPCSTATUS_FREE) { in sendlockl()
274 spc->spc_ostatus = SPCSTATUS_WANTED; in sendlockl()
275 pthread_cond_wait(&spc->spc_cv, &spc->spc_mtx); in sendlockl()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/
H A Dgimple-pretty-print.cc73 newline_and_indent (pretty_printer *buffer, int spc) in newline_and_indent() argument
76 INDENT (spc); in newline_and_indent()
153 print_gimple_stmt (FILE *file, gimple *g, int spc, dump_flags_t flags) in print_gimple_stmt() argument
158 pp_gimple_stmt_1 (&buffer, g, spc, flags); in print_gimple_stmt()
183 print_gimple_expr (FILE *file, gimple *g, int spc, dump_flags_t flags) in print_gimple_expr() argument
189 pp_gimple_stmt_1 (&buffer, g, spc, flags); in print_gimple_expr()
200 dump_gimple_seq (pretty_printer *buffer, gimple_seq seq, int spc, in dump_gimple_seq() argument
208 INDENT (spc); in dump_gimple_seq()
209 pp_gimple_stmt_1 (buffer, gs, spc, flags); in dump_gimple_seq()
220 print_gimple_seq (FILE *file, gimple_seq seq, int spc, dump_flags_t flags) in print_gimple_seq() argument
[all …]
H A Dtree-pretty-print.cc61 #define NIY do_niy (pp, node, spc, flags)
68 do_niy (pretty_printer *pp, const_tree node, int spc, dump_flags_t flags) in do_niy() argument
80 newline_and_indent (pp, spc+2); in do_niy()
81 dump_generic_node (pp, TREE_OPERAND (node, i), spc+2, flags, false); in do_niy()
366 int spc, dump_flags_t flags) in dump_function_declaration() argument
384 dump_generic_node (pp, TREE_VALUE (arg), spc, flags, false); in dump_function_declaration()
402 dump_array_domain (pretty_printer *pp, tree domain, int spc, dump_flags_t flags) in dump_array_domain() argument
417 dump_generic_node (pp, min, spc, flags, false); in dump_array_domain()
420 dump_generic_node (pp, max, spc, flags, false); in dump_array_domain()
432 dump_omp_iterators (pretty_printer *pp, tree iter, int spc, dump_flags_t flags) in dump_omp_iterators() argument
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/
H A Dgimple-pretty-print.c72 newline_and_indent (pretty_printer *buffer, int spc) in newline_and_indent() argument
75 INDENT (spc); in newline_and_indent()
152 print_gimple_stmt (FILE *file, gimple *g, int spc, dump_flags_t flags) in print_gimple_stmt() argument
157 pp_gimple_stmt_1 (&buffer, g, spc, flags); in print_gimple_stmt()
182 print_gimple_expr (FILE *file, gimple *g, int spc, dump_flags_t flags) in print_gimple_expr() argument
188 pp_gimple_stmt_1 (&buffer, g, spc, flags); in print_gimple_expr()
199 dump_gimple_seq (pretty_printer *buffer, gimple_seq seq, int spc, in dump_gimple_seq() argument
207 INDENT (spc); in dump_gimple_seq()
208 pp_gimple_stmt_1 (buffer, gs, spc, flags); in dump_gimple_seq()
219 print_gimple_seq (FILE *file, gimple_seq seq, int spc, dump_flags_t flags) in print_gimple_seq() argument
[all …]
H A Dtree-pretty-print.c339 int spc, dump_flags_t flags) in dump_function_declaration() argument
357 dump_generic_node (pp, TREE_VALUE (arg), spc, flags, false); in dump_function_declaration()
375 dump_array_domain (pretty_printer *pp, tree domain, int spc, dump_flags_t flags) in dump_array_domain() argument
390 dump_generic_node (pp, min, spc, flags, false); in dump_array_domain()
393 dump_generic_node (pp, max, spc, flags, false); in dump_array_domain()
405 dump_omp_iterators (pretty_printer *pp, tree iter, int spc, dump_flags_t flags) in dump_omp_iterators() argument
412 dump_generic_node (pp, TREE_TYPE (TREE_VEC_ELT (it, 0)), spc, flags, in dump_omp_iterators()
415 dump_generic_node (pp, TREE_VEC_ELT (it, 0), spc, flags, false); in dump_omp_iterators()
417 dump_generic_node (pp, TREE_VEC_ELT (it, 1), spc, flags, false); in dump_omp_iterators()
419 dump_generic_node (pp, TREE_VEC_ELT (it, 2), spc, flags, false); in dump_omp_iterators()
[all …]
/netbsd-src/sys/kern/
H A Dkern_runq.c138 struct schedstate_percpu *spc; in sched_cpuattach() local
143 spc = &ci->ci_schedstate; in sched_cpuattach()
144 spc->spc_nextpkg = ci; in sched_cpuattach()
146 if (spc->spc_lwplock == NULL) { in sched_cpuattach()
147 spc->spc_lwplock = mutex_obj_alloc(MUTEX_DEFAULT, IPL_SCHED); in sched_cpuattach()
151 lwp0.l_mutex = spc->spc_lwplock; in sched_cpuattach()
153 if (spc->spc_mutex != NULL) { in sched_cpuattach()
159 size = roundup2(sizeof(spc->spc_queue[0]) * PRI_COUNT, coherency_unit) + in sched_cpuattach()
162 spc->spc_queue = (void *)roundup2((uintptr_t)p, coherency_unit); in sched_cpuattach()
165 spc in sched_cpuattach()
174 sched_getrq(struct schedstate_percpu * spc,const pri_t prio) sched_getrq() argument
188 struct schedstate_percpu *spc; sched_enqueue() local
262 struct schedstate_percpu *spc; sched_dequeue() local
322 struct schedstate_percpu *spc; sched_resched_cpu() local
455 const struct schedstate_percpu *spc = &ci->ci_schedstate; sched_migratable() local
476 struct schedstate_percpu *spc = &curcpu()->ci_schedstate; sched_nextpkg() local
571 struct schedstate_percpu *spc, *tspc; sched_takecpu() local
661 struct schedstate_percpu *spc, *curspc; sched_catchlwp() local
724 struct schedstate_percpu *spc, *tspc; sched_idle_migrate() local
802 struct schedstate_percpu *spc, *tspc; sched_steal() local
826 struct schedstate_percpu *spc, *tspc; sched_idle() local
1087 struct schedstate_percpu *spc; sched_nextlwp() local
1124 const struct schedstate_percpu *spc; sched_curcpu_runnable_p() local
1199 struct schedstate_percpu *spc; sched_print_runqueue() local
[all...]
H A Dkern_cpu.c312 struct schedstate_percpu *spc, *mspc = NULL; in cpu_xc_offline() local
322 spc = &ci->ci_schedstate; in cpu_xc_offline()
324 spc->spc_flags |= SPCF_OFFLINE; in cpu_xc_offline()
382 spc->spc_flags &= ~SPCF_OFFLINE; in cpu_xc_offline()
389 struct schedstate_percpu *spc; in cpu_xc_online() local
394 spc = &ci->ci_schedstate; in cpu_xc_online()
396 spc->spc_flags &= ~SPCF_OFFLINE; in cpu_xc_online()
403 struct schedstate_percpu *spc; in cpu_setstate() local
410 spc = &ci->ci_schedstate; in cpu_setstate()
415 if ((spc in cpu_setstate()
459 struct schedstate_percpu *spc; cpu_xc_intr() local
471 struct schedstate_percpu *spc; cpu_xc_nointr() local
483 struct schedstate_percpu *spc; cpu_setintr() local
[all...]
H A Dkern_clock.c414 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 …]
H A Dkern_synch.c549 nextlwp(struct cpu_info *ci, struct schedstate_percpu *spc) in nextlwp() argument
565 KASSERT(lwp_locked(newl, spc->spc_mutex)); in nextlwp()
570 spc->spc_curpriority = lwp_eprio(newl); in nextlwp()
571 spc->spc_flags &= ~(SPCF_SWITCHCLEAR | SPCF_IDLE); in nextlwp()
572 lwp_setlock(newl, spc->spc_lwplock); in nextlwp()
580 spc->spc_curpriority = PRI_IDLE; in nextlwp()
581 spc->spc_flags = (spc->spc_flags & ~SPCF_SWITCHCLEAR) | in nextlwp()
611 struct schedstate_percpu *spc; in mi_switch() local
631 spc = &ci->ci_schedstate; in mi_switch()
665 KASSERT(lwp_locked(l, spc->spc_lwplock)); in mi_switch()
[all …]
H A Dsched_4bsd.c104 struct schedstate_percpu *spc = &ci->ci_schedstate; in sched_tick() local
108 spc->spc_ticks = sched_rrticks; in sched_tick()
113 /* spc now unlocked */ in sched_tick()
124 KASSERT(l->l_mutex != spc->spc_mutex); in sched_tick()
134 if (spc->spc_flags & SPCF_SHOULDYIELD) { in sched_tick()
141 } else if (spc->spc_flags & SPCF_SEENRR) { in sched_tick()
148 spc->spc_flags |= SPCF_SHOULDYIELD; in sched_tick()
156 spc->spc_flags |= SPCF_SHOULDYIELD; in sched_tick()
158 spc->spc_flags |= SPCF_SEENRR; in sched_tick()
166 /* spc no in sched_tick()
[all...]
H A Dkern_idle.c48 struct schedstate_percpu *spc; in idle_loop() local
54 spc = &ci->ci_schedstate; in idle_loop()
55 KASSERT(lwp_locked(l, spc->spc_lwplock)); in idle_loop()
59 spc->spc_flags |= SPCF_RUNNING; in idle_loop()
83 if ((spc->spc_flags & SPCF_OFFLINE) == 0) { in idle_loop()
H A Dsys_pset.c222 struct schedstate_percpu *spc; in kern_pset_destroy() local
224 spc = &ci->ci_schedstate; in kern_pset_destroy()
225 if (spc->spc_psid != psid) in kern_pset_destroy()
227 spc->spc_psid = PS_NONE; in kern_pset_destroy()
306 struct schedstate_percpu *spc = NULL; in sys_pset_assign() local
325 spc = ispc; in sys_pset_assign()
338 opsid = spc->spc_psid; in sys_pset_assign()
350 if (spc->spc_psid == psid) in sys_pset_assign()
356 if (psid != PS_NONE && ((spc->spc_flags & SPCF_OFFLINE) || in sys_pset_assign()
357 (nnone == 1 && spc->spc_psid == PS_NONE))) { in sys_pset_assign()
[all …]
H A Dsubr_interrupt.c66 struct schedstate_percpu *spc; in interrupt_shield_xcall() local
71 spc = &ci->ci_schedstate; in interrupt_shield_xcall()
75 spc->spc_flags &= ~SPCF_NOINTR; in interrupt_shield_xcall()
77 spc->spc_flags |= SPCF_NOINTR; in interrupt_shield_xcall()
88 struct schedstate_percpu *spc; in interrupt_shield() local
96 spc = &ci->ci_schedstate; in interrupt_shield()
98 if ((spc->spc_flags & SPCF_NOINTR) == 0) in interrupt_shield()
101 if ((spc->spc_flags & SPCF_NOINTR) != 0) in interrupt_shield()
114 spc->spc_lastmod = time_second; in interrupt_shield()
H A Dsched_m2.c280 struct schedstate_percpu *spc = &l->l_cpu->ci_schedstate; in sched_oncpu() local
285 spc->spc_ticks = l->l_sched.timeslice; in sched_oncpu()
298 struct schedstate_percpu *spc = &ci->ci_schedstate; in sched_tick() local
306 KASSERT(l->l_mutex != spc->spc_mutex); in sched_tick()
314 spc->spc_ticks = l->l_sched.timeslice; in sched_tick()
339 if (lwp_eprio(l) <= spc->spc_maxpriority || l->l_target_cpu) { in sched_tick()
340 spc->spc_flags |= SPCF_SHOULDYIELD; in sched_tick()
345 spc->spc_ticks = l->l_sched.timeslice; in sched_tick()
/netbsd-src/sys/dev/pci/
H A Dsti_pci.c98 struct sti_pci_softc *spc = device_private(self); in sti_pci_attach() local
102 spc->sc_dev = self; in sti_pci_attach()
104 spc->sc_pc = paa->pa_pc; in sti_pci_attach()
105 spc->sc_tag = paa->pa_tag; in sti_pci_attach()
106 spc->sc_base.sc_dev = self; in sti_pci_attach()
107 spc->sc_base.sc_enable_rom = sti_pci_enable_rom; in sti_pci_attach()
108 spc->sc_base.sc_disable_rom = sti_pci_disable_rom; in sti_pci_attach()
112 if (sti_check_rom(spc, paa) != 0) in sti_pci_attach()
116 ret = sti_pci_is_console(paa, spc->sc_base. bases); in sti_pci_attach()
118 spc->sc_base.sc_flags |= STI_CONSOLE; in sti_pci_attach()
[all …]
/netbsd-src/lib/librumpclient/
H A Drumpclient.c137 send_with_recon(struct spclient *spc, struct iovec *iov, size_t iovlen) in send_with_recon() argument
145 rv = dosend(spc, iov, iovlen); in send_with_recon()
220 cliwaitresp(struct spclient *spc, struct respwait *rw, sigset_t *mask, in cliwaitresp() argument
226 pthread_mutex_lock(&spc->spc_mtx); in cliwaitresp()
228 sendunlockl(spc); in cliwaitresp()
229 mygen = spc->spc_generation; in cliwaitresp()
233 if (__predict_false(spc->spc_generation != mygen || !imalive)) in cliwaitresp()
237 if (spc->spc_istatus == SPCSTATUS_FREE) { in cliwaitresp()
240 spc->spc_istatus = SPCSTATUS_BUSY; in cliwaitresp()
241 pthread_mutex_unlock(&spc->spc_mtx); in cliwaitresp()
[all …]
/netbsd-src/external/gpl3/gcc/dist/gcc/c-family/
H A Dc-ada-spec.cc859 newline_and_indent (pretty_printer *buffer, int spc) in newline_and_indent() argument
862 INDENT (spc); in newline_and_indent()
1509 dump_ada_import (pretty_printer *buffer, tree t, int spc) in dump_ada_import() argument
1518 newline_and_indent (buffer, spc + 5); in dump_ada_import()
1527 newline_and_indent (buffer, spc + 5); in dump_ada_import()
1535 newline_and_indent (buffer, spc + 5); in dump_ada_import()
1586 bool is_destructor, int spc) in dump_ada_function_declaration() argument
1617 newline_and_indent (buffer, spc + 1); in dump_ada_function_declaration()
1665 dump_ada_node (buffer, TREE_TYPE (arg), type, spc, false, true); in dump_ada_function_declaration()
1671 dump_ada_node (buffer, TREE_VALUE (arg), type, spc, false, true); in dump_ada_function_declaration()
[all …]
/netbsd-src/external/gpl3/gcc.old/dist/gcc/c-family/
H A Dc-ada-spec.c859 newline_and_indent (pretty_printer *buffer, int spc) in newline_and_indent() argument
862 INDENT (spc); in newline_and_indent()
1519 dump_ada_import (pretty_printer *buffer, tree t, int spc) in dump_ada_import() argument
1528 newline_and_indent (buffer, spc + 5); in dump_ada_import()
1537 newline_and_indent (buffer, spc + 5); in dump_ada_import()
1586 bool is_destructor, int spc) in dump_ada_function_declaration() argument
1617 newline_and_indent (buffer, spc + 1); in dump_ada_function_declaration()
1665 dump_ada_node (buffer, TREE_TYPE (arg), type, spc, false, true); in dump_ada_function_declaration()
1671 dump_ada_node (buffer, TREE_VALUE (arg), type, spc, false, true); in dump_ada_function_declaration()
1694 newline_and_indent (buffer, spc + INDENT_INCR); in dump_ada_function_declaration()
[all …]
/netbsd-src/sys/external/bsd/gnu-efi/dist/lib/
H A Dprint.c323 POOL_PRINT *spc; in _SPrint() local
325 spc = Context; in _SPrint()
332 if (spc->len + len > spc->maxlen) { in _SPrint()
333 len = spc->maxlen - spc->len; in _SPrint()
340 CopyMem (spc->str + spc->len, Buffer, len * sizeof(CHAR16)); in _SPrint()
341 spc->len += len; in _SPrint()
347 if (spc->len < spc->maxlen) { in _SPrint()
348 spc->str[spc->len] = 0; in _SPrint()
349 } else if (spc->maxlen) { in _SPrint()
350 spc->str[spc->maxlen] = 0; in _SPrint()
[all …]
/netbsd-src/sys/dev/pcmcia/
H A Dspc_pcmcia.c106 struct spc_softc *spc = &sc->sc_spc; in spc_pcmcia_attach() local
112 spc->sc_dev = self; in spc_pcmcia_attach()
122 spc->sc_iot = cfe->iospace[0].handle.iot; in spc_pcmcia_attach()
123 spc->sc_ioh = cfe->iospace[0].handle.ioh; in spc_pcmcia_attach()
129 spc->sc_initiator = 7; /* XXX */ in spc_pcmcia_attach()
130 spc->sc_adapter.adapt_enable = spc_pcmcia_enable; in spc_pcmcia_attach()
131 spc->sc_adapter.adapt_refcnt = 1; in spc_pcmcia_attach()
136 spc_attach(spc); in spc_pcmcia_attach()
137 scsipi_adapter_delref(&spc->sc_adapter); in spc_pcmcia_attach()
/netbsd-src/sbin/newfs_msdos/
H A Dmkfs_msdos.c120 u_int8_t spc; /* sectors per cluster */ member
164 u_int spc; /* sectors per cluster */ member
182 { .bps = a, .spc = b, .res = c, .nft = d, .rde = e, \
340 if (bpb.spc == 0) { /* set defaults */ in mkfs_msdos()
344 bpb.spc = 1; /* use 512 bytes */ in mkfs_msdos()
348 bpb.spc = 1; /* use 512 bytes */ in mkfs_msdos()
352 bpb.spc = 8; /* use 4k */ in mkfs_msdos()
357 while (bpb.spc < 128 && x < x1) { in mkfs_msdos()
359 bpb.spc *= 2; in mkfs_msdos()
424 bpb.spc = o.block_size / bpb.bps; in mkfs_msdos()
[all …]
/netbsd-src/usr.sbin/diskpart/
H A Ddiskpart.c124 int spc, def, part, layout, j, ch; in main() local
176 spc = dp->d_secpercyl; in main()
188 threshold = howmany(spc, badsecttable); in main()
199 dp->d_ncylinders = howmany(totsize, spc); in main()
200 badsecttable = spc * dp->d_ncylinders - totsize; in main()
212 curcyl += howmany(defpart[def][part], spc); in main()
231 numcyls[part] = howmany(defpart[def][part], spc); in main()
239 defpart[def][PART('f')] = numcyls[PART('f')] * spc - badsecttable; in main()
240 defpart[def][PART('g')] = numcyls[PART('g')] * spc - badsecttable; in main()
241 defpart[def][PART('c')] = numcyls[PART('c')] * spc; in main()
[all …]
/netbsd-src/etc/rc.d/
H A Dbootconf.sh35 spc=""
44 echo -n "${spc}[${name}]"
46 echo -n "${spc}${name}"
48 spc=" "
/netbsd-src/lib/libcurses/
H A Dslk.c733 size_t spc, len, width, x; in __slk_set_finalise() local
737 spc = screen->slk_label_len; in __slk_set_finalise()
756 if (width + w > spc) in __slk_set_finalise()
766 if (len > spc) in __slk_set_finalise()
767 len = spc; in __slk_set_finalise()
776 x = (spc - width) / 2; in __slk_set_finalise()
777 if (x + width > spc) in __slk_set_finalise()
781 x = spc - width; in __slk_set_finalise()
791 spc -= x; in __slk_set_finalise()
796 spc -= width; in __slk_set_finalise()
[all …]

123456