| /freebsd/sys/dev/drm2/ |
| H A D | drm_mm.c | 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 36 * unordered stack of free regions. This could easily be improved if an RB-tree 42 * Thomas Hellström <thomas-at-tungstengraphics-dot-com> 50 static struct drm_mm_node *drm_mm_kmalloc(struct drm_mm *mm, int atomic) in drm_mm_kmalloc() argument 57 mtx_lock(&mm->unused_lock); in drm_mm_kmalloc() 58 if (list_empty(&mm->unused_nodes)) in drm_mm_kmalloc() 62 list_entry(mm->unused_nodes.next, in drm_mm_kmalloc() 64 list_del(&child->node_list); in drm_mm_kmalloc() 65 --mm->num_unused; in drm_mm_kmalloc() 67 mtx_unlock(&mm->unused_lock); in drm_mm_kmalloc() [all …]
|
| H A D | drm_mm.h | 3 * Copyright 2006-2008 Tungsten Graphics, Inc., Cedar Park, TX. USA. 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 30 * Thomas Hellstrom <thomas-at-tungstengraphics-dot-com> 54 struct drm_mm *mm; member 83 return node->allocated; in drm_mm_node_allocated() 86 static inline bool drm_mm_initialized(struct drm_mm *mm) in drm_mm_initialized() argument 88 return mm->hole_stack.next; in drm_mm_initialized() 90 #define drm_mm_for_each_node(entry, mm) list_for_each_entry(entry, \ argument 91 &(mm)->head_node.node_list, \ 93 #define drm_mm_for_each_scanned_node_reverse(entry, n, mm) \ argument [all …]
|
| H A D | drm_gem.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 57 #define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFFUL >> PAGE_SHIFT) + 1) 58 #define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFFUL >> PAGE_SHIFT) * 16) 60 #define DRM_FILE_PAGE_OFFSET_START ((0xFFFFFFFUL >> PAGE_SHIFT) + 1) 61 #define DRM_FILE_PAGE_OFFSET_SIZE ((0xFFFFFFFUL >> PAGE_SHIFT) * 16) 71 struct drm_gem_mm *mm; in drm_gem_init() local 73 drm_gem_names_init(&dev->object_names); in drm_gem_init() 75 mm = malloc(sizeof(*mm), DRM_MEM_DRIVER, M_NOWAIT); in drm_gem_init() 76 if (!mm) { in drm_gem_init() [all …]
|
| /freebsd/contrib/bsddialog/lib/ |
| H A D | datebox.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2022-2025 Alfonso Sabato Siciliano 37 #define MIN_YEAR_CAL 0 42 #define MIN_YEAR_DATE 0 46 #define ISLEAP(year) ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0) 87 static int month_days(int yy, int mm) in month_days() argument 91 if (mm == 2) in month_days() 93 else if (mm == 4 || mm == 6 || mm == 9 || mm == 11) in month_days() 101 static int week_day(int yy, int mm, int dd) in week_day() argument [all …]
|
| /freebsd/sys/contrib/openzfs/module/zfs/ |
| H A D | vdev_mirror.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 84 mirror_ksp = kstat_create("zfs", 0, "vdev_mirror_stats", in vdev_mirror_stat_init() 88 mirror_ksp->ks_data = &mirror_stats; in vdev_mirror_stat_init() 133 * If there is a mixture of rotating and non-rotating media, setting 134 * zfs_vdev_mirror_non_rotating_seek_inc to 0 may well provide better results 135 * as it will direct more reads to the non-rotating vdevs which are more likely 140 static int zfs_vdev_mirror_rotating_inc = 0; 144 /* Non-rotating media load calculation configuration. */ 145 static int zfs_vdev_mirror_non_rotating_inc = 0; [all …]
|
| /freebsd/sys/compat/linuxkpi/common/src/ |
| H A D | linux_current.c | 1 /*- 36 #include <linux/mm.h> 61 struct mm_struct *mm; in find_other_mm() local 65 ts = td->td_lkpi_task; in find_other_mm() 68 mm = ts->mm; in find_other_mm() 69 if (mm == NULL) in find_other_mm() 72 if (atomic_inc_not_zero(&mm->mm_users)) in find_other_mm() 73 return (mm); in find_other_mm() 83 struct mm_struct *mm, *mm_other; in linux_alloc_current() local 85 MPASS(td->td_lkpi_task == NULL); in linux_alloc_current() [all …]
|
| /freebsd/sys/dev/vmm/ |
| H A D | vmm_mem.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 32 mem->mem_vmspace = vmmops_vmspace_alloc(lo, hi); in vm_mem_init() 33 if (mem->mem_vmspace == NULL) in vm_mem_init() 35 sx_init(&mem->mem_segs_lock, "vm_mem_segs"); in vm_mem_init() 36 return (0); in vm_mem_init() 42 if (mem->mem_maps[idx].len != 0 && in sysmem_mapping() 43 mem->mem_segs[mem->mem_maps[idx].segid].sysmem) in sysmem_mapping() 57 if (ident < 0 || ident >= VM_MAX_MEMSEGS) in vm_memseg_sysmem() 60 return (mem->mem_segs[ident].sysmem); in vm_memseg_sysmem() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/soc/mediatek/ |
| H A D | scpsys.txt | 11 power/power-domain.yaml. It provides the power domains defined in 12 - include/dt-bindings/power/mt8173-power.h 13 - include/dt-bindings/power/mt6797-power.h 14 - include/dt-bindings/power/mt6765-power.h 15 - include/dt-bindings/power/mt2701-power.h 16 - include/dt-bindings/power/mt2712-power.h 17 - include/dt-bindings/power/mt7622-power.h 20 - compatible: Should be one of: 21 - "mediatek,mt2701-scpsys" 22 - "mediatek,mt2712-scpsys" [all …]
|
| /freebsd/sys/ofed/drivers/infiniband/core/ |
| H A D | ib_umem.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause OR GPL-2.0 18 * - Redistributions of source code must retain the above 22 * - Redistributions in binary form must reproduce the above 40 #include <linux/mm.h> 41 #include <linux/dma-mapping.h> 57 if (umem->nmap > 0) in __ib_umem_release() 58 ib_dma_unmap_sg(dev, umem->sg_head.sgl, in __ib_umem_release() 59 umem->nmap, in __ib_umem_release() 62 for_each_sg(umem->sg_head.sgl, sg, umem->npages, i) { in __ib_umem_release() [all …]
|
| /freebsd/contrib/ntp/scripts/stats/ |
| H A D | README.timecodes | 11 C on-time character (start bit) 17 <LF> ASCII line feed (hex 0a) 18 <CR> ASCII carriage return (hex 0d) 33 Spectracom 8170 and Netclock/2 WWV Synchonized Clock (format 0) 35 "<CR><LF>i ddd hh:mm:ss TZ=zz<CR><LF>" 38 poll: ?; offsets: Y = none, D = 3, T = 7, A = 0, Q = none 41 hh:mm:ss = hours, minutes, seconds 48 example: " 216 15:36:43 TZ=0" 53 "<CR><LF>iqyy ddd hh:mm:ss.fff ld" 56 poll: ?; offsets: Y = 2, D = 5, T = 9, A = 0, Q = 1 [all …]
|
| /freebsd/contrib/kyua/integration/ |
| H A D | cmd_report_junit_test.sh | 48 atf_check -s exit:0 -o save:stdout -e empty env MOCK="${mock_env}" kyua test 49 grep '^Results saved to ' stdout | cut -d ' ' -f 4 >"${dbfile_name}" 52 # Ensure the results of 'report-junit' come from the database. 59 BEGIN { skip = 0; } 63 skip = 0; 86 <?xml version="1.0" encoding="iso-8859-1"?> 92 <system-out>This is the stdout of pass 93 </system-out> 94 <system-err>Test case metadata 95 ------------------ [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/input/touchscreen/ |
| H A D | hycon,hy46xx.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 11 Glass: 0.3mm--4.0mm 12 PET/PMMA: 0.2mm--2.0mm 13 HY4613(B)-N048 < 6" 14 HY4614(B)-N068 7" .. 10.1" 15 HY4621-NS32 < 5" 16 HY4623-NS48 5.1" .. 7" 17 Glass: 0.3mm--8.0mm [all …]
|
| H A D | touchscreen.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Dmitry Torokhov <dmitry.torokhov@gmail.com> 20 touchscreen-min- [all...] |
| /freebsd/sys/dev/drm2/ttm/ |
| H A D | ttm_bo_manager.c | 3 * Copyright (c) 2007-2010 VMware, Inc., Palo Alto, CA., USA 20 * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL 28 * Authors: Thomas Hellstrom <thellstrom-at-vmware-dot-com> 45 struct drm_mm mm; member 56 struct ttm_range_manager *rman = (struct ttm_range_manager *) man->priv; in ttm_bo_man_get_node() 57 struct drm_mm *mm = &rman->mm; in ttm_bo_man_get_node() local 62 lpfn = placement->lpfn; in ttm_bo_man_get_node() 64 lpfn = man->size; in ttm_bo_man_get_node() 66 ret = drm_mm_pre_get(mm); in ttm_bo_man_get_node() 70 mtx_lock(&rman->lock); in ttm_bo_man_get_node() [all …]
|
| /freebsd/sys/security/mac_mls/ |
| H A D | mac_mls.c | 1 /*- 2 * Copyright (c) 1999-2002, 2007-2011 Robert N. M. Watson 3 * Copyright (c) 2001-2005 McAfee, Inc. 11 * DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA 15 * N66001-04-C-6019 ("SEFOS"). 93 CTLFLAG_RW | CTLFLAG_MPSAFE, 0, 98 &mls_label_size, 0, "Size of struct mac_mls"); 101 SYSCTL_INT(_security_mac_mls, OID_AUTO, enabled, CTLFLAG_RWTUN, &mls_enabled, 0, 106 &destroyed_not_inited, 0, "Count of labels destroyed but not inited"); 108 static int ptys_equal = 0; [all …]
|
| /freebsd/contrib/unbound/compat/ |
| H A D | getentropy_solaris.c | 66 } while (0) 85 int ret = -1; in getentropy() 89 return -1; in getentropy() 96 * /devices/pseudo/random@0:urandom which is provided by in getentropy() 104 "/devices/pseudo/random@0:urandom", 1); in getentropy() 105 if (ret != -1) in getentropy() 110 * with direct device node of the well-known /dev/urandom name in getentropy() 116 ret = getentropy_urandom(buf, len, "/dev/urandom", 0); in getentropy() 117 if (ret != -1) in getentropy() 128 * - Even syslog_r is unsafe to call at this low level, so in getentropy() [all …]
|
| H A D | getentropy_osx.c | 77 } while (0) 91 int ret = -1; in getentropy() 95 return (-1); in getentropy() 105 if (ret != -1) in getentropy() 116 * - Even syslog_r is unsafe to call at this low level, so in getentropy() 118 * - Cannot call abort() because some systems have unsafe in getentropy() 120 * - Could raise(SIGKILL) resulting in silent program termination. in getentropy() 121 * - Return EIO, to hint that arc4random's stir function in getentropy() 123 * - Do the best under the circumstances.... in getentropy() 137 if (ret != -1) in getentropy() [all …]
|
| H A D | getentropy_linux.c | 82 } while (0) 103 int ret = -1; in getentropy() 107 return (-1); in getentropy() 112 * Try descriptor-less getrandom(), in non-blocking mode. in getentropy() 120 if (ret != -1) in getentropy() 131 if (ret != -1) in getentropy() 144 * of the chroot-unavailable fd-using /proc mechanism -- in getentropy() 154 if (ret != -1) in getentropy() 165 * - Even syslog_r is unsafe to call at this low level, so in getentropy() 167 * - Cannot call abort() because some systems have unsafe in getentropy() [all …]
|
| /freebsd/contrib/ntp/html/ |
| H A D | parsedata.html | 1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 6 <meta http-equiv="content-type" content="text/html;charset=iso-8859-1"> 16 <!-- #BeginDate format:En2m -->21-Oct-2010 23:44<!-- #EndDate --> 33 OFLAG 0 34 LFLAG 0 40 OFLAG 0 41 LFLAG 0 46 …<b><i><STX></i>D:<i>dd.mm.yy</i>;T:<i>w</i>;U:<i>hh.mm.ss</i>;<i>uvxy</i><i><ETX></i><… 47 pos: 0 000000001111111111222222222233 3 50 <i><STX></i> = start-of-text, ASCII code 0x02 [all …]
|
| /freebsd/usr.bin/at/ |
| H A D | at.man | 23 .Ar MM DD hh mm Op . Ar SS 57 .Bl -tag -width indent 80 .Ar HH:MM 89 and time-of-day may be suffixed with 96 .Ar \%month-name day 100 .Ar DD.MM.YYYY , 101 .Ar DD.MM.YY , 102 .Ar MM/DD/YYYY , 103 .Ar MM/DD/YY , 111 .Cm \&+ Ar count \%time-units , [all …]
|
| /freebsd/sys/contrib/dev/acpica/components/executer/ |
| H A D | exregion.c | 3 * Module Name: exregion - ACPI default OpRegion (address space) handlers 11 * Some or all of this work - Copyright (c) 1999 - 2025, Intel Corp. 28 * 2.3. Intel grants Licensee a non-exclusive and non-transferable patent 104 * re-exports any such software from a foreign destination, Licensee shall 105 * ensure that the distribution and export/re-export of the software is in 108 * any of its subsidiaries will export/re-export any technical data, process, 130 * 3. Neither the names of the above-listed copyright holders nor the names 165 * PARAMETERS: Function - Read or Write operation 166 * Address - Where in the space to read or write 167 * BitWidth - Field width in bits (8, 16, or 32) [all …]
|
| /freebsd/crypto/krb5/src/lib/krb5/krb/ |
| H A D | str_conv.c | 1 /* -*- mode: c; c-basic-offset: 4; indent-tabs-mode: nil -*- */ 2 /* lib/krb5/krb/str_conv.c - Convert between strings and krb5 data types */ 31 * ---------------- 32 * krb5_string_to_salttype() - Convert string to salttype (krb5_int32) 33 * krb5_string_to_timestamp() - Convert string to krb5_timestamp. 34 * krb5_string_to_deltat() - Convert string to krb5_deltat. 37 * ---------------- 38 * krb5_salttype_to_string() - Convert salttype (krb5_int32) to string. 39 * krb5_timestamp_to_string() - Convert krb5_timestamp to string. 40 * krb5_timestamp_to_sfstring() - Convert krb5_timestamp to short filled string [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/display/panel/ |
| H A D | samsung,s6e8aa0.txt | 4 - compatible: "samsung,s6e8aa0" 5 - reg: the virtual channel number of a DSI peripheral 6 - vdd3-supply: core voltage supply 7 - vci-supply: voltage supply for analog circuits 8 - reset-gpios: a GPIO spec for the reset pin 9 - display-timings: timings for the connected panel as described by [1] 12 - power-on-delay: delay after turning regulators on [ms] 13 - reset-delay: delay after reset sequence [ms] 14 - init-delay: delay after initialization sequence [ms] 15 - panel-width-mm: physical panel width [mm] [all …]
|
| H A D | samsung,ld9040.yaml | 1 # SPDX-License-Identifier: GPL-2.0 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Andrzej Hajda <a.hajda@samsung.com> 13 - $ref: panel-common.yaml# 14 - $ref: /schemas/spi/spi-peripheral-props.yaml# 23 display-timings: true 25 reset-gpios: true 27 vdd3-supply: 30 vci-supply: [all …]
|
| /freebsd/sys/dev/cxgbe/iw_cxgbe/ |
| H A D | provider.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2009-2013, 2016 Chelsio, Inc. All rights reserved. 16 * - Redistributions of source code must retain the above 20 * - Redistributions in binary form must reproduce the above 56 return -ENOSYS; in c4iw_modify_port() 63 return -ENOSYS; in c4iw_ah_create() 72 return -ENOSYS; in c4iw_multicast_attach() 77 return -ENOSYS; in c4iw_multicast_detach() 90 return -ENOSYS; in c4iw_process_mad() [all …]
|