/freebsd/sys/dev/aac/ |
H A D | aac_debug.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 62 device_printf(sc->aac_dev, "FIB queue header at %p queues at %p\n", in aac_print_queues() 63 &sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][0], in aac_print_queues() 64 &sc->aac_queues->qt_HostNormCmdQueue[0]); in aac_print_queues() 65 device_printf(sc->aac_dev, "HOST_NORM_CMD %d/%d (%d)\n", in aac_print_queues() 66 sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][ in aac_print_queues() 68 sc->aac_queues->qt_qindex[AAC_HOST_NORM_CMD_QUEUE][ in aac_print_queues() 71 device_printf(sc->aac_dev, "HOST_HIGH_CMD %d/%d (%d)\n", in aac_print_queues() 72 sc->aac_queues->qt_qindex[AAC_HOST_HIGH_CMD_QUEUE][ in aac_print_queues() [all …]
|
/freebsd/sys/dev/aacraid/ |
H A D | aacraid_debug.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2006-2010 Adaptec, Inc. 5 * Copyright (c) 2010-2012 PMC-Sierra, Inc. 71 device_printf(sc->aac_dev, "AACQ_FREE %d/%d\n", in aacraid_print_queues() 72 sc->aac_qstat[AACQ_FREE].q_length, sc->aac_qstat[AACQ_FREE].q_max); in aacraid_print_queues() 73 device_printf(sc->aac_dev, "AACQ_READY %d/%d\n", in aacraid_print_queues() 74 sc->aac_qstat[AACQ_READY].q_length, in aacraid_print_queues() 75 sc->aac_qstat[AACQ_READY].q_max); in aacraid_print_queues() 76 device_printf(sc->aac_dev, "AACQ_BUSY %d/%d\n", in aacraid_print_queues() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/sound/ |
H A D | rt5668.txt | 7 - compatible : "realtek,rt5668b" 9 - reg : The I2C address of the device. 13 - interrupts : The CODEC's interrupt output. 15 - realtek,dmic1-data-pin 20 - realtek,dmic1-clk-pin 24 - realtek,jd-src 25 0: No JD is used 26 1: using JD1 as JD source 28 - realtek,ldo1-en-gpios : The GPIO that controls the CODEC's LDO1_EN pin. 43 interrupt-parent = <&gpio>; [all …]
|
H A D | realtek,rt5682s.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Derek Fang <derek.fang@realtek.com> 13 Rt5682s(ALC5682I-VS) is a rt5682i variant which supports I2C only. 16 - $ref: dai-common.yaml# 30 realtek,dmic1-data-pin: 33 - 0 # dmic1 data is not used 34 - 1 # using GPIO2 pin as dmic1 data pin 35 - 2 # using GPIO5 pin as dmic1 data pin [all …]
|
H A D | rt5682.txt | 7 - compatible : "realtek,rt5682" or "realtek,rt5682i" 9 - reg : The I2C address of the device. 11 - AVDD-supply: phandle to the regulator supplying analog power through the 14 - MICVDD-supply: phandle to the regulator supplying power for the microphone 17 - VBAT-supply: phandle to the regulator supplying battery power through the 20 - DBVDD-supply: phandle to the regulator supplying I/O power through the DBVDD 23 - LDO1-IN-supply: phandle to the regulator supplying power to the digital core 28 - interrupts : The CODEC's interrupt output. 30 - realtek,dmic1-data-pin 35 - realtek,dmic1-clk-pin [all …]
|
H A D | realtek,rt5659.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Animesh Agarwal <animeshagarwal28@gmail.com> 40 - $ref: dai-common.yaml# 45 - realtek,rt5659 46 - realtek,rt5658 57 clock-names: 60 realtek,dmic1-data-pin: 63 - 0 # dmic1 is not used [all …]
|
H A D | rt5659.txt | 7 - compatible : One of "realtek,rt5659" or "realtek,rt5658". 9 - reg : The I2C address of the device. 11 - interrupts : The CODEC's interrupt output. 15 - clocks: The phandle of the master clock to the CODEC 16 - clock-names: Should be "mclk" 18 - realtek,in1-differential 19 - realtek,in3-differential 20 - realtek,in4-differential 21 Boolean. Indicate MIC1/3/4 input are differential, rather than single-ended. 23 - realtek,dmic1-data-pin [all …]
|
H A D | rt5665.txt | 7 - compatible : One of "realtek,rt5665", "realtek,rt5666". 9 - reg : The I2C address of the device. 11 - interrupts : The CODEC's interrupt output. 15 - realtek,in1-differential 16 - realtek,in2-differential 17 - realtek,in3-differential 18 - realtek,in4-differential 19 Boolean. Indicate MIC1/2/3/4 input are differential, rather than single-ended. 21 - realtek,dmic1-data-pin 26 - realtek,dmic2-data-pin [all …]
|
/freebsd/contrib/netbsd-tests/lib/libc/gen/ |
H A D | t_vis.c | 3 /*- 31 #include <atf-c.h> 136 { "\\xx", "", -1 }, in ATF_TC_BODY() 156 char s[256], cd[sizeof(s) * 4 + 1], jd[sizeof(cd)], *ol; in ATF_TC_BODY() local 159 for (size_t i = 0; i < sizeof(s) - 1; i++) in ATF_TC_BODY() 161 s[sizeof(s) - 1] = '\0'; in ATF_TC_BODY() 163 ol = setlocale(LC_CTYPE, "ja_JP.UTF-8"); in ATF_TC_BODY() 165 jr = strvisx(jd, s, sizeof(s), VIS_WHITE | VIS_NOLOCALE); in ATF_TC_BODY() 166 ATF_REQUIRE(jr != -1); in ATF_TC_BODY() 172 ATF_REQUIRE(memcmp(jd, cd, jr) == 0); in ATF_TC_BODY() [all …]
|
/freebsd/tools/test/stress2/testcases/mmap/ |
H A D | mmap.c | 1 /*- 58 reserve_in = 2 * op->incarnations; in setup() 59 reserve_bl = 20480 * op->incarnations; in setup() 64 if (op->verbose > 1) in setup() 65 printf("mmap(incarnations=%d). Free(%jdk, %jd), reserve(%jdk, %jd)\n", in setup() 66 op->incarnations, bl/1024, in, reserve_bl/1024, reserve_in); in setup() 80 if (chdir(path) == -1) in setup() 90 if (rmdir(path) == -1) { in cleanup() 103 char *src, *dst; in test() local 118 if (lseek(fdout, statbuf.st_size - 1, SEEK_SET) == -1) in test() [all …]
|
/freebsd/usr.bin/csplit/ |
H A D | csplit.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 30 * csplit -- split files based on context 134 argc -= optind; in main() 139 if (strcmp(infn, "-") == 0) { in main() 173 while (nfiles < maxfiles - 1 && (expr = *argv++) != NULL) { in main() 187 while (reps-- != 0 && nfiles < maxfiles - 1); in main() 200 printf("%jd\n", (intmax_t)ftello(ofp)); in main() 216 "usage: csplit [-ks] [-f prefix] [-n number] file args ...\n"); in usage() 225 write(STDERR_FILENO, msg, sizeof(msg) - 1); in handlesig() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/mediatek/ |
H A D | mt8192-asurada-audio-rt5682.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 7 rt5682: audio-codec@1a { 10 interrupts-extended = <&pio 18 IRQ_TYPE_LEVEL_LOW>; 11 realtek,jd-src = <1>; 12 realtek,btndet-delay = <16>; 13 #sound-dai-cells = <1>; 15 AVDD-supply = <&mt6359_vio18_ldo_reg>; 16 DBVDD-supply = <&mt6359_vio18_ldo_reg>; 17 LDO1-IN-supply = <&mt6359_vio18_ldo_reg>; 18 MICVDD-supply = <&pp3300_g>; [all …]
|
/freebsd/contrib/ntp/libntp/ |
H A D | ntp_calendar.c | 2 * ntp_calendar.c - calendar and helper functions 7 * --------- 266 ntpcal_get_build_date(struct calendar * jd) ntpcal_get_build_date() argument 996 ntpcal_rd_to_date(struct calendar * jd,int32_t rd) ntpcal_rd_to_date() argument 1065 ntpcal_daysec_to_date(struct calendar * jd,int32_t sec) ntpcal_daysec_to_date() argument 1115 ntpcal_daysplit_to_date(struct calendar * jd,const ntpcal_split * ds,int32_t dof) ntpcal_daysplit_to_date() argument 1153 ntpcal_time_to_date(struct calendar * jd,const vint64 * ts) ntpcal_time_to_date() argument 1490 ntpcal_date_to_rd(const struct calendar * jd) ntpcal_date_to_rd() argument 1556 ntpcal_date_to_daysec(const struct calendar * jd) ntpcal_date_to_daysec() argument 1584 ntpcal_date_to_time(const struct calendar * jd) ntpcal_date_to_time() argument 1607 ntpcal_ntp64_to_date(struct calendar * jd,const vint64 * ntp) ntpcal_ntp64_to_date() argument 1621 ntpcal_ntp_to_date(struct calendar * jd,uint32_t ntp,const time_t * piv) ntpcal_ntp_to_date() argument 1640 ntpcal_date_to_ntp64(const struct calendar * jd) ntpcal_date_to_ntp64() argument 1653 ntpcal_date_to_ntp(const struct calendar * jd) ntpcal_date_to_ntp() argument 1999 struct calendar jd; basedate_eval_buildstamp() local 2061 struct calendar jd; basedate_set_day() local [all...] |
/freebsd/lib/libc/tests/nss/ |
H A D | getpw_test.c | 1 /*- 35 #include <atf-c.h> 79 clone_passwd(struct passwd *dest, struct passwd const *src) in IMPLEMENT_TEST_FILE_SNAPSHOT() 82 ATF_REQUIRE(src != NULL); in IMPLEMENT_TEST_FILE_SNAPSHOT() 84 memcpy(dest, src, sizeof(struct passwd)); in IMPLEMENT_TEST_FILE_SNAPSHOT() 85 if (src->pw_name != NULL) in IMPLEMENT_TEST_FILE_SNAPSHOT() 86 dest->pw_name = strdup(src->pw_name); in IMPLEMENT_TEST_FILE_SNAPSHOT() 87 if (src->pw_passwd != NULL) in IMPLEMENT_TEST_FILE_SNAPSHOT() 88 dest->pw_passwd = strdup(src->pw_passwd); in IMPLEMENT_TEST_FILE_SNAPSHOT() 89 if (src->pw_class != NULL) in IMPLEMENT_TEST_FILE_SNAPSHOT() [all …]
|
/freebsd/sys/kern/ |
H A D | subr_msgbuf.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 67 mbp->msg_ptr = ptr; in msgbuf_init() 68 mbp->msg_size = size; in msgbuf_init() 69 mbp->msg_seqmod = SEQMOD(size); in msgbuf_init() 70 mbp->msg_lastpri = -1; in msgbuf_init() 71 mbp->msg_flags = 0; in msgbuf_init() 73 mbp->msg_magic = MSG_MAGIC; in msgbuf_init() 74 bzero(&mbp->msg_lock, sizeof(mbp->msg_lock)); in msgbuf_init() 75 mtx_init(&mbp->msg_lock, "msgbuf", NULL, MTX_SPIN); in msgbuf_init() [all …]
|
/freebsd/tools/test/ppsapi/ |
H A D | ppsapitest.c | 1 /*- 2 * Copyright (c) 1998-2003 Poul-Henning Kamp 4 * Please see src/share/examples/etc/bsd-style-copyright. 22 printf("%jd .%09ld %u", (intmax_t)tsa->tv_sec, tsa->tv_nsec, sa); in Chew() 23 printf(" %jd .%09ld %u\n", (intmax_t)tsc->tv_sec, tsc->tv_nsec, sc); in Chew() 42 while ((i = getopt(argc, argv, "aAbBcCeo:uv")) != -1) { in main() 57 "Usage: ppsapitest [-aAcC] device\n"); in main() 68 argc -= optind; in main() 121 errx(1, "-C but cannot capture on clear flank"); in main() 124 errx(1, "-A but cannot capture on assert flank"); in main()
|
/freebsd/contrib/elftoolchain/libdwarf/ |
H A D | libdwarf_frame.c | 1 /*- 2 * Copyright (c) 2009-2011,2014 Kai Wang 29 ELFTC_VCSID("$Id: libdwarf_frame.c 3589 2018-03-13 20:34:33Z kaiwang27 $"); 37 STAILQ_FOREACH(cie, &fs->fs_cielist, cie_next) { in _dwarf_frame_find_cie() 38 if (cie->cie_offset == offset) in _dwarf_frame_find_cie() 66 *val = dbg->read(data, offsetp, cie->cie_addrsize); in _dwarf_frame_read_lsb_encoded() 72 *val = dbg->read(data, offsetp, 2); in _dwarf_frame_read_lsb_encoded() 75 *val = dbg->read(data, offsetp, 4); in _dwarf_frame_read_lsb_encoded() 78 *val = dbg->read(data, offsetp, 8); in _dwarf_frame_read_lsb_encoded() 84 *val = (int16_t) dbg->read(data, offsetp, 2); in _dwarf_frame_read_lsb_encoded() [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/qcom/ |
H A D | sc7280-herobrine-audio-rt5682.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /* BOARD-SPECIFIC TOP LEVEL NODES */ 13 compatible = "google,sc7280-herobrine"; 14 model = "sc7280-rt5682-max98360a-1mic"; 16 audio-routing = "Headphone Jack", "HPOL", 19 #address-cells = <1>; 20 #size-cells = <0>; 22 dai-link@0 { 23 link-name = "MAX98360"; 27 sound-dai = <&lpass_cpu MI2S_SECONDARY>; [all …]
|
H A D | sc7280-herobrine-audio-rt5682-3mic.dtsi | 1 // SPDX-License-Identifier: (GPL-2.0+ OR MIT) 11 /* BOARD-SPECIFIC TOP LEVEL NODES */ 13 compatible = "google,sc7280-herobrine"; 14 model = "sc7280-rt5682-max98360a-3mic"; 16 audio-routing = "VA DMIC0", "vdd-mic [all...] |
/freebsd/contrib/elftoolchain/readelf/ |
H A D | readelf.c | 1 /*- 2 * Copyright (c) 2009-2015 Kai Wang 57 ELFTC_VCSID("$Id: readelf.c 3769 2019-06-29 15:15:02Z emaste $"); 192 {"arch-specific", no_argument, NULL, 'A'}, 193 {"archive-index", no_argument, NULL, 'c'}, 194 {"debug-dump", optional_argument, NULL, OPTION_DEBUG_DUMP}, 197 {"file-header", no_argument, NULL, 'h'}, 198 {"full-section-name", no_argument, NULL, 'N'}, 201 {"hex-dump", required_argument, NULL, 'x'}, 204 {"program-headers", no_argument, NULL, 'l'}, [all …]
|
/freebsd/sys/dev/atkbdc/ |
H A D | atkbdc_subr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 28 * from: FreeBSD: src/sys/isa/atkbdc_isa.c,v 1.31 2005/05/29 04:42:28 nyan Exp 62 irq = bus_get_resource_start(dev, SYS_RES_IRQ, kbdcdev->rid); in atkbdc_print_child() 64 retval += printf(" irq %jd", irq); in atkbdc_print_child() 78 *val = (u_long)ivar->vendorid; in atkbdc_read_ivar() 81 *val = (u_long)ivar->serial; in atkbdc_read_ivar() 84 *val = (u_long)ivar->logicalid; in atkbdc_read_ivar() 87 *val = (u_long)ivar->compatid; in atkbdc_read_ivar() [all …]
|
/freebsd/sys/security/mac_partition/ |
H A D | mac_partition.c | 1 /*- 2 * Copyright (c) 1999-2002, 2007-2008 Robert N. M. Watson 3 * Copyright (c) 2001-2002 Networks Associates Technology, Inc. 12 * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 ("CBOSS"), 16 * N66001-04-C-6019 ("SEFOS"). 43 * Experiment with a partition-like model. 104 * Object-specific entry points are sorted alphabetically by object type name 115 * Treat "0" as a no-op request because it reflects an unset in partition_cred_check_relabel() 139 error = partition_check(cr1->cr_label, cr2->cr_label); in partition_cred_check_visible() 145 partition_cred_copy_label(struct label *src, struct label *dest) in partition_cred_copy_label() argument [all …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | feeder_rate.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 36 * - http://ccrma.stanford.edu/~jos/resample/ 39 * + all out fixed point integer operations, no soft-float or anything like 48 * - The z, z_, and Z_ . Due to mental block (or maybe just 0x7a69), I 122 int32_t src, dst; /* rounded source / destination rates */ member 124 int32_t bps; /* bytes-per-sample */ 164 &feeder_rate_presets, 0, "compile-time rate presets"); 176 if (err != 0 || req->newptr == NULL || val == feeder_rate_min) in sysctl_hw_snd_feeder_rate_min() [all …]
|
/freebsd/sys/ufs/ffs/ |
H A D | ffs_alloc.c | 1 /*- 2 * SPDX-License-Identifier: (BSD-2-Clause AND BSD-3-Clause) 10 * contract N66001-01-C-8035 ("CBOSS"), as part of the DARPA CHATS 169 fs = ump->um_fs; in ffs_alloc() 172 if ((uint64_t)size > fs->fs_bsize || fragoff(fs, size) != 0) { in ffs_alloc() 174 devtoname(ump->um_dev), (long)fs->fs_bsize, size, in ffs_alloc() 175 fs->fs_fsmnt); in ffs_alloc() 190 if (size == fs->fs_bsize && fs->fs_cstotal.cs_nbfree == 0) in ffs_alloc() 193 freespace(fs, fs->fs_minfree) - numfrags(fs, size) < 0) in ffs_alloc() 195 if (bpref >= fs->fs_size) in ffs_alloc() [all …]
|
/freebsd/usr.bin/xinstall/ |
H A D | xinstall.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 70 /* Maximum buffer size in bytes - do not allow it to grow larger than this. */ 81 * non-FreeBSD system. Linux does not have the st_flags and st_birthtime 177 -1) in main() 277 argc -= optind; in main() 282 warnx("-d and -s may not be specified together"); in main() 295 warnx("DONTSTRIP set - will not strip installed binaries"); in main() 328 if (gid_from_group(group, &gid) == -1) { in main() 335 gid = (gid_t)-1; in main() [all …]
|