/freebsd-13-stable/sys/compat/linuxkpi/common/include/linux/ |
H A D | page.h | 49 #define page vm_page macro 74 #define nth_page(page,n) pfn_to_page(page_to_pfn(page) + (n)) 76 #define clear_page(page) memset(page, 0, PAGE_SIZE)
|
H A D | shmem_fs.h | 36 struct page *linux_shmem_read_mapping_page_gfp(vm_object_t, int, gfp_t);
|
/freebsd-13-stable/sys/dev/mthca/ |
H A D | mthca_memfree.c | 39 #include <linux/page.h> 60 } page[0]; member in struct:mthca_user_db_table 108 struct page *page; local 114 page = alloc_pages(gfp_mask | __GFP_ZERO, order); 115 if (!page) 118 sg_set_page(mem, page, PAGE_SIZE << order, 0); 282 struct page *page = NULL; local 305 * so if we found the page, dma_handl 438 mthca_uarc_virt(struct mthca_dev *dev, struct mthca_uar *uar, int page) argument 570 struct mthca_db_page *page; local 665 struct mthca_db_page *page; local [all...] |
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/sys/ |
H A D | t_mmap.c | 81 static long page = 0; variable 99 ATF_REQUIRE(munmap(map, page) == 0); 133 nwritten = write(fds[0], (char *)vp + page, BUFSIZE - page); 141 nread = read(fds[1], buf + page, BUFSIZE - page); 149 if (docheck != 0 && memcmp(backup, buf + page, nread) != 0) 227 map = mmap(&addr, page, PROT_READ, MAP_FIXED|MAP_PRIVATE, -1, 0); 233 map = mmap(NULL, page, PROT_READ, MAP_ANON|MAP_PRIVATE, INT_MAX, 0); 242 atf_tc_set_md_var(tc, "descr", "Test uvm page loanou [all...] |
H A D | t_mprotect.c | 51 static long page = 0; variable 128 map = mmap(NULL, page, prot[i], MAP_SHARED, fd, 0); 135 ATF_REQUIRE(mprotect(map, page, PROT_WRITE) != 0); 137 ATF_REQUIRE(munmap(map, page) == 0); 171 * Trivial function -- should fit into a page 201 * Map a page read/write and copy a trivial assembly function inside. 204 * call the code found in the allocated page. 209 map = mmap(NULL, page, PROT_WRITE|PROT_READ, MAP_ANON, -1, 0); 215 /* give r-x rights then call code in page */ 216 ATF_REQUIRE(mprotect(map, page, PROT_EXE [all...] |
/freebsd-13-stable/sys/dev/xen/balloon/ |
H A D | balloon.c | 59 /* We increase/decrease in batches which fit in a page */ 155 vm_page_t page; local 168 for (page = TAILQ_FIRST(&ballooned_pages), i = 0; 169 i < nr_pages; i++, page = TAILQ_NEXT(page, plinks.q)) { 170 KASSERT(page != NULL, ("ballooned_pages list corrupt")); 171 frame_list[i] = (VM_PAGE_TO_PHYS(page) >> PAGE_SHIFT); 195 page = TAILQ_FIRST(&ballooned_pages); 196 KASSERT(page != NULL, ("Unable to get ballooned page")); 216 vm_page_t page; local [all...] |
/freebsd-13-stable/contrib/netbsd-tests/lib/libc/string/ |
H A D | t_strlen.c | 150 long page; local 154 page = sysconf(_SC_PAGESIZE); 155 ATF_REQUIRE(page >= 0); 159 str = malloc(i * page + 1); 164 (void)memset(str, 'x', i * page); 165 str[i * page] = '\0'; 167 ATF_REQUIRE(strlen(str) == i * page);
|
H A D | t_memset.c | 41 static long page = 0; variable 92 buf = malloc(page); 93 ret = malloc(page); 98 fill(ret, page, 0); 99 memset(buf, 0, page); 101 ATF_REQUIRE(memcmp(ret, buf, page) == 0); 103 fill(ret, page, 'x'); 104 memset(buf, 'x', page); 106 ATF_REQUIRE(memcmp(ret, buf, page) == 0); 124 buf = malloc(page); [all...] |
/freebsd-13-stable/lib/libc/db/btree/ |
H A D | bt_seq.c | 85 /* Toss any page pinned across calls. */ 94 * the page the cursor references if they're successful. 115 __bt_setcur(t, e.page->pgno, e.index); 122 * key/data, toss the page. 125 mpool_put(t->bt_mp, e.page, 0); 127 t->bt_pinned = e.page; 143 * Pins the page the cursor references. 189 ep->page = h; 211 ep->page = h; 227 * Pins the page th [all...] |
H A D | bt_search.c | 78 /* Do a binary search on the current page. */ 79 t->bt_cur.page = h; 96 * If it's a leaf page, we're almost done. If no duplicates 98 * it's possible that there were matching keys on this page, 99 * which later deleted, and we're on a page with no matches 101 * end of a page, check the adjacent page. 122 * decrement by one, and record the internal page which should 123 * be a parent page for the key. If a split later occurs, the 124 * inserted page wil [all...] |
H A D | bt_get.c | 71 /* Toss any page pinned across calls. */ 86 mpool_put(t->bt_mp, e->page, 0); 94 * key/data, toss the page. 97 mpool_put(t->bt_mp, e->page, 0); 99 t->bt_pinned = e->page;
|
/freebsd-13-stable/sys/contrib/openzfs/module/os/linux/zfs/ |
H A D | abd_os.c | 115 * contiguous multi-page chunks, a single chunk is optimal. 145 * Scatter ABD's use at least one page each, so sub-page allocations waste 147 * half of each page). Using linear ABD's for small allocations means that 153 * possible for them to actually waste more memory than scatter (one page per 166 * just a single zero'd page. This allows us to conserve memory by 167 * only using a single zero page for the scatterlist. 171 struct page; 176 static struct page *abd_zero_page = NULL; 216 abd_mark_zfs_page(struct page *pag argument 224 abd_unmark_zfs_page(struct page *page) argument 254 struct page *page, *tmp_page = NULL; local 373 struct page *page; local 423 struct page *page; local 501 struct page *page; member in struct:scatterlist 529 sg_set_page(struct scatterlist *sg, struct page *page, unsigned int len, unsigned int offset) argument 954 struct page *page; local [all...] |
H A D | qat_compress.c | 261 struct page *page; local 262 struct page **in_pages = NULL; 263 struct page **out_pages = NULL; 264 struct page **add_pages = NULL; 272 * us to handle non page-aligned buffer addresses and buffers 281 num_src_buf * sizeof (struct page *)); 286 num_dst_buf * sizeof (struct page *)); 291 num_add_buf * sizeof (struct page *)); 336 page [all...] |
/freebsd-13-stable/contrib/bmake/mk/ |
H A D | man.mk | 59 _mandir=${DESTDIR}${MANDIR}/${MANTARGET}`echo $$page | sed -e 's/.*\.cat/./' -e 's/.*\.//'` 64 _minstpage=`echo $$page | sed 's/\.cat/./'` 66 _minstpage=`echo $$page | sed 's/\.cat.*//'`${MCATEXT} 74 _minstpage?=$${page} 93 @for page in ${MANALL:T}; do \ 94 test -s ${_mfromdir}/$$page || continue; \ 99 echo ${MINSTALL} ${_mfromdir}/$$page $$instpage; \ 100 ${MINSTALL} ${_mfromdir}/$$page $$instpage; \ 103 echo ${MCOMPRESS} ${_mfromdir}/$$page \> $$instpage; \ 104 ${MCOMPRESS} ${_mfromdir}/$$page > [all...] |
/freebsd-13-stable/contrib/ncurses/form/ |
H A D | frm_def.c | 57 (_PAGE *) 0, /* page */ 140 if (form->page) 141 free(form->page); 142 form->page = (_PAGE *) 0; 190 /* allocate page structures */ 194 form->page = pg; 199 /* Cycle through fields and calculate page boundaries as well as 233 for (j = form->page[page_nr].pmin; j <= form->page[page_nr].pmax; j++) 236 fields[j]->page [all...] |
H A D | fld_current.c | 68 form->curpage = field->page; 87 if (field->page != form->curpage) 90 err = _nc_Set_Form_Page(form, (int)field->page, field);
|
H A D | frm_post.c | 56 int page; local 74 to do the page initialization which is required by post_form. 76 page = form->curpage; 78 if ((err = _nc_Set_Form_Page(form, page, form->current)) != E_OK)
|
/freebsd-13-stable/sbin/camcontrol/ |
H A D | modeedit.c | 57 #define MAX_PAGENUM_LEN 10 /* Max characters in page num. */ 58 #define MAX_PAGENAME_LEN 64 /* Max characters in page name. */ 65 #define PAGE_CTRL_SHIFT 6 /* Bit offset to page control field. */ 78 static STAILQ_HEAD(, editentry) editlist; /* List of page entries. */ 83 int page; member in struct:pagename 107 int cdb_len, int dbd, int pc, int page, int subpage, 110 int cdb_len, int llbaa, int pc, int page, 114 int dbd, int pc, int page, int subpage, 117 int llbaa, int pc, int page, int subpage, 119 static void nameentry_create(int page, in 370 nameentry_create(int page, int subpage, char *name) argument 390 nameentry_lookup(int page, int subpage) argument 409 int page; local 595 editlist_populate(struct cam_device *device, int cdb_len, int dbd, int pc, int page, int subpage, int task_attr, int retries, int timeout) argument 639 editlist_populate_desc(struct cam_device *device, int cdb_len, int llbaa, int pc, int page, int subpage, int task_attr, int retries, int timeout) argument 700 editlist_save(struct cam_device *device, int cdb_len, int dbd, int pc, int page, int subpage, int task_attr, int retries, int timeout) argument 788 editlist_save_desc(struct cam_device *device, int cdb_len, int llbaa, int pc, int page, int subpage, int task_attr, int retries, int timeout) argument 1003 modepage_dump(struct cam_device *device, int cdb_len, int dbd, int pc, int page, int subpage, int task_attr, int retries, int timeout) argument 1042 modepage_dump_desc(struct cam_device *device, int cdb_len, int llbaa, int pc, int page, int subpage, int task_attr, int retries, int timeout) argument 1084 mode_edit(struct cam_device *device, int cdb_len, int desc, int dbd, int llbaa, int pc, int page, int subpage, int edit, int binary, int task_attr, int retry_count, int timeout) argument 1161 int len, off, page, subpage; local [all...] |
/freebsd-13-stable/contrib/ofed/opensm/include/opensm/ |
H A D | osm_prefix_route.h | 59 #error ROUTER_EXP is deprecated, specify prefix routes at runtime instead (see opensm man page for details)
|
/freebsd-13-stable/sys/xen/interface/io/ |
H A D | displif.h | 222 * a sole page of connector's control ring buffer. 239 * a sole page of connector's event ring buffer. 393 * o all references in this document to page sizes must be treated 402 * Shared page contains a ring with request/response packets. 490 * o fills in page directory with grant references 492 * gref_directory - grant_ref_t, a reference to the first shared page 493 * describing shared buffer references. At least one page exists. If shared 494 * buffer size (buffer_sz) exceeds what can be addressed by this single page, 495 * then reference to the next page must be supplied (see gref_dir_next_page 512 * Shared page fo [all...] |
/freebsd-13-stable/sys/dev/mps/ |
H A D | mps_config.c | 63 * mps_config_get_ioc_pg8 - obtain ioc page 8 66 * @config_page: contents of the config page 78 MPI2_CONFIG_PAGE_IOC_8 *page = NULL; local 150 page = malloc((cm->cm_length), M_MPT2, M_ZERO | M_NOWAIT); 151 if (!page) { 152 printf("%s: page alloc failed\n", __func__); 156 cm->cm_data = page; 167 printf("%s: request for page completed with error %d", 180 printf("%s: page read with error; iocstatus = 0x%x\n", 185 bcopy(page, config_pag 209 pMpi2ManufacturingPagePS_t page = NULL; local 570 Mpi2DriverMappingPage0_t *page = NULL; local 708 MPI2_CONFIG_PAGE_DRIVER_MAPPING_0 *page = NULL; local 848 Mpi2SasDevicePage0_t *page = NULL; local 983 Mpi2BiosPage3_t *page = NULL; local 1115 Mpi2RaidVolPage0_t *page = NULL; local 1246 Mpi2RaidVolPage1_t *page = NULL; local 1405 Mpi2RaidPhysDiskPage0_t *page = NULL; local [all...] |
/freebsd-13-stable/sys/dev/mpr/ |
H A D | mpr_config.c | 63 * mpr_config_get_ioc_pg8 - obtain ioc page 8 66 * @config_page: contents of the config page 78 MPI2_CONFIG_PAGE_IOC_8 *page = NULL; local 150 page = malloc((cm->cm_length), M_MPR, M_ZERO | M_NOWAIT); 151 if (!page) { 152 printf("%s: page alloc failed\n", __func__); 156 cm->cm_data = page; 167 printf("%s: request for page completed with error %d", 180 printf("%s: page read with error; iocstatus = 0x%x\n", 185 bcopy(page, config_pag 210 MPI2_CONFIG_PAGE_IO_UNIT_8 *page = NULL; local 343 MPI2_CONFIG_PAGE_MAN_11 *page = NULL; local 531 Mpi2DriverMappingPage0_t *page = NULL; local 669 MPI2_CONFIG_PAGE_DRIVER_MAPPING_0 *page = NULL; local 809 Mpi2SasDevicePage0_t *page = NULL; local 946 Mpi26PCIeDevicePage0_t *page = NULL; local 1083 Mpi26PCIeDevicePage2_t *page = NULL; local 1218 Mpi2BiosPage3_t *page = NULL; local 1350 Mpi2RaidVolPage0_t *page = NULL; local 1481 Mpi2RaidVolPage1_t *page = NULL; local 1640 Mpi2RaidPhysDiskPage0_t *page = NULL; local [all...] |
/freebsd-13-stable/lib/libc/db/hash/ |
H A D | hash_buf.c | 70 #include "page.h" 98 * page previous to an overflow page that we are trying to find. 106 BUFHEAD *prev_bp, /* If prev_bp set, indicates a new overflow page. */ 139 __get_page(hashp, bp->page, addr, !prev_bp, is_disk, 0)) 152 * We need a buffer for this page. Either allocate one, or evict a resident 170 /* It is bad to overwrite the page under the cursor. */ 197 if ((bp->page = (char *)calloc(1, hashp->BSIZE)) == NULL) { 207 * If this is an overflow page with addr 0, it's already been 215 shortp = (u_int16_t *)bp->page; [all...] |
H A D | hash_bigkey.c | 72 #include "page.h" 96 cp = bufp->page; /* Character pointer of p. */ 129 * next page; otherwise the invariant that the 130 * data must end on a page with FREESPACE 148 p = (u_int16_t *)bufp->page; 149 cp = bufp->page; 159 * same page as the key ends, FREESPACE is at least one. 177 cp = bufp->page; 187 * Called when bufp's page contains a partial key (index should be 1) 190 * free bufp because the page pointin [all...] |
/freebsd-13-stable/sys/dev/rtwn/ |
H A D | if_rtwn_fw.c | 58 rtwn_fw_loadpage(struct rtwn_softc *sc, int page, const uint8_t *buf, argument 66 reg = RW(reg, R92C_MCUFWDL_PAGE, page); 88 "%s: could not load firmware page %d (offset %u)\n", 89 __func__, page, off); 165 int page; local 170 for (page = 0; page < maxpages; page++) { 171 error = rtwn_fw_loadpage(sc, page, curr_ptr, 177 if (page ! [all...] |