Lines Matching defs:regval
184 pushdecval(struct lua_State *L, struct rnn *rnn, uint32_t regval,
188 switch (rnn_decodelem(rnn, info, regval, &val)) {
217 uint32_t regval;
224 regval = rnn_val(rnn, offset);
225 regval <<= elem->typeinfo.shr;
226 ret = pushdecval(L, rnn, regval, &elem->typeinfo);
362 uint32_t regval = rnn_val(rnndoff->rnn, rnndoff->offset);
364 regval &= typeinfo_mask(&bf->typeinfo);
365 regval >>= bf->typeinfo.low;
366 regval <<= bf->typeinfo.shr;
368 DBG("name=%s, info=%p, subelemsnum=%d, type=%d, regval=%x", name, info,
369 rnndoff->elem->subelemsnum, bf->typeinfo.type, regval);
371 return pushdecval(L, rnndoff->rnn, regval, &bf->typeinfo);
383 uint32_t regval = rnn_val(rnndoff->rnn, rnndoff->offset);
387 decoded = rnndec_decodeval(rnndoff->rnn->vc, info->typeinfo, regval);
389 asprintf(&decoded, "%08x", regval);
404 uint32_t regval = rnn_val(rnndoff->rnn, rnndoff->offset);
406 regval <<= rnndoff->elem->typeinfo.shr;
408 lua_pushnumber(L, regval);
509 uint32_t regval = (uint32_t)lua_tonumber(L, 3);
513 decoded = rnndec_decodeval(rnn->vc, info->typeinfo, regval);
515 asprintf(&decoded, "%08x", regval);
530 {"regval", l_rnn_regval},