Lines Matching refs:ref_cnt
398 int err, ref, ref_cnt = 0; in map_data_for_request() local
448 shadow->gref[ref_cnt] = ref; in map_data_for_request()
449 shadow->seg[ref_cnt].gref = ref; in map_data_for_request()
450 shadow->seg[ref_cnt].offset = (uint16_t)off; in map_data_for_request()
451 shadow->seg[ref_cnt].length = (uint16_t)bytes; in map_data_for_request()
456 ref_cnt++; in map_data_for_request()
458 BUG_ON(seg_grants < ref_cnt); in map_data_for_request()
459 seg_grants = ref_cnt; in map_data_for_request()
484 shadow->gref[ref_cnt] = ref; in map_data_for_request()
494 ref_cnt++; in map_data_for_request()
501 shadow->nr_segments = (uint8_t)ref_cnt; in map_data_for_request()
502 shadow->nr_grants = ref_cnt; in map_data_for_request()