Searched refs:data_grants (Results 1 - 1 of 1) sorted by relevance

/linux-4.1.27/drivers/scsi/
H A Dxen-scsifront.c378 unsigned int data_grants = 0, seg_grants = 0; map_data_for_request() local
388 data_grants += PFN_UP(sg->offset + sg->length); map_data_for_request()
390 if (data_grants > VSCSIIF_SG_TABLESIZE) { map_data_for_request()
391 if (data_grants > info->host->sg_tablesize) { map_data_for_request()
396 seg_grants = vscsiif_grants_sg(data_grants); map_data_for_request()
397 shadow->sg = kcalloc(data_grants, map_data_for_request()
404 err = gnttab_alloc_grant_references(seg_grants + data_grants, map_data_for_request()
416 len = sizeof(struct scsiif_request_segment) * data_grants; map_data_for_request()

Completed in 52 milliseconds