Lines Matching refs:tag

136     uint8_t tag;  member
164 uint8_t *tag; member
176 VMSTATE_VBUFFER_UINT32(tag, PL330Fifo, 1, NULL, buf_size),
190 uint8_t tag; member
204 VMSTATE_UINT8(tag, PL330QueueEntry),
344 s->tag = g_malloc0(size); in pl330_fifo_init()
368 static int pl330_fifo_push(PL330Fifo *s, uint8_t *buf, int len, uint8_t tag) in pl330_fifo_push() argument
378 s->tag[push_idx] = tag; in pl330_fifo_push()
390 static int pl330_fifo_get(PL330Fifo *s, uint8_t *buf, int len, uint8_t tag) in pl330_fifo_get() argument
398 if (s->tag[s->head] == tag) { in pl330_fifo_get()
424 return (!s->num) ? PL330_UNTAGGED : s->tag[s->head]; in pl330_fifo_tag()
429 static int pl330_fifo_has_tag(PL330Fifo *s, uint8_t tag) in pl330_fifo_has_tag() argument
435 if (s->tag[i] == tag) { in pl330_fifo_has_tag()
445 static void pl330_fifo_tagged_remove(PL330Fifo *s, uint8_t tag) in pl330_fifo_tagged_remove() argument
451 if (s->tag[i] != tag) { in pl330_fifo_tagged_remove()
453 s->tag[t] = s->tag[i]; in pl330_fifo_tagged_remove()
489 s->queue[i].tag = PL330_UNTAGGED; in pl330_queue_reset()
507 if (s->queue[i].tag == PL330_UNTAGGED) { in pl330_queue_find_empty()
521 int len, int n, bool inc, bool z, uint8_t tag) in pl330_queue_put_insn() argument
528 entry->tag = tag; in pl330_queue_put_insn()
534 entry->seqn = s->parent->hi_seqn[tag]; in pl330_queue_put_insn()
535 s->parent->hi_seqn[tag]++; in pl330_queue_put_insn()
549 static PL330QueueEntry *pl330_queue_find_insn(PL330Queue *s, uint8_t tag, in pl330_queue_find_insn() argument
555 if (s->queue[i].tag != PL330_UNTAGGED) { in pl330_queue_find_insn()
557 s->queue[i].seqn == s->parent->lo_seqn[s->queue[i].tag]) && in pl330_queue_find_insn()
558 (s->queue[i].tag == tag || tag == PL330_UNTAGGED || in pl330_queue_find_insn()
571 s->parent->lo_seqn[e->tag]++; in pl330_queue_remove_insn()
572 e->tag = PL330_UNTAGGED; in pl330_queue_remove_insn()
577 static inline void pl330_queue_remove_tagged(PL330Queue *s, uint8_t tag) in pl330_queue_remove_tagged() argument
582 if (s->queue[i].tag == tag) { in pl330_queue_remove_tagged()
583 s->queue[i].tag = PL330_UNTAGGED; in pl330_queue_remove_tagged()
652 if (pl330_fifo_has_tag(&s->fifo, ch->tag) || in pl330_dmaend()
653 pl330_queue_find_insn(&s->read_queue, ch->tag, false) != NULL || in pl330_dmaend()
654 pl330_queue_find_insn(&s->write_queue, ch->tag, false) != NULL) { in pl330_dmaend()
661 pl330_fifo_tagged_remove(&s->fifo, ch->tag); in pl330_dmaend()
662 pl330_queue_remove_tagged(&s->read_queue, ch->tag); in pl330_dmaend()
663 pl330_queue_remove_tagged(&s->write_queue, ch->tag); in pl330_dmaend()
750 size, num, inc, 0, ch->tag); in pl330_dmald()
752 trace_pl330_dmald(ch->tag, ch->src, size, num, inc ? 'Y' : 'N'); in pl330_dmald()
797 pl330_fifo_tagged_remove(&ch->parent->fifo, ch->tag); in pl330_dmakill()
798 pl330_queue_remove_tagged(&ch->parent->read_queue, ch->tag); in pl330_dmakill()
799 pl330_queue_remove_tagged(&ch->parent->write_queue, ch->tag); in pl330_dmakill()
870 if (pl330_queue_find_insn(&ch->parent->read_queue, ch->tag, false)) { in pl330_dmarmb()
924 size, num, inc, 0, ch->tag); in pl330_dmast()
926 trace_pl330_dmast(ch->tag, ch->dst, size, num, inc ? 'Y' : 'N'); in pl330_dmast()
962 size, num, inc, 1, ch->tag); in pl330_dmastz()
1056 if (pl330_queue_find_insn(&ch->parent->write_queue, ch->tag, false)) { in pl330_dmawmb()
1192 fifo_res = pl330_fifo_push(&s->fifo, buf, len, q->tag); in pl330_exec_cycle()
1215 fifo_res = pl330_fifo_get(&s->fifo, buf, len, q->tag); in pl330_exec_cycle()
1229 pl330_fault(&channel->parent->chan[q->tag], in pl330_exec_cycle()
1609 s->chan[i].tag = (uint8_t)i; in pl330_realize()
1612 s->manager.tag = s->num_chnls; in pl330_realize()