Lines Matching defs:grant
87 struct grant {
104 struct grant **grants_used;
105 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);
585 /* Only used when persistent grant is used and it's a write request */
599 struct grant *gnt_list_entry;
607 * of grant associated to the block I/O request. This made the
756 /* Calculate the number of grant used */
1207 struct grant *persistent_gnt, *n;
1455 /* Add the persistent grant into the list of free grants */
1459 * If the grant is still mapped by the backend (the
1460 * backend has chosen to make this grant persistent)
1465 pr_alert("backed has not unmapped grant: %u\n",
1473 * If the grant is not mapped by the backend we add it
1485 pr_alert("backed has not unmapped grant: %u\n",
2532 struct grant *gnt_list_entry, *tmp;