/freebsd-11-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | string.h | 37 #include <linux/gfp.h> 90 kmemdup(const void *src, size_t len, gfp_t gfp) argument 94 dst = kmalloc(len, gfp); 101 kstrdup(const char *string, gfp_t gfp) argument 109 retval = kmalloc(len, gfp); 116 kstrndup(const char *string, size_t len, gfp_t gfp) argument 122 retval = kmalloc(len + 1, gfp); 129 kstrdup_const(const char *src, gfp_t gfp) argument 131 return (kmemdup(src, strlen(src) + 1, gfp));
|
H A D | idr.h | 137 ida_alloc_max(struct ida *ida, unsigned int max, gfp_t gfp) argument 140 return (ida_simple_get(ida, 0, max, gfp));
|
H A D | xarray.h | 31 #include <linux/gfp.h>
|
H A D | mm.h | 37 #include <linux/gfp.h>
|
H A D | slab.h | 41 #include <linux/gfp.h>
|
/freebsd-11-stable/sys/geom/label/ |
H A D | g_label_flashmap.c | 47 struct g_flashmap *gfp; local 62 gfp = (struct g_flashmap *)gsp->softc; 65 if (gfp->labels[pp->index] == NULL) 68 strlcpy(label, gfp->labels[pp->index], size);
|
/freebsd-11-stable/sys/compat/linuxkpi/common/src/ |
H A D | linux_xarray.c | 91 * must be a power of two minus one value. The "gfp" argument 99 __xa_alloc(struct xarray *xa, uint32_t *pindex, void *ptr, uint32_t mask, gfp_t gfp) argument 124 if (likely(gfp & M_WAITOK)) { 136 xa_alloc(struct xarray *xa, uint32_t *pindex, void *ptr, uint32_t mask, gfp_t gfp) argument 141 retval = __xa_alloc(xa, pindex, ptr, mask, gfp); 155 uint32_t *pnext_index, gfp_t gfp) 182 if (likely(gfp & M_WAITOK)) { 197 uint32_t *pnext_index, gfp_t gfp) 202 retval = __xa_alloc_cyclic(xa, pindex, ptr, mask, pnext_index, gfp); 210 * "gfp" argumen 154 __xa_alloc_cyclic(struct xarray *xa, uint32_t *pindex, void *ptr, uint32_t mask, uint32_t *pnext_index, gfp_t gfp) argument 196 xa_alloc_cyclic(struct xarray *xa, uint32_t *pindex, void *ptr, uint32_t mask, uint32_t *pnext_index, gfp_t gfp) argument 216 __xa_insert(struct xarray *xa, uint32_t index, void *ptr, gfp_t gfp) argument 238 xa_insert(struct xarray *xa, uint32_t index, void *ptr, gfp_t gfp) argument 258 __xa_store(struct xarray *xa, uint32_t index, void *ptr, gfp_t gfp) argument 284 xa_store(struct xarray *xa, uint32_t index, void *ptr, gfp_t gfp) argument [all...] |
H A D | linux_page.c | 61 #include <linux/gfp.h> 305 linux_shmem_read_mapping_page_gfp(vm_object_t obj, int pindex, gfp_t gfp) argument 310 if ((gfp & GFP_NOWAIT) != 0)
|
/freebsd-11-stable/sys/geom/ |
H A D | geom_flashmap.c | 71 static int g_flashmap_modify(struct g_flashmap *gfp, struct g_geom *gp, 88 g_flashmap_modify(struct g_flashmap *gfp, struct g_geom *gp, argument 114 free(__DECONST(void *, gfp->labels[i]), M_FLASHMAP); 115 gfp->labels[i] = strdup(slice->sl_name, M_FLASHMAP); 155 struct g_flashmap *gfp; local 167 gp = g_slice_new(mp, FLASH_SLICES_MAX_NUM, pp, &cp, (void**)&gfp, 190 g_flashmap_modify(gfp, gp, cp->provider->name,
|
/freebsd-11-stable/libexec/mknetid/ |
H A D | mknetid.c | 103 FILE *gfp, *pfp, *hfp, *nfp; local 147 if ((gfp = fopen(groupfile, "r")) == NULL) { 164 _gr_fp = gfp; 176 fclose(gfp);
|
/freebsd-11-stable/sys/ofed/drivers/infiniband/core/ |
H A D | ib_umem_rbtree.c | 41 #include <linux/gfp.h>
|
/freebsd-11-stable/sys/dev/mlx5/mlx5_core/ |
H A D | eswitch.h | 68 #define l2addr_hash_add(hash, mac, type, gfp) ({ \ 72 ptr = kzalloc(sizeof(type), gfp); \
|
/freebsd-11-stable/contrib/groff/src/preproc/grn/ |
H A D | main.cpp | 475 register FILE *gfp = NULL; /* input file pointer */ local 508 gfp = macro_path.open_file(gremlinfile, &path); 509 if (!gfp) 511 PICTURE = DBRead(gfp); /* read picture file */ 512 fclose(gfp);
|
/freebsd-11-stable/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_qp.c | 37 #include <linux/gfp.h> 305 int __mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) argument 311 err = mlx4_table_get(dev, &qp_table->qp_table, qpn, gfp); 315 err = mlx4_table_get(dev, &qp_table->auxc_table, qpn, gfp); 319 err = mlx4_table_get(dev, &qp_table->altc_table, qpn, gfp); 323 err = mlx4_table_get(dev, &qp_table->rdmarc_table, qpn, gfp); 327 err = mlx4_table_get(dev, &qp_table->cmpt_table, qpn, gfp); 349 static int mlx4_qp_alloc_icm(struct mlx4_dev *dev, int qpn, gfp_t gfp) argument 359 return __mlx4_qp_alloc_icm(dev, qpn, gfp); 388 int mlx4_qp_alloc(struct mlx4_dev *dev, int qpn, struct mlx4_qp *qp, gfp_t gfp) argument [all...] |
H A D | mlx4_alloc.c | 586 struct mlx4_buf *buf, gfp_t gfp) 595 size, &t, gfp); 615 gfp); 623 &t, gfp); 634 pages = kmalloc(sizeof *pages * buf->nbufs, gfp); 679 gfp_t gfp) 683 pgdir = kzalloc(sizeof *pgdir, gfp); 691 &pgdir->db_dma, gfp); 731 int mlx4_db_alloc(struct mlx4_dev *dev, struct mlx4_db *db, int order, gfp_t gfp) argument 743 pgdir = mlx4_alloc_db_pgdir(&dev->persist->pdev->dev, gfp); 585 mlx4_buf_alloc(struct mlx4_dev *dev, int size, int max_direct, struct mlx4_buf *buf, gfp_t gfp) argument 678 mlx4_alloc_db_pgdir(struct device *dma_device, gfp_t gfp) argument [all...] |
H A D | icm.h | 76 gfp_t gfp);
|
H A D | mlx4_mr.c | 488 int __mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index, gfp_t gfp) argument 492 return mlx4_table_get(dev, &mr_table->dmpt_table, index, gfp); 495 static int mlx4_mpt_alloc_icm(struct mlx4_dev *dev, u32 index, gfp_t gfp) argument 506 return __mlx4_mpt_alloc_icm(dev, index, gfp); 796 struct mlx4_buf *buf, gfp_t gfp) 803 gfp); 795 mlx4_buf_write_mtt(struct mlx4_dev *dev, struct mlx4_mtt *mtt, struct mlx4_buf *buf, gfp_t gfp) argument
|
H A D | mlx4_icm.c | 251 gfp_t gfp) 265 (table->lowmem ? gfp : GFP_HIGHUSER) | 250 mlx4_table_get(struct mlx4_dev *dev, struct mlx4_icm_table *table, u32 obj, gfp_t gfp) argument
|
H A D | mlx4_srq.c | 37 #include <linux/gfp.h>
|
/freebsd-11-stable/usr.sbin/pmcannotate/ |
H A D | pmcannotate.c | 679 FILE *gfp, *bfp; local 737 gfp = fopen(tofl, "r"); 738 if (gfp == NULL) 747 while (fgets(buffer, LNBUFF, gfp) != NULL) { 770 if (fclose(gfp) == EOF)
|
/freebsd-11-stable/sys/dev/cxgbe/cxgbei/ |
H A D | cxgbei_ulp2_ddp.c | 191 * @gfp: allocation mode 202 u_int sgcnt, struct cxgbei_data *ci, int gfp) 293 * @gfp: allocation mode 301 struct cxgbei_ulp2_gather_list *gl, int gfp, int reply) 201 cxgbei_ulp2_ddp_make_gl_from_iscsi_sgvec(u_int xferlen, struct cxgbei_sgl *sgl, u_int sgcnt, struct cxgbei_data *ci, int gfp) argument 299 cxgbei_ulp2_ddp_tag_reserve(struct cxgbei_data *ci, void *icc, u_int tid, struct cxgbei_ulp2_tag_format *tformat, u32 *tagp, struct cxgbei_ulp2_gather_list *gl, int gfp, int reply) argument
|
/freebsd-11-stable/sys/ofed/include/rdma/ |
H A D | rdma_vt.h | 215 gfp_t gfp); 320 enum ib_qp_type type, u8 port_num, gfp_t gfp);
|
/freebsd-11-stable/contrib/amd/amd/ |
H A D | conf.c | 353 struct _func_map *gfp; local 362 for (gfp = glob_functable; gfp->name; gfp++) 363 if (FSTREQ(gfp->name, key)) 364 return (gfp->func)(val);
|
/freebsd-11-stable/sys/dev/mlx4/mlx4_ib/ |
H A D | mlx4_ib_qp.c | 644 gfp_t gfp) 700 sqp = kzalloc(sizeof (struct mlx4_ib_sqp), gfp); 707 qp = kzalloc(sizeof (struct mlx4_ib_qp), gfp); 789 err = mlx4_db_alloc(dev->dev, &qp->db, 0, gfp); 797 &qp->buf, gfp)) { 806 PAGE_SIZE * 2, &qp->buf, gfp)) { 817 err = mlx4_buf_write_mtt(dev->dev, &qp->mtt, &qp->buf, gfp); 822 gfp | __GFP_NOWARN); 825 gfp, 0 /*PAGE_KERNEL*/); 827 gfp | __GFP_NOWAR 641 create_qp_common(struct mlx4_ib_dev *dev, struct ib_pd *pd, struct ib_qp_init_attr *init_attr, struct ib_udata *udata, int sqpn, struct mlx4_ib_qp **caller_qp, gfp_t gfp) argument 1134 gfp_t gfp; local [all...] |
/freebsd-11-stable/sys/dev/mthca/ |
H A D | mthca_mcg.c | 34 #include <linux/gfp.h>
|