Home
last modified time | relevance | path

Searched refs:uc (Results 26 – 50 of 177) sorted by relevance

12345678

/freebsd/lib/libc/rpc/
H A Dsvc_dg.c518 struct cl_cache *uc; in svc_dg_enablecache() local
527 if (uc == NULL) { in svc_dg_enablecache()
532 uc->uc_size = size; in svc_dg_enablecache()
533 uc->uc_nextvictim = 0; in svc_dg_enablecache()
535 if (uc->uc_entries == NULL) { in svc_dg_enablecache()
543 if (uc->uc_fifo == NULL) { in svc_dg_enablecache()
588 victim = uc->uc_fifo[uc->uc_nextvictim]; in cache_set()
627 su->su_xid, uc->uc_prog, uc->uc_vers, in cache_set()
628 uc->uc_proc, uaddr); in cache_set()
648 uc->uc_fifo[uc->uc_nextvictim++] = victim; in cache_set()
[all …]
/freebsd/lib/libthread_db/arch/aarch64/
H A Dlibpthread_md.c39 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
41 mcontext_t *mc = &uc->uc_mcontext; in pt_reg_to_ucontext()
51 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
53 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_reg()
63 pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
65 mcontext_t *mc = &uc->uc_mcontext; in pt_fpreg_to_ucontext()
72 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
74 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_fpreg()
/freebsd/sys/i386/i386/
H A Dk6_mem.c52 #define K6_REG_GET(reg, addr, mask, wc, uc) do { \ argument
56 uc = (reg) & 0x1; \
59 #define K6_REG_MAKE(addr, mask, wc, uc) \ argument
60 ((addr) | ((mask) << 2) | ((wc) << 1) | uc)
79 u_int32_t len = 0, wc, uc; in k6_mrmake() local
92 uc = (desc->mr_flags & MDF_UNCACHEABLE) ? 1 : 0; in k6_mrmake()
94 *mtrr = K6_REG_MAKE(desc->mr_base, len, wc, uc); in k6_mrmake()
102 u_int32_t addr, mask, wc, uc; in k6_mrinit() local
116 K6_REG_GET(one, addr, mask, wc, uc); in k6_mrinit()
121 if (uc) in k6_mrinit()
H A Dcopyout.c161 vm_offset_t uc; in copyinstr() local
168 plen < maxlen && !ca.end; uc += ca.alen, plen += ca.alen) { in copyinstr()
169 ca.len = round_page(uc) - uc; in copyinstr()
175 if (cp_slow0(uc, ca.len, false, copyinstr_slow0, &ca) != 0) { in copyinstr()
205 vm_offset_t uc; in copyin() local
215 plen < len; uc += ca.len, ca.kc += ca.len, plen += ca.len) { in copyin()
216 ca.len = round_page(uc) - uc; in copyin()
221 if (cp_slow0(uc, ca.len, false, copyin_slow0, &ca) != 0) in copyin()
240 vm_offset_t uc; in copyout() local
251 ca.len = round_page(uc) - uc; in copyout()
[all …]
/freebsd/lib/libthread_db/arch/riscv/
H A Dlibpthread_md.c42 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
46 mc = &uc->uc_mcontext; in pt_reg_to_ucontext()
60 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
64 mc = &uc->uc_mcontext; in pt_ucontext_to_reg()
78 pt_fpreg_to_ucontext(const struct fpreg *r __unused, ucontext_t *uc __unused) in pt_fpreg_to_ucontext()
80 mcontext_t *mc = &uc->uc_mcontext; in pt_fpreg_to_ucontext()
87 pt_ucontext_to_fpreg(const ucontext_t *uc __unused, struct fpreg *r __unused) in pt_ucontext_to_fpreg()
89 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_fpreg()
/freebsd/contrib/libarchive/libarchive/
H A Darchive_string.c130 #define IS_HIGH_SURROGATE_LA(uc) ((uc) >= 0xD800 && (uc) <= 0xDBFF) argument
131 #define IS_LOW_SURROGATE_LA(uc) ((uc) >= 0xDC00 && (uc) <= 0xDFFF) argument
132 #define IS_SURROGATE_PAIR_LA(uc) ((uc) >= 0xD800 && (uc) <= 0xDFFF) argument
2571 uc = combine_surrogate_pair(uc, uc2); in utf16_to_unicode()
2588 if (IS_SURROGATE_PAIR_LA(uc) || uc > UNICODE_MAX) { in utf16_to_unicode()
2594 *pwc = uc; in utf16_to_unicode()
3190 if ((uc >= 0x2000 && uc <= 0x2FFF) || in get_nfd()
3191 (uc >= 0xF900 && uc <= 0xFAFF) || in get_nfd()
3192 (uc >= 0x2F800 && uc <= 0x2FAFF)) in get_nfd()
3202 if (uc == 0x1109A || uc == 0x1109C || uc == 0x110AB) in get_nfd()
[all …]
/freebsd/tools/test/stress2/misc/
H A Dpkru.sh296 if (uc->uc_mcontext.mc_xfpustate != 0 &&
308 ucontext_t *uc;
313 uc = u;
317 report_sig(signo, si, uc);
324 if (uc->uc_mcontext.mc_xfpustate != 0)
325 len += uc->uc_mcontext.mc_xfpustate_len;
329 memcpy(uc_seen, uc, sizeof(*uc));
333 if (uc->uc_mcontext.mc_xfpustate != 0) {
335 sizeof(*uc);
337 (void *)uc->uc_mcontext.mc_xfpustate,
[all …]
H A Dsigreturn4.sh112 ucontext_t uc;
118 if (getcontext(&uc) == -1)
123 flip(&uc, sizeof(uc));
125 if (sigreturn(&uc) == -1)
/freebsd/contrib/unbound/contrib/
H A Dunbound_cache.cmd12 set uc=%program_path%\unbound-control.exe variable
16 if exist %uc% goto start
32 type %program_path%\%fname%|%uc% load_cache
42 %uc% dump_cache>%program_path%\%fname%
51 type %program_path%\%fname%|%uc% load_cache
58 %uc% dump_cache>%program_path%\%fname%
61 type %program_path%\%fname%|%uc% load_cache
69 %uc% dump_cache>%arg2%
78 type %arg2%|%uc% load_cache
85 %uc% dump_cache>%arg2%
[all …]
/freebsd/contrib/llvm-project/libunwind/src/
H A DUnwindLevel1.c78 __unw_init_local(cursor, uc); in unwind_phase1()
174 __unw_init_local(cursor, uc); in unwind_phase2()
312 __unw_init_local(cursor, uc); in unwind_phase2_forced()
423 unw_context_t uc; in _Unwind_RaiseException() local
425 __unw_getcontext(&uc); in _Unwind_RaiseException()
438 return unwind_phase2(&uc, &cursor, exception_object); in _Unwind_RaiseException()
457 unw_context_t uc; in _Unwind_Resume() local
459 __unw_getcontext(&uc); in _Unwind_Resume()
466 unwind_phase2(&uc, &cursor, exception_object); in _Unwind_Resume()
482 unw_context_t uc; in _Unwind_ForcedUnwind() local
[all …]
H A DUnwindLevel1-gcc-ext.c118 unw_context_t uc; in _Unwind_FindEnclosingFunction() local
120 __unw_getcontext(&uc); in _Unwind_FindEnclosingFunction()
121 __unw_init_local(&cursor, &uc); in _Unwind_FindEnclosingFunction()
135 unw_context_t uc; in _Unwind_Backtrace() local
136 __unw_getcontext(&uc); in _Unwind_Backtrace()
137 __unw_init_local(&cursor, &uc); in _Unwind_Backtrace()
221 unw_context_t uc; in _Unwind_Find_FDE() local
223 __unw_getcontext(&uc); in _Unwind_Find_FDE()
224 __unw_init_local(&cursor, &uc); in _Unwind_Find_FDE()
/freebsd/sys/netpfil/ipfw/nptv6/
H A Dnptv6.c443 ipfw_nptv6_cfg *uc) in nptv6_export_config() argument
451 uc->plen = cfg->plen; in nptv6_export_config()
454 strlcpy(uc->name, cfg->no.name, sizeof(uc->name)); in nptv6_export_config()
467 ipfw_nptv6_cfg *uc; in export_config_cb() local
469 uc = (ipfw_nptv6_cfg *)ipfw_get_sopt_space(da->sd, sizeof(*uc)); in export_config_cb()
653 ipfw_nptv6_cfg *uc; in nptv6_create() local
664 if (uc->plen < 8 || uc->plen > 64 || uc->set >= IPFW_MAX_SETS) in nptv6_create()
671 IN6_ARE_MASKED_ADDR_EQUAL(&uc->external, &uc->internal, &mask))) in nptv6_create()
676 if (nptv6_find(ni, uc->name, uc->set) != NULL) { in nptv6_create()
682 cfg = nptv6_alloc_config(uc->name, uc->set); in nptv6_create()
[all …]
/freebsd/contrib/tcsh/
H A Ded.init.c56 #define uc unsigned char macro
59 (uc)CINTR, (uc)CQUIT, (uc)CERASE, (uc)CKILL,
60 (uc)CEOF, (uc)CEOL, (uc)CEOL2, (uc)CSWTCH,
61 (uc)CDSWTCH, (uc)CERASE2, (uc)CSTART, (uc)CSTOP,
62 (uc)CWERASE, (uc)CSUSP, (uc)CDSUSP, (uc)CREPRINT,
63 (uc)CDISCARD, (uc)CLNEXT, (uc)CSTATUS, (uc)CPAGE,
64 (uc)CPGOFF, (uc)CKILL2, (uc)CBRK, (uc)CMIN,
65 (uc)CTIME
/freebsd/lib/libthread_db/arch/arm/
H A Dlibpthread_md.c36 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
38 mcontext_t *mc = &uc->uc_mcontext; in pt_reg_to_ucontext()
61 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
63 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_reg()
87 pt_fpreg_to_ucontext(const struct fpreg *r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
91 mc_vfp = uc->uc_mcontext.mc_vfp_ptr; in pt_fpreg_to_ucontext()
98 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
102 mc_vfp = uc->uc_mcontext.mc_vfp_ptr; in pt_ucontext_to_fpreg()
/freebsd/lib/libthread_db/arch/amd64/
H A Dlibpthread_md.c39 pt_reg_to_ucontext(const struct reg *r, ucontext_t *uc) in pt_reg_to_ucontext() argument
41 mcontext_t *mc = &uc->uc_mcontext; in pt_reg_to_ucontext()
66 pt_ucontext_to_reg(const ucontext_t *uc, struct reg *r) in pt_ucontext_to_reg() argument
68 const mcontext_t *mc = &uc->uc_mcontext; in pt_ucontext_to_reg()
93 pt_fpreg_to_ucontext(const struct fpreg* r, ucontext_t *uc) in pt_fpreg_to_ucontext() argument
96 memcpy(&uc->uc_mcontext.mc_fpstate, r, sizeof(*r)); in pt_fpreg_to_ucontext()
100 pt_ucontext_to_fpreg(const ucontext_t *uc, struct fpreg *r) in pt_ucontext_to_fpreg() argument
103 memcpy(r, &uc->uc_mcontext.mc_fpstate, sizeof(*r)); in pt_ucontext_to_fpreg()
/freebsd/tools/regression/netinet/msocket/
H A Dmsocket.c85 u_char uc; in test_u_char() local
91 uc = fakev; in test_u_char()
92 socklen = sizeof(uc); in test_u_char()
101 if (uc != defaultv) in test_u_char()
103 "%d not %d", socktype, optstring, uc, defaultv); in test_u_char()
108 uc = modifiedv; in test_u_char()
109 ret = setsockopt(sock, IPPROTO_IP, optname, &uc, sizeof(uc)); in test_u_char()
117 uc = fakev; in test_u_char()
118 socklen = sizeof(uc); in test_u_char()
126 if (uc != modifiedv) in test_u_char()
[all …]
/freebsd/contrib/llvm-project/compiler-rt/lib/hwasan/
H A Dhwasan_linux.cpp355 static AccessInfo GetAccessInfo(siginfo_t *info, ucontext_t *uc) { in GetAccessInfo() argument
372 const uptr addr = uc->uc_mcontext.regs[0]; in GetAccessInfo()
382 uptr pc = (uptr)uc->uc_mcontext.gregs[REG_RIP]; in GetAccessInfo()
391 const uptr addr = uc->uc_mcontext.gregs[REG_RDI]; in GetAccessInfo()
402 uptr pc = (uptr)uc->uc_mcontext.__gregs[REG_PC]; in GetAccessInfo()
430 const uptr addr = uc->uc_mcontext.__gregs[10]; in GetAccessInfo()
437 size_log == 0xf ? uc->uc_mcontext.__gregs[11] : 1U << size_log; in GetAccessInfo()
447 AccessInfo ai = GetAccessInfo(info, uc); in HwasanOnSIGTRAP()
451 SignalContext sig{info, uc}; in HwasanOnSIGTRAP()
455 uc->uc_mcontext.pc += 4; in HwasanOnSIGTRAP()
[all …]
/freebsd/sys/powerpc/powerpc/
H A Dexec_machdep.c338 ucontext_t uc; in sys_sigreturn() local
343 if (copyin(uap->sigcntxp, &uc, sizeof(uc)) != 0) { in sys_sigreturn()
362 td, uc.uc_mcontext.mc_srr0, uc.uc_mcontext.mc_gpr[1]); in sys_sigreturn()
905 ucontext32_t uc; in freebsd32_sigreturn() local
910 if (copyin(uap->sigcntxp, &uc, sizeof(uc)) != 0) { in freebsd32_sigreturn()
929 td, uc.uc_mcontext.mc_srr0, uc.uc_mcontext.mc_gpr[1]); in freebsd32_sigreturn()
944 ucontext32_t uc; in freebsd32_getcontext() local
950 bzero(&uc, sizeof(uc)); in freebsd32_getcontext()
963 ucontext32_t uc; in freebsd32_setcontext() local
984 ucontext32_t uc; in freebsd32_swapcontext() local
[all …]
/freebsd/lib/libthr/thread/
H A Dthr_sig.c376 ucontext_t *uc; in check_deferred_signal() local
387 uc = alloca(uc_len); in check_deferred_signal()
388 getcontext(uc); in check_deferred_signal()
393 __fillcontextx2((char *)uc); in check_deferred_signal()
400 syscall(SYS_sigreturn, uc); in check_deferred_signal()
786 ucontext_t uc; in __thr_setcontext() local
794 (void) memcpy(&uc, ucp, sizeof(uc)); in __thr_setcontext()
796 return (__sys_setcontext(&uc)); in __thr_setcontext()
802 ucontext_t uc; in __thr_swapcontext() local
809 (void) memcpy(&uc, ucp, sizeof(uc)); in __thr_swapcontext()
[all …]
/freebsd/sys/amd64/ia32/
H A Dia32_signal.c258 struct ia32_ucontext uc; in freebsd32_getcontext() local
264 bzero(&uc, sizeof(uc)); in freebsd32_getcontext()
267 uc.uc_sigmask = td->td_sigmask; in freebsd32_getcontext()
277 struct ia32_ucontext uc; in freebsd32_setcontext() local
298 struct ia32_ucontext uc; in freebsd32_swapcontext() local
304 bzero(&uc, sizeof(uc)); in freebsd32_swapcontext()
760 error = copyin(uap->sigcntxp, &uc, sizeof(uc)); in freebsd4_freebsd32_sigreturn()
763 ucp = &uc; in freebsd4_freebsd32_sigreturn()
821 struct ia32_ucontext uc; in freebsd32_sigreturn() local
829 error = copyin(uap->sigcntxp, &uc, sizeof(uc)); in freebsd32_sigreturn()
[all …]
/freebsd/contrib/file/src/
H A Dencoding.c486 uint32_t uc; in looks_ucs16() local
489 uc = CAST(uint32_t, in looks_ucs16()
492 uc = CAST(uint32_t, in looks_ucs16()
495 uc &= 0xffff; in looks_ucs16()
497 switch (uc) { in looks_ucs16()
502 if (UCS16_NOCHAR(uc)) in looks_ucs16()
509 uc = 0x10000 + 0x400 * (hi - 1) + (uc - 0xdc00); in looks_ucs16()
512 if (uc < 128 && text_chars[CAST(size_t, uc)] != T) in looks_ucs16()
514 ubf[(*ulen)++] = uc; in looks_ucs16()
515 if (UCS16_HISURR(uc)) in looks_ucs16()
[all …]
/freebsd/sys/dev/uart/
H A Duart_core.c234 uart_getname(struct uart_class *uc) in uart_getname() argument
236 return ((uc != NULL) ? uc->name : NULL); in uart_getname()
240 uart_getops(struct uart_class *uc) in uart_getops() argument
242 return ((uc != NULL) ? uc->uc_ops : NULL); in uart_getops()
246 uart_getrange(struct uart_class *uc) in uart_getrange() argument
248 return ((uc != NULL) ? uc->uc_range : 0); in uart_getrange()
252 uart_getregshift(struct uart_class *uc) in uart_getregshift() argument
254 return ((uc != NULL) ? uc->uc_rshift : 0); in uart_getregshift()
258 uart_getregiowidth(struct uart_class *uc) in uart_getregiowidth() argument
260 return ((uc != NULL) ? uc->uc_riowidth : 0); in uart_getregiowidth()
/freebsd/tests/sys/kern/
H A Dsigaltstack.c50 ucontext_t *uc = ucp; in sig_handler() local
54 (uc->uc_stack.ss_flags & SS_DISABLE) == 0; in sig_handler()
58 level1_correct = (uc->uc_stack.ss_flags & SS_ONSTACK) == 0; in sig_handler()
63 level2_correct = (uc->uc_stack.ss_flags & SS_ONSTACK) != 0; in sig_handler()
/freebsd/sbin/ping/
H A Dutils.c50 u_char uc[2]; in in_cksum() member
74 last.uc[0] = *w; in in_cksum()
75 last.uc[1] = 0; in in_cksum()
/freebsd/contrib/dialog/
H A Dtrace.c138 const wchar_t *uc; in dlg_trace_win() local
141 || (uc = wunctrl((&cch))) == 0 in dlg_trace_win()
142 || uc[1] != 0 in dlg_trace_win()
143 || wcwidth(uc[0]) <= 0) { in dlg_trace_win()
148 const wchar_t *ucp = uc; in dlg_trace_win()
152 k += wcwidth(uc[0]) - 1; in dlg_trace_win()

12345678