Home
last modified time | relevance | path

Searched refs:top (Results 1 – 25 of 439) sorted by relevance

12345678910>>...18

/illumos-gate/usr/src/uts/i86pc/sys/
H A Dmachclock.h63 #define TODOP_GET(top) ((top)->tod_get(top)) argument
64 #define TODOP_SET(top, ts) ((top)->tod_set(top, ts)) argument
65 #define TODOP_SETWD(top, nsec) ((top)->tod_set_watchdog_timer(top, nsec)) argument
66 #define TODOP_CLRWD(top) ((top)->tod_clear_watchdog_timer(top)) argument
67 #define TODOP_SETWAKE(top, nsec) ((top)->tod_set_wake_alarm(top, nsec)) argument
68 #define TODOP_CLRWAKE(top) ((top)->tod_clear_wake_alarm(top)) argument
/illumos-gate/usr/src/contrib/ast/src/lib/libast/hash/
H A Dhashview.c43 hashview(Hash_table_t* top, Hash_table_t* bot) in hashview() argument
50 if (!top || top->frozen) in hashview()
52 else if (top == bot) in hashview()
53 bot = top->scope; in hashview()
56 if (top->scope) in hashview()
60 sx = &top->table[top->size]; in hashview()
61 sp = &top->table[0]; in hashview()
69 top->scope = bot; in hashview()
73 else if (bot = top->scope) in hashview()
75 sx = &top->table[top->size]; in hashview()
[all …]
/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlapi.c58 api_check(L, idx <= ci->top - (ci->func + 1), "unacceptable index"); in index2addr()
59 if (o >= L->top) return NONVALIDVALUE; in index2addr()
63 api_check(L, idx != 0 && -idx <= L->top - (ci->func + 1), "invalid index"); in index2addr()
64 return L->top + idx; in index2addr()
95 if (L->stack_last - L->top > size) /* stack large enough? */ in lua_checkstack()
98 int inuse = cast_int(L->top - L->stack) + EXTRA_STACK; in lua_checkstack()
104 if (res && ci->top < L->top + size) in lua_checkstack()
105 ci->top = L->top + size; /* adjust frame top */ in lua_checkstack()
117 api_check(from, to->ci->top - to->top >= n, "not enough elements to move"); in lua_xmove()
118 from->top -= n; in lua_xmove()
[all …]
H A Dlvm.c87 ci->func = L->top - 1; /* protect stack below results */ in traceexec()
96 setobj2s(L, L->top++, f); /* push function */ in callTM()
97 setobj2s(L, L->top++, p1); /* 1st argument */ in callTM()
98 setobj2s(L, L->top++, p2); /* 2nd argument */ in callTM()
100 setobj2s(L, L->top++, p3); /* 3rd argument */ in callTM()
102 luaD_call(L, L->top - (4 - hasres), hasres, isLua(L->ci)); in callTM()
105 setobjs2s(L, p3, --L->top); in callTM()
202 if (!call_binTM(L, p1, p2, L->top, event)) in call_orderTM()
205 return !l_isfalse(L->top); in call_orderTM()
288 callTM(L, tm, t1, t2, L->top, 1); /* call TM */ in luaV_equalobj_()
[all …]
H A Dlapi.h14 #define api_incr_top(L) {L->top++; api_check(L, L->top <= L->ci->top, \
18 { if ((nres) == LUA_MULTRET && L->ci->top < L->top) L->ci->top = L->top; }
20 #define api_checknelems(L,n) api_check(L, (n) < (L->top - L->ci->func), \
H A Dldo.c99 setobjs2s(L, oldtop, L->top - 1); /* error message on current top */ in seterrorobj()
103 L->top = oldtop + 1; in seterrorobj()
115 setobjs2s(L, G(L)->mainthread->top++, L->top - 1); /* copy error obj. */ in luaD_throw()
149 L->top = (L->top - oldstack) + L->stack; in correctstack()
153 ci->top = (ci->top - oldstack) + L->stack; in correctstack()
184 int needed = cast_int(L->top - L->stack) + n + EXTRA_STACK; in luaD_growstack()
200 StkId lim = L->top; in stackinuse()
202 lua_assert(ci->top <= L->stack_last); in stackinuse()
203 if (lim < ci->top) lim = ci->top; in stackinuse()
225 ptrdiff_t top = savestack(L, L->top); in luaD_hook() local
[all …]
/illumos-gate/usr/src/common/ficl/
H A Dstack.c45 #define STKDEPTH(s) (((s)->top - (s)->base) + 1)
137 stack->top -= n; in ficlStackDrop()
146 return (stack->top[-n]); in ficlStackFetch()
152 stack->top[-n] = c; in ficlStackStore()
161 return (stack->top[0]); in ficlStackGetTop()
177 stack->frame = stack->top + 1; in ficlStackLink()
178 stack->top += size; in ficlStackLink()
190 stack->top = stack->frame - 1; in ficlStackUnlink()
210 return (*stack->top--); in ficlStackPop()
216 return ((*stack->top--).p); in ficlStackPopPointer()
[all …]
/illumos-gate/usr/src/lib/libeti/menu/common/
H A Dchk.c39 _chk_top(MENU *m, int *top, ITEM *current) in _chk_top() argument
41 if (Y(current) < *top) { in _chk_top()
42 *top = Y(current); in _chk_top()
44 if (Y(current) >= *top + Height(m)) { in _chk_top()
45 *top = Y(current) - Height(m) + 1; in _chk_top()
56 _chk_current(MENU *m, int *top, ITEM *current) in _chk_current() argument
58 if (Y(current) < *top) { in _chk_current()
59 *top = Y(current); in _chk_current()
61 if (Y(current) >= *top + Height(m)) { in _chk_current()
62 *top = min(Y(current), Rows(m) - Height(m)); in _chk_current()
H A Ddriver.c40 int top; in menu_driver() local
54 top = Top(m); in menu_driver()
102 if (--top < 0) { in menu_driver()
103 ++top; in menu_driver()
111 if (++top > Rows(m) - Height(m)) { in menu_driver()
112 --top; in menu_driver()
120 n = min(Height(m), top); in menu_driver()
122 top -= n; in menu_driver()
133 n = min(Height(m), Rows(m) - Height(m) - top); in menu_driver()
135 top += n; in menu_driver()
[all …]
H A Dtopitem.c37 set_top_row(MENU *m, int top) in set_top_row() argument
48 if (top < 0 || top > Rows(m) - Height(m)) { in set_top_row()
51 if (top != Top(m)) { in set_top_row()
57 current = IthItem(m, RowMajor(m) ? top * Cols(m) : top); in set_top_row()
60 _affect_change(m, top, current); in set_top_row()
/illumos-gate/usr/src/cmd/dtrace/test/tst/common/json/
H A Dtst.general.d.out171 in |{ "top": { "mid" : { "legs": "feet" }, "number": 9, "array":[0,1,{"a":true,"bb":[1,2,false,{"x…
172 sel |top|
176 sel |top.mid|
178 sel |top.centre|
180 sel |top.mid.legs|
182 sel |top.mid.number|
184 sel |top.mid.array|
186 sel |top.number|
188 sel |top.array|
190 sel |top.array[0]|
[all …]
/illumos-gate/usr/src/cmd/ipf/lib/
H A Dprinthash_live.c24 iphtent_t entry, *top, *node; local
50 top = NULL;
55 entry.ipe_snext = top;
56 top = malloc(sizeof(*top));
57 if (top == NULL)
59 bcopy(&entry, top, sizeof(entry));
62 while (top != NULL) {
63 node = top;
65 top = node->ipe_snext;
H A Dprintpool_live.c24 ip_pool_node_t entry, *top, *node; local
50 top = NULL;
55 entry.ipn_next = top;
56 top = malloc(sizeof(*top));
57 if (top == NULL)
59 bcopy(&entry, top, sizeof(entry));
62 while (top != NULL) {
63 node = top;
65 top = node->ipn_next;
/illumos-gate/usr/src/uts/common/io/ral/
H A Dral_rate.c84 int flags = 0, i, rateidx = 0, thridx, top; in ral_rssadapt_choose() local
89 for (i = 0, top = RAL_RSSADAPT_BKT0; in ral_rssadapt_choose()
91 i++, top <<= RAL_RSSADAPT_BKTPOWER) { in ral_rssadapt_choose()
93 if (len <= top) in ral_rssadapt_choose()
153 uint32_t i, thridx, top; in ral_rssadapt_lower_rate() local
160 for (i = 0, top = RAL_RSSADAPT_BKT0; in ral_rssadapt_lower_rate()
162 i++, top <<= RAL_RSSADAPT_BKTPOWER) { in ral_rssadapt_lower_rate()
164 if (id->id_len <= top) in ral_rssadapt_lower_rate()
182 int i, top; in ral_rssadapt_raise_rate() local
186 for (i = 0, top = RAL_RSSADAPT_BKT0; in ral_rssadapt_raise_rate()
[all …]
/illumos-gate/usr/src/uts/sun4u/sys/
H A Dmachclock.h198 #define TODOP_GET(top) ((top).tod_get()) argument
199 #define TODOP_SET(top, ts) ((top).tod_set(ts)) argument
200 #define TODOP_SETWD(top, nsec) ((top).tod_set_watchdog_timer(nsec)) argument
201 #define TODOP_CLRWD(top) ((top).tod_clear_watchdog_timer()) argument
202 #define TODOP_SETWAKE(top, ts) ((top).tod_set_power_alarm(ts)) argument
203 #define TODOP_CLRWAKE(top) ((top).tod_clear_power_alarm()) argument
/illumos-gate/usr/src/uts/common/io/
H A Dvuid_queue.c53 vq->top = vq->bottom = vq->free = VUID_Q_NODE_NULL; in vq_initialize()
91 if (vq->top == VUID_Q_NODE_NULL) in vq_put()
92 vq->top = vqn; in vq_put()
103 Vuid_q_node *vqn = vq->top; in vq_get()
111 vq->top = vqn->next; in vq_get()
113 if (vq->top != VUID_Q_NODE_NULL) in vq_get()
114 vq->top->prev = VUID_Q_NODE_NULL; in vq_get()
126 if (vq->top == VUID_Q_NODE_NULL) in vq_peek()
128 *firm_event = vq->top->firm_event; in vq_peek()
141 vqn->next = vq->top; in vq_putback()
[all …]
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/
H A Dscrreg.c45 (setscrreg)(top, bottom)
46 int top, bottom;
49 __m_trace("setscrreg(%d, %d)", top, bottom);
52 if (top < 0 || bottom < top || stdscr->_maxy <= bottom)
56 stdscr->_top = top;
H A Dwscrreg.c45 wsetscrreg(w, top, bottom) in wsetscrreg() argument
47 int top, bottom;
50 __m_trace("wsetscrreg(%p, %d, %d)", w, top, bottom);
53 if (top < 0 || bottom < top || w->_maxy <= bottom)
57 w->_top = top;
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/recno/
H A Drec_get.c122 __rec_fpipe(t, top) in __rec_fpipe() argument
124 recno_t top;
143 for (nrec = t->bt_nrecs; nrec < top;) {
160 if (nrec < top) {
178 __rec_vpipe(t, top) in __rec_vpipe() argument
180 recno_t top;
190 for (nrec = t->bt_nrecs; nrec < top; ++nrec) {
217 if (nrec < top) {
235 __rec_fmap(t, top) in __rec_fmap() argument
237 recno_t top;
[all …]
/illumos-gate/usr/src/cmd/sendmail/libsm/
H A Dldap.c522 sm_ldap_add_recurse(top, item, type, rpool) in sm_ldap_add_recurse() argument
523 SM_LDAP_RECURSE_LIST **top; in sm_ldap_add_recurse()
544 if (*top == NULL)
547 *top = sm_rpool_malloc_x(rpool, sizeof **top);
548 (*top)->lrl_cnt = 0;
549 (*top)->lrl_size = 0;
550 (*top)->lrl_data = NULL;
553 if ((*top)->lrl_cnt >= (*top)->lrl_size)
556 olddata = (*top)->lrl_data;
557 if ((*top)->lrl_size == 0)
[all …]
/illumos-gate/usr/src/lib/krb5/plugins/kdb/db2/libdb2/btree/
H A Dbt_conv.c67 indx_t i, top; local
86 top = NEXTINDEX(h);
88 for (i = 0; i < top; i++) {
103 for (i = 0; i < top; i++) {
135 indx_t i, top; local
147 top = NEXTINDEX(h);
149 for (i = 0; i < top; i++) {
164 for (i = 0; i < top; i++) {
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/
H A Dscrreg.c50 setscrreg(int top, int bottom) in setscrreg() argument
52 if (top < 0 || bottom < top || stdscr->_maxy <= bottom) in setscrreg()
56 stdscr->_top = (short) top; in setscrreg()
H A Dwscrreg.c48 wsetscrreg(WINDOW *w, int top, int bottom) in wsetscrreg() argument
50 if (top < 0 || bottom < top || w->_maxy <= bottom) in wsetscrreg()
54 w->_top = (short) top; in wsetscrreg()
/illumos-gate/usr/src/cmd/look/
H A Dlook.c38 long top,bot,mid; in main() local
86 top = ftell(dfile); in main()
88 mid = (top+bot)/2; in main()
101 if(top<=mid) in main()
103 top = mid; in main()
113 while(ftell(dfile)<top) { in main()
/illumos-gate/usr/src/grub/grub-0.97/stage2/
H A Dcommon.c121 unsigned long long top; in mmap_avail_at() local
125 top = bottom; in mmap_avail_at()
135 && desc->BaseAddr <= top in mmap_avail_at()
136 && desc->BaseAddr + desc->Length > top) in mmap_avail_at()
138 top = desc->BaseAddr + desc->Length; in mmap_avail_at()
146 if (top > 0xFFFFFFFF) in mmap_avail_at()
147 top = 0xFFFFFFFF; in mmap_avail_at()
149 return (unsigned long) top - bottom; in mmap_avail_at()

12345678910>>...18