Lines Matching refs:spu_buff
37 struct spu_buffer spu_buff[MAX_NUMNODES * SPUS_PER_NODE]; variable
55 if (spu_buff[spu].head >= spu_buff[spu].tail) { in spu_buff_add()
56 if ((spu_buff[spu].head - spu_buff[spu].tail) in spu_buff_add()
60 } else if (spu_buff[spu].tail > spu_buff[spu].head) { in spu_buff_add()
61 if ((spu_buff[spu].tail - spu_buff[spu].head) in spu_buff_add()
67 spu_buff[spu].buff[spu_buff[spu].head] = value; in spu_buff_add()
68 spu_buff[spu].head++; in spu_buff_add()
70 if (spu_buff[spu].head >= max_spu_buff) in spu_buff_add()
71 spu_buff[spu].head = 0; in spu_buff_add()
97 if (spu_buff[spu].buff == NULL) in sync_spu_buff()
106 curr_head = spu_buff[spu].head; in sync_spu_buff()
112 oprofile_put_buff(spu_buff[spu].buff, in sync_spu_buff()
113 spu_buff[spu].tail, in sync_spu_buff()
117 spu_buff[spu].tail = curr_head; in sync_spu_buff()
407 spu_buff[spu->number].ctx_sw_seen = 1; in process_context_switch()
466 spu_buff[spu].head = 0; in oprofile_spu_buff_create()
467 spu_buff[spu].tail = 0; in oprofile_spu_buff_create()
475 spu_buff[spu].buff = kzalloc((max_spu_buff in oprofile_spu_buff_create()
479 if (!spu_buff[spu].buff) { in oprofile_spu_buff_create()
487 kfree(spu_buff[spu].buff); in oprofile_spu_buff_create()
488 spu_buff[spu].buff = 0; in oprofile_spu_buff_create()
534 spu_buff[spu].ctx_sw_seen = 0; in spu_sync_start()
535 spu_buff[spu].last_guard_val = 0; in spu_sync_start()
596 if (grd_val && grd_val != spu_buff[spu_num].last_guard_val) { in spu_sync_buffer()
597 spu_buff[spu_num].last_guard_val = grd_val; in spu_sync_buffer()
607 if (spu_buff[spu_num].ctx_sw_seen) in spu_sync_buffer()
645 spu_buff[k].ctx_sw_seen = 0; in spu_sync_stop()
651 kfree(spu_buff[k].buff); in spu_sync_stop()
652 spu_buff[k].buff = 0; in spu_sync_stop()