Lines Matching refs:ref_cnt
397 int err, ref, ref_cnt = 0;
447 shadow->gref[ref_cnt] = ref;
448 shadow->seg[ref_cnt].gref = ref;
449 shadow->seg[ref_cnt].offset = (uint16_t)off;
450 shadow->seg[ref_cnt].length = (uint16_t)bytes;
455 ref_cnt++;
457 BUG_ON(seg_grants < ref_cnt);
458 seg_grants = ref_cnt;
483 shadow->gref[ref_cnt] = ref;
493 ref_cnt++;
500 shadow->nr_segments = (uint8_t)ref_cnt;
501 shadow->nr_grants = ref_cnt;