• Home
  • Raw
  • Download

Lines Matching refs:elems

370 static struct rnndecaddrinfo *trymatch (struct rnndeccontext *ctx, struct rnndelem **elems, int ele…  in trymatch()  argument
374 if (!rnndec_varmatch(ctx, &elems[i]->varinfo)) in trymatch()
378 switch (elems[i]->type) { in trymatch()
380 if (addr < elems[i]->offset) in trymatch()
382 if (elems[i]->stride) { in trymatch()
383 idx = (addr-elems[i]->offset)/elems[i]->stride; in trymatch()
384 offset = (addr-elems[i]->offset)%elems[i]->stride; in trymatch()
387 offset = addr-elems[i]->offset; in trymatch()
389 if (offset >= elems[i]->width/dwidth) in trymatch()
391 if (elems[i]->length && idx >= elems[i]->length) in trymatch()
394 res->typeinfo = &elems[i]->typeinfo; in trymatch()
395 res->width = elems[i]->width; in trymatch()
396 asprintf (&res->name, "%s%s%s", ctx->colors->rname, elems[i]->name, ctx->colors->reset); in trymatch()
399 if (elems[i]->length != 1) in trymatch()
400 res->name = appendidx(ctx, res->name, idx, elems[i]->index); in trymatch()
415 for (idx = 0; idx < elems[i]->length || !elems[i]->length; idx++) { in trymatch()
416 if (addr < elems[i]->offset + elems[i]->stride * idx) in trymatch()
418 offset = addr - (elems[i]->offset + elems[i]->stride * idx); in trymatch()
419 int extraidx = (elems[i]->length != 1); in trymatch()
420 int nindnum = (elems[i]->name ? 0 : indicesnum + extraidx); in trymatch()
422 if (!elems[i]->name) { in trymatch()
428 …res = trymatch (ctx, elems[i]->subelems, elems[i]->subelemsnum, offset, write, dwidth, nind, nindn… in trymatch()
431 if (!elems[i]->name) in trymatch()
433 asprintf (&name, "%s%s%s", ctx->colors->rname, elems[i]->name, ctx->colors->reset); in trymatch()
436 if (elems[i]->length != 1) in trymatch()
437 name = appendidx(ctx, name, idx, elems[i]->index); in trymatch()
446 if (get_array_idx_offset(elems[i], addr, &idx, &offset)) in trymatch()
448 asprintf (&name, "%s%s%s", ctx->colors->rname, elems[i]->name, ctx->colors->reset); in trymatch()
451 if (elems[i]->length != 1) in trymatch()
452 name = appendidx(ctx, name, idx, elems[i]->index); in trymatch()
453 …if ((res = trymatch (ctx, elems[i]->subelems, elems[i]->subelemsnum, offset, write, dwidth, 0, 0))… in trymatch()
490 static unsigned tryreg(struct rnndeccontext *ctx, struct rnndelem **elems, int elemsnum, in tryreg() argument
510 struct rnndelem *elem = elems[i]; in tryreg()