Lines Matching refs:ret
140 int ret = arm_spe_get_payload(buf, len, packet); in arm_spe_get_events() local
149 packet->index = ret - 1; in arm_spe_get_events()
151 return ret; in arm_spe_get_events()
261 int ret; in arm_spe_get_packet() local
263 ret = arm_spe_do_get_packet(buf, len, packet); in arm_spe_get_packet()
267 if (ret > 0 && packet->type == ARM_SPE_PAD) { in arm_spe_get_packet()
268 while (ret < 16 && len > (size_t)ret && !buf[ret]) in arm_spe_get_packet()
269 ret += 1; in arm_spe_get_packet()
271 return ret; in arm_spe_get_packet()
277 int ret, ns, el, idx = packet->index; in arm_spe_pkt_desc() local
289 ret = 0; in arm_spe_pkt_desc()
290 ret = snprintf(buf, buf_len, "EV"); in arm_spe_pkt_desc()
291 buf += ret; in arm_spe_pkt_desc()
292 blen -= ret; in arm_spe_pkt_desc()
294 ret = snprintf(buf, buf_len, " EXCEPTION-GEN"); in arm_spe_pkt_desc()
295 buf += ret; in arm_spe_pkt_desc()
296 blen -= ret; in arm_spe_pkt_desc()
299 ret = snprintf(buf, buf_len, " RETIRED"); in arm_spe_pkt_desc()
300 buf += ret; in arm_spe_pkt_desc()
301 blen -= ret; in arm_spe_pkt_desc()
304 ret = snprintf(buf, buf_len, " L1D-ACCESS"); in arm_spe_pkt_desc()
305 buf += ret; in arm_spe_pkt_desc()
306 blen -= ret; in arm_spe_pkt_desc()
309 ret = snprintf(buf, buf_len, " L1D-REFILL"); in arm_spe_pkt_desc()
310 buf += ret; in arm_spe_pkt_desc()
311 blen -= ret; in arm_spe_pkt_desc()
314 ret = snprintf(buf, buf_len, " TLB-ACCESS"); in arm_spe_pkt_desc()
315 buf += ret; in arm_spe_pkt_desc()
316 blen -= ret; in arm_spe_pkt_desc()
319 ret = snprintf(buf, buf_len, " TLB-REFILL"); in arm_spe_pkt_desc()
320 buf += ret; in arm_spe_pkt_desc()
321 blen -= ret; in arm_spe_pkt_desc()
324 ret = snprintf(buf, buf_len, " NOT-TAKEN"); in arm_spe_pkt_desc()
325 buf += ret; in arm_spe_pkt_desc()
326 blen -= ret; in arm_spe_pkt_desc()
329 ret = snprintf(buf, buf_len, " MISPRED"); in arm_spe_pkt_desc()
330 buf += ret; in arm_spe_pkt_desc()
331 blen -= ret; in arm_spe_pkt_desc()
335 ret = snprintf(buf, buf_len, " LLC-ACCESS"); in arm_spe_pkt_desc()
336 buf += ret; in arm_spe_pkt_desc()
337 blen -= ret; in arm_spe_pkt_desc()
340 ret = snprintf(buf, buf_len, " LLC-REFILL"); in arm_spe_pkt_desc()
341 buf += ret; in arm_spe_pkt_desc()
342 blen -= ret; in arm_spe_pkt_desc()
345 ret = snprintf(buf, buf_len, " REMOTE-ACCESS"); in arm_spe_pkt_desc()
346 buf += ret; in arm_spe_pkt_desc()
347 blen -= ret; in arm_spe_pkt_desc()
350 if (ret < 0) in arm_spe_pkt_desc()
351 return ret; in arm_spe_pkt_desc()
352 blen -= ret; in arm_spe_pkt_desc()
363 ret = snprintf(buf, buf_len, "ST"); in arm_spe_pkt_desc()
365 ret = snprintf(buf, buf_len, "LD"); in arm_spe_pkt_desc()
366 buf += ret; in arm_spe_pkt_desc()
367 blen -= ret; in arm_spe_pkt_desc()
370 ret = snprintf(buf, buf_len, " AT"); in arm_spe_pkt_desc()
371 buf += ret; in arm_spe_pkt_desc()
372 blen -= ret; in arm_spe_pkt_desc()
375 ret = snprintf(buf, buf_len, " EXCL"); in arm_spe_pkt_desc()
376 buf += ret; in arm_spe_pkt_desc()
377 blen -= ret; in arm_spe_pkt_desc()
380 ret = snprintf(buf, buf_len, " AR"); in arm_spe_pkt_desc()
381 buf += ret; in arm_spe_pkt_desc()
382 blen -= ret; in arm_spe_pkt_desc()
385 ret = snprintf(buf, buf_len, " SIMD-FP"); in arm_spe_pkt_desc()
386 buf += ret; in arm_spe_pkt_desc()
387 blen -= ret; in arm_spe_pkt_desc()
389 if (ret < 0) in arm_spe_pkt_desc()
390 return ret; in arm_spe_pkt_desc()
391 blen -= ret; in arm_spe_pkt_desc()
397 ret = snprintf(buf, buf_len, "B"); in arm_spe_pkt_desc()
398 buf += ret; in arm_spe_pkt_desc()
399 blen -= ret; in arm_spe_pkt_desc()
401 ret = snprintf(buf, buf_len, " COND"); in arm_spe_pkt_desc()
402 buf += ret; in arm_spe_pkt_desc()
403 blen -= ret; in arm_spe_pkt_desc()
406 ret = snprintf(buf, buf_len, " IND"); in arm_spe_pkt_desc()
407 buf += ret; in arm_spe_pkt_desc()
408 blen -= ret; in arm_spe_pkt_desc()
410 if (ret < 0) in arm_spe_pkt_desc()
411 return ret; in arm_spe_pkt_desc()
412 blen -= ret; in arm_spe_pkt_desc()
441 ret = snprintf(buf, buf_len, "%s %d ", name, in arm_spe_pkt_desc()
443 buf += ret; in arm_spe_pkt_desc()
444 blen -= ret; in arm_spe_pkt_desc()
446 case 0: ret = snprintf(buf, buf_len, "TOT"); break; in arm_spe_pkt_desc()
447 case 1: ret = snprintf(buf, buf_len, "ISSUE"); break; in arm_spe_pkt_desc()
448 case 2: ret = snprintf(buf, buf_len, "XLAT"); break; in arm_spe_pkt_desc()
449 default: ret = 0; in arm_spe_pkt_desc()
451 if (ret < 0) in arm_spe_pkt_desc()
452 return ret; in arm_spe_pkt_desc()
453 blen -= ret; in arm_spe_pkt_desc()