Home
last modified time | relevance | path

Searched refs:gs (Results 1 – 25 of 76) sorted by relevance

1234

/illumos-gate/usr/src/lib/libc/port/locale/
H A Dgb2312.c100 _GB2312State *gs; in _GB2312_mbrtowc() local
107 if (gs->count < 0 || gs->count > sizeof (gs->bytes)) { in _GB2312_mbrtowc()
118 ncopy = MIN(MIN(n, MB_CUR_MAX), sizeof (gs->bytes) - gs->count); in _GB2312_mbrtowc()
119 (void) memcpy(gs->bytes + gs->count, s, ncopy); in _GB2312_mbrtowc()
120 ocount = gs->count; in _GB2312_mbrtowc()
121 gs->count += ncopy; in _GB2312_mbrtowc()
122 s = (char *)gs->bytes; in _GB2312_mbrtowc()
123 n = gs->count; in _GB2312_mbrtowc()
133 gs->count = 0; in _GB2312_mbrtowc()
145 _GB2312State *gs; in _GB2312_wcrtomb() local
[all …]
H A Dgb18030.c82 _GB18030State *gs; in _GB18030_mbrtowc() local
89 if (gs->count < 0 || gs->count > sizeof (gs->bytes)) { in _GB18030_mbrtowc()
100 ncopy = MIN(MIN(n, MB_CUR_MAX), sizeof (gs->bytes) - gs->count); in _GB18030_mbrtowc()
101 (void) memcpy(gs->bytes + gs->count, s, ncopy); in _GB18030_mbrtowc()
102 ocount = gs->count; in _GB18030_mbrtowc()
103 gs->count += ncopy; in _GB18030_mbrtowc()
104 s = (char *)gs->bytes; in _GB18030_mbrtowc()
105 n = gs->count; in _GB18030_mbrtowc()
155 gs->count = 0; in _GB18030_mbrtowc()
170 _GB18030State *gs; in _GB18030_wcrtomb() local
[all …]
H A Dgbk.c89 _GBKState *gs; in _GBK_mbrtowc() local
93 gs = (_GBKState *)ps; in _GBK_mbrtowc()
95 if ((gs->ch & ~0xFF) != 0) { in _GBK_mbrtowc()
111 if (gs->ch != 0) { in _GBK_mbrtowc()
116 wc = (gs->ch << 8) | (*s & 0xFF); in _GBK_mbrtowc()
119 gs->ch = 0; in _GBK_mbrtowc()
128 gs->ch = wc; in _GBK_mbrtowc()
153 _GBKState *gs; in _GBK_wcrtomb() local
155 gs = (_GBKState *)ps; in _GBK_wcrtomb()
157 if (gs->ch != 0) { in _GBK_wcrtomb()
/illumos-gate/usr/src/lib/libc/i386/sys/
H A Dvforkx.S86 pushl %gs:UL_SIGMASK+8
87 pushl %gs:UL_SIGMASK+4
88 pushl %gs:UL_SIGMASK
108 movl %gs:UL_VFORK, %edx
115 movl %gs:UL_VFORK, %edx
118 movl %edx, %gs:UL_VFORK
124 movl %edx, %gs:UL_SCHEDCTL
125 movl %edx, %gs:UL_SCHEDCTL_CALLED
129 pushl %gs:UL_SIGMASK+8
130 pushl %gs:UL_SIGMASK+4
[all …]
/illumos-gate/usr/src/uts/i86pc/ml/
H A Dkpti_trampolines.S357 mov %r13, %gs:CPU_KPTI_R13
361 movq $0, %gs:CPU_KPTI_R13
362 movq $0, %gs:CPU_KPTI_R14
376 movq $0, %gs:CPU_KPTI_R13
377 movq $0, %gs:CPU_KPTI_R14
402 movq $0, %gs:CPU_KPTI_R13
403 movq $0, %gs:CPU_KPTI_R14
493 pushq %gs:CPU_KPTI_SS; \
496 pushq %gs:CPU_KPTI_CS; \
569 movq $0, %gs:CPU_KPTI_R13
[all …]
H A Dsyscall_asm_amd64.S434 movq %r15, %gs:CPU_RTMP_R15
435 movq %rsp, %gs:CPU_RTMP_RSP
437 movq %gs:CPU_THREAD, %r15
488 movw %gs, %bx
682 movq %gs:CPU_THREAD, %r11
752 movq %gs:CPU_THREAD, %r15
788 movw %gs, %bx
1014 movq %gs:CPU_THREAD, %r15
1060 movw %gs, %bx
1111 movl %gs:CPU_ID, %edx
[all …]
H A Dfast_trap_asm.S89 movq %gs:CPU_LWP, %rcx /* current lwp */
112 movq %gs:CPU_THREAD, %rcx
115 movl %gs:CPU_ID, %eax
H A Dlocore.S245 movl %gs:CPU_ID, %eax
257 movl %gs:CPU_ID, %edx
354 movl %gs:CPU_ID, %edx
387 movl %gs:CPU_ID, %edx
389 movq %gs:CPU_VCPU_INFO, %rsi
408 movq %gs:CPU_THREAD, %r15
422 movq %gs:CPU_THREAD, %r15
427 movq %gs:CPU_LWP, %r14
/illumos-gate/usr/src/uts/common/gssapi/mechs/krb5/mech/
H A Dutil_validate.c112 g_set_elt *gs; local
123 gs = (g_set_elt *) &db->data;
125 if (!*gs)
126 if (g_set_init(gs)) {
174 g_set_elt *gs; local
181 gs = (g_set_elt *) &db->data;
182 if (!*gs) {
228 g_set_elt *gs; local
234 gs = (g_set_elt *) &db->data;
235 if (!*gs) {
[all …]
/illumos-gate/usr/src/common/bzip2/
H A Dcompress.c286 gs = 0; in sendMTFValues()
289 ge = gs-1; in sendMTFValues()
296 if (ge > gs in sendMTFValues()
315 gs = ge+1; in sendMTFValues()
345 gs = 0; in sendMTFValues()
350 ge = gs + BZ_G_SIZE - 1; in sendMTFValues()
435 gs = ge+1; in sendMTFValues()
548 gs = 0; in sendMTFValues()
550 if (gs >= s->nMTF) break; in sendMTFValues()
551 ge = gs + BZ_G_SIZE - 1; in sendMTFValues()
[all …]
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/
H A Dgcore.c191 gs->gs_data = svd; in gsvn_init()
193 gs->gs_data = NULL; in gsvn_init()
688 gcore_seg_t *gs; in gcore_seg_create() local
690 gs = mdb_alloc(sizeof (*gs), UM_SLEEP); in gcore_seg_create()
691 gs->gs_seg = seg; in gcore_seg_create()
703 return (gs); in gcore_seg_create()
706 mdb_free(gs, sizeof (*gs)); in gcore_seg_create()
713 GSOP_FINI(gs); in gcore_seg_destroy()
714 mdb_free(gs, sizeof (*gs)); in gcore_seg_destroy()
726 gcore_seg_t *gs; in read_maps_cb() local
[all …]
/illumos-gate/usr/src/uts/intel/ml/
H A Dlock_prim.S93 movq %gs:CPU_THREAD, %rdx /* rdx = thread addr */
146 movq %gs:CPU_THREAD, %rdx /* rdx = thread addr */
202 movq %gs:CPU_THREAD, %rdx /* rdx = thread addr */
237 movq %gs:CPU_THREAD, %rdx /* rdx = thread addr */
257 movq %gs:CPU_THREAD, %rdx /* rdx = thread addr */
282 movq %gs:CPU_THREAD, %rdx /* rdx = thread ptr */
344 movq %gs:CPU_THREAD, %rdx /* rdx = thread ptr */
361 movq %gs:CPU_THREAD, %rdx /* rdx = thread ptr */
408 movq %gs:CPU_THREAD, %rdx
448 movq %gs:CPU_THREAD, %rcx /* rcx = thread ptr */
[all …]
H A Dswtch.S107 movq %gs:CPU_THREAD, scratch_reg; \
148 movq %gs:CPU_THREAD, %rax
392 movq %gs:CPU_THREAD, %rax
403 movq %gs:CPU_THREAD, %r13 /* %r13 = curthread */
428 movq %gs:CPU_IDLE_THREAD, %rax /* idle thread pointer */
440 movq %rax, %gs:CPU_THREAD
466 movq %gs:CPU_THREAD, %rax
477 movq %gs:CPU_THREAD, %r13 /* %r13 = curthread */
478 movq %r12, %gs:CPU_THREAD /* set CPU's thread pointer */
/illumos-gate/usr/src/uts/i86xpv/sys/
H A Dmachprivregs.h48 movq %gs:CPU_VCPU_INFO, r
51 movq %gs:CPU_THREAD, r
56 movl %gs:CPU_VCPU_INFO, r
59 movl %gs:CPU_THREAD, r
102 movl %gs:CPU_ID, %eax; \
114 movl %gs:CPU_ID, %eax; \
137 movl %gs:CPU_ID, %eax; \
149 movl %gs:CPU_ID, %eax; \
343 movq %gs:CPU_THREAD, %r15; \
/illumos-gate/usr/src/uts/intel/brand/common/
H A Dbrand_solaris.S55 mov %gs:CPU_RTMP_R15, SCR_REG; /* restore scratch register */
75 mov %gs:CPU_RTMP_R15, SCR_REG; /* restore scratch register */
94 mov %gs:CPU_RTMP_R15, SCR_REG; /* restore scratch register */
113 mov %gs:CPU_RTMP_R15, SCR_REG; /* restore scratch register */
/illumos-gate/usr/src/uts/common/io/chxge/
H A Dch.c1635 gs->glds_speed = speed; in ch_get_stats()
1637 gs->glds_intr = intrcnt; in ch_get_stats()
1638 gs->glds_norcvbuf = norcvbuf; in ch_get_stats()
1639 gs->glds_errxmt = oerrors; in ch_get_stats()
1640 gs->glds_errrcv = ierrors; in ch_get_stats()
1643 gs->glds_overflow = overrun; in ch_get_stats()
1644 gs->glds_frame = framing; in ch_get_stats()
1645 gs->glds_crc = crc; in ch_get_stats()
1650 gs->glds_xmtlatecoll = late; in ch_get_stats()
1651 gs->glds_defer = defer; in ch_get_stats()
[all …]
/illumos-gate/usr/src/uts/common/xen/io/
H A Dxdf.c229 ge_slot_t *gs; in gs_get() local
246 if (gs == NULL) { in gs_get()
258 gs->gs_ghead = gh; in gs_get()
261 return (gs); in gs_get()
271 gnttab_end_foreign_access(gs->gs_ge[i], !gs->gs_isread, 0); in gs_free()
273 list_remove(&gs->gs_vreq->v_gs, gs); in gs_free()
284 gs->gs_ge[gs->gs_ngrefs++] = gr; in gs_grant()
409 ge_slot_t *gs; in vreq_setup() local
926 gs_free(gs); in xdf_io_fini()
1095 ge_slot_t *gs; in xdf_ring_destroy() local
[all …]
/illumos-gate/usr/src/lib/libc/i386/threads/
H A Dtls_get_addr.S56 movl %gs:UL_TLSENT, %edx
58 cmpl %gs:UL_NTLSENT, %ecx
H A Dasm_subr.S49 movl %eax, %gs:0
124 push %gs
127 / args: cs, ss, gs, ..., eip, env, savemask
/illumos-gate/usr/src/uts/intel/ia32/sys/
H A Dprivregs.h116 movw %gs, 0(%esp);
130 movw %dx, %gs;
143 movw 0(%esp), %gs; \
/illumos-gate/usr/src/uts/i86pc/sys/
H A Dasm_misc.h44 movq %gs:CPU_SELF, reg;
47 movl %gs:CPU_SELF, reg;
/illumos-gate/usr/src/lib/libc/i386/gen/
H A D_stack_grow.S55 movl %gs:UL_USTACK+SS_SP, %ecx
56 movl %gs:UL_USTACK+SS_SIZE, %edx
/illumos-gate/usr/src/uts/i86pc/dboot/
H A Ddboot_xen.S43 movw %ax, %gs
90 movw %ax, %gs
/illumos-gate/usr/src/uts/intel/kdi/
H A Dkdi_asm.S51 movzbq %gs:CPU_ID, %rbx; \
66 movq %gs:CPU_IDT, %r11; \
71 movq %gs:CPU_GDT, %r11; \
140 movw %gs, %ax; \
289 mov %gs:(CPU_KPTI_DBG+KPTI_TR_CR3), %rdx
302 mov %gs:CPU_KPTI_KCR3, %rdx
550 movq %gs:CPU_SELF, %r13 /* can't leaq %gs:*, use self-ptr */
/illumos-gate/usr/src/boot/i386/libi386/
H A Drelocater_tramp.S80 movw %ax, %gs
127 movw %ax, %gs
144 movw %ax, %gs
255 movw %ax, %gs

1234