/freebsd/sys/contrib/device-tree/Bindings/w1/ |
H A D | w1-uart.yaml | 1 # SPDX-License-Identifier: GPL-2.0-only OR BSD-2-Clause 3 --- 4 $id: http://devicetree.org/schemas/w1/w1-uart.yaml# 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 7 title: UART 1-Wire Bus 10 - Christoph Winklhofer <cj.winklhofer@gmail.com> 13 UART 1-wire bus. Utilizes the UART interface via the Serial Device Bus 14 to create the 1-Wire timing patterns. 16 The UART peripheral must support full-duplex and operate in open-drain 18 baud-rate and transmitted byte, which corresponds to a 1-Wire read bit, [all …]
|
/freebsd/sys/dev/netmap/ |
H A D | netmap_bdg.c | 2 * Copyright (C) 2013-2016 Universita` di Pisa 31 --- VALE SWITCH --- 44 On the rx ring, the per-port lock is grabbed initially to reserve 54 * OS-specific code that is used only within this file. 55 * Other OS-specific code that must be accessed by drivers 114 struct nm_bridge *b = vp->na_bdg; in netmap_bdg_name() 117 return b->bdg_basename; in netmap_bdg_name() 145 int colon_pos = -1; in nm_bdg_name_validate() 149 return -1; in nm_bdg_name_validate() 157 return -1; in nm_bdg_name_validate() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/media/i2c/ |
H A D | tc358743.txt | 1 * Toshiba TC358743 HDMI-RX to MIPI CSI2-TX Bridge 3 The Toshiba TC358743 HDMI-RX to MIPI CSI2-TX (H2C) is a bridge that converts 4 a HDMI stream to MIPI CSI-2 TX. It is programmable through I2C. 8 - compatible: value should be "toshiba,tc358743" 9 - clocks, clock-names: should contain a phandle link to the reference clock 14 - reset-gpios: gpio phandle GPIO connected to the reset pin 15 - interrupts: GPIO connected to the interrupt pin 16 - data-lanes: should be <1 2 3 4> for four-lane operation, 17 or <1 2> for two-lane operation 18 - clock-lanes: should be <0> [all …]
|
/freebsd/contrib/ntp/html/drivers/ |
H A D | driver18.html | 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> 4 <meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> 13 <!-- #BeginDate format:En2m -->12-Oct-2017 08:13<!-- #EndDate --> 20 Serial Port: <tt>/dev/acts<i>u</i></tt>; 9600 baud, 8-bits, no parity<br> 22 …Requires: <tt>/usr/include/sys/termios.h</tt> header file with modem control and a dial-out (cua)&… 26 …-bps modem with a Hayes-compatible command set and control over the modem data terminal ready (DTR… 28 …-distance digits and delay code, if necessary. The <tt>flag1</tt> is reset and the calling program… 30 … via a modem if the radio is configured to send time codes continuously at 1-s intervals. In princ… 35 <p>Phone: (303) 494-4774 (Boulder, CO); (808) 335-4721 (Hawaii)</p> 41 47999 90-04-18 21:39:15 50 0 +.1 045.0 UTC(NIST) *<br> [all …]
|
/freebsd/sys/dev/usb/serial/ |
H A D | umcs.h | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 50 #define MCS7840_DEV_REG_PINPONGHIGH 0x02 /* High bits of ping-pong 52 #define MCS7840_DEV_REG_PINPONGLOW 0x03 /* Low bits of ping-pong 67 #define MCS7840_DEV_REG_PLL_DIV_M 0x0e /* Pre-diviedr for PLL, R/W */ 78 /* DCRx_2-DCRx_4 Registers goes here (see below, they are documented) */ 109 #define MCS7840_DEV_REG_BI_FIFO_STAT1 0x32 /* Bulk-In FIFO Stat for Port 112 #define MCS7840_DEV_REG_BO_FIFO_STAT1 0x33 /* Bulk-out FIFO Stat for Port 115 #define MCS7840_DEV_REG_BI_FIFO_STAT2 0x34 /* Bulk-In FIFO Stat for Port 118 #define MCS7840_DEV_REG_BO_FIFO_STAT2 0x35 /* Bulk-out FIFO Stat for Port [all …]
|
/freebsd/tools/tools/usbtest/ |
H A D | usb_modem_test.c | 1 /*- 2 * Copyright (c) 2007-2022 Hans Petter Selasky 51 struct bps rx_bytes; 52 struct bps tx_bytes; 77 p->data_stress_test = 1; in set_defaults() 78 p->control_ep_test = 1; in set_defaults() 79 p->duration = 60; /* seconds */ in set_defaults() 83 do_bps(const char *desc, struct bps *bps, uint32_t len) in do_bps() argument 85 bps->bytes += len; in do_bps() 188 iface_no = p->usb_iface - 1; in usb_modem_control_ep_test() [all …]
|
/freebsd/sys/dev/sound/pcm/ |
H A D | feeder_mixer.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2008-2009 Ariff Abdullah <ariff@FreeBSD.org> 6 * Copyright (c) 2024-2025 The FreeBSD Foundation 52 int bps; member 65 src -= AFMT_BPS(fmt); in feed_mixer_apply() 66 dst -= AFMT_BPS(fmt); in feed_mixer_apply() 67 count -= AFMT_BPS(fmt); in feed_mixer_apply() 81 if (f->desc->in != f->desc->out) in feed_mixer_init() 88 info->format = AFMT_ENCODING(f->desc->in); in feed_mixer_init() [all …]
|
H A D | buffer.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 5 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006 49 snprintf(b->name, SNDBUF_NAMELEN, "%s:%s", drv, desc); in sndbuf_create() 50 b->dev = dev; in sndbuf_create() 51 b->channel = channel; in sndbuf_create() 66 return (buf->buf_addr); in sndbuf_getbufaddr() 75 device_printf(b->dev, "sndbuf_setmap %lx, %lx; ", in sndbuf_setmap() 77 printf("%p -> %lx\n", b->buf, (u_long)segs[0].ds_addr); in sndbuf_setmap() [all …]
|
H A D | channel.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org> 5 * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006 7 * Portions Copyright (c) Luigi Rizzo <luigi@FreeBSD.org> - 1997-99 9 * Copyright (c) 2024-2025 The FreeBSD Foundation 47 &report_soft_formats, 0, "report software-emulated formats"); 51 &report_soft_matrix, 0, "report software-emulated channel matrixing"); 62 if (err != 0 || req->newptr == NULL) in sysctl_hw_snd_latency() 85 if (err != 0 || req->newptr == NULL) in sysctl_hw_snd_latency_profile() [all …]
|
/freebsd/sys/dev/sound/pci/ |
H A D | cmi.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 32 * by Takuya Shiozaki <AoiMoe@imou.to>. Chen-Li Tien 39 * SPDIF contributed by Gerhard Gonter <gonter@whisky.wu-wien.ac.at>. 41 * This card/code does not always manage to sample at 44100 - actual 42 * rate drifts slightly between recordings (usually 0-3%). No 96 /* ------------------------------------------------------------------------- */ 105 u_int32_t fmt, spd, phys_buf, bps; member 145 /* ------------------------------------------------------------------------- */ 153 return bus_space_read_1(sc->st, sc->sh, regno); in cmi_rd() [all …]
|
H A D | cs4281.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 65 /* ------------------------------------------------------------------------- */ 77 u_int32_t spd, fmt, bps, blksz; member 101 /* -------------------------------------------------------------------- */ 122 /* -------------------------------------------------------------------- */ 143 /* -------------------------------------------------------------------- */ 149 return bus_space_read_4(sc->st, sc->sh, regno); in cs4281_rd() 155 bus_space_write_4(sc->st, sc->sh, regno, data); in cs4281_wr() 184 tries --; in cs4281_waitset() [all …]
|
H A D | als4000.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 30 * als4000.c - driver for the Avance Logic ALS 4000 chipset. 59 /* ------------------------------------------------------------------------- */ 68 u_int32_t format, speed, phys_buf, bps; member 104 /* ------------------------------------------------------------------------- */ 110 bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index); in als_gcr_rd() 111 return bus_space_read_4(sc->st, sc->sh, ALS_GCR_DATA); in als_gcr_rd() 117 bus_space_write_1(sc->st, sc->sh, ALS_GCR_INDEX, index); in als_gcr_wr() 118 bus_space_write_4(sc->st, sc->sh, ALS_GCR_DATA, data); in als_gcr_wr() [all …]
|
H A D | ich.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 41 /* -------------------------------------------------------------------- */ 80 #define ICH_LOCK(sc) snd_mtxlock((sc)->ich_lock) 81 #define ICH_UNLOCK(sc) snd_mtxunlock((sc)->ich_lock) 82 #define ICH_LOCK_ASSERT(sc) snd_mtxassert((sc)->ich_lock) 145 "AMD-768" }, 147 "AMD-8111" } 202 /* -------------------------------------------------------------------- */ 211 /* -------------------------------------------------------------------- */ [all …]
|
/freebsd/sys/contrib/openzfs/module/zfs/ |
H A D | zfs_vnops.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 102 if (zfsvfs->z_os->os_sync != ZFS_SYNC_DISABLED) { in zfs_fsync() 105 atomic_inc_32(&zp->z_sync_writes_cnt); in zfs_fsync() 106 zil_commit(zfsvfs->z_log, zp->z_id); in zfs_fsync() 107 atomic_dec_32(&zp->z_sync_writes_cnt); in zfs_fsync() 128 file_sz = zp->z_size; in zfs_holey_common() 139 if (zn_has_cached_data(zp, 0, file_sz - 1)) in zfs_holey_common() 142 lr = zfs_rangelock_enter(&zp->z_rangelock, 0, UINT64_MAX, RL_READER); in zfs_holey_common() 143 error = dmu_offset_next(ZTOZSB(zp)->z_os, zp->z_id, hole, &noff); in zfs_holey_common() 158 * We could find a hole that begins after the logical end-of-file, in zfs_holey_common() [all …]
|
H A D | dmu.c | 9 * or https://opensource.org/licenses/CDDL-1.0. 181 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread_by_dnode() 184 rw_exit(&dn->dn_struct_rwlock); in dmu_buf_hold_noread_by_dnode() 191 *dbp = &db->db; in dmu_buf_hold_noread_by_dnode() 207 rw_enter(&dn->dn_struct_rwlock, RW_READER); in dmu_buf_hold_noread() 210 rw_exit(&dn->dn_struct_rwlock); in dmu_buf_hold_noread() 218 *dbp = &db->db; in dmu_buf_hold_noread() 285 if (newsize < 0 || newsize > db_fake->db_size) in dmu_set_bonus() 291 if (dn->dn_bonus != db) { in dmu_set_bonus() 315 if (dn->dn_bonus != db) { in dmu_set_bonustype() [all …]
|
/freebsd/tools/tools/netmap/ |
H A D | nmreplay.c | 49 * --- Main functions of the program --- 59 * q->cur_pkt points to the buffer containing the packet 60 * q->cur_len packet length, excluding CRC 61 * q->cur_caplen available packet length (may be shorter than cur_len) 62 * q->cur_tt transmission time for the packet, computed from the trace. 66 * q->c_loss (set with the -L command line option) decides 69 * The function is supposed to set q->c_drop = 1 if the 72 * q->c_bw (set with the -B command line option) is used to 74 * in q->cur_tt the transmission time (in nanoseconds) of 76 * of the packet, i.e. q->cur_tt = q->cur_len / <bandwidth> [all …]
|
/freebsd/sys/arm/ti/ |
H A D | ti_i2c.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 117 /* { 3200000, 1, 113, 115, 7, 10}, - HS mode */ 138 #define TI_I2C_LOCK(_sc) mtx_lock(&(_sc)->sc_mtx) 139 #define TI_I2C_UNLOCK(_sc) mtx_unlock(&(_sc)->sc_mtx) 141 mtx_init(&_sc->sc_mtx, device_get_nameunit(_sc->sc_dev), \ 143 #define TI_I2C_LOCK_DESTROY(_sc) mtx_destroy(&_sc->sc_mtx) 144 #define TI_I2C_ASSERT_LOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_OWNED) 145 #define TI_I2C_ASSERT_UNLOCKED(_sc) mtx_assert(&_sc->sc_mtx, MA_NOTOWNED) 149 device_printf((_sc)->sc_dev, fmt, ##args) [all …]
|
/freebsd/sys/dev/firewire/ |
H A D | 00README | 2 IEEE 1394 support for FreeBSD-5.X and 4.X. 12 named firewire-2002XXXX.tar.gz 16 - fwohci.c/fwohci_pci.c 18 - IEEE1394 link/phy chip control 19 - firewire.c 21 - CSR 22 - Transaction 23 - Character devices for userland 24 - fwmem.c 26 - sbp.c [all …]
|
/freebsd/sys/contrib/device-tree/src/arm/marvell/ |
H A D | armada-385-synology-ds116.dts | 1 // SPDX-License-Identifier: (GPL-2.0 OR MIT) 8 /dts-v1/; 9 #include "armada-385.dtsi" 10 #include <dt-bindings/gpio/gpio.h> 14 compatible = "marvell,a385-gp", "marvell,armada385", "marvell,armada380"; 17 stdout-path = "serial0:115200n8"; 32 internal-regs { 34 pinctrl-name [all...] |
/freebsd/contrib/llvm-project/llvm/lib/Transforms/Utils/ |
H A D | Local.cpp | 1 //===- Local.cpp - Functions to perform local transformations -------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 99 "phicse-debug-hash", 107 "function is well-behaved w.r.t. its isEqual predicate")); 110 "phicse-num-phi-smallsize", cl::init(32), cl::Hidden, 113 "perform a (faster!) exhaustive search instead of set-driven one.")); 119 //===----------------------------------------------------------------------===// 123 /// ConstantFoldTerminator - If a terminator instruction is predicated on a [all …]
|
/freebsd/contrib/ntp/ntpd/ |
H A D | refclock_arc.c | 2 * refclock_arc - clock driver for ARCRON MSF/DCF/WWVB receivers 35 Modifications by Damon Hart-Davis, <d@hd.org>, 1997. 37 Modifications by Christopher Price, <cprice@cs-home.com>, 2003. 44 Orginally developed and used with ntp3-5.85 by Derek Mulcahy. 46 Built against ntp3-5.90 on Solaris 2.5 using gcc 2.7.2. 52 ----- [all...] |
/freebsd/contrib/libpcap/ |
H A D | pcap-dpdk.c | 31 1. Pcap-dpdk provides libpcap the ability to use DPDK with the device name as dpdk:{portid}, such a… 33 3. The testprogs/capturetest provides 6.4Gbps/800,000 pps on Intel 10-Gigabit X540-AT2 with DPDK 18… 36 …port will be on if DPDK is available. Please set DIR for --with-dpdk[=DIR] with ./configure or -DD… 46 sed -i 's/CONFIG_RTE_BUILD_SHARED_LIB=n/CONFIG_RTE_BUILD_SHARED_LIB=y/' $RTE_SDK/$RTE_TARGET/.config 50 You shall learn how to bind nic with DPDK-compatible driver by $RTE_SDK/usertools/dpdk-devbind.py, … 51 And enable hugepages by dpdk-setup.sh 54 …TE_SDK/examples/l2fwd/$RTE_TARGET/l2fwd -dlibrte_pmd_e1000.so -dlibrte_pmd_ixgbe.so -dlibrte_mempo… 58 … which are used for compiling DPDK. And then pass $RTE_SDK/$RTE_TARGET to --with-dpdk or -DDPDK_DIR 65 ./configure --with-dpdk=$RTE_SDK/$RTE_TARGET && make -s all && make -s testprogs && make install 69 mkdir -p build && cd build && cmake -DDPDK_DIR=$RTE_SDK/$RTE_TARGET ../ && make -s all && make -s t… [all …]
|
/freebsd/share/man/man4/ |
H A D | gdb.4 | 32 .Cd "makeoptions DEBUG=-g" 43 .Bl -bullet 71 .Pq Cd "makeoptions DEBUG=-g" . 86 .Dl "gdb -k -wcore kernel.debug /dev/mem" 108 .Dl "gdb -k kernel.debug /var/crash/vmcore.29" 144 .Bl -bullet 158 .Bd -literal -offset indent 166 .Bd -literal -offset indent 167 fwohci0: BUS reset 197 .Bd -literal -offset indent [all …]
|
/freebsd/sys/arm/arm/ |
H A D | debug_monitor.c | 82 /* ID_DFR0 - Debug Feature Register 0 */ 91 /* DBGDIDR - Debug ID Register */ 102 /* DBGPRSR - Device Powerdown and Reset Status Register */ 105 /* DBGOSLSR - OS Lock Status Register */ 108 /* DBGOSDLR - OS Double Lock Register */ 111 /* DBGDSCR - Debug Status and Control Register */ 112 #define DBGSCR_MDBG_EN (1 << 15) /* Monitor debug-mode enable */ 114 /* DBGWVR - Watchpoint Value Register */ 281 * trigger break exception instead of single-step exception and locks in kdb_cpu_set_singlestep() 466 db_printf(" ----- -------- ---------- --- ---------- ------------------\n"); in dbg_show_watchpoint() [all …]
|
/freebsd/sys/cam/ata/ |
H A D | ata_da.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 208 {ADA_ZONE_FLAG_RWP_SUP, "Reset Write Pointer" }, 244 TAILQ_HEAD(, bio) bps; 447 { T_DIRECT, SIP_MEDIA_FIXED, "*", "Corsair CSSD-F*", "*" }, 479 { T_DIRECT, SIP_MEDIA_FIXED, "*", "M4-CT???M4SSD2*", "*" }, 519 { T_DIRECT, SIP_MEDIA_FIXED, "*", "C300-CTFDDAC???MAG*", 572 * Intel X25-M Series SSDs 647 { T_DIRECT, SIP_MEDIA_FIXED, "*", "OCZ-AGILITY2*", "*" }, 655 { T_DIRECT, SIP_MEDIA_FIXED, "*", "OCZ-AGILITY3*", "*" }, [all …]
|