Home
last modified time | relevance | path

Searched refs:stack (Results 1 – 25 of 374) sorted by relevance

12345678910>>...15

/titanic_51/usr/src/common/ficl/
H A Dstack.c6 * $Id: stack.c,v 1.11 2010/08/12 13:57:22 asau Exp $
60 * Check the parameter stack for underflow or overflow.
62 * the function checks the stack state for underflow and overflow.
63 * If size > 0, checks to see that the stack has room to push
65 * stack has room to pop that many cells. If any test fails,
69 ficlStackCheck(ficlStack *stack, int popCells, int pushCells) in ficlStackCheck() argument
72 int nFree = stack->size - STKDEPTH(stack); in ficlStackCheck()
74 if (popCells > STKDEPTH(stack)) in ficlStackCheck()
75 ficlVmThrowError(stack in ficlStackCheck()
96 ficlStack *stack = ficlMalloc(totalSize); ficlStackCreate() local
115 ficlStackDestroy(ficlStack * stack) ficlStackDestroy() argument
125 ficlStackDepth(ficlStack * stack) ficlStackDepth() argument
134 ficlStackDrop(ficlStack * stack,int n) ficlStackDrop() argument
144 ficlStackFetch(ficlStack * stack,int n) ficlStackFetch() argument
150 ficlStackStore(ficlStack * stack,int n,ficlCell c) ficlStackStore() argument
159 ficlStackGetTop(ficlStack * stack) ficlStackGetTop() argument
174 ficlStackLink(ficlStack * stack,int size) ficlStackLink() argument
188 ficlStackUnlink(ficlStack * stack) ficlStackUnlink() argument
199 ficlStackPick(ficlStack * stack,int n) ficlStackPick() argument
208 ficlStackPop(ficlStack * stack) ficlStackPop() argument
214 ficlStackPopPointer(ficlStack * stack) ficlStackPopPointer() argument
220 ficlStackPopUnsigned(ficlStack * stack) ficlStackPopUnsigned() argument
226 ficlStackPopInteger(ficlStack * stack) ficlStackPopInteger() argument
232 ficlStackPop2Integer(ficlStack * stack) ficlStackPop2Integer() argument
242 ficlStackPop2Unsigned(ficlStack * stack) ficlStackPop2Unsigned() argument
253 ficlStackPopFloat(ficlStack * stack) ficlStackPopFloat() argument
263 ficlStackPush(ficlStack * stack,ficlCell c) ficlStackPush() argument
269 ficlStackPushPointer(ficlStack * stack,void * ptr) ficlStackPushPointer() argument
278 ficlStackPushInteger(ficlStack * stack,ficlInteger i) ficlStackPushInteger() argument
287 ficlStackPushUnsigned(ficlStack * stack,ficlUnsigned u) ficlStackPushUnsigned() argument
296 ficlStackPush2Unsigned(ficlStack * stack,ficl2Unsigned du) ficlStackPush2Unsigned() argument
303 ficlStackPush2Integer(ficlStack * stack,ficl2Integer di) ficlStackPush2Integer() argument
313 ficlStackPushFloat(ficlStack * stack,ficlFloat f) ficlStackPushFloat() argument
326 ficlStackReset(ficlStack * stack) ficlStackReset() argument
339 ficlStackRoll(ficlStack * stack,int n) ficlStackRoll() argument
371 ficlStackSetTop(ficlStack * stack,ficlCell c) ficlStackSetTop() argument
378 ficlStackWalk(ficlStack * stack,ficlStackWalkFunction callback,void * context,ficlInteger bottomToTop) ficlStackWalk() argument
[all...]
H A Dficl.h239 * Includes a floating point stack for the VM, and words to do float operations.
440 * This will detect stack over and underflows and dictionary overflows.
443 * FICL_ROBUST == 1 --> stack checking in the outer interpreter
854 * machine. (Note: C's automatic stack is implicitly used,
856 * Here's an abstract type for a stack
860 ficlUnsigned size; /* size of the stack, in cells */
861 ficlCell *frame; /* link reg for stack frame */
862 ficlCell *top; /* stack pointer */
865 ficlCell base[1]; /* Top of stack */
873 FICL_PLATFORM_EXTERN void ficlStackDestroy(ficlStack *stack);
914 FICL_STACK_CHECK(stack,popCells,pushCells) global() argument
917 FICL_STACK_CHECK(stack,popCells,pushCells) global() argument
[all...]
/titanic_51/usr/src/lib/libast/common/misc/
H A Dstack.c39 register STACK stack; in stackalloc() local
43 if (!(stack = newof(0, struct stacktable, 1, 0))) return(0); in stackalloc()
46 free(stack); in stackalloc()
49 if (!(b->stack = newof(0, void*, size, 0))) in stackalloc()
52 free(stack); in stackalloc()
55 stack->blocks = b; in stackalloc()
56 stack->size = size; in stackalloc()
57 stack->error = error; in stackalloc()
58 stack->position.block = b; in stackalloc()
59 stack->position.index = -1; in stackalloc()
[all …]
/titanic_51/usr/src/contrib/ast/src/lib/libast/misc/
H A Dstack.c24 * pointer stack routines
27 static const char id_stack[] = "\n@(#)$Id: stack (AT&T Bell Laboratories) 1984-05-01 $\0\n";
30 #include <stack.h>
33 * create a new stack
39 register STACK stack; in stackalloc() local
43 if (!(stack = newof(0, struct stacktable, 1, 0))) return(0); in stackalloc()
46 free(stack); in stackalloc()
49 if (!(b->stack = newof(0, void*, size, 0))) in stackalloc()
52 free(stack); in stackalloc()
55 stack in stackalloc()
70 stackfree(register STACK stack) stackfree() argument
90 stackclear(register STACK stack) stackclear() argument
101 stackget(register STACK stack) stackget() argument
112 stackpush(register STACK stack,void * value) stackpush() argument
142 stackpop(register STACK stack) stackpop() argument
168 stacktell(register STACK stack,int set,STACKPOS * position) stacktell() argument
[all...]
/titanic_51/usr/src/grub/grub-0.97/stage2/
H A Dfsys_zfs.c93 static int zio_read_data(blkptr_t *bp, void *buf, char *stack);
308 zio_read_gang(blkptr_t *bp, dva_t *dva, void *buf, char *stack) in zio_read_gang() argument
315 zio_gb = (zio_gbh_phys_t *)stack; in zio_read_gang()
316 stack += SPA_GANGBLOCKSIZE; in zio_read_gang()
341 if (zio_read_data(&zio_gb->zg_blkptr[i], buf, stack)) in zio_read_gang()
357 zio_read_data(blkptr_t *bp, void *buf, char *stack) in zio_read_data() argument
372 if (zio_read_gang(bp, &bp->blk_dva[i], buf, stack) != 0) in zio_read_data()
467 zio_read(blkptr_t *bp, void *buf, char *stack) in zio_read() argument
492 if ((char *)buf < stack && ((char *)buf) + lsize > stack) { in zio_read()
529 dmu_read(dnode_phys_t * dn,uint64_t blkid,void * buf,char * stack) dmu_read() argument
722 fzap_lookup(dnode_phys_t * zap_dnode,zap_phys_t * zap,const char * name,uint64_t * value,char * stack) fzap_lookup() argument
766 zap_lookup(dnode_phys_t * zap_dnode,const char * name,uint64_t * val,char * stack) zap_lookup() argument
803 zap_iterate(dnode_phys_t * zap_dnode,zap_cb_t * cb,void * arg,char * stack) zap_iterate() argument
859 dnode_get(dnode_phys_t * mdn,uint64_t objnum,uint8_t type,dnode_phys_t * buf,char * stack) dnode_get() argument
924 check_feature(zap_attribute_t * za,void * arg,char * stack) check_feature() argument
952 dnode_get_path(dnode_phys_t * mdn,char * path,dnode_phys_t * dn,char * stack) dnode_get_path() argument
1012 get_default_bootfsobj(dnode_phys_t * mosmdn,uint64_t * obj,char * stack) get_default_bootfsobj() argument
1069 check_mos_features(dnode_phys_t * mosmdn,char * stack) check_mos_features() argument
1113 get_objset_mdn(dnode_phys_t * mosmdn,char * fsname,uint64_t * obj,dnode_phys_t * mdn,char * stack) get_objset_mdn() argument
1528 check_pool_label(uint64_t sector,char * stack,char * outdevid,char * outpath,uint64_t * outguid,uint64_t * outashift,uint64_t * outversion) check_pool_label() argument
1624 char *stack, *ub_array; zfs_mount() local
1723 char *stack; zfs_open() local
1824 char *stack; zfs_read() local
[all...]
/titanic_51/usr/src/cmd/fs.d/autofs/
H A Dns_files.c58 * Initialize the stack
61 init_files(char **stack, char ***stkptr) in init_files() argument
64 * The call is bogus for automountd since the stack is in init_files()
68 if (stack == NULL && stkptr == NULL) in init_files()
70 (void) stack_op(INIT, NULL, stack, stkptr); in init_files()
74 getmapent_files(key, mapname, ml, stack, stkptr, iswildcard, isrestricted) in getmapent_files() argument
78 char **stack, ***stkptr;
93 if ((fp = file_open(mapname, fname, stack, stkptr)) == NULL) {
166 nserr = getmapent(key, word+1, ml, stack, stkptr,
201 (void) stack_op(POP, (char *)NULL, stack, stkpt
210 getmapkeys_files(mapname,list,error,cache_time,stack,stkptr) getmapkeys_files() argument
325 loadmaster_files(mastermap,defopts,stack,stkptr) loadmaster_files() argument
417 loaddirect_files(map,local_map,opts,stack,stkptr) loaddirect_files() argument
463 file_open(map,fname,stack,stkptr) file_open() argument
491 stack_op(op,name,stack,stkptr) stack_op() argument
[all...]
H A Dns_generic.c73 ns_setup(char **stack, char ***stkptr) in ns_setup() argument
78 nsp->ns_init(stack, stkptr); in ns_setup()
128 getmapent(key, mapname, ml, stack, stkptr, iswildcard, isrestricted) in getmapent() argument
131 char **stack, ***stkptr;
145 return (getmapent_files(key, mapname, ml, stack, stkptr,
149 ns_err = nsp->ns_getmapent(key, mapname, ml, stack, stkptr,
159 loadmaster_map(mapname, defopts, stack, stkptr) in loadmaster_map() argument
161 char **stack, ***stkptr;
168 return (loadmaster_files(mapname, defopts, stack, stkptr));
171 ns_err = nsp->ns_loadmaster(mapname, defopts, stack, stkpt
180 loaddirect_map(mapname,localmap,defopts,stack,stkptr) loaddirect_map() argument
275 getmapkeys(mapname,list,error,cache_time,stack,stkptr,uid) getmapkeys() argument
[all...]
H A Dns_nis.c63 init_nis(char **stack, char ***stkptr) in init_nis() argument
66 stack = stack; in init_nis()
75 getmapent_nis(key, map, ml, stack, stkptr, iswildcard, isrestricted) in getmapent_nis() argument
78 char **stack;
167 loadmaster_nis(mapname, defopts, stack, stkptr) in loadmaster_nis() argument
169 char **stack;
280 dirinit(dir, pmap, opts, 0, stack, stkptr);
309 loaddirect_nis(nismap, localmap, opts, stack, stkptr) in loaddirect_nis() argument
311 char **stack;
425 getmapkeys_nis(nsmap,list,error,cache_time,stack,stkptr) getmapkeys_nis() argument
[all...]
/titanic_51/usr/src/boot/sys/boot/userboot/userboot/
H A Delf32_freebsd.c48 #define GUEST_STACK 0x1000 /* Initial stack base */
63 uint32_t stack[1024], *sp; in elf32_exec() local
82 * Build a scratch stack at physical 0x1000 in elf32_exec()
84 memset(stack, 0, sizeof(stack)); in elf32_exec()
85 sp = (uint32_t *)((char *)stack + sizeof(stack)); in elf32_exec()
100 CALLBACK(copyin, stack, GUEST_STACK, sizeof(stack)); in elf32_exec()
101 CALLBACK(setreg, 4, (char *)sp - (char *)stack in elf32_exec()
[all...]
H A Delf64_freebsd.c93 uint32_t stack[1024]; in elf64_exec() local
112 * Build a scratch stack at physical 0x1000, page tables: in elf64_exec()
144 stack[0] = 0; /* return address */; in elf64_exec()
145 stack[1] = modulep; in elf64_exec()
146 stack[2] = kernend; in elf64_exec()
147 CALLBACK(copyin, stack, 0x1000, sizeof(stack)); in elf64_exec()
/titanic_51/usr/src/uts/common/inet/udp/
H A Dudp_tunables.c34 udp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_set_buf_prop() argument
37 return (mod_set_buf_prop(stack->netstack_udp->us_propinfo_tbl, stack, in udp_set_buf_prop()
42 udp_get_buf_prop(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in udp_get_buf_prop() argument
45 return (mod_get_buf_prop(stack->netstack_udp->us_propinfo_tbl, stack, in udp_get_buf_prop()
55 udp_smallest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_smallest_anon_set() argument
59 udp_stack_t *us = stack->netstack_udp; in udp_smallest_anon_set()
73 udp_largest_anon_set(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in udp_largest_anon_set() argument
77 udp_stack_t *us = stack in udp_largest_anon_set()
[all...]
/titanic_51/usr/src/lib/libast/common/string/
H A Dfmtre.c52 Stack_t stack[32]; in fmtre() local
57 p = stack; in fmtre()
113 if (p >= &stack[elementsof(stack)]) in fmtre()
140 if (p >= &stack[elementsof(stack)]) in fmtre()
183 if (p >= &stack[elementsof(stack)]) in fmtre()
192 if (p == stack) in fmtre()
220 if (p != stack) in fmtre()
H A Dfmtmatch.c48 char* stack[32]; in fmtmatch() local
53 p = stack; in fmtmatch()
136 if (p >= &stack[elementsof(stack)]) in fmtmatch()
157 if (p == stack) in fmtmatch()
259 if (p == stack && b == buf + 3) in fmtmatch()
276 if (p != stack) in fmtmatch()
/titanic_51/usr/src/contrib/ast/src/lib/libast/string/
H A Dfmtre.c52 Stack_t stack[32]; in fmtre() local
57 p = stack; in fmtre()
113 if (p >= &stack[elementsof(stack)]) in fmtre()
140 if (p >= &stack[elementsof(stack)]) in fmtre()
183 if (p >= &stack[elementsof(stack)]) in fmtre()
192 if (p == stack) in fmtre()
220 if (p != stack) in fmtre()
[all...]
H A Dfmtmatch.c48 char* stack[32]; in fmtmatch() local
53 p = stack; in fmtmatch()
136 if (p >= &stack[elementsof(stack)]) in fmtmatch()
157 if (p == stack) in fmtmatch()
259 if (p == stack && b == buf + 3) in fmtmatch()
276 if (p != stack) in fmtmatch()
/titanic_51/usr/src/uts/common/inet/
H A Dtunables.c76 mod_set_boolean(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_boolean() argument
101 mod_get_boolean(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_boolean() argument
150 mod_set_uint32(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_uint32() argument
167 mod_set_aligned(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in mod_set_aligned() argument
172 if ((err = mod_set_uint32(stack, cr, pinfo, ifname, pval, flags)) != 0) in mod_set_aligned()
190 mod_get_uint32(netstack_t *stack, mod_prop_info_t *pinfo, const char *ifname, in mod_get_uint32() argument
238 mod_set_buf_prop(mod_prop_info_t ptbl[], netstack_t *stack, cred_t *cr, in mod_set_buf_prop() argument
268 mod_get_buf_prop(mod_prop_info_t ptbl[], netstack_t *stack, in mod_get_buf_prop() argument
280 return (mod_get_uint32(stack, pinfo, ifname, pval, psize, flags)); in mod_get_buf_prop()
289 mod_get_allprop(netstack_t *stack, mod_prop_info_ argument
346 mod_set_extra_privports(netstack_t * stack,cred_t * cr,mod_prop_info_t * pinfo,const char * ifname,const void * val,uint_t flags) mod_set_extra_privports() argument
464 mod_get_extra_privports(netstack_t * stack,mod_prop_info_t * pinfo,const char * ifname,void * val,uint_t psize,uint_t flags) mod_get_extra_privports() argument
[all...]
/titanic_51/usr/src/cmd/smbsrv/dtrace/
H A Dsmbnode.d48 stack();
58 stack();
69 stack();
78 stack();
87 stack();
96 stack();
106 stack();
115 stack();
124 stack();
/titanic_51/usr/src/uts/common/inet/tcp/
H A Dtcp_tunables.c46 tcp_set_1948phrase(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_set_1948phrase() argument
56 stack->netstack_tcp); in tcp_set_1948phrase()
65 tcp_listener_conf_get(netstack_t *stack, mod_prop_info_t *pinfo, in tcp_listener_conf_get() argument
68 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_listener_conf_get()
109 tcp_listener_conf_add(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_listener_conf_add() argument
117 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_listener_conf_add()
158 tcp_listener_conf_del(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_listener_conf_del() argument
163 tcp_stack_t *tcps = stack->netstack_tcp; in tcp_listener_conf_del()
187 tcp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in tcp_set_buf_prop() argument
190 return (mod_set_buf_prop(stack in tcp_set_buf_prop()
195 tcp_get_buf_prop(netstack_t * stack,mod_prop_info_t * pinfo,const char * ifname,void * val,uint_t psize,uint_t flags) tcp_get_buf_prop() argument
208 tcp_smallest_anon_set(netstack_t * stack,cred_t * cr,mod_prop_info_t * pinfo,const char * ifname,const void * pval,uint_t flags) tcp_smallest_anon_set() argument
226 tcp_largest_anon_set(netstack_t * stack,cred_t * cr,mod_prop_info_t * pinfo,const char * ifname,const void * pval,uint_t flags) tcp_largest_anon_set() argument
[all...]
/titanic_51/usr/src/uts/common/inet/sctp/
H A Dsctp_tunables.c46 sctp_listener_conf_get(netstack_t *stack, mod_prop_info_t *pinfo, in sctp_listener_conf_get() argument
49 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_get()
90 sctp_listener_conf_add(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_listener_conf_add() argument
98 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_add()
139 sctp_listener_conf_del(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_listener_conf_del() argument
144 sctp_stack_t *sctps = stack->netstack_sctp; in sctp_listener_conf_del()
168 sctp_set_buf_prop(netstack_t *stack, cred_t *cr, mod_prop_info_t *pinfo, in sctp_set_buf_prop() argument
171 return (mod_set_buf_prop(stack->netstack_sctp->sctps_propinfo_tbl, in sctp_set_buf_prop()
172 stack, cr, pinfo, ifname, pval, flags)); in sctp_set_buf_prop()
176 sctp_get_buf_prop(netstack_t *stack, mod_prop_info_ argument
[all...]
/titanic_51/usr/src/lib/libc/amd64/threads/
H A Dmachdep.c39 uint64_t *stack; in setup_top_frame() local
47 * Top-of-stack must be rounded down to STACK_ALIGN and in setup_top_frame()
50 stack = (uint64_t *)(((uintptr_t)stk + stksize) & ~(STACK_ALIGN-1)); in setup_top_frame()
54 * a page for the top page of the stack. This will cause in setup_top_frame()
58 stack -= 3; in setup_top_frame()
62 if (uucopy(&frame, stack, sizeof (frame)) == 0) in setup_top_frame()
63 return (stack); in setup_top_frame()
71 uint64_t *stack; in setup_context() local
84 * Setup the top stack frame. in setup_context()
87 if ((stack in setup_context()
[all...]
/titanic_51/usr/src/psm/promif/ieee1275/common/
H A Dprom_node.c73 * implementation uses an explicitly managed stack in order to save the
80 pnode_t stack[OBP_STACKDEPTH]; in prom_walk_devs() local
87 stack[0] = node; in prom_walk_devs()
90 pnode_t curnode = stack[stackidx]; in prom_walk_devs()
104 stack[stackidx] = prom_nextnode(stack[stackidx]); in prom_walk_devs()
121 stack[stackidx] = child; in prom_walk_devs()
123 stack[stackidx] = in prom_walk_devs()
124 prom_nextnode(stack[stackidx]); in prom_walk_devs()
/titanic_51/usr/src/cmd/tnf/prex/
H A Dsource.c73 static queue_node_t stack; variable
78 * source_init() - initializes the source stack
90 /* initialize the stack queue head */ in source_init()
91 queue_init(&stack); in source_init()
93 /* stick the standard input on the bottom of the stack */ in source_init()
101 (void) queue_prepend(&stack, &new_p->qn); in source_init()
105 * since we are pushing onto a stack, we invert the search order * in source_init()
128 * source_file() - pushes a new source onto the stack
149 (void) queue_prepend(&stack, &new_p->qn); in source_file()
192 top = (source_t *) queue_next(&stack, in source_input()
[all...]
/titanic_51/usr/src/uts/sun4v/ml/
H A Dwbuf.s56 ! misaligned stack. We handle an unmapped stack by simulating
57 ! a pagefault at the trap pc and a misaligned stack by generating
99 ! This happens when sys_trap's save spills to an unmapped stack.
128 ! user's stack has been unmapped.
155 ! user's stack has been unmapped.
192 ! misaligned stack. We handle an unmapped stack by simulating
193 ! a pagefault at the trap pc and a misaligned stack by generating
235 ! This happens when sys_trap's save spills to an unmapped stack
[all...]
/titanic_51/usr/src/cmd/sendmail/db/btree/
H A Dbt_search.c87 int cmp, jump, ret, stack; local
113 stack = F_ISSET(dbp, DB_BT_RECNUM) && LF_ISSET(S_STACK);
115 0, pg, stack ? DB_LOCK_WRITE : DB_LOCK_READ, &lock)) != 0)
130 if (!stack &&
141 stack = 1;
210 if (stack) {
226 * page in the return stack. If so, lock it and never
232 stack = 1;
237 __bam_lget(dbc, 1, pg, stack && LF_ISSET(S_WRITE) ?
310 * Release all pages currently held in the stack
[all...]
/titanic_51/usr/src/uts/intel/dtrace/
H A Dsdt.c38 #include <sys/stack.h>
58 sdt_invop(uintptr_t addr, uintptr_t *stack, uintptr_t eax) in sdt_invop() argument
66 * On amd64, stack[0] contains the dereferenced stack pointer, in sdt_invop()
67 * stack[1] contains savfp, stack[2] contains savpc. We want in sdt_invop()
76 * When accessing the arguments on the stack, we must in sdt_invop()
77 * protect against accessing beyond the stack. We can in sdt_invop()
82 stack0 = stack[i++]; in sdt_invop()
83 stack1 = stack[ in sdt_invop()
306 uintptr_t *stack; sdt_getarg() local
[all...]

12345678910>>...15