/freebsd/contrib/less/ |
H A D | charset.c | 2 * Copyright (C) 1984-2023 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/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-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> 86 { ATA_FRODO8, 0x00, SWKS_MIO, 8, ATA_SA150, "Frodo8" }, in ata_serverworks_probe() 92 if (!(ctlr->chip = ata_match_chip(dev, ids))) in ata_serverworks_probe() 96 ctlr->chipinit = ata_serverworks_chipinit; in ata_serverworks_probe() 103 struct ata_channel *ch = device_get_softc(dev); in ata_serverworks_status() local 109 if (!(ATA_INL(ctlr->r_res2, 0x1f80) & (1 << ch->unit))) in ata_serverworks_status() [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/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/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/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/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/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/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. 64 #define ENDPOINT_IRQ_MASK_ERROR(n) (-1) 65 #define IRQ_CAUSE_ERROR (-1) /* Fake defines for unified */ 66 #define IRQ_MASK_ERROR (-1) /* interrupt controller code */ 139 #define CPU_PM_CTRL_XOR0 (1 << 8) 151 (1 - (u))) 159 #define CPU_PM_CTRL_PEX03 (1 << 8) 178 (1 - (u))) [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/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/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/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 …]
|
/freebsd/sys/dev/syscons/ |
H A D | sctermvar.h | 1 /*- 2 * Copyright (c) 1999 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 34 static __inline void sc_term_ins_line(scr_stat *scp, int y, int n, int ch, 36 static __inline void sc_term_del_line(scr_stat *scp, int y, int n, int ch, 38 static __inline void sc_term_ins_char(scr_stat *scp, int n, int ch, 40 static __inline void sc_term_del_char(scr_stat *scp, int n, int ch, 48 static __inline void sc_term_up_scroll(scr_stat *scp, int n, int ch, 50 static __inline void sc_term_down_scroll(scr_stat *scp, int n, int ch, 52 static __inline void sc_term_clr_eos(scr_stat *scp, int n, int ch, int attr); 53 static __inline void sc_term_clr_eol(scr_stat *scp, int n, int ch, int attr); [all …]
|
/freebsd/sys/dev/sound/usb/ |
H A D | uaudio.c | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 113 #define UAUDIO_BUFFER_MS_MAX 8 123 if (err != 0 || req->newptr == NULL || val == uaudio_buffer_ms) in uaudio_buffer_ms_sysctl() 138 "uaudio buffering delay in milliseconds, from 1 to 8"); 149 #define UAUDIO_NFRAMES 64 /* must be factor of 8 due HS-USB */ 154 #define UAUDIO_MATRIX_MAX 8 /* channels */ 156 #define MAKE_WORD(h,l) (((h) << 8) | (l)) 157 #define BIT_TEST(bm,bno) (((bm)[(bno) / 8] >> (7 - ((bno) % 8))) & 1) 159 #define MIX(sc) ((sc)->sc_mixer_node) [all …]
|