/freebsd/sys/dev/usb/serial/ |
H A D | uipaq.c | 4 /*- 5 * SPDX-License-Identifier: BSD-2-Clause 7 * Copyright (c) 2000-2005 The NetBSD Foundation, Inc. 17 * 1. Redistributions of source code must retain the above copyright 77 #define UIPAQ_CONFIG_INDEX 0 /* config number 1 */ 126 .flags = {.pipe_bof = 1,.force_short_xfer = 1,}, 135 .flags = {.pipe_bof = 1,.short_xfer_ok = 1,}, 158 /* Socket USB Sync */ 160 /* USB Sync 0301 */ 162 /* USB Sync 0302 */ [all …]
|
/freebsd/contrib/processor-trace/libipt/test/src/ |
H A D | ptunit-sync.c | 2 * Copyright (c) 2014-2019, Intel Corporation 34 #include "intel-pt.h" 37 /* A test fixture for sync tests. */ 52 memset(sfix->buffer, 0xcd, sizeof(sfix->buffer)); in sfix_init() 54 memset(&sfix->config, 0, sizeof(sfix->config)); in sfix_init() 55 sfix->config.size = sizeof(sfix->config); in sfix_init() 56 sfix->config.begin = sfix->buffer; in sfix_init() 57 sfix->config.end = sfix->buffer + sizeof(sfix->buffer); in sfix_init() 78 const uint8_t *sync; in sync_fwd_null() local 81 errcode = pt_sync_forward(NULL, sfix->config.begin, &sfix->config); in sync_fwd_null() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zpool_sync/ |
H A D | zpool_sync_001_pos.ksh | 1 #!/bin/ksh -p 23 # Verify 'zpool sync' can sync txgs to the pool(s) main vdevs. 26 # 1. Create a pool 28 # 3. Create a file in the pool if we're not using force sync 29 # 4. Use zpool sync to sync pool 36 typeset -i txg=$(zdb -u $1 | sed -n 's/^[ ][ ]*txg = \(.*\)$/\1/p') 40 set -A args "sync $TESTPOOL" "sync -f $TESTPOOL" "sync" "sync -f" 42 log_assert "Verify 'zpool sync' can sync a pool" 44 typeset -i i=0 45 typeset -i orig_txg=0 [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/soc/fsl/cpm_qe/ |
H A D | fsl,qe-tsa.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,qe-tsa.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: PowerQUICC QE Time-slot assigner (TSA) controller 10 - Herve Codina <herve.codina@bootlin.com> 13 The TSA is the time-slot assigner that can be found on some PowerQUICC SoC. 14 Its purpose is to route some TDM time-slots to other internal serial 20 - enum: 21 - fsl,mpc8321-tsa [all …]
|
H A D | fsl,cpm1-tsa.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/soc/fsl/cpm_qe/fsl,cpm1-tsa.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: PowerQUICC CPM Time-slot assigner (TSA) controller 10 - Herve Codina <herve.codina@bootlin.com> 13 The TSA is the time-slot assigner that can be found on some PowerQUICC SoC. 14 Its purpose is to route some TDM time-slots to other internal serial 20 - enum: 21 - fsl,mpc885-tsa [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/sound/ |
H A D | qcom,q6dsp-lpass-ports.yaml | 1 # SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/sound/qcom,q6dsp-lpass-ports.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Srinivas Kandagatla <srinivas.kandagatla@linaro.org> 18 - qcom,q6afe-dais 20 '#sound-dai-cells': 21 const: 1 23 '#address-cells': 24 const: 1 [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zcp_synctask.c | 71 * If 'sync' is false, executes a dry run and returns the error code. 74 * (meaning we are running a zfs.sync function in open-context) then we 83 dsl_syncfunc_t *syncfunc, void *arg, boolean_t sync, const char *err_dsname) in zcp_sync_task() argument 88 err = checkfunc(arg, ri->zri_tx); in zcp_sync_task() 89 if (!sync) in zcp_sync_task() 92 if (!ri->zri_sync) { in zcp_sync_task() 93 return (luaL_error(state, "running functions from the zfs.sync " in zcp_sync_task() 94 "submodule requires passing sync=TRUE to " in zcp_sync_task() 95 "lzc_channel_program() (i.e. do not specify the \"-n\" " in zcp_sync_task() 100 syncfunc(arg, ri->zri_tx); in zcp_sync_task() [all …]
|
/freebsd/usr.sbin/bhyve/ |
H A D | mevent_test.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 10 * 1. Redistributions of source code must retain the above copyright 33 * cc mevent_test.c mevent.c -lpthread 78 for (j = 1; j < TEVSZ; j++) { in timer_print() 80 diff = (tevbuf[j] - tevbuf[j-1]) * 1000000 / tsc_freq; in timer_print() 89 sum/(TEVSZ - 1)); in timer_print() 118 struct esync *sync = param; in echoer_callback() local 120 pthread_mutex_lock(&sync->e_mt); in echoer_callback() 121 pthread_cond_signal(&sync->e_cond); in echoer_callback() [all …]
|
/freebsd/tools/test/stress2/tools/ |
H A D | bench.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 9 * 1. Redistributions of source code must retain the above copyright 46 #define SYNC 0 macro 66 setproctitle("%s sync", __func__); in cr1() 67 atomic_add_int(&share[SYNC], 1); in cr1() 68 while (share[SYNC] != (volatile u_int)tests * PARALLEL) in cr1() 76 DEFFILEMODE)) == -1) in cr1() 77 err(1, "open(%s)", file); in cr1() 85 if (unlink(file) == -1) in cr1() [all …]
|
/freebsd/sys/contrib/openzfs/man/man8/ |
H A D | zfs-program.8 | 20 .Nm zfs-program 26 .Op Fl t Ar instruction-limit 27 .Op Fl m Ar memory-limit 52 .Bl -tag -width "-t" 53 .It Fl j , -json 55 When this flag is specified and standard output is empty - 59 Executes a read-only channel program, which runs faster. 60 The program cannot change on-disk state by calling functions from the 61 zfs.sync submodule. 66 .It Fl t Ar instruction-limit [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/ |
H A D | tst.parse_args_neg.ksh | 1 #!/bin/ksh -p 21 # Try calling zfs.sync.destroy with various arguments that are not 27 set -A progs "zfs.sync.destroy(\"foo\", \"bar\")" \ 28 "zfs.sync.destroy(\"foo\", 12345)" \ 29 "zfs.sync.destroy(12345)" \ 30 "zfs.sync.destroy()" \ 31 "zfs.sync.destroy{\"foo\", bar=true}" \ 32 "zfs.sync.destroy{\"foo\", defer=12345}" \ 33 "zfs.sync.destroy{\"foo\", defer=true, 12345}" \ 34 "zfs.sync.destroy{\"foo\", defer=true, bar=12345}" \ [all …]
|
H A D | tst.snapshot_neg.zcp | 1 -- 2 -- This file and its contents are supplied under the terms of the 3 -- Common Development and Distribution License ("CDDL"), version 1.0. 4 -- You may only use this file in accordance with the terms of version 5 -- 1.0 of the CDDL. 6 -- 7 -- A full copy of the text of the CDDL should have accompanied this 8 -- source. A copy of the CDDL is also available via the Internet at 9 -- http://www.illumos.org/license/CDDL. 10 -- [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/removal/ |
H A D | removal_nopwrite.ksh | 1 #! /bin/ksh -p 40 log_must zfs set copies=1 $origin 42 dd if=/dev/urandom of=$TESTDIR/file_8k bs=1024k count=$MEGS oflag=sync \ 43 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 45 dd if=/dev/urandom of=$TESTDIR/file_8k_copies bs=1024k count=$MEGS oflag=sync \ 46 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 48 log_must zfs set copies=1 $origin 50 dd if=/dev/urandom of=$TESTDIR/file_128k bs=1024k count=$MEGS oflag=sync \ 51 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 54 count=$MEGS oflag=sync conv=notrunc >/dev/null 2>&1 || \ [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/slog/ |
H A D | slog_replay_fs_001.ksh | 1 #!/bin/ksh -p 10 # or https://opensource.org/licenses/CDDL-1.0. 42 # "freeze" command is required to flush the in-flight transactions; 48 # 1. Create an empty file system (TESTFS) 66 # 1. Create an empty file system (TESTFS) 77 log_must dd if=/dev/zero of=/$TESTPOOL/$TESTFS/sync \ 78 conv=fdatasync,fsync bs=1 count=1 86 oflag=sync,direct bs=4k count=1 105 log_must ln -s /$TESTPOOL/$TESTFS/c /$TESTPOOL/$TESTFS/d 118 log_must mkdir -p $TESTDIR [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_wwv.c | 2 * refclock_wwv - clock driver for NIST WWV/H time/frequency station 24 #define ICOM 1 43 * kHz and mu-law companding. This is the same standard as used by the 53 * Report 97-8-1, University of Delaware, August 1997, 25 pp., available 61 * a nonzero ICOM ID select code. The C-IV trace is turned on if the 68 * port, where 0 is the mike port (default) and 1 is the line-in port. 74 * CEVNT_PROP propagation failure - n 480 struct sync { global() struct 482 maxengsync global() argument 483 noiengsync global() argument 486 mepochsync global() argument 488 ampsync global() argument 489 synengsync global() argument 490 synmaxsync global() argument 491 synsnrsync global() argument 504 refidsync global() argument [all...] |
/freebsd/tools/test/stress2/misc/ |
H A D | advlock.sh | 10 # 1. Redistributions of source code must retain the above copyright 36 # The second change closes a race where a read-only open() with O_SHLOCK or 37 # O_EXLOCK may return successfully while the write count is non-zero due to 51 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 56 sed '1,/^EOF/d' < $odir/$0 > $dir/advlock.c 57 mycc -o advlock -Wall -Wextra -O0 -g advlock.c || exit 1 58 rm -f advlock.c 60 mount | grep "on $mntpoint " | grep -q /dev/md && umount -f $mntpoint 61 mdconfig -l | grep -q md$mdstart && mdconfig -d -u $mdstart 62 mdconfig -a -t swap -s 512m -u $mdstart || exit 1 [all …]
|
H A D | ifconfig2.sh | 4 # SPDX-License-Identifier: BSD-2-Clause 11 # 1. Redistributions of source code must retain the above copyright 37 [ `id -u ` -ne 0 ] && echo "Must be root!" && exit 1 38 if=`ifconfig | grep -w mtu | grep -v RUNNING | sed 's/:.*//' | head -1` 39 [ -z "$if" ] && 41 awk '/^[a-z].*: / {gsub(":", ""); ifn = $1}; /no car/{print ifn; exit}'` 43 [ -z "$if" ] && exit 0 45 ifconfig $if | grep -q RUNNING && running=1 47 sync=/tmp/`basename $0`.sync 48 rm -f $sync [all …]
|
/freebsd/usr.sbin/apmd/ |
H A D | apmd.8 | 10 .\" 1. Redistributions of source code must retain the above copyright 61 built-in functions in the configuration file. 66 .Bl -tag -width f_file 143 .Bd -literal 145 exec "sync && sync && sync"; 146 exec "sleep 1"; 156 .Ql sync 160 .Bl -bullet 163 .Bd -ragged -offset indent 170 .Bd -ragged -offset indent [all …]
|
H A D | apmd.conf | 10 exec "sync && sync && sync"; 11 exec "sleep 1"; 12 exec "apm -z"; 27 # exec "kill -HUP `cat /var/run/moused.pid`"; 35 # exec "sync && sync && sync"; 36 # exec "sleep 1"; 37 # exec "apm -Z"; 42 # exec "logger -p user.emerg battery status critical!"; 43 # exec "echo T250L8CE-GE-C >/dev/speaker"; 45 #apm_battery 1% discharging { [all …]
|
/freebsd/contrib/ntp/include/ |
H A D | ntp_syslog.h | 31 #define LOG_ALERT 1 /* action must be taken immediately */ 37 #define LOG_DEBUG 7 /* debug-level messages */ 52 #define NLOG_SYSSTATUS 0x00000004 /* system status (sync/unsync) */ 59 #define NLOG_PEERSTATUS 0x00000040 /* peer status (sync/unsync) */ 66 #define NLOG_CLOCKSTATUS 0x00000400 /* clock status (sync/unsync) */ 69 #define NLOG_OSYNC 12 /* offset for sync flags */ 70 #define NLOG_SYNCMASK 0x0000F000 /* sync log events */ 71 #define NLOG_SYNCINFO 0x00001000 /* sync info log events */ 72 #define NLOG_SYNCEVENT 0x00002000 /* sync events */ 73 #define NLOG_SYNCSTATUS 0x00004000 /* sync status (sync/unsync) */ [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/display/panel/ |
H A D | panel-timing.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 4 $id: http://devicetree.org/schemas/display/panel/panel-timing.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Thierry Reding <thierry.reding@gmail.com> 11 - Sam Ravnborg <sam@ravnborg.org> 20 +-------+----------+-------------------------------------+----------+ 24 +-------+----------+-------------------------------------+----------+ 28 +-------+----------#######################################----------+ 33 |<----->|<-------->#<-------+--------------------------->#<-------->| [all …]
|
/freebsd/sys/powerpc/aim/ |
H A D | mp_cpudep.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 11 * 1. Redistributions of source code must retain the above copyright 79 __asm __volatile("ld %0, 16(%2); sync; isync; \ in cpudep_ap_early_bootstrap() 80 mtspr %1, %0; sync; isync;" in cpudep_ap_early_bootstrap() 82 __asm __volatile("ld %0, 24(%2); sync; isync; \ in cpudep_ap_early_bootstrap() 83 mtspr %1, %0; sync; isync;" in cpudep_ap_early_bootstrap() 106 * Nuke FSCR, to be managed on a per-process basis in cpudep_ap_early_bootstrap() 127 pcpup->pc_curthread = pcpup->pc_idlethread; in cpudep_ap_bootstrap() 129 __asm __volatile("mr 13,%0" :: "r"(pcpup->pc_curthread)); in cpudep_ap_bootstrap() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/nopwrite/ |
H A D | nopwrite_sync.ksh | 23 # Verify that nopwrite works for sync writes 26 # 1. Create an origin fs with compression and sha256. 28 # 3. Use dd with the sync flag to test the sync write path. 37 datasetexists $origin && destroy_dataset $origin -R 38 log_must zfs create -o mountpoint=$TESTDIR $origin 41 log_assert "nopwrite works for sync writes" 45 dd if=/dev/urandom of=$TESTDIR/file bs=1024k count=$MEGS oflag=sync \ 46 conv=notrunc >/dev/null 2>&1 || log_fail "dd into $TESTDIR/file failed." 51 oflag=sync conv=notrunc >/dev/null 2>&1 || log_fail "dd failed." 55 log_pass "nopwrite works for sync writes"
|
/freebsd/contrib/llvm-project/compiler-rt/lib/tsan/rtl/ |
H A D | tsan_rtl_thread.cpp | 1 //===-- tsan_rtl_thread.cpp -----------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 24 ThreadContext::ThreadContext(Tid tid) : ThreadContextBase(tid), thr(), sync() {} in ThreadContext() 31 void ThreadContext::OnReset() { CHECK(!sync); } in OnReset() 42 if (tctx->detached || tctx->status != ThreadStatusFinished) in CollectThreadLeaks() 45 if (leaks[i].tctx->creation_stack_id == tctx->creation_stack_id) { in CollectThreadLeaks() 50 leaks.PushBack({tctx, 1}); in CollectThreadLeaks() 58 if (tctx->tid == kMainTid) { in ReportIgnoresEnabled() [all …]
|
/freebsd/contrib/ntp/html/drivers/ |
H A D | driver34.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"> 14 <!-- #BeginDate format:En2m -->31-Dec-2007 19:43<!-- #EndDate --> 21 Serial Port: <tt>/dev/wwvb<i>u</i></tt>; 9600 bps, 8-bits, no parity<br> 24 …<p>This driver supports the Ultralink Model 325 (replacement for Model 320) RS-232 powered WWVB re… 29 1 = prev. received data bit, values: 0, 1 ,M or ? unknown 34 DDD = current day in the year from 1 to 365/366<br> 45 +5 = UT1 correction, +/- .1 sec increments</p> 46 …el 33X behavior. On a unmodified new ULM325 clock, the polling flag (flag1 =1) needs to be set.</p> 49 <p>S = 'S' -- sync'd in last hour, '0'-'9' - hours x 10 since last update, else '?'<br> [all …]
|