Lines Matching refs:nr_grant_frames
58 static unsigned int nr_grant_frames; variable
690 new_nr_grant_frames = nr_grant_frames + more_frames; in grow_gnttab_list()
693 nr_glist_frames = (nr_grant_frames * grefs_per_grant_frame + RPP - 1) / RPP; in grow_gnttab_list()
703 for (i = grefs_per_grant_frame * nr_grant_frames; in grow_gnttab_list()
708 gnttab_free_head = grefs_per_grant_frame * nr_grant_frames; in grow_gnttab_list()
711 nr_grant_frames = new_nr_grant_frames; in grow_gnttab_list()
808 static unsigned nr_status_frames(unsigned nr_grant_frames) in nr_status_frames() argument
811 return (nr_grant_frames * grefs_per_grant_frame + SPP - 1) / SPP; in nr_status_frames()
828 arch_gnttab_unmap(gnttab_shared.addr, nr_grant_frames); in gnttab_unmap_frames_v1()
876 arch_gnttab_unmap(gnttab_shared.addr, nr_grant_frames); in gnttab_unmap_frames_v2()
877 arch_gnttab_unmap(grstatus, nr_status_frames(nr_grant_frames)); in gnttab_unmap_frames_v2()
994 if (max_nr_gframes < nr_grant_frames) in gnttab_setup()
998 return gnttab_map(0, nr_grant_frames - 1); in gnttab_setup()
1010 gnttab_map(0, nr_grant_frames - 1); in gnttab_setup()
1033 cur = nr_grant_frames; in gnttab_expand()
1054 nr_grant_frames = 1; in gnttab_init()
1069 nr_glist_frames = (nr_grant_frames * grefs_per_grant_frame + RPP - 1) / RPP; in gnttab_init()
1083 nr_init_grefs = nr_grant_frames * grefs_per_grant_frame; in gnttab_init()