/freebsd/sys/dev/sound/pci/ |
H A D | t4dwave.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 40 /* -------------------------------------------------------------------- */ 54 #define TR_MAXPLAYCH 4 57 * Though, it's not clearly documented in the 4DWAVE datasheet, the 60 * is 32-bit, but the two MSBs are used for other purposes. 62 #define TR_MAXADDR ((1U << 30) - 1) 63 #define ALI_MAXADDR ((1U << 31) - 1) 112 /* -------------------------------------------------------------------- */ 140 /* -------------------------------------------------------------------- */ [all …]
|
H A D | hdspe-pcm.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2012-2021 Ruslan Bukin <br@bsdpad.com> 5 * Copyright (c) 2023-2024 Florian Walpen <dev@submerge.ch> 31 * RME HDSPe driver for FreeBSD (pcm-part). 57 { 4, 1024, 23 }, 86 return (hc->ports & (HDSPE_CHAN_AIO_ALL | HDSPE_CHAN_RAY_ALL)); in hdspe_channel_play_ports() 92 return (hc->ports & (HDSPE_CHAN_AIO_ALL_REC | HDSPE_CHAN_RAY_ALL)); in hdspe_channel_rec_ports() 101 return (4); in hdspe_adat_width() 108 return (ports & (~(ports - 1))); /* Extract first bit set. */ in hdspe_port_first() [all …]
|
H A D | es137x.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause AND BSD-4-Clause 30 /*- 50 * 4. The name of the author may not be used to endorse or promote 72 * Thomas Sailer (sailer@ife.ee.ethz.ch) 128 #define ES_BLK_ALIGN (~(ES_BLK_MIN - 1)) 148 * 32bit Ensoniq Configuration (es->escfg). 149 * ---------------------------------------- 151 * +-------+--------+------+------+---------+--------+---------+---------+ 153 * +-------+--------+------+------+---------+--------+---------+---------+ [all …]
|
H A D | neomagic.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 38 #include <dev/sound/pci/neomagic-coeff.h> 43 /* -------------------------------------------------------------------- */ 78 /* -------------------------------------------------------------------- */ 86 static int nm_setch(struct sc_chinfo *ch); 117 /* -------------------------------------------------------------------- */ 128 /* -------------------------------------------------------------------- */ 134 bus_space_tag_t st = rman_get_bustag(sc->reg); in nm_rd() 135 bus_space_handle_t sh = rman_get_bushandle(sc->reg); in nm_rd() [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) 96 #define ICH_DMA_NOCACHE (1 << 4) 143 "nVidia nForce 4 MCP" }, 145 "AMD-768" }, 147 "AMD-8111" } [all …]
|
H A D | emu10k1.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 5 * Copyright (c) 2003 Orlando Bassotto <orlando.bassotto@ieo-research.it> 46 /* -------------------------------------------------------------------- */ 57 #define EMU_CHANS 4 62 #define NUM_FXSENDS 4 65 #define TMEMSIZEREG 4 236 /* -------------------------------------------------------------------- */ 257 /* -------------------------------------------------------------------- */ 297 /* -------------------------------------------------------------------- */ [all …]
|
H A D | via82c686.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 43 #define NSEGS 4 /* Number of segments in SGD table */ 112 return bus_space_read_1(via->st, via->sh, regno); in via_rd() 114 return bus_space_read_2(via->st, via->sh, regno); in via_rd() 115 case 4: in via_rd() 116 return bus_space_read_4(via->st, via->sh, regno); in via_rd() 128 bus_space_write_1(via->st, via->sh, regno, data); in via_wr() 131 bus_space_write_2(via->st, via->sh, regno, data); in via_wr() 133 case 4: in via_wr() [all …]
|
H A D | envy24.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 46 /* -------------------------------------------------------------------- */ 52 #define ENVY24_PLAY_BUFUNIT (4 /* byte/sample */ * 10 /* channel */) 53 #define ENVY24_REC_BUFUNIT (4 /* byte/sample */ * 12 /* channel */) 153 void *adc[4], *dac[4]; 179 /* -------------------------------------------------------------------- */ 208 /* M-Audio Delta series AK4524 access interface */ 215 /* -------------------------------------------------------------------- */ 221 /* API -> hardware channel map */ [all …]
|
H A D | hdsp-pcm.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2012-2021 Ruslan Bukin <br@bsdpad.com> 5 * Copyright (c) 2023-2024 Florian Walpen <dev@submerge.ch> 31 * RME HDSP driver for FreeBSD (pcm-part). 59 { 4, 1024, 23 }, 92 return (0x000000aa); /* 4 channels (1,3,5,7) double speed. */ in hdsp_adat_slot_map() 111 slot_map |= (0x0f << 12); /* 4 channels extension. */ in hdsp_port_slot_map() 130 return (slots & (~(slots - 1))); /* Extract first bit set. */ in hdsp_slot_first() 141 return (slots & (ends ^ (ends - 1))); in hdsp_slot_first_row() [all …]
|
H A D | envy24ht.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 35 * generous gift - an 'Audiotrak Prodigy HD2' audio card! I also want to 58 /* -------------------------------------------------------------------- */ 64 #define ENVY24HT_PLAY_BUFUNIT (4 /* byte/sample */ * 8 /* channel */) 65 #define ENVY24HT_REC_BUFUNIT (4 /* byte/sample */ * 2 /* channel */) 152 void *adc[4], *dac[4]; 178 /* -------------------------------------------------------------------- */ 214 /* -------------------------------------------------------------------- */ 220 /* API -> hardware channel map */ [all …]
|
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 /* ------------------------------------------------------------------------- */ 145 /* ------------------------------------------------------------------------- */ 153 return bus_space_read_1(sc->st, sc->sh, regno); in cmi_rd() 155 return bus_space_read_2(sc->st, sc->sh, regno); in cmi_rd() [all …]
|
H A D | via8233.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 64 #define NDXSCHANS 4 /* No of DXS channels */ 73 #define VIA_BLK_ALIGN (~(VIA_BLK_MIN - 1)) 149 ret += via->pch[i].active; in via_chan_active() 152 ret += via->rch[i].active; in via_chan_active() 165 dev = oidp->oid_arg1; in sysctl_via8233_spdif_enable() 167 snd_mtxlock(via->lock); in sysctl_via8233_spdif_enable() 169 snd_mtxunlock(via->lock); in sysctl_via8233_spdif_enable() 173 if (err || req->newptr == NULL) in sysctl_via8233_spdif_enable() [all …]
|
/freebsd/contrib/bionic-x86_64-string/ |
H A D | sse2-strcpy-slm.S | 53 .p2align 4; \ 61 .size name, .-name 66 #define JMPTBL(I, B) I - B 94 and $-16, %rsi 131 .p2align 4 238 and $-0x40, %rsi 266 movdqu %xmm4, -64(%rdi) 269 movdqu %xmm5, -48(%rdi) 273 movdqu %xmm6, -32(%rdi) 275 movdqu %xmm7, -16(%rdi) [all …]
|
/freebsd/sys/dev/ata/chipsets/ |
H A D | ata-serverworks.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org> 48 #include <dev/ata/ata-all.h> 49 #include <dev/ata/ata-pci.h> 82 { ATA_HT1000_S1, 0x00, SWKS_MIO, 4, ATA_SA150, "HT1000" }, in ata_serverworks_probe() 83 { ATA_HT1000_S2, 0x00, SWKS_MIO, 4, ATA_SA150, "HT1000" }, in ata_serverworks_probe() 84 { ATA_K2, 0x00, SWKS_MIO, 4, ATA_SA150, "K2" }, in ata_serverworks_probe() 85 { ATA_FRODO4, 0x00, SWKS_MIO, 4, ATA_SA150, "Frodo4" }, in ata_serverworks_probe() 92 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_serverworks_probe() [all …]
|
H A D | ata-intel.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org> 48 #include <dev/ata/ata-all.h> 49 #include <dev/ata/ata-pci.h> 83 #define INTEL_6CH 4 89 u_char smap[4]; 92 #define ATA_INTEL_SMAP(ctlr, ch) \ argument 93 &((struct ata_intel_data *)((ctlr)->chipset_data))->smap[(ch)->unit * 2] 95 mtx_lock(&((struct ata_intel_data *)((ctlr)->chipset_data))->lock) [all …]
|
H A D | ata-acerlabs.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org> 48 #include <dev/ata/ata-all.h> 49 #include <dev/ata/ata-pci.h> 66 struct resource *bars[4]; 78 { ATA_ALI_5288, 0x00, 4, ALI_SATA, ATA_SA300, "M5288" }, in ata_ali_probe() 79 { ATA_ALI_5287, 0x00, 4, ALI_SATA, ATA_SA150, "M5287" }, in ata_ali_probe() 92 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_ali_probe() 96 ctlr->chipinit = ata_ali_chipinit; in ata_ali_probe() [all …]
|
/freebsd/contrib/ncurses/ncurses/tinfo/ |
H A D | obsolete.c | 3 * Copyright 2013-2014,2016 Free Software Foundation, Inc. * 31 * Author: Thomas E. Dickey 2013-on * 98 while (n-- != 0) in _nc_memmove() 109 #define CH(n) UChar((source) >> ((n) * 8)) in _nc_conv_to_utf8() macro 119 rc = 4; in _nc_conv_to_utf8() 132 target[0] = CH(0); in _nc_conv_to_utf8() 136 target[1] = UChar(0x80 | (CH(0) & 0x3f)); in _nc_conv_to_utf8() 137 target[0] = UChar(0xc0 | (CH(0) >> 6) | ((CH(1) & 0x07) << 2)); in _nc_conv_to_utf8() 141 target[2] = UChar(0x80 | (CH(0) & 0x3f)); in _nc_conv_to_utf8() 142 target[1] = UChar(0x80 | (CH(0) >> 6) | ((CH(1) & 0x0f) << 2)); in _nc_conv_to_utf8() [all …]
|
/freebsd/lib/libiconv_modules/UTF1632/ |
H A D | citrus_utf1632.c | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 53 /* ---------------------------------------------------------------------- 60 uint8_t ch[4]; member 86 #define _ENCODING_MB_CUR_MAX(_ei_) ((_ei_)->cur_max) 87 #define _ENCODING_MB_CUR_MIN(_ei_) ((_ei_)->cur_min) 119 chlenbak = psenc->chlen; in _citrus_UTF1632_mbrtowc_priv() 122 needlen = ((ei->mode & _MODE_UTF32) != 0 || chlenbak >= 2) ? 4 : 2; in _citrus_UTF1632_mbrtowc_priv() 127 psenc->ch[chlenbak++] = *s0++; in _citrus_UTF1632_mbrtowc_priv() 128 n--; in _citrus_UTF1632_mbrtowc_priv() [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Support/ |
H A D | ConvertUTF.cpp | 1 /*===--- ConvertUTF.c - Universal Character Names conversions ---------------=== 5 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 *===------------------------------------------------------------------------=*/ 9 * Copyright © 1991-2015 Unicode, Inc. All rights reserved. 46 /* --------------------------------------------------------------------- 48 Conversions between UTF32, UTF-16, and UTF-8. Source code file. 57 Jan 2004: updated switches in from-UTF8 conversions. 58 Oct 2004: updated to use UNI_MAX_LEGAL_UTF32 in UTF-32 conversions. 62 ------------------------------------------------------------------------ */ 71 * This code extensively uses fall-through switches. [all …]
|
/freebsd/sys/dev/dcons/ |
H A D | dcons.c | 1 /*- 2 * SPDX-License-Identifier: BSD-4-Clause 20 * 4. Neither the name of the author nor the names of its contributors 52 struct dcons_ch *ch; in dcons_ischar() local 54 ch = &dc->i; in dcons_ischar() 56 ptr = ntohl(*ch->ptr); in dcons_ischar() 59 if (gen == ch->gen && pos == ch->pos) in dcons_ischar() 62 next_gen = DCONS_NEXT_GEN(ch->gen); in dcons_ischar() 64 if ((gen != ch->gen && gen != next_gen) in dcons_ischar() 65 || (gen == ch->gen && pos < ch->pos)) { in dcons_ischar() [all …]
|
/freebsd/sys/arm/ti/ |
H A D | ti_edma3.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (C) 2010 Texas Instruments Incorporated - http://www.ti.com/ 64 #define TI_EDMA3CC_DCHMAP(p) (0x100 + ((p)*4)) 65 #define TI_EDMA3CC_DMAQNUM(n) (0x240 + ((n)*4)) 74 #define TI_EDMA3CC_QRAE(p) (0x380 + ((p)*4)) 90 #define TI_EDMA3CC_DMAQNUM_SET(c,q) ((0x7 & (q)) << (((c) % 8) * 4)) 91 #define TI_EDMA3CC_DMAQNUM_CLR(c) (~(0x7 << (((c) % 8) * 4))) 92 #define TI_EDMA3CC_QDMAQNUM_SET(c,q) ((0x7 & (q)) << ((c) * 4)) 93 #define TI_EDMA3CC_QDMAQNUM_CLR(c) (~(0x7 << ((c) * 4))) [all …]
|
/freebsd/sys/contrib/device-tree/src/arm64/renesas/ |
H A D | ulcb-kf-audio-graph-card2-mix+split.dtsi | 1 // SPDX-License-Identifier: GPL-2.0 12 * (A) CPU0 (2ch) <----> (2ch) (X) ak4613 (MIX- [all...] |
/freebsd/lib/libc/inet/ |
H A D | inet_net_pton.c | 1 /*- 2 * SPDX-License-Identifier: ISC 51 * or -1 if some failure occurred (check errno). ENOENT means it was 63 int n, ch, tmp = 0, dirty, bits; in inet_net_pton_ipv4() local 66 ch = *src++; in inet_net_pton_ipv4() 67 if (ch == '0' && (src[0] == 'x' || src[0] == 'X') in inet_net_pton_ipv4() 75 while ((ch = *src++) != '\0' && isascii(ch) && isxdigit(ch)) { in inet_net_pton_ipv4() 192 char ch; getbits() local 223 char ch; getv4() local 266 int ch, saw_xdigit; inet_net_pton_ipv6() local [all...] |
/freebsd/lib/libc/locale/ |
H A D | gb18030.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2002-2004 Tim J. Robbins 37 * PRC National Standard GB 18030-2000 encoding of Chinese text. 65 u_char bytes[4]; 72 l->__mbrtowc = _GB18030_mbrtowc; in _GB18030_init() 73 l->__wcrtomb = _GB18030_wcrtomb; in _GB18030_init() 74 l->__mbsinit = _GB18030_mbsinit; in _GB18030_init() 75 l->__mbsnrtowcs = _GB18030_mbsnrtowcs; in _GB18030_init() 76 l->__wcsnrtombs = _GB18030_wcsnrtombs; in _GB18030_init() [all …]
|
/freebsd/sys/arm/allwinner/ |
H A D | a10_codec.c | 1 /*- 2 * Copyright (c) 2014-2016 Jared D. McNeill <jmcneill@invisible.ca> 84 #define AC_DAC_DPC(_sc) ((_sc)->cfg->DPC) 86 #define AC_DAC_FIFOC(_sc) ((_sc)->cfg->DAC_FIFOC) 93 #define DAC_FS_12KHZ 4 108 #define DAC_FIFOC_DRQ_EN (1U << 4) 110 #define AC_DAC_FIFOS(_sc) ((_sc)->cfg->DAC_FIFOS) 111 #define AC_DAC_TXDATA(_sc) ((_sc)->cfg->DAC_TXDATA) 112 #define AC_ADC_FIFOC(_sc) ((_sc)->cfg->ADC_FIFOC) 122 #define ADC_FIFOC_DRQ_EN (1U << 4) [all …]
|