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

/linux-4.1.27/drivers/xen/
H A Dgntdev.c55 MODULE_PARM_DESC(limit, "Maximum number of grants that may be mapped by "
90 struct ioctl_gntdev_grant_ref *grants; member in struct:grant_map
125 kfree(map->grants); gntdev_free_map()
142 add->grants = kcalloc(count, sizeof(add->grants[0]), GFP_KERNEL); gntdev_alloc_map()
148 if (NULL == add->grants || gntdev_alloc_map()
257 map->grants[pgnr].ref, find_grant_ptes()
258 map->grants[pgnr].domid); find_grant_ptes()
285 map->grants[i].ref, map_grant_pages()
286 map->grants[i].domid); map_grant_pages()
304 map->grants[i].ref, map_grant_pages()
305 map->grants[i].domid); map_grant_pages()
372 * already unmapped some of the grants. Only unmap valid ranges. unmap_grant_pages()
610 if (copy_from_user(map->grants, &u->refs, gntdev_ioctl_map_grant_ref()
611 sizeof(map->grants[0]) * op.count) != 0) { gntdev_ioctl_map_grant_ref()
H A Dxen-scsiback.c110 /* theoretical maximum of grants for one request */
114 * VSCSI_GRANT_BATCH is the maximum number of grants to be processed in one
115 * call to map/unmap grants. Don't choose it too large, as there are arrays
H A Dgntalloc.c75 MODULE_PARM_DESC(limit, "Maximum number of grants that may be allocated by "
/linux-4.1.27/drivers/staging/lustre/lustre/osc/
H A Dosc_cache.c623 int *grants) osc_extent_find()
672 /* grants has been allocated by caller */ osc_extent_find()
673 LASSERTF(*grants >= chunksize + cli->cl_extent_tax, osc_extent_find()
674 "%u/%u/%u.\n", *grants, chunksize, cli->cl_extent_tax); osc_extent_find()
750 * chunks have grants allocated. */ osc_extent_find()
760 *grants -= chunksize; osc_extent_find()
767 *grants -= chunksize; osc_extent_find()
773 *grants += cli->cl_extent_tax; osc_extent_find()
795 *grants -= cur->oe_grants; osc_extent_find()
796 LASSERT(*grants >= 0); osc_extent_find()
824 LASSERT(*grants >= 0); osc_extent_find()
958 int grants = 0; osc_extent_truncate() local
989 * so that we can calculate grants correctly. */ osc_extent_truncate()
1022 grants = ext->oe_grants; osc_extent_truncate()
1024 } else { /* calculate how many grants we can free */ osc_extent_truncate()
1029 /* if there is no pages in this chunk, we can also free grants osc_extent_truncate()
1041 grants = chunks << cli->cl_chunkbits; osc_extent_truncate()
1042 ext->oe_grants -= grants; osc_extent_truncate()
1050 if (grants > 0 || nr_pages > 0) osc_extent_truncate()
1051 osc_free_grant(cli, nr_pages, grants); osc_extent_truncate()
1138 static int osc_extent_expand(struct osc_extent *ext, pgoff_t index, int *grants) osc_extent_expand() argument
1178 *grants -= chunksize; osc_extent_expand()
1179 LASSERT(*grants >= 0); osc_extent_expand()
1390 * grants before entering into critical section.
1435 * @lost_grant is used to remember how many grants we have allocated but not
1436 * used, we should return these grants to OST. There're two cases where grants
1555 * run out of grants. In both cases we should write dirty pages out. osc_enter_cache()
1558 * The exiting condition is no avail grants and no dirty pages caching, osc_enter_cache()
2232 int grants = 0; osc_queue_async_io() local
2298 grants = (1 << cli->cl_chunkbits) + cli->cl_extent_tax; osc_queue_async_io()
2300 grants = 0; osc_queue_async_io()
2304 rc = osc_enter_cache_try(cli, oap, grants, 0); osc_queue_async_io()
2307 grants = 0; osc_queue_async_io()
2310 int tmp = grants; osc_queue_async_io()
2319 osc_unreserve_grant(cli, grants, tmp); osc_queue_async_io()
2320 grants = 0; osc_queue_async_io()
2341 LASSERT(ergo(grants > 0, grants >= tmp)); osc_queue_async_io()
2344 if (grants == 0) { osc_queue_async_io()
2348 grants = tmp; osc_queue_async_io()
2351 tmp = grants; osc_queue_async_io()
2355 LASSERT(tmp == grants); osc_queue_async_io()
2363 if (grants > 0) osc_queue_async_io()
2364 osc_unreserve_grant(cli, grants, tmp); osc_queue_async_io()
2890 * grants. We do this for the correctness of fsync. */ osc_cache_writeback_range()
621 osc_extent_find(const struct lu_env *env, struct osc_object *obj, pgoff_t index, int *grants) osc_extent_find() argument
H A Dosc_cl_internal.h644 /** how many grants allocated for this extent.
H A Dosc_request.c3079 /* Reset grants */ osc_import_event()
/linux-4.1.27/drivers/block/xen-blkback/
H A Dblkback.c71 * Maximum number of grants to map persistently in blkback. For maximum
72 * performance this should be the total numbers of grants that can be used
77 * When the list of persistent grants is full we clean it up using a LRU
84 "Maximum number of grants to map persistently");
87 * The LRU mechanism to clean the lists of persistent grants needs to
94 * When the persistent grants list is full we will remove unused grants
95 * from the list. The percent number of grants to be removed at each LRU
192 * the number of used grants.
381 * which means that the number of currently used grants will go down, purge_persistent_gnt()
383 * number of grants. purge_persistent_gnt()
388 pr_debug("Going to purge %u persistent grants\n", num_clean); purge_persistent_gnt()
416 * grants that were used since last purge in order to cope
426 pr_debug("Finished scanning for grants to clean, removing used flag\n");
652 * Remove persistent grants and empty the pool of free pages
809 * We are using persistent grants and xen_blkbk_map()
860 * We are using persistent grants, the grant is xen_blkbk_map()
883 pr_debug("grant %u added to the tree of persistent grants, using %u/%u\n", xen_blkbk_map()
890 pr_debug("domain %u, device %#x is using maximum number of persistent grants\n", xen_blkbk_map()
1308 * the hypercall to unmap the grants - that is all done in dispatch_rw_block_io()
H A Dxenbus.c279 /* Remove all persistent grants and the cache of ballooned pages. */ xen_blkif_disconnect()
906 pers_grants ? "persistent grants" : ""); connect_ring()
H A Dcommon.h289 /* tree to store persistent grants */
/linux-4.1.27/drivers/block/
H A Dxen-blkfront.c124 struct list_head grants; member in struct:blkfront_info
213 list_add(&gnt_list_entry->node, &info->grants); fill_grant_buffer()
221 &info->grants, node) { fill_grant_buffer()
239 BUG_ON(list_empty(&info->grants)); get_grant()
240 gnt_list_entry = list_first_entry(&info->grants, struct grant, get_grant()
399 * existing persistent grants, or if we have to get new grants, blkif_queue_request()
419 /* Check if we have enough grants to allocate a requests */ blkif_queue_request()
544 * persistent grants are shared with just one blkif_queue_request()
716 "persistent grants:", info->feature_persistent ? xlvbd_flush()
955 /* Remove all persistent grants */ blkif_free()
956 if (!list_empty(&info->grants)) { blkif_free()
958 &info->grants, node) { blkif_free()
974 * descriptors but not persistent grants blkif_free()
988 * Clear persistent grants present in requests already blkif_free()
1079 /* Add the persistent grant into the list of free grants */ blkif_completion()
1091 list_add(&s->grants_used[i]->node, &info->grants); blkif_completion()
1098 * persistent grants. blkif_completion()
1102 list_add_tail(&s->grants_used[i]->node, &info->grants); blkif_completion()
1111 list_add(&s->indirect_grants[i]->node, &info->grants); blkif_completion()
1126 list_add_tail(&s->indirect_grants[i]->node, &info->grants); blkif_completion()
1333 "writing persistent grants feature to xenbus"); talk_to_blkback()
1421 INIT_LIST_HEAD(&info->grants); blkfront_probe()
1709 * grants, we need to allocate a set of pages that can be blkfront_setup_indirect()
/linux-4.1.27/include/uapi/xen/
H A Dgntalloc.h21 /* The ID of the domain to be given access to the grants. */
H A Dgntdev.h52 /* The number of grants to be mapped. */
106 * Sets the maximum number of grants that may mapped at once by this gntdev
115 /* The maximum number of grants that may be mapped at once. */
/linux-4.1.27/include/xen/interface/
H A Dgrant_table.h117 * GTF_invalid: This grant entry grants no privileges.
191 * This member is used for V1-style full page grants, where either:
433 * once in any given domain. It must be performed before any grants
/linux-4.1.27/drivers/scsi/aic7xxx/
H A Daiclib.h8 * the software. For this reason TFS also grants any other persons or
/linux-4.1.27/arch/x86/um/
H A Dptrace_32.c33 /* access_process_vm() grants access to vsyscall and stub, is_syscall()
H A Dptrace_64.c205 * access_process_vm() grants access to vsyscall and stub, is_syscall()
/linux-4.1.27/drivers/staging/lustre/lustre/include/
H A Dlustre_dlm.h122 * - CW: Concurrent Write mode. The type of lock that the MDS grants if a client
124 * - CR Concurrent Read mode. When a client performs a path lookup, MDS grants
1109 * Also used during deciding of lock grants and cancellations.
/linux-4.1.27/drivers/staging/lustre/lustre/llite/
H A Dllite_mmap.c232 * consume any grants, even worse if this page is being ll_page_mkwrite0()
/linux-4.1.27/drivers/input/keyboard/
H A Dlkkbd.c594 * only work with a LK401 keyboard and grants access to lkkbd_reinit()
/linux-4.1.27/drivers/mtd/
H A Dftl.c45 "M-Systems grants a royalty-free, non-exclusive license under
/linux-4.1.27/drivers/scsi/
H A Dxen-scsifront.c84 unsigned int nr_grants; /* number of grants in gref[] */
/linux-4.1.27/drivers/net/xen-netback/
H A Dnetback.c1564 /* Free up any grants we have finished using */ xenvif_tx_dealloc_action()
/linux-4.1.27/fs/
H A Dlocks.c2070 * grants a lock so the VFS can find out which locks are locally held and do
/linux-4.1.27/net/tipc/
H A Dsocket.c142 * this lock grants the owner exclusive access to the fields of the socket

Completed in 789 milliseconds