Home
last modified time | relevance | path

Searched refs:nup (Results 1 – 4 of 4) sorted by relevance

/illumos-gate/usr/src/uts/common/fs/zfs/lua/
H A Dlauxlib.c685 const luaL_Reg *l, int nup) { in luaL_openlib() argument
689 lua_insert(L, -(nup + 1)); /* move library table to below upvalues */ in luaL_openlib()
692 luaL_setfuncs(L, l, nup); in luaL_openlib()
694 lua_pop(L, nup); /* remove upvalues */ in luaL_openlib()
705 LUALIB_API void luaL_setfuncs (lua_State *L, const luaL_Reg *l, int nup) { in luaL_setfuncs() argument
707 luaL_checkstack(L, nup, "too many upvalues"); in luaL_setfuncs()
710 for (i = 0; i < nup; i++) /* copy upvalues to the top */ in luaL_setfuncs()
711 lua_pushvalue(L, -nup); in luaL_setfuncs()
712 lua_pushcclosure(L, l->func, nup); /* closure with those upvalues */ in luaL_setfuncs()
713 lua_setfield(L, -(nup + 2), l->name); in luaL_setfuncs()
[all …]
H A Dlauxlib.h80 LUALIB_API void (luaL_setfuncs) (lua_State *L, const luaL_Reg *l, int nup);
167 const luaL_Reg *l, int nup);
H A Dlvm.c442 int nup = p->sizeupvalues; in getcached() local
445 for (i = 0; i < nup; i++) { /* check whether it has right upvalues */ in getcached()
463 int nup = p->sizeupvalues; in pushclosure() local
466 Closure *ncl = luaF_newLclosure(L, nup); in pushclosure()
469 for (i = 0; i < nup; i++) { /* fill in its upvalues */ in pushclosure()
/illumos-gate/usr/src/uts/common/io/
H A Dtimod.c2419 struct T_unitdata_req *nup; in tim_filladdr() local
2454 nup = (struct T_unitdata_req *)bp->b_rptr; in tim_filladdr()
2455 nup->PRIM_type = T_UNITDATA_REQ; in tim_filladdr()
2456 nup->DEST_length = plen = tp->tim_peerlen; in tim_filladdr()
2458 nup->DEST_offset = sizeof (struct T_unitdata_req); in tim_filladdr()
2465 nup->OPT_length = 0; in tim_filladdr()
2466 nup->OPT_offset = 0; in tim_filladdr()
2468 nup->OPT_length = up->OPT_length; in tim_filladdr()
2469 nup->OPT_offset = in tim_filladdr()