Lines Matching refs:spu_buff
40 struct spu_buffer spu_buff[MAX_NUMNODES * SPUS_PER_NODE];
58 if (spu_buff[spu].head >= spu_buff[spu].tail) {
59 if ((spu_buff[spu].head - spu_buff[spu].tail)
63 } else if (spu_buff[spu].tail > spu_buff[spu].head) {
64 if ((spu_buff[spu].tail - spu_buff[spu].head)
70 spu_buff[spu].buff[spu_buff[spu].head] = value;
71 spu_buff[spu].head++;
73 if (spu_buff[spu].head >= max_spu_buff)
74 spu_buff[spu].head = 0;
100 if (spu_buff[spu].buff == NULL)
109 curr_head = spu_buff[spu].head;
115 oprofile_put_buff(spu_buff[spu].buff,
116 spu_buff[spu].tail,
120 spu_buff[spu].tail = curr_head;
417 spu_buff[spu->number].ctx_sw_seen = 1;
476 spu_buff[spu].head = 0;
477 spu_buff[spu].tail = 0;
485 spu_buff[spu].buff = kzalloc((max_spu_buff
489 if (!spu_buff[spu].buff) {
497 kfree(spu_buff[spu].buff);
498 spu_buff[spu].buff = 0;
544 spu_buff[spu].ctx_sw_seen = 0;
545 spu_buff[spu].last_guard_val = 0;
606 if (grd_val && grd_val != spu_buff[spu_num].last_guard_val) {
607 spu_buff[spu_num].last_guard_val = grd_val;
617 if (spu_buff[spu_num].ctx_sw_seen)
655 spu_buff[k].ctx_sw_seen = 0;
661 kfree(spu_buff[k].buff);
662 spu_buff[k].buff = 0;