Home
last modified time | relevance | path

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

/linux-5.19.10/drivers/scsi/
Dxen-scsifront.c488 unsigned int data_grants = 0, seg_grants = 0; in map_data_for_request() local
496 data_grants += PFN_UP(sg->offset + sg->length); in map_data_for_request()
498 if (data_grants > VSCSIIF_SG_TABLESIZE) { in map_data_for_request()
499 if (data_grants > info->host->sg_tablesize) { in map_data_for_request()
504 seg_grants = vscsiif_grants_sg(data_grants); in map_data_for_request()
505 shadow->sg = kcalloc(data_grants, in map_data_for_request()
512 err = gnttab_alloc_grant_references(seg_grants + data_grants, in map_data_for_request()
524 len = sizeof(struct scsiif_request_segment) * data_grants; in map_data_for_request()