/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/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/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 | 9 * or https://opensource.org/licenses/CDDL-1.0. 120 * contiguous multi-page chunks, a single chunk is optimal. 162 * Scatter ABD's use at least one page each, so sub-page allocations waste 164 * half of each page). Using linear ABD's for small allocations means that 170 * possible for them to actually waste more memory than scatter (one page per 183 * just a single zero'd page. This allows us to conserve memory by 184 * only using a single zero page for the scatterlist. 188 struct page; 195 static struct page *abd_zero_page = NULL; 225 ABDSTAT_INCR(abdstat_struct_size, -(int)sizeof (abd_t)); in abd_free_struct_impl() [all …]
|
H A D | zpl_file.c | 9 * 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() 114 struct inode *inode = filp->f_mapping->host; in zpl_fsync() 123 * tandem so that sync writes can detect if there are any non-sync in zpl_fsync() 124 * writes going on and vice-versa. The "vice-versa" part to this logic in zpl_fsync() 125 * is located in zfs_putpage() where non-sync writes check if there are in zpl_fsync() 126 * any ongoing sync writes. If any sync and non-sync writes overlap, 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 | 9 * or https://opensource.org/licenses/CDDL-1.0. 32 * This tests the vdev_disk page alignment check callback 39 struct page; 43 * would also then use the platform page size, which isn't what we want for 57 vdev_disk_check_alignment_cb(struct page *page, size_t off, size_t len, in vdev_disk_check_alignment_cb() argument 60 (void) page; in vdev_disk_check_alignment_cb() 64 * The cardinal rule: a single on-disk block must never cross an in vdev_disk_check_alignment_cb() 65 * physical (order-0) page boundary, as the kernel expects to be able in vdev_disk_check_alignment_cb() 66 * to split at both LBS and page boundaries. in vdev_disk_check_alignment_cb() 69 * (possibly compound) page, which we can check for. in vdev_disk_check_alignment_cb() [all …]
|
/freebsd/sys/compat/linuxkpi/common/include/linux/ |
H A D | scatterlist.h | 1 /*- 5 * Copyright (c) 2013-2017 Mellanox Technologies, Ltd. 40 #include <linux/page.h> 50 unsigned int offset; 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_addres 47 unsigned int offset; global() member 116 sg_assign_page(struct scatterlist * sg,struct page * page) sg_assign_page() argument 124 sg_set_page(struct scatterlist * sg,struct page * page,unsigned int len,unsigned int offset) sg_set_page() argument 125 sg_set_page(struct scatterlist * sg,struct page * page,unsigned int len,unsigned int offset) sg_set_page() argument 570 struct page *page; sg_pcopy_from_buffer() local 626 sg_pcopy_to_buffer(struct scatterlist * sgl,unsigned int nents,void * buf,size_t buflen,off_t offset) sg_pcopy_to_buffer() argument 630 struct page *page; sg_pcopy_to_buffer() local [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/sys/vm/ |
H A D | sg_pager.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 80 * Offset should be page aligned. in sg_pager_alloc() 86 * The scatter/gather list must only include page-aligned in sg_pager_alloc() 91 for (i = 0; i < sg->sg_nseg; i++) { in sg_pager_alloc() 92 if ((sg->sg_segs[i].ss_paddr % PAGE_SIZE) != 0 || in sg_pager_alloc() 93 (sg->sg_segs[i].ss_len % PAGE_SIZE) != 0) in sg_pager_alloc() 95 npages += sg->sg_segs[i].ss_len / PAGE_SIZE; in sg_pager_alloc() 117 object->handle = sglist_hold(sg); in sg_pager_alloc() 118 TAILQ_INIT(&object->un_pager.sgp.sgp_pglist); in sg_pager_alloc() [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/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/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 …]
|
/freebsd/tests/sys/posixshm/ |
H A D | posixshm_test.c | 1 /*- 50 #include <atf-c.h> 66 ATF_REQUIRE_MSG(mkstemp(path) != -1, in gen_a_test_path() 93 ATF_CHECK_MSG(fd == -1, "shm_open didn't fail"); in shm_open_should_fail() 106 ATF_CHECK_MSG(shm_unlink(path) == -1, "shm_unlink didn't fail"); in shm_unlink_should_fail() 114 * on success and -1 on failure. 119 char *page; in scribble_object() local 135 page = mmap(0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0); in scribble_object() 136 if (page == MAP_FAILED) in scribble_object() 139 page[0] = value; in scribble_object() [all …]
|
/freebsd/lib/libkvm/ |
H A D | kvm_minidump_amd64.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 50 #define VM_IS_V1(vm) (vm->hdr.version == 1) 52 (VM_IS_V1(vm) ? ((va) & (AMD64_PAGE_SIZE - 1)) : ((va) & AMD64_PAGE_MASK)) 71 * Version 2 minidumps use page directory entries, while version 1 use page 91 /* Get the first page table entry for a given page directory index. */ 114 struct vmstate *vm = kd->vmst; in _amd64_minidump_freevtop() 117 kd->vmst = NULL; in _amd64_minidump_freevtop() 128 _kvm_err(kd, kd->program, "cannot allocate vm"); in _amd64_minidump_initvtop() 129 return (-1); in _amd64_minidump_initvtop() [all …]
|
/freebsd/sys/dev/mlx4/mlx4_core/ |
H A D | mlx4_icm.c | 15 * - Redistributions of source code must retain the above 19 * - Redistributions in binary form must reproduce the above 59 if (chunk->nsg > 0) in mlx4_free_icm_pages() 60 pci_unmap_sg(dev->persist->pdev, chunk->mem, chunk->npages, in mlx4_free_icm_pages() 63 for (i = 0; i < chunk->npages; ++i) in mlx4_free_icm_pages() 64 __free_pages(sg_page(&chunk->mem[i]), in mlx4_free_icm_pages() 65 get_order(chunk->mem[i].length)); in mlx4_free_icm_pages() 72 for (i = 0; i < chunk->npages; ++i) in mlx4_free_icm_coherent() 73 dma_free_coherent(&dev->persist->pdev->dev, in mlx4_free_icm_coherent() 74 chunk->mem[i].length, in mlx4_free_icm_coherent() [all …]
|
/freebsd/sys/cam/scsi/ |
H A D | scsi_enc_ses.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 61 /* SES Diagnostic Page Codes */ 123 SES_SETSTATUS_ENC_IDX = -1 133 req->result = result; in ses_terminate_control_requests() 147 ITERATOR_INDEX_INVALID = -1, 162 * elements detected via the SES configuration page by tracking the numerous 220 * This index is appropriate for indexing into enc->ses_elm_map. 347 /* References into the config page. */ 393 * of the first type (ITERATOR_INDEX_INVALID == -1). This in ses_iter_reset() [all …]
|