Lines Matching defs:grant
86 struct grant {
103 struct grant **grants_used;
104 struct grant **indirect_grants;
313 struct grant *gnt_list_entry, *n;
317 gnt_list_entry = kzalloc(sizeof(struct grant), GFP_NOIO);
350 static struct grant *get_free_grant(struct blkfront_ring_info *rinfo)
352 struct grant *gnt_list_entry;
355 gnt_list_entry = list_first_entry(&rinfo->grants, struct grant,
365 static inline void grant_foreign_access(const struct grant *gnt_list_entry,
374 static struct grant *get_grant(grant_ref_t *gref_head,
378 struct grant *gnt_list_entry = get_free_grant(rinfo);
399 static struct grant *get_indirect_grant(grant_ref_t *gref_head,
402 struct grant *gnt_list_entry = get_free_grant(rinfo);
597 /* Only used when persistent grant is used and it's a read request */
611 struct grant *gnt_list_entry;
619 * of grant associated to the block I/O request. This made the
768 /* Calculate the number of grant used */
1275 struct grant *persistent_gnt, *n;
1530 /* Add the persistent grant into the list of free grants */
1534 * If the grant is still mapped by the backend (the
1535 * backend has chosen to make this grant persistent)
1540 pr_alert("backed has not unmapped grant: %u\n",
1548 * If the grant is not mapped by the backend we add it
1560 pr_alert("backed has not unmapped grant: %u\n",
2748 struct grant *gnt_list_entry, *tmp;