Lines Matching refs:mapcount
466 int mapcount = 0, i, err = 0; in scsiback_gnttab_data_map_list() local
471 if (gnttab_page_cache_get(&info->free_pages, pg + mapcount)) { in scsiback_gnttab_data_map_list()
472 gnttab_page_cache_put(&info->free_pages, pg, mapcount); in scsiback_gnttab_data_map_list()
476 gnttab_set_map_op(&map[mapcount], vaddr_page(pg[mapcount]), in scsiback_gnttab_data_map_list()
478 mapcount++; in scsiback_gnttab_data_map_list()
479 if (mapcount < VSCSI_GRANT_BATCH) in scsiback_gnttab_data_map_list()
481 err = scsiback_gnttab_data_map_batch(map, pg, grant, mapcount); in scsiback_gnttab_data_map_list()
482 pg += mapcount; in scsiback_gnttab_data_map_list()
483 grant += mapcount; in scsiback_gnttab_data_map_list()
484 pending_req->n_grants += mapcount; in scsiback_gnttab_data_map_list()
487 mapcount = 0; in scsiback_gnttab_data_map_list()
489 err = scsiback_gnttab_data_map_batch(map, pg, grant, mapcount); in scsiback_gnttab_data_map_list()
490 pending_req->n_grants += mapcount; in scsiback_gnttab_data_map_list()