Lines Matching refs:rnn
62 struct rnn base;
70 to_rnndec(struct rnn *rnn) in to_rnndec() argument
72 return (struct rnndec *)rnn; in to_rnndec()
76 rnn_val(struct rnn *rnn, uint32_t regbase) in rnn_val() argument
78 struct rnndec *rnndec = to_rnndec(rnn); in rnn_val()
164 struct rnn *rnn; member
170 push_rnndoff(lua_State *L, struct rnn *rnn, struct rnndelem *elem, in push_rnndoff() argument
174 rnndoff->rnn = rnn; in push_rnndoff()
179 static int l_rnn_etype_array(lua_State *L, struct rnn *rnn,
181 static int l_rnn_etype_reg(lua_State *L, struct rnn *rnn, struct rnndelem *elem,
185 pushdecval(struct lua_State *L, struct rnn *rnn, uint64_t regval, in pushdecval() argument
189 switch (rnn_decodelem(rnn, info, regval, &val)) { in pushdecval()
214 l_rnn_etype(lua_State *L, struct rnn *rnn, struct rnndelem *elem, in l_rnn_etype() argument
225 regval = rnn_val(rnn, offset); in l_rnn_etype()
227 regval |= (uint64_t)rnn_val(rnn, offset + 1) << 32; in l_rnn_etype()
229 ret = pushdecval(L, rnn, regval, &elem->typeinfo); in l_rnn_etype()
232 return l_rnn_etype_reg(L, rnn, elem, offset); in l_rnn_etype()
234 return l_rnn_etype_array(L, rnn, elem, offset); in l_rnn_etype()
259 return l_rnn_etype(L, rnndoff->rnn, subelem, in l_rnn_struct_meta_index()
272 l_rnn_etype_struct(lua_State *L, struct rnn *rnn, struct rnndelem *elem, in l_rnn_etype_struct() argument
275 push_rnndoff(L, rnn, elem, offset); in l_rnn_etype_struct()
306 return l_rnn_etype(L, rnndoff->rnn, elem->subelems[0], offset); in l_rnn_array_meta_index()
308 return l_rnn_etype_struct(L, rnndoff->rnn, elem, offset); in l_rnn_array_meta_index()
319 l_rnn_etype_array(lua_State *L, struct rnn *rnn, struct rnndelem *elem, in l_rnn_etype_array() argument
322 push_rnndoff(L, rnn, elem, offset); in l_rnn_etype_array()
365 uint32_t regval = rnn_val(rnndoff->rnn, rnndoff->offset); in l_rnn_reg_meta_index()
374 return pushdecval(L, rnndoff->rnn, regval, &bf->typeinfo); in l_rnn_reg_meta_index()
386 uint32_t regval = rnn_val(rnndoff->rnn, rnndoff->offset); in l_rnn_reg_meta_tostring()
387 struct rnndecaddrinfo *info = rnn_reginfo(rnndoff->rnn, rnndoff->offset); in l_rnn_reg_meta_tostring()
390 decoded = rnndec_decodeval(rnndoff->rnn->vc, info->typeinfo, regval); in l_rnn_reg_meta_tostring()
407 uint32_t regval = rnn_val(rnndoff->rnn, rnndoff->offset); in l_rnn_reg_meta_tonumber()
423 l_rnn_etype_reg(lua_State *L, struct rnn *rnn, struct rnndelem *elem, in l_rnn_etype_reg() argument
426 push_rnndoff(L, rnn, elem, offset); in l_rnn_etype_reg()
444 struct rnn *rnn = lua_touserdata(L, 1); in l_rnn_meta_index() local
448 elem = rnn_regelem(rnn, name); in l_rnn_meta_index()
452 return l_rnn_etype(L, rnn, elem, elem->offset); in l_rnn_meta_index()
491 struct rnn *rnn = lua_touserdata(L, 1); in l_rnn_enumname() local
494 lua_pushstring(L, rnn_enumname(rnn, name, val)); in l_rnn_enumname()
501 struct rnn *rnn = lua_touserdata(L, 1); in l_rnn_regname() local
503 lua_pushstring(L, rnn_regname(rnn, regbase, 1)); in l_rnn_regname()
510 struct rnn *rnn = lua_touserdata(L, 1); in l_rnn_regval() local
513 struct rnndecaddrinfo *info = rnn_reginfo(rnn, regbase); in l_rnn_regval()
516 decoded = rnndec_decodeval(rnn->vc, info->typeinfo, regval); in l_rnn_regval()
682 struct rnn *rnn = lua_touserdata(L, 1); in l_rnn_meta_dom_index() local
692 elem = rnn_regoff(rnn, offset); in l_rnn_meta_dom_index()
696 return l_rnn_etype(L, rnn, elem, elem->offset); in l_rnn_meta_dom_index()
723 script_packet(uint32_t *dwords, uint32_t sizedwords, struct rnn *rnn, in script_packet() argument
739 rnndec->base = *rnn; in script_packet()