| /freebsd/contrib/less/ |
| H A D | charset.c | 2 * Copyright (C) 1984-2025 Mark Nudelman 44 { "ascii", NULL, "8bcccbcc18b95.b" }, 45 { "utf-8", &utf_mode, "8bcccbcc18b95.b126.bb" }, 46 { "iso8859", NULL, "8bcccbcc18b95.33b." }, 47 { "latin3", NULL, "8bcccbcc18b95.33b5.b8.b15.b4.b12.b18.b12.b." }, 48 { "arabic", NULL, "8bcccbcc18b95.33b.3b.7b2.13b.3b.b26.5b19.b" }, 49 { "greek", NULL, "8bcccbcc18b95.33b4.2b4.b3.b35.b44.b" }, 50 { "greek2005", NULL, "8bcccbcc18b95.33b14.b35.b44.b" }, 51 { "hebrew", NULL, "8bcccbcc18b95.33b.b29.32b28.2b2.b" }, 52 { "koi8-r", NULL, "8bcccbcc18b95.b." }, [all …]
|
| /freebsd/lib/virtual_oss/bt/ |
| H A D | sbc_encode.c | 1 /*- 4 * This software is dedicated to the memory of - 5 * Baron James Anlezark (Barry) - 1 Jan 1949 - 13 May 2012. 49 #define ABS(x) (((x) < 0) ? -(x) : (x)) 51 #define BM(x) ((1LL << (x)) - 1LL) 54 static const int loudnessoffset8[4][8] = { 55 {-2, 0, 0, 0, 0, 0, 0, 1}, 56 {-3, 0, 0, 0, 0, 0, 1, 2}, 57 {-4, 0, 0, 0, 0, 0, 1, 2}, 58 {-4, 0, 0, 0, 0, 0, 1, 2}, [all …]
|
| /freebsd/sys/contrib/dev/rtw89/ |
| H A D | phy_be.c | 1 // SPDX-License-Identifier: GPL-2.0 OR BSD-3-Clause 83 u32 phy_page = addr >> 8; in rtw89_phy0_phy1_offset_be() 117 struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; in rtw89_phy_cfg_bb_gain_error_be() 126 for (i = 0; i < 4; i++, data >>= 8) in rtw89_phy_cfg_bb_gain_error_be() 127 gain->lna_gain[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_error_be() 130 for (i = 4; i < 7; i++, data >>= 8) in rtw89_phy_cfg_bb_gain_error_be() 131 gain->lna_gain[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_error_be() 134 for (i = 0; i < 2; i++, data >>= 8) in rtw89_phy_cfg_bb_gain_error_be() 135 gain->tia_gain[gband][bw_type][path][i] = data & 0xff; in rtw89_phy_cfg_bb_gain_error_be() 149 struct rtw89_phy_bb_gain_info_be *gain = &rtwdev->bb_gain.be; in rtw89_phy_cfg_bb_rpl_ofst_be() [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/sys/dev/ata/chipsets/ |
| H A D | ata-siliconimage.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> 94 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_sii_probe() 98 ctlr->chipinit = ata_sii_chipinit; in ata_sii_probe() 110 switch (ctlr->chip->cfg1) { in ata_sii_chipinit() 112 ctlr->r_type2 = SYS_RES_MEMORY; in ata_sii_chipinit() 113 ctlr->r_rid2 = PCIR_BAR(5); in ata_sii_chipinit() [all …]
|
| H A D | ata-promise.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> 106 #define ATA_PDC_MAX_HPKT 8 179 if ((idx->cfg2 & PR_SX6K) && pci_get_class(GRANDPARENT(dev))==PCIC_BRIDGE && in ata_promise_probe() 187 if ((idx->cfg2 & PR_TX4) && pci_get_class(GRANDPARENT(dev))==PCIC_BRIDGE && in ata_promise_probe() 205 device_set_descf(dev, "Promise %s%s %s controller", idx->text, in ata_promise_probe() 206 channel == NULL ? "" : channel, ata_mode2str(idx->max_dma)); in ata_promise_probe() [all …]
|
| /freebsd/crypto/heimdal/lib/wind/ |
| H A D | utf8.c | 99 * Convert an UTF-8 string to an UCS4 string. 101 * @param in an UTF-8 string to convert. 140 * Calculate the length of from converting a UTF-8 string to a UCS4 143 * @param in an UTF-8 string to convert. 160 * Convert an UCS4 string to a UTF-8 string. 165 * @param out the resulting UTF-8 strint, must be at least 181 uint32_t ch; in wind_ucs4utf8() local 185 ch = in[i]; in wind_ucs4utf8() 187 if (ch < 0x80) { in wind_ucs4utf8() 189 } else if (ch < 0x800) { in wind_ucs4utf8() [all …]
|
| /freebsd/sys/arm/allwinner/ |
| H A D | a10_dmac.c | 1 /*- 2 * Copyright (c) 2014-2016 Jared D. McNeill <jmcneill@invisible.ca> 52 #define NDMA_CHANNELS 8 53 #define DDMA_CHANNELS 8 83 { -1, 0 } 86 #define DMA_READ(sc, reg) bus_read_4((sc)->sc_res[0], (reg)) 87 #define DMA_WRITE(sc, reg, val) bus_write_4((sc)->sc_res[0], (reg), (val)) 88 #define DMACH_READ(ch, reg) \ argument 89 DMA_READ((ch)->ch_sc, (reg) + (ch)->ch_regoff) 90 #define DMACH_WRITE(ch, reg, val) \ argument [all …]
|
| H A D | a31_dmac.c | 1 /*- 56 #define DMA_IRQ_EN_REG(ch) (DMA_IRQ_EN_REG0 + ((ch) / 8) * 4) argument 57 #define DMA_PKG_IRQ_EN(ch) (1 << (((ch) % 8) * 4 + 1)) argument 61 #define DMA_IRQ_PEND_REG(ch) (DMA_IRQ_PEND_REG0 + ((ch) / 8) * 4) argument 119 static const struct a31dmac_config a83t_config = { .nchans = 8 }; 120 static const struct a31dmac_config a64_config = { .nchans = 8 }; 123 { "allwinner,sun6i-a31-dma", (uintptr_t)&a31_config }, 124 { "allwinner,sun8i-a83t-dma", (uintptr_t)&a83t_config }, 125 { "allwinner,sun8i-h3-dma", (uintptr_t)&h3_config }, 126 { "allwinner,sun50i-a64-dma", (uintptr_t)&a64_config }, [all …]
|
| /freebsd/sys/contrib/device-tree/src/arm/aspeed/ |
| H A D | aspeed-bmc-amd-daytonax.dts | 1 // SPDX-License-Identifier: GPL-2.0 2 /dts-v1/; 4 #include "aspeed-g5.dtsi" 5 #include <dt-bindings/gpio/aspeed-gpio.h> 6 #include <dt-bindings/interrupt-controller/irq.h> 10 compatible = "amd,daytonax-bmc", "aspeed,ast2500"; 16 reserved-memory { 17 #address-cells = <1>; 18 #size-cells = <1>; 24 compatible = "shared-dma-pool"; [all …]
|
| H A D | aspeed-bmc-lenovo-hr855xg2.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-present Lenovo 8 /dts-v1/; 10 #include "aspeed-g5.dtsi" 11 #include <dt-bindings/gpio/aspeed-gpio.h> 15 compatible = "lenovo,hr855xg2-bmc", "aspeed,ast2500"; 29 stdout-pat [all...] |
| H A D | aspeed-bmc-lenovo-hr630.dts | 1 // SPDX-License-Identifier: GPL-2.0+ 5 * Copyright (C) 2019-present Lenovo 8 /dts-v1/; 10 #include "aspeed-g5.dtsi" 11 #include <dt-bindings/gpio/aspeed-gpio.h> 15 compatible = "lenovo,hr630-bmc", "aspeed,ast2500"; 29 stdout-pat [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/contrib/ncurses/ncurses/base/ |
| H A D | MKunctrl.awk | 4 # Copyright 1998-2012,2017 Free Software Foundation, Inc. # 31 # Author: Thomas E. Dickey (1997-on) 44 print "NCURSES_EXPORT(NCURSES_CONST char *) safe_unctrl(SCREEN *sp, chtype ch)" 53 for ( ch = 0; ch < 256; ch++ ) { 56 if ((ch % 8) == 0) { 58 if (ch != 0) 64 if (ch < 32) { 65 part = sprintf ("^\\%03o", ch + 64); 67 } else if (ch == 127) { 70 } else if (ch >= 128 && ch < 160) { [all …]
|
| /freebsd/contrib/sendmail/libsm/ |
| H A D | uxtext_unquote.c | 37 ** utf-8-type-addr = "utf-8;" utf-8-enc-addr 38 ** utf-8-address = Mailbox ; Mailbox as defined in [RFC6531]. 39 ** utf-8-enc-addr = utf-8-addr-xtext / 40 ** utf-8-addr-unitext / 41 ** utf-8-address 42 ** utf-8-addr-xtext = 1*(QCHAR / EmbeddedUnicodeChar) 43 ** ; 7bit form of utf-8-addr-unitext. 47 ** utf-8-addr-unitext = 1*(QUCHAR / EmbeddedUnicodeChar) 48 ** ; MUST follow utf-8-address ABNF when 53 ** QCHAR = %x21-2a / %x2c-3c / %x3e-5b / %x5d-7e [all …]
|
| /freebsd/sys/arm/mv/ |
| H A D | mvreg.h | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (C) 2007-2011 MARVELL INTERNATIONAL LTD. 47 #define ENDPOINT_IRQ_MASK_ERROR(n) (-1) 48 #define IRQ_CAUSE_ERROR (-1) /* Fake defines for unified */ 49 #define IRQ_MASK_ERROR (-1) /* interrupt controller code */ 128 /* 25MHz mode is Armada XP - specific */ 142 #define SATA_EDMA_BASE(ch) (EDMA_REGISTERS_OFFSET + \ argument 143 ((ch) * EDMA_REGISTERS_SIZE)) 147 #define SATA_CR_NODMABS (1 << 8) [all …]
|
| /freebsd/sys/dev/sound/pci/ |
| 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). 43 #define HDSPE_MATRIX_MAX 8 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() 102 return (8); in hdspe_adat_width() 108 return (ports & (~(ports - 1))); /* Extract first bit set. */ in hdspe_port_first() [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. 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() 77 l->runes = rl; in _GB18030_init() [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/ 61 #define TI_EDMA3_NUM_QDMA_CHS 8 72 #define TI_EDMA3CC_DRAE(p) (0x340 + ((p)*8)) 73 #define TI_EDMA3CC_DRAEH(p) (0x344 + ((p)*8)) 90 #define TI_EDMA3CC_DMAQNUM_SET(c,q) ((0x7 & (q)) << (((c) % 8) * 4)) 91 #define TI_EDMA3CC_DMAQNUM_CLR(c) (~(0x7 << (((c) % 8) * 4))) 101 * We use one-element array in case if we need to add 113 { -1, 0, 0 } [all …]
|
| /freebsd/sys/dev/ata/ |
| H A D | ata-lowlevel.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org> 43 #include <dev/ata/ata-all.h> 44 #include <dev/ata/ata-pci.h> 55 static int ata_wait(struct ata_channel *ch, int unit, u_int8_t); 67 struct ata_channel *ch = device_get_softc(dev); in ata_generic_hw() local 69 ch->hw.begin_transaction = ata_begin_transaction; in ata_generic_hw() 70 ch->hw.end_transaction = ata_end_transaction; in ata_generic_hw() 71 ch->hw.status = ata_generic_status; in ata_generic_hw() [all …]
|
| H A D | ata-sata.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 1998 - 2008 Søren Schmidt <sos@FreeBSD.org> 45 #include <dev/ata/ata-all.h> 51 struct ata_channel *ch = device_get_softc(dev); in ata_sata_phy_check_events() local 54 if (ata_sata_scr_read(ch, port, ATA_SERROR, &error)) in ata_sata_phy_check_events() 63 ata_sata_scr_write(ch, port, ATA_SERROR, error); in ata_sata_phy_check_events() 66 if ((error & ATA_SE_PHY_CHANGED) && (ch->pm_level == 0)) { in ata_sata_phy_check_events() 68 if (ata_sata_scr_read(ch, port, ATA_SSTATUS, &status)) { in ata_sata_phy_check_events() 77 taskqueue_enqueue(taskqueue_thread, &ch->conntask); in ata_sata_phy_check_events() [all …]
|
| /freebsd/lib/libc/inet/ |
| H A D | inet_net_pton.c | 7 * SPDX-License-Identifier: ISC 50 * or -1 if some failure occurred (check errno). ENOENT means it was 65 return (-1); in inet_net_pton() 77 * or -1 if some failure occurred (check errno). ENOENT means it was 91 int n, ch, tmp, dirty, bits; in inet_net_pton_ipv4() local 94 ch = (unsigned char)*src++; in inet_net_pton_ipv4() 95 if (ch == '0' && (src[0] == 'x' || src[0] == 'X') in inet_net_pton_ipv4() 102 while ((ch = (unsigned char)*src++) != '\0' && in inet_net_pton_ipv4() 103 isascii(ch) && isxdigit(ch)) { in inet_net_pton_ipv4() 104 if (isupper(ch)) in inet_net_pton_ipv4() [all …]
|
| /freebsd/contrib/bionic-x86_64-string/ |
| H A D | sse2-strcpy-slm.S | 61 .size name, .-name 66 #define JMPTBL(I, B) I - B 94 and $-16, %rsi 238 and $-0x40, %rsi 266 movdqu %xmm4, -64(%rdi) 269 movdqu %xmm5, -48(%rdi) 273 movdqu %xmm6, -32(%rdi) 275 movdqu %xmm7, -16(%rdi) 362 and $-16, %rsi 366 /*------End of main part with loops---------------------*/ [all …]
|
| /freebsd/sys/netinet/libalias/ |
| H A D | alias_ftp.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 110 if (ah->dport == NULL || ah->sport == NULL || ah->lnk == NULL || in fingerprint_out() 111 ah->maxpktsize == 0) in fingerprint_out() 112 return (-1); in fingerprint_out() 113 if (ntohs(*ah->dport) == FTP_CONTROL_PORT_NUMBER || in fingerprint_out() 114 ntohs(*ah->sport) == FTP_CONTROL_PORT_NUMBER) in fingerprint_out() 116 return (-1); in fingerprint_out() 122 if (ah->dport == NULL || ah->sport == NULL || ah->lnk == NULL) in fingerprint_in() 123 return (-1); in fingerprint_in() [all …]
|
| /freebsd/lib/libiconv_modules/DECHanyu/ |
| H A D | citrus_dechanyu.c | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 50 /* ---------------------------------------------------------------------- 56 char ch[4]; member 63 #define _CEI_TO_EI(_cei_) (&(_cei_)->ei) 64 #define _CEI_TO_STATE(_cei_, _func_) (_cei_)->states.__CONCAT(s_,_func_) 79 psenc->chlen = 0; in _citrus_DECHanyu_init_state() 174 int ch; in _citrus_DECHanyu_mbrtowc_priv() local 184 switch (psenc->chlen) { in _citrus_DECHanyu_mbrtowc_priv() 186 if (n-- < 1) in _citrus_DECHanyu_mbrtowc_priv() [all …]
|