/netbsd-current/sys/external/bsd/drm2/include/linux/sched/ |
H A D | mm.h | 36 #include <linux/gfp.h> 51 fs_reclaim_acquire(gfp_t gfp) argument 56 fs_reclaim_release(gfp_t gfp) argument
|
/netbsd-current/sys/external/bsd/common/include/linux/ |
H A D | slab.h | 41 #include <linux/gfp.h> 52 linux_gfp_to_kmem(gfp_t gfp) argument 57 gfp &= ~__GFP_NOWARN; 58 gfp &= ~__GFP_RECLAIMABLE; 61 if (ISSET(gfp, __GFP_NORETRY)) { 62 gfp &= ~__GFP_NORETRY; 63 gfp &= ~__GFP_WAIT; 66 if (ISSET(gfp, __GFP_ZERO)) { 67 gfp &= ~__GFP_ZERO; 75 KASSERT((gfp 94 kmalloc(size_t size, gfp_t gfp) argument [all...] |
H A D | gfp.h | 1 /* $NetBSD: gfp.h,v 1.3 2021/12/19 11:03:32 riastradh Exp $ */ 82 gfpflags_allow_blocking(gfp_t gfp) argument 84 return (gfp & (__GFP_WAIT|__GFP_NORETRY)) == __GFP_WAIT;
|
H A D | dmapool.h | 36 #include <linux/gfp.h>
|
H A D | kernel.h | 224 kvasprintf(gfp_t gfp, const char *fmt, va_list va) argument 233 str = kmalloc(len + 1, gfp); 243 kasprintf(gfp_t gfp, const char *fmt, ...) argument 249 str = kvasprintf(gfp, fmt, va);
|
/netbsd-current/sys/external/bsd/drm2/include/linux/ |
H A D | mm.h | 104 kvmalloc(size_t size, gfp_t gfp) argument 107 return kmalloc(size, gfp); 111 kvzalloc(size_t size, gfp_t gfp) argument 114 return kmalloc(size, gfp | __GFP_ZERO); 118 kvcalloc(size_t nelem, size_t elemsize, gfp_t gfp) argument 124 return kvzalloc(nelem * elemsize, gfp); 128 kvmalloc_array(size_t nelem, size_t elemsize, gfp_t gfp) argument 134 return kmalloc(nelem * elemsize, gfp);
|
H A D | idr.h | 39 #include <linux/gfp.h> 108 ida_simple_get(struct ida *ida, unsigned start, unsigned end, gfp_t gfp) argument 115 idr_preload(gfp); 116 id = idr_alloc(&ida->ida_idr, NULL, start, end, gfp); 123 ida_alloc_max(struct ida *ida, unsigned max, gfp_t gfp) argument 126 return ida_simple_get(ida, 0, max + 1, gfp);
|
H A D | string.h | 56 kmemdup(const void *src, size_t len, gfp_t gfp) argument 60 dst = kmalloc(len, gfp); 69 kstrndup(const char *src, size_t maxlen, gfp_t gfp) argument 78 dst = kmalloc(len + 1, gfp); 89 kstrdup(const char *src, gfp_t gfp) argument 94 return kstrndup(src, strlen(src), gfp);
|
H A D | pagemap.h | 37 #include <linux/gfp.h>
|
H A D | shmem_fs.h | 46 #include <linux/gfp.h> 50 shmem_read_mapping_page_gfp(struct uvm_object *uobj, voff_t i, gfp_t gfp) argument
|
H A D | radix-tree.h | 35 #include <linux/gfp.h>
|
H A D | scatterlist.h | 41 #include <linux/gfp.h>
|
H A D | bitmap.h | 255 bitmap_zalloc(size_t nbits, gfp_t gfp) argument 260 return kcalloc(n, sizeof(unsigned long), gfp);
|
/netbsd-current/sbin/mount_umap/ |
H A D | mount_umap.c | 105 FILE *fp, *gfp; local 196 if ((gfp = fopen(gmapfile, "r")) == NULL) 204 if (fstat(fileno(gfp), &statbuf)) 215 if ((fscanf(gfp, "%d\n", &gnentries)) != 1) 225 if ((fscanf(gfp, "%lu %lu\n", 227 if (ferror(gfp)) 229 if (feof(gfp))
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/i915/ |
H A D | i915_sw_fence.h | 15 #include <linux/gfp.h> 86 gfp_t gfp); 99 gfp_t gfp); 106 gfp_t gfp);
|
H A D | i915_gpu_error.h | 220 i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp); 223 intel_gt_coredump_alloc(struct intel_gt *gt, gfp_t gfp); 226 intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp); 231 gfp_t gfp); 274 i915_gpu_coredump_alloc(struct drm_i915_private *i915, gfp_t gfp) argument 280 intel_gt_coredump_alloc(struct intel_gt *gt, gfp_t gfp) argument 286 intel_engine_coredump_alloc(struct intel_engine_cs *engine, gfp_t gfp) argument 294 gfp_t gfp) 292 intel_engine_coredump_add_request(struct intel_engine_coredump *ee, struct i915_request *rq, gfp_t gfp) argument
|
H A D | i915_sw_fence.c | 390 wait_queue_entry_t *wq, gfp_t gfp) 396 might_sleep_if(gfpflags_allow_blocking(gfp)); 411 wq = kmalloc(sizeof(*wq), gfp); 413 if (!gfpflags_allow_blocking(gfp)) 457 gfp_t gfp) 459 return __i915_sw_fence_await_sw_fence(fence, signaler, NULL, gfp); 529 gfp_t gfp) 536 might_sleep_if(gfpflags_allow_blocking(gfp)); 546 gfp); 548 if (!gfpflags_allow_blocking(gfp)) 388 __i915_sw_fence_await_sw_fence(struct i915_sw_fence *fence, struct i915_sw_fence *signaler, wait_queue_entry_t *wq, gfp_t gfp) argument 455 i915_sw_fence_await_sw_fence_gfp(struct i915_sw_fence *fence, struct i915_sw_fence *signaler, gfp_t gfp) argument 526 i915_sw_fence_await_dma_fence(struct i915_sw_fence *fence, struct dma_fence *dma, unsigned long timeout, gfp_t gfp) argument 626 i915_sw_fence_await_reservation(struct i915_sw_fence *fence, struct dma_resv *resv, const struct dma_fence_ops *exclude, bool write, unsigned long timeout, gfp_t gfp) argument [all...] |
/netbsd-current/sys/external/bsd/drm2/linux/ |
H A D | linux_sgt.c | 38 #include <linux/gfp.h> 44 sg_alloc_table(struct sg_table *sgt, unsigned npgs, gfp_t gfp) argument 47 sgt->sgl->sg_pgs = kcalloc(npgs, sizeof(sgt->sgl->sg_pgs[0]), gfp); 59 gfp_t gfp) 67 ret = sg_alloc_table(sgt, npgs, gfp); 79 unsigned npgs, bus_size_t offset, bus_size_t size, gfp_t gfp) 83 -1, gfp); 88 const bus_dma_segment_t *seg, int nseg, gfp_t gfp) 109 ret = sg_alloc_table(sgt, npgs, gfp); 57 __sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pgs, unsigned npgs, bus_size_t offset, bus_size_t size, unsigned maxseg, gfp_t gfp) argument 78 sg_alloc_table_from_pages(struct sg_table *sgt, struct page **pgs, unsigned npgs, bus_size_t offset, bus_size_t size, gfp_t gfp) argument 87 sg_alloc_table_from_bus_dmamem(struct sg_table *sgt, bus_dma_tag_t dmat, const bus_dma_segment_t *seg, int nseg, gfp_t gfp) argument
|
H A D | linux_xa.c | 86 xa_init_flags(struct xarray *xa, gfp_t gfp) argument 91 xa->xa_gfp = gfp; 125 xa_store(struct xarray *xa, unsigned long key, void *datum, gfp_t gfp) argument 132 n = kmem_zalloc(sizeof(*n), gfp & __GFP_WAIT ? KM_SLEEP : KM_NOSLEEP); 156 gfp_t gfp) 165 n = kmem_zalloc(sizeof(*n), gfp & __GFP_WAIT ? KM_SLEEP : KM_NOSLEEP); 155 xa_alloc(struct xarray *xa, uint32_t *idp, void *datum, struct xa_limit limit, gfp_t gfp) argument
|
H A D | linux_idr.c | 285 idr_preload(gfp_t gfp) argument 289 km_flag_t kmflag = ISSET(gfp, __GFP_WAIT) ? KM_SLEEP : KM_NOSLEEP; 294 if (ISSET(gfp, __GFP_WAIT)) 303 if (!ISSET(gfp, __GFP_WAIT)) 328 KASSERT(node != NULL || !ISSET(gfp, __GFP_WAIT)); 337 idr_alloc(struct idr *idr, void *data, int start, int end, gfp_t gfp) argument 345 if (ISSET(gfp, __GFP_WAIT))
|
H A D | linux_firmware.c | 146 struct device *device, gfp_t gfp, void *cookie, 153 work = kzalloc(sizeof(*work), gfp); 158 namedup = kstrdup(name, gfp); 145 request_firmware_nowait(struct module *module, bool uevent, const char *name, struct device *device, gfp_t gfp, void *cookie, void (*callback)(const struct firmware *, void *)) argument
|
H A D | linux_radixtree.c | 37 #include <linux/gfp.h> 52 INIT_RADIX_TREE(struct radix_tree_root *root, gfp_t gfp) argument
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/i915/gt/ |
H A D | intel_gtt.c | 57 static struct page *vm_alloc_page(struct i915_address_space *vm, gfp_t gfp) argument 70 return alloc_page(gfp); 89 page = alloc_page(gfp); 281 gfp_t gfp) 288 if (gfp & __GFP_WAIT) 317 if (gfp & __GFP_ZERO) { 323 p->page = vm_alloc_page(vm, gfp | I915_GFP_ALLOW_FAIL); 364 int setup_scratch_page(struct i915_address_space *vm, gfp_t gfp) argument 383 gfp |= __GFP_NOWARN; 385 gfp | 279 __setup_page_dma(struct i915_address_space *vm, struct i915_page_dma *p, gfp_t gfp) argument [all...] |
/netbsd-current/sys/external/bsd/drm2/dist/drm/i915/selftests/ |
H A D | lib_sw_fence.c | 113 struct i915_sw_fence *heap_fence_create(gfp_t gfp) argument 117 h = kmalloc(sizeof(*h), gfp);
|
/netbsd-current/sys/external/bsd/drm2/dist/drm/i915/gem/ |
H A D | i915_gem_internal.c | 128 gfp_t gfp; 144 gfp = GFP_KERNEL | __GFP_HIGHMEM | __GFP_RECLAIMABLE; 147 gfp &= ~__GFP_HIGHMEM; 148 gfp |= __GFP_DMA32; 171 page = alloc_pages(gfp | (order ? QUIET : MAYFAIL),
|