Lines Matching refs:items

380 dump_log(uint_t lvl, FILE *fp, struct acc_log_elem *items,  in dump_log()  argument
392 if (elem_cmp(items+i, items) != 0) in dump_log()
398 (items->access_type & BOFI_DMA_RW) ? in dump_log()
402 for (i = 0; i < nitems; i++, items++) { in dump_log()
403 offset = items->offset; in dump_log()
408 items->access_type, offset, items->size, in dump_log()
409 items->value, items->repcount, in dump_log()
411 items->access_time : 0ull); in dump_log()
421 items->access_type, offset, items->size, in dump_log()
422 items->value, items->repcount, in dump_log()
424 items->access_time : 0ull); in dump_log()
667 struct acc_log_elem *items, in define_nerrs() argument
689 " (op 0x%x 0x%llx)\n\n", nitems, naccess, items->access_type, in define_nerrs()
696 for (i = 0, item = items, at = 0; i < nitems; i++, item++) in define_nerrs()
761 for (i = 0, item = items; i < nitems; i++, item++) { in define_nerrs()
884 struct acc_log_elem *items, *item, *elem; in reduce_log() local
892 items = (void *)log->logbase; in reduce_log()
895 items = *llp; /* outputs double up as inputs */ in reduce_log()
911 for (i = 0, cnt = 0, elem = items; i < nitems; in reduce_log()
935 qsort((void *)items, nitems, sizeof (*items), log_cmp); in reduce_log()
938 dump_log(14, 0, items, nitems, log->flags); in reduce_log()
941 items += (nitems - cnt); /* ignore these ones */ in reduce_log()
957 for (i = 1, cnt = 1, elem = items, elem->repcount = 1, item = elem + 1; in reduce_log()
978 qsort((void *)items, cnt, sizeof (*items), log_cmp2); in reduce_log()
980 dump_log(4, 0, items, cnt, log->flags); in reduce_log()
988 for (j = i + 1, acnt = items[i].repcount; j < cnt && in reduce_log()
989 items[j].access_type == items[i].access_type; j++) in reduce_log()
990 acnt += items[j].repcount; in reduce_log()
997 mina = items[i].repcount; in reduce_log()
998 maxa = items[j-1].repcount; in reduce_log()
1005 if (items[ub].repcount > cutoff[0]) in reduce_log()
1016 if (items[lb].repcount < cutoff[1]) in reduce_log()
1025 pol, i, items[i].access_type, j, items[j].access_type, in reduce_log()
1032 items[k].access_type = 0; in reduce_log()
1037 items[k].access_type = 0; in reduce_log()
1041 items[k].access_type = 0; in reduce_log()
1045 dump_log(5, 0, items, cnt, log->flags); in reduce_log()
1047 *llp = items; in reduce_log()
1055 struct acc_log_elem *items; in log2errdefs() local
1068 items = (void *)log->logbase; in log2errdefs()
1082 (void *) edp, (void *) items, nitems, policy); in log2errdefs()
1134 dump_log(0, fp, items, nitems, log->flags); in log2errdefs()
1136 items = 0; in log2errdefs()
1137 if ((err = reduce_log(policy, log, &items, &nitems)) < 0 || in log2errdefs()
1202 acc_cnt = items[i].repcount; in log2errdefs()
1204 j < nitems && items[j].access_type == items[i].access_type; in log2errdefs()
1206 acc_cnt += items[j].repcount; in log2errdefs()
1208 nitems, i, j, items[i].access_type); in log2errdefs()
1209 if (items[i].access_type != 0) in log2errdefs()
1210 (void) define_nerrs(fd, fp, &ecnt, edp, items+i, j-i, in log2errdefs()
1211 acc_cnt, items[i].repcount, items[j-1].repcount, in log2errdefs()