Lines Matching refs:grant_idx
579 unsigned int grant_idx; member
602 unsigned int grant_idx = setup->grant_idx; in blkif_setup_rw_req_grant() local
614 grant_idx >= BLKIF_MAX_SEGMENTS_PER_REQUEST)) { in blkif_setup_rw_req_grant()
619 grant_idx -= BLKIF_MAX_SEGMENTS_PER_REQUEST; in blkif_setup_rw_req_grant()
624 (grant_idx % GRANTS_PER_INDIRECT_FRAME == 0)) { in blkif_setup_rw_req_grant()
628 n = grant_idx / GRANTS_PER_INDIRECT_FRAME; in blkif_setup_rw_req_grant()
641 shadow->grants_used[setup->grant_idx] = gnt_list_entry; in blkif_setup_rw_req_grant()
667 ring_req->u.rw.seg[grant_idx] = in blkif_setup_rw_req_grant()
673 setup->segments[grant_idx % GRANTS_PER_INDIRECT_FRAME] = in blkif_setup_rw_req_grant()
680 (setup->grant_idx)++; in blkif_setup_rw_req_grant()
711 .grant_idx = 0, in blkif_queue_rw_req()
1324 unsigned int grant_idx; member
1337 shared_data = kmap_atomic(s->grants_used[info->grant_idx]->page); in blkif_copy_from_grant()
1343 info->grant_idx++; in blkif_copy_from_grant()
1394 .grant_idx = 0, in blkif_completion()