Home
last modified time | relevance | path

Searched refs:uc (Results 1 – 25 of 144) sorted by relevance

123456

/titanic_44/usr/src/lib/libc/port/gen/
H A Ducred.c86 ucred_free(ucred_t *uc) in ucred_free() argument
88 free(uc); in ucred_free()
95 ucred_t *uc; in ucred_get() local
97 uc = _ucred_alloc(); in ucred_get()
99 if (uc == NULL) in ucred_get()
102 if (syscall(SYS_ucredsys, UCREDSYS_UCREDGET, pid, uc) != 0) { in ucred_get()
103 ucred_free(uc); in ucred_get()
107 return (uc); in ucred_get()
111 ucred_geteuid(const ucred_t *uc) in ucred_geteuid() argument
114 const prcred_t *cr = UCCRED(uc); in ucred_geteuid()
[all …]
/titanic_44/usr/src/uts/common/io/zyd/
H A Dzyd_usb.c44 static zyd_res zyd_usb_data_in_start_request(struct zyd_usb *uc);
115 zyd_usb_ctrl_send(struct zyd_usb *uc, uint8_t request, uint16_t value, in zyd_usb_ctrl_send() argument
139 while ((err = usb_pipe_ctrl_xfer_wait(uc->cdata->dev_default_ph, in zyd_usb_ctrl_send()
160 zyd_usb_ctrl_recv(struct zyd_usb *uc, uint8_t request, uint16_t value, in zyd_usb_ctrl_recv() argument
181 err = usb_pipe_ctrl_xfer_wait(uc->cdata->dev_default_ph, in zyd_usb_ctrl_recv()
218 zyd_usb_loadfirmware(struct zyd_usb *uc, uint8_t *fw, size_t size) in zyd_usb_loadfirmware() argument
229 if (zyd_usb_ctrl_send(uc, ZYD_DOWNLOADREQ, addr, fw, mlen) in zyd_usb_loadfirmware()
239 if (zyd_usb_ctrl_recv(uc, ZYD_DOWNLOADSTS, 0, &stat, sizeof (stat)) in zyd_usb_loadfirmware()
341 zyd_usb_open_pipe(struct zyd_usb *uc, in zyd_usb_open_pipe() argument
365 if (usb_pipe_open(uc->dip, &endpoint->ep_descr, in zyd_usb_open_pipe()
[all …]
/titanic_44/usr/src/uts/sparc/syscall/
H A Dgetcontext.c178 ucontext_t uc; in getsetcontext() local
203 savecontext(&uc, &curthread->t_hold); in getsetcontext()
204 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
205 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext()
216 uc.uc_mcontext.fpregs.fpu_qcnt = 0; in getsetcontext()
217 uc.uc_mcontext.fpregs.fpu_q = (struct _fq *)NULL; in getsetcontext()
219 if (copyout(&uc, arg, sizeof (ucontext_t))) in getsetcontext()
231 if (copyin(ucp, &uc, sizeof (ucontext_t) - in getsetcontext()
232 sizeof (uc.uc_filler) - in getsetcontext()
233 sizeof (uc.uc_mcontext.fpregs) - in getsetcontext()
[all …]
/titanic_44/usr/src/common/bzip2/
H A Ddecompress.c108 UChar uc; in BZ2_decompress() local
197 GET_UCHAR(BZ_X_MAGIC_1, uc); in BZ2_decompress()
198 if (uc != BZ_HDR_B) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
200 GET_UCHAR(BZ_X_MAGIC_2, uc); in BZ2_decompress()
201 if (uc != BZ_HDR_Z) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
203 GET_UCHAR(BZ_X_MAGIC_3, uc) in BZ2_decompress()
204 if (uc != BZ_HDR_h) RETURN(BZ_DATA_ERROR_MAGIC); in BZ2_decompress()
222 GET_UCHAR(BZ_X_BLKHDR_1, uc); in BZ2_decompress()
224 if (uc == 0x17) goto endhdr_2; in BZ2_decompress()
225 if (uc != 0x31) RETURN(BZ_DATA_ERROR); in BZ2_decompress()
[all …]
/titanic_44/usr/src/uts/intel/ia32/syscall/
H A Dgetcontext.c183 ucontext_t uc; in getsetcontext() local
202 savecontext(&uc, &curthread->t_hold); in getsetcontext()
203 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
204 SIGSET_NATIVE_TO_BRAND(&uc.uc_sigmask); in getsetcontext()
205 if (copyout(&uc, arg, sizeof (uc))) in getsetcontext()
217 if (copyin(ucp, &uc, sizeof (ucontext_t) - in getsetcontext()
218 sizeof (uc.uc_filler) - in getsetcontext()
219 sizeof (uc.uc_mcontext.fpregs))) { in getsetcontext()
222 if (uc.uc_flags & UC_SIGMASK) in getsetcontext()
223 SIGSET_BRAND_TO_NATIVE(&uc.uc_sigmask); in getsetcontext()
[all …]
/titanic_44/usr/src/uts/common/sys/
H A Ducred.h74 #define UCCRED(uc) (prcred_t *)(((uc)->uc_credoff == 0) ? NULL : \ argument
75 ((char *)(uc)) + (uc)->uc_credoff)
78 #define UCPRIV(uc) (prpriv_t *)(((uc)->uc_privoff == 0) ? NULL : \ argument
79 ((char *)(uc)) + (uc)->uc_privoff)
82 #define UCAUD(uc) (auditinfo64_addr_t *)(((uc)->uc_audoff == 0) ? NULL : \ argument
83 ((char *)(uc)) + (uc)->uc_audoff)
86 #define UCLABEL(uc) (bslabel_t *)(((uc)->uc_labeloff == 0) ? NULL : \ argument
87 ((char *)(uc)) + (uc)->uc_labeloff)
/titanic_44/usr/src/cmd/fm/eversholt/files/sparc/sun4v/
H A Dgcpu.esc87 ERPT_EVENT(chip, itlb-uc);
88 ERPT_EVENT(core, itlb-uc);
89 ERPT_EVENT(strand, itlb-uc);
90 ERPT_EVENT(chip, dtlb-uc);
91 ERPT_EVENT(core, dtlb-uc);
92 ERPT_EVENT(strand, dtlb-uc);
93 ERPT_EVENT(chip, icache-uc);
94 ERPT_EVENT(core, icache-uc);
95 ERPT_EVENT(chip, dcache-uc);
96 ERPT_EVENT(core, dcache-uc);
[all …]
H A Dgmem.esc57 event ereport.cpu.generic-sparc.mem-uc@level { within(1s)}
68 ereport.cpu.generic-sparc.mem-uc@level<>; \
74 ereport.cpu.generic-sparc.mem-uc@level<>
86 ereport.cpu.generic-sparc.mem-uc@level<>; \
92 ereport.cpu.generic-sparc.mem-uc@level<>
239 * membuf-crc-uc, membuf-other-uc will fault the detector FRU and sender FRU
243 event ereport.cpu.generic-sparc.membuf-crc-uc@CHIP { within(1s) };
244 event ereport.cpu.generic-sparc.membuf-crc-uc@MEM_BUFF { within(1s) };
245 event ereport.cpu.generic-sparc.membuf-crc-uc@MEM_CTRL { within(1s) };
247 event ereport.cpu.generic-sparc.membuf-other-uc@CHIP { within(1s) };
[all …]
/titanic_44/usr/src/ucblib/librpcsoc/
H A Dsvc_udp.c367 struct udp_cache *uc; local
373 uc = ALLOC(struct udp_cache, 1);
374 if (uc == NULL) {
378 uc->uc_size = size;
379 uc->uc_nextvictim = 0;
380 uc->uc_entries = ALLOC(cache_ptr, size * SPARSENESS);
381 if (uc->uc_entries == NULL) {
384 FREE(uc, struct udp_cache, 1);
387 BZERO(uc->uc_entries, cache_ptr, size * SPARSENESS);
388 uc->uc_fifo = ALLOC(cache_ptr, size);
[all …]
/titanic_44/usr/src/lib/libc/sparc/gen/
H A Dsiglongjmp.c48 ucontext_t uc; in siglongjmp() local
49 greg_t *reg = uc.uc_mcontext.gregs; in siglongjmp()
62 (void) memset(&uc, 0, sizeof (uc)); in siglongjmp()
63 uc.uc_flags = UC_STACK | UC_CPU; in siglongjmp()
65 uc.uc_stack = bp->sjs_stack; in siglongjmp()
66 uc.uc_link = bp->sjs_uclink; in siglongjmp()
72 uc.uc_flags |= UC_SIGMASK; in siglongjmp()
73 uc.uc_sigmask = bp->sjs_sigmask; in siglongjmp()
98 (void) setcontext(&uc); in siglongjmp()
/titanic_44/usr/src/lib/libc/sparcv9/gen/
H A Dsiglongjmp.c45 ucontext_t uc; in siglongjmp() local
46 greg_t *reg = uc.uc_mcontext.gregs; in siglongjmp()
59 (void) memset(&uc, 0, sizeof (uc)); in siglongjmp()
60 uc.uc_flags = UC_STACK | UC_CPU; in siglongjmp()
62 uc.uc_stack = bp->sjs_stack; in siglongjmp()
63 uc.uc_link = bp->sjs_uclink; in siglongjmp()
71 uc.uc_flags |= UC_SIGMASK; in siglongjmp()
72 uc.uc_sigmask = bp->sjs_sigmask; in siglongjmp()
97 (void) setcontext(&uc); in siglongjmp()
/titanic_44/usr/src/lib/libc/port/sys/
H A Dgetpeerucred.c41 ucred_t *uc = *ucp; in getpeerucred() local
43 if (uc == NULL) { in getpeerucred()
44 uc = _ucred_alloc(); in getpeerucred()
45 if (uc == NULL) in getpeerucred()
49 if (syscall(SYS_ucredsys, UCREDSYS_GETPEERUCRED, fd, uc) != 0) { in getpeerucred()
51 ucred_free(uc); in getpeerucred()
54 *ucp = uc; in getpeerucred()
/titanic_44/usr/src/uts/common/syscall/
H A Ducredsys.c49 struct ucred_s *uc; in getpeerucred() local
111 uc = cred2ucred(kpc.pc_cr, kpc.pc_cpid, NULL, CRED()); in getpeerucred()
115 err = copyout(uc, buf, uc->uc_size); in getpeerucred()
117 kmem_free(uc, uc->uc_size); in getpeerucred()
133 struct ucred_s *uc; in ucred_get() local
173 uc = cred2ucred(pcr, pid, NULL, CRED()); in ucred_get()
177 err = copyout(uc, ubuf, uc->uc_size); in ucred_get()
179 kmem_free(uc, uc->uc_size); in ucred_get()
H A Dlwp_create.c71 ucontext_t uc; in syslwp_create() local
90 if (copyin(ucp, &uc, sizeof (ucontext_t))) in syslwp_create()
92 sigutok(&uc.uc_sigmask, &sigmask); in syslwp_create()
98 thrptr = (uint32_t)uc.uc_mcontext.gregs[ESP]; in syslwp_create()
107 ucontext_32ton(&uc32, &uc, NULL, NULL); in syslwp_create()
109 ucontext_32ton(&uc32, &uc); in syslwp_create()
137 lwp_load(lwp, uc.uc_mcontext.gregs, thrptr); in syslwp_create()
/titanic_44/usr/src/lib/libnsl/rpc/
H A Dti_opts.c121 find_ucred_opt(const SVCXPRT *trans, ucred_t *uc, bool_t checkzone) in find_ucred_opt() argument
130 if (getpeerucred(trans->xp_fd, &uc) == 0) in find_ucred_opt()
146 (void) memcpy(uc, &opth[1], opth->len); in find_ucred_opt()
174 (void) memcpy(uc, &opt[1], in find_ucred_opt()
180 if (getpeerucred(trans->xp_fd, &uc) != 0) in find_ucred_opt()
190 return (ucred_getzoneid(uc) == myzone ? 0 : -1); in find_ucred_opt()
199 ucred_t *uc = alloca(ucred_size()); in __rpc_get_local_uid() local
204 err = __svc_get_door_ucred(trans, uc) == FALSE; in __rpc_get_local_uid()
206 err = find_ucred_opt(trans, uc, B_TRUE); in __rpc_get_local_uid()
210 *uid_out = ucred_geteuid(uc); in __rpc_get_local_uid()
[all …]
H A Dsvc_dg.c691 struct cl_cache *uc; in svc_dg_enablecache() local
709 uc = malloc(sizeof (struct cl_cache)); in svc_dg_enablecache()
710 if (uc == NULL) { in svc_dg_enablecache()
716 uc->uc_size = size; in svc_dg_enablecache()
717 uc->uc_nextvictim = 0; in svc_dg_enablecache()
718 uc->uc_entries = calloc(size * SPARSENESS, sizeof (cache_ptr)); in svc_dg_enablecache()
719 if (uc->uc_entries == NULL) { in svc_dg_enablecache()
721 free(uc); in svc_dg_enablecache()
725 uc->uc_fifo = calloc(size, sizeof (cache_ptr)); in svc_dg_enablecache()
726 if (uc->uc_fifo == NULL) { in svc_dg_enablecache()
[all …]
/titanic_44/usr/src/uts/sparc/v9/os/
H A Dxregs.c54 xregs_clrptr(klwp_id_t lwp, ucontext_t *uc) in xregs_clrptr() argument
56 uc->uc_mcontext.xrs.xrs_id = 0; in xregs_clrptr()
57 uc->uc_mcontext.xrs.xrs_ptr = NULL; in xregs_clrptr()
66 xregs_hasptr(klwp_id_t lwp, ucontext_t *uc) in xregs_hasptr() argument
68 return (uc->uc_mcontext.xrs.xrs_id == XRS_ID); in xregs_hasptr()
76 xregs_getptr(klwp_id_t lwp, ucontext_t *uc) in xregs_getptr() argument
78 if (uc->uc_mcontext.xrs.xrs_id == XRS_ID) in xregs_getptr()
79 return (uc->uc_mcontext.xrs.xrs_ptr); in xregs_getptr()
88 xregs_setptr(klwp_id_t lwp, ucontext_t *uc, caddr_t xrp) in xregs_setptr() argument
90 uc->uc_mcontext.xrs.xrs_id = XRS_ID; in xregs_setptr()
[all …]
/titanic_44/usr/src/lib/libast/common/features/
H A Dlimits.c89 unsigned char uc; in main() local
105 uc = 0; in main()
106 uc = ~uc; in main()
108 while (uc >>= 1) val++; in main()
118 uc = 0; in main()
119 uc = ~uc; in main()
132 val = uc; in main()
141 val = (unsigned char)(uc >> 1) + 1; in main()
146 val = (unsigned char)(uc >> 1); in main()
/titanic_44/usr/src/lib/libbc/libc/sys/common/
H A Dsigsetjmp.c46 ucontext_t uc; local
51 uc.uc_flags = UC_STACK | UC_SIGMASK;
52 __getcontext(&uc);
62 bp->sjs_stack = uc.uc_stack;
67 memcpy(bp->sjs_sigmask, &(uc.uc_sigmask), 3 * sizeof (int));
106 ucontext_t uc; local
111 uc.uc_flags = UC_STACK;
112 __getcontext(&uc);
125 bp->sjs_stack = uc.uc_stack;
/titanic_44/usr/src/cmd/msgfmt/
H A Dgnu_lex.c354 unsigned int uc; in yylex() local
420 uc = pch->buf[0]; in yylex()
422 if (uc == '\n') { in yylex()
427 if (uc == '"') in yylex()
429 if (uc == '\\') in yylex()
446 uc = pch->buf[0]; in yylex()
448 if (isalpha(uc) || (uc == '_')) { in yylex()
452 buf[buf_pos++] = (char)uc; in yylex()
456 (isalpha(uc = pch->buf[0]) || in yylex()
457 isdigit(uc) || (uc == '_'))) { in yylex()
[all …]
/titanic_44/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dwadd_wch.c60 cchar_t uc; local
88 uc._n = 1;
89 uc._at = cc->_at;
90 uc._co = cc->_co;
96 uc._wc[0] = *p;
97 if (__m_cc_add(w, y, x, &uc, 0, &y, &x) == ERR)
/titanic_44/usr/src/lib/libbsm/common/
H A Dadt_ucred.h43 extern au_id_t ucred_getauid(const ucred_t *uc);
44 extern au_asid_t ucred_getasid(const ucred_t *uc);
45 extern const au_mask_t *ucred_getamask(const ucred_t *uc);
46 extern const au_tid64_addr_t *ucred_getatid(const ucred_t *uc);
/titanic_44/usr/src/lib/libbc/libc/sys/4.2/
H A Dsetjmp.c45 ucontext_t uc; local
50 uc.uc_flags = UC_STACK | UC_SIGMASK;
51 __getcontext(&uc);
61 bp->sjs_stack = uc.uc_stack;
65 memcpy(bp->sjs_sigmask, &(uc.uc_sigmask), 3 * sizeof (int));
/titanic_44/usr/src/cmd/nscd/
H A Dnscd_frontend.c308 ucred_t *uc = NULL; in _nscd_get_client_euid() local
312 if (door_ucred(&uc) != 0) { in _nscd_get_client_euid()
318 id = ucred_geteuid(uc); in _nscd_get_client_euid()
319 ucred_free(uc); in _nscd_get_client_euid()
334 ucred_t *uc = NULL; in _nscd_check_client_priv() local
339 if (door_ucred(&uc) != 0) { in _nscd_check_client_priv()
345 if (ucred_geteuid(uc) == 0) { in _nscd_check_client_priv()
346 ucred_free(uc); in _nscd_check_client_priv()
350 eset = ucred_getprivset(uc, PRIV_EFFECTIVE); in _nscd_check_client_priv()
372 ucred_free(uc); in _nscd_check_client_priv()
[all …]
/titanic_44/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dwadd_wch.c76 cchar_t uc; in wadd_wch() local
108 uc._n = 1; in wadd_wch()
109 uc._at = cc->_at; in wadd_wch()
110 uc._co = cc->_co; in wadd_wch()
116 uc._wc[0] = *p; in wadd_wch()
117 if (__m_cc_add(w, y, x, &uc, 0, &y, &x) == ERR) in wadd_wch()

123456