| /freebsd/sys/dev/isci/scil/ |
| H A D | sati_mode_sense.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 9 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 22 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 28 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 59 * translate the SCSI mode sense (6 and 10-byte) commands. 82 * @brief This method indicates if the supplied page control is supported 84 * (i.e. non-volatile) are not supported. 88 * @return This method returns an indication of whether the page control 90 * @retval SATI_SUCCESS This value is returned if the page control is [all …]
|
| H A D | sati_mode_sense_10.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 9 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 22 * Foundation, Inc., 51 Franklin St - Fifth Floor, Boston, MA 02110-1301 USA. 28 * Copyright(c) 2008 - 2011 Intel Corporation. All rights reserved. 59 * translate the SCSI mode sense 10-byte commands. 77 * @brief This method builds the mode parameter header for a 10-byte SCSI 105 mode_data_length -= 2; in sati_mode_sense_10_build_header() 113 if (sequence->device->capabilities & SATI_DEVICE_CAP_DMA_FUA_ENABLE) in sati_mode_sense_10_build_header() 124 // largest block descriptor in this translator is 16-bytes in size. in sati_mode_sense_10_build_header() [all …]
|
| /freebsd/sys/compat/linuxkpi/common/include/linux/ |
| H A D | highmem.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 47 #include <linux/page.h> 51 static inline struct page * 59 kmap(struct page *page) in kmap() argument 64 return ((void *)PHYS_TO_DMAP(page_to_phys(page))); in kmap() 67 sf = sf_buf_alloc(page, SFB_NOWAIT | SFB_CPUPRIVATE); in kmap() 77 kmap_atomic_prot(struct page *page, pgprot_t prot) in kmap_atomic_prot() argument 82 page->flags |= PG_FICTITIOUS; in kmap_atomic_prot() 83 pmap_page_set_memattr(page, attr); in kmap_atomic_prot() [all …]
|
| H A D | scatterlist.h | 1 /*- 5 * Copyright (c) 2013-2017 Mellanox Technologies, Ltd. 40 #include <linux/page.h> 50 unsigned int offset; member 78 #define SCATTERLIST_MAX_SEGMENT (-1U & ~(PAGE_SIZE - 1)) 86 #define sg_is_chain(sg) ((sg)->page_link & SG_PAGE_LINK_CHAIN) 87 #define sg_is_last(sg) ((sg)->page_link & SG_PAGE_LINK_LAST) 89 ((struct scatterlist *) ((sg)->page_link & ~SG_PAGE_LINK_MASK)) 91 #define sg_dma_address(sg) (sg)->dma_address 92 #define sg_dma_len(sg) (sg)->length [all …]
|
| /freebsd/sys/dev/e1000/ |
| H A D | e1000_phy.c | 2 SPDX-License-Identifier: BSD-3-Clause 4 Copyright (c) 2001-2020, Intel Corporation 38 static s32 e1000_access_phy_wakeup_reg_bm(struct e1000_hw *hw, u32 offset, 40 static u32 e1000_get_phy_addr_for_hv_page(u32 page); 41 static s32 e1000_access_phy_debug_regs_hv(struct e1000_hw *hw, u32 offset, 65 * e1000_init_phy_ops_generic - Initialize PHY function pointers 68 * Setups up the function pointers to no-op functions 72 struct e1000_phy_info *phy = &hw->phy; in e1000_init_phy_ops_generic() 76 phy->ops.init_params = e1000_null_ops_generic; in e1000_init_phy_ops_generic() 77 phy->ops.acquire = e1000_null_ops_generic; in e1000_init_phy_ops_generic() [all …]
|
| /freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/hash/ |
| H A D | page.h | 1 /*- 36 * @(#)page.h 8.4 (Berkeley) 11/7/95 45 /* Constants for big key page overhead information. */ 52 * Hash pages store meta-data beginning at the top of the page (offset 0) 53 * and key/data values beginning at the bottom of the page (offset pagesize). 54 * Fields are always accessed via macros so that we can change the page 58 * macros below, P means a pointer to the page, I means an index of the 61 * Hash base page format 63 * ---- ------------------ ------ -------- -------------- 64 * 0 previous page number 4 db_pgno_t PREV_PGNO(P) [all …]
|
| H A D | hash_page.c | 1 /*- 45 * Page manipulation for hashing package. 67 #include "db-int.h" 69 #include "page.h" 93 /* Check if we need to get a page. */ in __get_item() 94 if (!cursorp->pagep) { in __get_item() 95 if (cursorp->pgno == INVALID_PGNO) { in __get_item() 96 cursorp->pagep = in __get_item() 97 __get_page(hashp, cursorp->bucket, A_BUCKET); in __get_item() 98 cursorp->pgno = ADDR(cursorp->pagep); in __get_item() [all …]
|
| /freebsd/contrib/bionic-x86_64-string/ |
| H A D | ssse3-strcmp-slm.S | 36 lea -16(%rcx, %r11), %r9; \ 74 .size name, .-name 95 ja L(crosscache) /* rsi: 16-byte load will cross cache line */ 97 ja L(crosscache) /* rdi: 16-byte load will cross cache line */ 117 * Determine source and destination string offsets from 16-byte alignment. 118 * Use relative offset difference between the two to determine which case 125 mov $0xffff, %edx /* for equivalent offset */ 127 and $0xf, %ecx /* offset of rsi */ 128 and $0xf, %eax /* offset of rdi */ 130 je L(ashr_0) /* rsi and rdi relative offset same */ [all …]
|
| /freebsd/contrib/mandoc/ |
| H A D | mandoc.db.5 | 22 .Nd manual page database 28 Each manual page tree contains its own 44 .Bl -dash -compact -offset 2n -width 1n 46 32-bit signed integer numbers in big endian (network) byte ordering 48 NUL-terminated strings 50 lists of NUL-terminated strings, terminated by a second NUL character 53 Numbers are aligned to four-byte boundaries; where they follow 62 .Bl -dash -compact -offset 2n -width 1n 79 The pages table contains one entry for each physical manual page 84 .Bl -dash -compact -offset 2n -width 1n [all …]
|
| /freebsd/lib/libc/db/hash/ |
| H A D | hash.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 46 BUFHEAD *ovfl; /* Overflow page buffer header */ 47 u_int32_t addr; /* Address of this page */ 48 char *page; /* Actual page data */ member 65 int32_t bsize; /* Bucket/Page Size */ 72 int32_t last_freed; /* Last overflow page freed */ 84 u_int16_t bitmaps[NCACHED]; /* address of overflow page 99 BUFHEAD *cpage; /* Current page */ 102 int error; /* Error Number -- for DBM [all …]
|
| H A D | hash_page.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 39 * Page manipulation for hashing package. 64 #include "un-namespace.h" 69 #include "page.h" 82 ((u_int16_t *)(P))[1] = hashp->BSIZE - 3 * sizeof(u_int16_t); \ 83 ((u_int16_t *)(P))[2] = hashp->BSIZE; \ 87 * This is called AFTER we have verified that there is room on the page for 101 off = OFFSET(bp) - key->size; in putpair() 102 memmove(p + off, key->data, key->size); in putpair() [all …]
|
| H A D | hash_bigkey.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 66 #include "page.h" 79 *-1 ==> ERROR 90 cp = bufp->page; /* Character pointer of p. */ in __big_insert() 93 key_data = (char *)key->data; in __big_insert() 94 key_size = key->size; in __big_insert() 95 val_data = (char *)val->data; in __big_insert() 96 val_size = val->size; in __big_insert() 99 for (space = FREESPACE(p) - BIGOVERHEAD; key_size; in __big_insert() [all …]
|
| /freebsd/sys/dev/xen/gntdev/ |
| H A D | gntdev.c | 1 /*- 67 #include <xen/xen-os.h> 74 MALLOC_DEFINE(M_GNTDEV, "gntdev", "Xen grant-table user-space device"); 108 return (f1->file_offset - f2->file_offset); in offset_cmp() 122 * Get offset into the file which will be used while mmapping the 129 struct file_offset_struct *offset, *offset_tmp; in get_file_offset() local 133 mtx_lock(&priv_user->user_data_lock); in get_file_offset() 134 RB_FOREACH_SAFE(offset, file_offset_head, &priv_user->file_offset, in get_file_offset() 136 if (offset->count >= count) { in get_file_offset() 137 offset->count -= count; in get_file_offset() [all …]
|
| /freebsd/sys/contrib/openzfs/module/os/linux/zfs/ |
| H A D | abd_os.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 122 * contiguous multi-page chunks, a single chunk is optimal. 164 * Scatter ABD's use at least one page each, so sub-page allocations waste 166 * half of each page). Using linear ABD's for small allocations means that 172 * possible for them to actually waste more memory than scatter (one page per 185 * just a single zero'd page. This allows us to conserve memory by 186 * only using a single zero page for the scatterlist. 190 struct page; 197 static struct page *abd_zero_page = NULL; [all …]
|
| H A D | zpl_file.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 66 error = -zfs_open(ip, filp->f_mode, filp->f_flags, cr); in zpl_open() 82 if (ITOZ(ip)->z_atime_dirty) in zpl_release() 86 error = -zfs_close(ip, filp->f_flags, cr); in zpl_release() 103 error = -zfs_readdir(file_inode(filp), ctx, cr); in zpl_iterate() 118 struct inode *inode = filp->f_mapping->host; in zpl_fsync() 130 * to zil_commit() (since we're doing this as a kind of pre-sync); but in zpl_fsync() 134 if (filemap_range_has_page(inode->i_mapping, start, end)) { in zpl_fsync() 143 zpl_write_cache_pages(inode->i_mapping, &wbc, &for_sync); in zpl_fsync() [all …]
|
| /freebsd/contrib/llvm-project/compiler-rt/lib/scudo/standalone/ |
| H A D | release.h | 1 //===-- release.h -------- 47 uptr Offset = 0; global() variable 79 uptr Offset = 0; global() variable 113 const uptr Offset = index * StaticBufferSize; getBuffer() local [all...] |
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/vdev_disk/ |
| H A D | page_alignment.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 33 * This tests the vdev_disk page alignment check callback 40 struct page; 44 * would also then use the platform page size, which isn't what we want for 58 vdev_disk_check_alignment_cb(struct page *page, size_t off, size_t len, in vdev_disk_check_alignment_cb() argument 61 (void) page; in vdev_disk_check_alignment_cb() 65 * The cardinal rule: a single on-disk block must never cross an in vdev_disk_check_alignment_cb() 66 * physical (order-0) page boundary, as the kernel expects to be able in vdev_disk_check_alignment_cb() 67 * to split at both LBS and page boundaries. in vdev_disk_check_alignment_cb() [all …]
|
| /freebsd/lib/libsys/ |
| H A D | mmap.2 | 39 .Fn mmap "void *addr" "size_t len" "int prot" "int flags" "int fd" "off_t offset" 49 starting at byte offset 50 .Fa offset . 53 is not a multiple of the page size, the mapped region may extend past the 55 Any such extension beyond the end of the mapped object will be zero-filled. 61 .Fa offset 67 .Fa offset 69 If the object is truncated and the process later accesses a page that 77 .Fa offset 80 .Fa offset [all …]
|
| /freebsd/sys/kern/ |
| H A D | subr_memdesc.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 52 KASSERT(PMAP_HAS_DMAP, ("direct-map required")); in phys_copyback() 58 todo = min(PAGE_SIZE - page_off, size); in phys_copyback() 61 size -= todo; in phys_copyback() 75 while (vlist->ds_len <= off) { in vlist_copyback() 78 off -= vlist->ds_len; in vlist_copyback() 80 sglist_cnt--; in vlist_copyback() 88 if (todo > vlist->ds_len - off) in vlist_copyback() 89 todo = vlist->ds_len - off; in vlist_copyback() [all …]
|
| /freebsd/lib/libc/db/btree/ |
| H A D | bt_delete.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 45 static int __bt_curdel(BTREE *, const DBT *, PAGE *, u_int); 46 static int __bt_pdelete(BTREE *, PAGE *); 47 static int __bt_relink(BTREE *, PAGE *); 48 static int __bt_stkacq(BTREE *, PAGE **, CURSOR *); 61 PAGE *h; in __bt_delete() 64 t = dbp->internal; in __bt_delete() 66 /* Toss any page pinned across calls. */ in __bt_delete() 67 if (t->bt_pinned != NULL) { in __bt_delete() [all …]
|
| /freebsd/crypto/krb5/src/plugins/kdb/db2/libdb2/btree/ |
| H A D | bt_delete.c | 1 /*- 47 #include "db-int.h" 51 static int __bt_curdel __P((BTREE *, const DBT *, PAGE *, u_int)); 52 static int __bt_pdelete __P((BTREE *, PAGE *)); 53 static int __bt_stkacq __P((BTREE *, PAGE **, CURSOR *)); 66 PAGE *h; in __bt_delete() 69 t = dbp->internal; in __bt_delete() 71 /* Toss any page pinned across calls. */ in __bt_delete() 72 if (t->bt_pinned != NULL) { in __bt_delete() 73 mpool_put(t->bt_mp, t->bt_pinned, 0); in __bt_delete() [all …]
|
| /freebsd/sys/vm/ |
| H A D | sg_pager.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 81 * Offset should be page aligned. in sg_pager_alloc() 87 * The scatter/gather list must only include page-aligned in sg_pager_alloc() 92 for (i = 0; i < sg->sg_nseg; i++) { in sg_pager_alloc() 93 if ((sg->sg_segs[i].ss_paddr % PAGE_SIZE) != 0 || in sg_pager_alloc() 94 (sg->sg_segs[i].ss_len % PAGE_SIZE) != 0) in sg_pager_alloc() 96 npages += sg->sg_segs[i].ss_len / PAGE_SIZE; in sg_pager_alloc() 118 object->handle = sglist_hold(sg); in sg_pager_alloc() 119 TAILQ_INIT(&object->un_pager.sgp.sgp_pglist); in sg_pager_alloc() [all …]
|
| /freebsd/usr.bin/nl/ |
| H A D | nl.1 | 38 .Bk -words 41 .Bk -words 44 .Bk -words 47 .Bk -words 50 .Bk -words 53 .Bk -words 56 .Bk -words 59 .Bk -words 62 .Bk -words 65 .Bk -words [all …]
|
| /freebsd/contrib/llvm-project/lld/MachO/Arch/ |
| H A D | ARM64.cpp | 1 //===- ARM64.cpp ----------------------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 16 #include "mach-o/compact_unwind_encoding.h" 50 // POINTER_TO_GOT: ld64 supports a 4-byte pc-relative form as well as an 8-byte 52 // are weird -- it results in the value of the GOT slot being written, instead 53 // of the address. Let's not support it unless we find a real-world use case. 74 0x90000010, // 00: adrp x16, __la_symbol_ptr@page 85 0x90000011, // 00: adrp x17, _dyld_private@page 87 0xa9bf47f0, // 08: stp x16/x17, [sp, #-16]! [all …]
|
| /freebsd/sys/net/ |
| H A D | bpf_zerocopy.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 60 * Zero-copy buffer scheme for BPF: user space "donates" two buffers, which 62 * by BPF. Memory is wired since page faults cannot be tolerated in the 84 * non-contiguous pages in the direct map region) so we must implement 85 * scatter-gather copying. One significant mitigating factor is that on 110 * Release a page we've previously wired. 120 * Free an sf_buf with attached page. 133 * Free a zbuf, including its page array, sbufs, and pages. Allow partially 142 for (i = 0; i < zb->zb_numpages; i++) { in zbuf_free() [all …]
|