Home
last modified time | relevance | path

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

/openbmc/linux/drivers/scsi/
H A Dxen-scsifront.c480 unsigned int data_grants = 0, seg_grants = 0; in map_data_for_request() local
488 data_grants += PFN_UP(sg->offset + sg->length); in map_data_for_request()
490 if (data_grants > VSCSIIF_SG_TABLESIZE) { in map_data_for_request()
491 if (data_grants > info->host->sg_tablesize) { in map_data_for_request()
496 seg_grants = vscsiif_grants_sg(data_grants); in map_data_for_request()
497 shadow->sg = kcalloc(data_grants, in map_data_for_request()
504 err = gnttab_alloc_grant_references(seg_grants + data_grants, in map_data_for_request()
516 len = sizeof(struct scsiif_request_segment) * data_grants; in map_data_for_request()