Lines Matching refs:ref_cnt
476 int err, ref, ref_cnt = 0; in map_data_for_request() local
526 shadow->gref[ref_cnt] = ref; in map_data_for_request()
527 shadow->seg[ref_cnt].gref = ref; in map_data_for_request()
528 shadow->seg[ref_cnt].offset = (uint16_t)off; in map_data_for_request()
529 shadow->seg[ref_cnt].length = (uint16_t)bytes; in map_data_for_request()
534 ref_cnt++; in map_data_for_request()
536 BUG_ON(seg_grants < ref_cnt); in map_data_for_request()
537 seg_grants = ref_cnt; in map_data_for_request()
562 shadow->gref[ref_cnt] = ref; in map_data_for_request()
572 ref_cnt++; in map_data_for_request()
579 shadow->nr_segments = (uint8_t)ref_cnt; in map_data_for_request()
580 shadow->nr_grants = ref_cnt; in map_data_for_request()