/freebsd/sys/contrib/device-tree/Bindings/power/supply/ |
H A D | max8925_battery.txt | 1 max8925-battery bindings 5 - batt-detect: whether support battery detect 6 - topoff-threshold: set charging current in topoff mode 7 - fast-charge: set charging current in fast mode 8 - no-temp-support: whether support temperature protection detect 9 - no-insert-detect: whether support insert detect 13 batt-detect = <0>; 14 topoff-threshold = <1>; 15 fast-charge = <7>; 16 no-temp-support = <0>; [all …]
|
/freebsd/sys/contrib/xz-embedded/linux/lib/xz/ |
H A D | xz_dec_stream.c | 42 /* Position in variable-length integers and Check fields */ 45 /* Variable-length integer decoded by dec_vli() */ 141 } temp; member 164 * Fill s->temp by copying data starting from b->in[b->in_pos]. Caller 165 * must have set s->temp.pos to indicate how much data we are supposed 166 * to copy into s->temp.buf. Return true once s->temp.pos has reached 167 * s->temp.size. 172 b->in_size - b->in_pos, s->temp.size - s->temp.pos); in fill_temp() 174 memcpy(s->temp.buf + s->temp.pos, b->in + b->in_pos, copy_size); in fill_temp() 175 b->in_pos += copy_size; in fill_temp() [all …]
|
H A D | xz_dec_bcj.c | 5 * Igor Pavlov <https://7-zip.org/> 15 * convenient when building without support for any BCJ filters. 22 BCJ_X86 = 4, /* x86 or x86-64 */ 37 /* True if we are operating in single-call mode. */ 64 * needs to be big enough to hold Alignment + 2 * Look-ahead: 66 * Type Alignment Look-ahead 69 * IA-64 16 0 71 * ARM-Thumb 2 2 75 } temp; member 96 size_t prev_pos = (size_t)-1; in bcj_x86() [all …]
|
/freebsd/share/man/man4/ |
H A D | aibs.4 | 12 .\" MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR 28 .Bd -ragged -offset indent 35 .Bd -literal -offset indent 41 driver provides support for the voltage, temperature and fan sensors 62 .Bl -bullet 79 For example, on an ASUS V3-P5G965 barebone: 80 .Bd -literal -offset indent 81 > sysctl dev.aibs.0.{volt,temp,fan} 86 dev.aibs.0.temp.0: 28.0C 80.0C 95.0C 87 dev.aibs.0.temp.1: 55.0C 60.0C 95.0C [all …]
|
H A D | ice.4 | 1 .\"- 2 .\" SPDX-License-Identifier: BSD-3-Clause 4 .\" Copyright (c) 2019-2020, Intel Corporation 24 .\" ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 44 .Bd -ragged -offset indent 51 .Bd -litera [all...] |
/freebsd/contrib/libpcap/ |
H A D | pcap-rpcap.c | 2 * Copyright (c) 2002 - 2005 NetGroup, Politecnico di Torino (Italy) 3 * Copyright (c) 2005 - 2008 CACE Technologies, Davis (California) 23 * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 37 #include "diag-control.h" 45 #include "pcap-int.h" 46 #include "pcap-util.h" 47 #include "rpcap-protocol.h" 48 #include "pcap-rpcap.h" 64 * However there is no guarantees that the string will be zero-terminated. 67 * of the buffer. This will guarantee that no buffer overflows occur even [all …]
|
/freebsd/contrib/ncurses/ncurses/widechar/ |
H A D | charable.c | 3 * Copyright 2003-2005,2008 Free Software Foundation, Inc. * 19 * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 31 ** Support functions for wide/narrow conversion. 55 char temp[MB_LEN_MAX]; in _nc_to_char() local 56 result = wctomb(temp, ch); in _nc_to_char() 57 if (strlen(temp) == 1) in _nc_to_char() 58 result = UChar(temp[0]); in _nc_to_char() 60 result = -1; in _nc_to_char() 74 char temp[2]; in _nc_to_widechar() local 75 temp[0] = ch; in _nc_to_widechar() [all …]
|
/freebsd/sys/dev/usb/controller/ |
H A D | avr32dci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 34 * NOTE: When the chip detects BUS-reset it will also reset the 35 * endpoints, Function-address and more. 83 AVR32_BUS2SC(USB_DMATAG_TO_XROOT((pc)->tag_parent)->bus) 176 uint32_t temp; in avr32dci_mod_ctrl() local 178 temp = AVR32_READ_4(sc, AVR32_CTRL); in avr32dci_mod_ctrl() 179 temp |= set; in avr32dci_mod_ctrl() 180 temp &= ~clear; in avr32dci_mod_ctrl() [all …]
|
H A D | atmegadci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 34 * NOTE: When the chip detects BUS-reset it will also reset the 35 * endpoints, Function-address and more. 84 ATMEGA_BUS2SC(USB_DMATAG_TO_XROOT((pc)->tag_parent)->bus) 150 if (sc->sc_flags.clocks_off && in atmegadci_clocks_on() 151 sc->sc_flags.port_powered) { in atmegadci_clocks_on() 155 (sc->sc_clocks_on) (&sc->sc_bus); in atmegadci_clocks_on() 162 sc->sc_flags.clocks_off = 0; in atmegadci_clocks_on() [all …]
|
H A D | uss820dci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 19 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 82 USS820_DCI_BUS2SC(USB_DMATAG_TO_XROOT((pc)->tag_parent)->bus) 119 * Here is a list of what the USS820D chip can support. The main 166 uint8_t temp; in uss820dci_update_shared_1() local 169 temp = USS820_READ_1(sc, reg); in uss820dci_update_shared_1() 170 temp &= (keep_mask); in uss820dci_update_shared_1() 171 temp |= (set_mask); in uss820dci_update_shared_1() 172 USS820_WRITE_1(sc, reg, temp); in uss820dci_update_shared_1() [all …]
|
H A D | ohci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 100 #define OBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ 103 do { OBARR(sc); bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0) 105 do { OBARR(sc); bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0) 107 do { OBARR(sc); bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); } while (0) 108 #define OREAD1(sc, r) (OBARR(sc), bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r))) 109 #define OREAD2(sc, r) (OBARR(sc), bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (r))) 110 #define OREAD4(sc, r) (OBARR(sc), bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r))) [all …]
|
H A D | musb_otg.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 35 * 2.0 High Speed Dual-Role controller. 87 MUSBOTG_BUS2SC(USB_DMATAG_TO_XROOT((pc)->tag_parent)->bus) 167 .ep_end = -1, 177 ep = td->ep_no; in musbotg_channel_alloc() 180 if (sc->sc_mode == MUSB2_DEVICE_MODE) { in musbotg_channel_alloc() 189 if (sc->sc_channel_mask & (1 << 0)) in musbotg_channel_alloc() 190 return (-1); in musbotg_channel_alloc() [all …]
|
H A D | uhci.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 20 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 103 #define UBARR(sc) bus_space_barrier((sc)->sc_io_tag, (sc)->sc_io_hdl, 0, (sc)->sc_io_size, \ 106 do { UBARR(sc); bus_space_write_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); \ 109 do { UBARR(sc); bus_space_write_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); \ 112 do { UBARR(sc); bus_space_write_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r), (x)); \ 114 #define UREAD1(sc, r) (UBARR(sc), bus_space_read_1((sc)->sc_io_tag, (sc)->sc_io_hdl, (r))) 115 #define UREAD2(sc, r) (UBARR(sc), bus_space_read_2((sc)->sc_io_tag, (sc)->sc_io_hdl, (r))) 116 #define UREAD4(sc, r) (UBARR(sc), bus_space_read_4((sc)->sc_io_tag, (sc)->sc_io_hdl, (r))) [all …]
|
/freebsd/usr.sbin/makefs/ |
H A D | cd9660.c | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause AND BSD-4-Clause 7 * Perez-Rathke and Ram Vedam. All rights reserved. 10 * Alan Perez-Rathke and Ram Vedam. 23 * GABRYS, ALAN PEREZ-RATHKE AND RAM VEDAM ``AS IS'' AND ANY EXPRESS OR 26 * DISCLAIMED. IN NO EVENT SHALL DANIEL WATT, WALTER DEIGNAN, RYAN 27 * GABRYS, ALAN PEREZ-RATHKE AND RAM VEDAM BE LIABLE FOR ANY DIRECT, INDIRECT, 61 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL WASABI SYSTEMS, INC 89 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 170 cd9660node *temp = ecalloc(1, sizeof(*temp)); in cd9660_allocate_cd9660node() local [all …]
|
/freebsd/contrib/libedit/ |
H A D | filecomplete.c | 3 /*- 22 * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS 73 char *temp; in fn_tilde_expand() local 81 temp = strdup(txt + 1); in fn_tilde_expand() 82 if (temp == NULL) in fn_tilde_expand() 86 len = (size_t)(pos - txt + 1); in fn_tilde_expand() 87 temp = el_calloc(len, sizeof(*temp)); in fn_tilde_expand() 88 if (temp == NULL) in fn_tilde_expand() 90 (void)strlcpy(temp, txt + 1, len - 1); in fn_tilde_expand() 92 if (temp[0] == 0) { in fn_tilde_expand() [all …]
|
/freebsd/sys/conf/ |
H A D | Makefile.arm | 1 # Makefile.arm -- with config changes. 30 INCLUDES+= -I$S/contrib/libfdt -I$S/contrib/device-tree/include -I$S/dts/include 32 LINUX_DTS_VERSION!= awk '/freebsd,dts-version/ { sub(/;$$/,"", $$NF); print $$NF }' $S/dts/freebsd-… 33 CFLAGS += -DLINUX_DTS_VERSION=\"${LINUX_DTS_VERSION}\" 36 STRIP_FLAGS = -S 39 # We don't support gcc's thump interwork stuff, so disable it 40 CFLAGS.gcc += -mno-thumb-interwork 43 CFLAGS.clang += -mfpu=none 46 CFLAGS += -funwind-tables 60 --defsym='text_start=kernbase + SIZEOF_HEADERS' \ [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Object/ |
H A D | MachOUniversalWriter.cpp | 1 //===- MachOUniversalWriter.cpp - MachO universal binary writer---*- C++-*-===// 5 // SPDX-License-Identifie 322 Expected<sys::fs::TempFile> Temp = sys::fs::TempFile::create( writeUniversalBinary() local [all...] |
/freebsd/sys/dev/usb/template/ |
H A D | usb_template.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 18 * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE 29 * This file contains sub-routines to build up USB descriptors from 133 if (error != 0 || req->newptr == NULL) in sysctl_hw_usb_template_power() 144 /*------------------------------------------------------------------------* 148 *------------------------------------------------------------------------*/ 154 if (sd->bLength < 2) { in usb_decode_str_desc() 159 for (i = 0; i < buflen - 1 && i < (sd->bLength / 2) - 1; i++) in usb_decode_str_desc() 160 buf[i] = UGETW(sd->bString[i]); in usb_decode_str_desc() [all …]
|
/freebsd/contrib/llvm-project/llvm/tools/bugpoint/ |
H A D | ExecutionDriver.cpp | 1 //===- ExecutionDriver.cpp - Allow execution of LLVM program -------- 260 auto Temp = compileProgram() local [all...] |
H A D | ExtractFunction.cpp | 1 //===- ExtractFunction.cpp - Extract a function from Program --------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 23 #include "llvm/Support/CommandLine.h" 24 #include "llvm/Support/Debug.h" 25 #include "llvm/Support/FileUtilities.h" 26 #include "llvm/Support/Path.h" 27 #include "llvm/Support/Signals.h" 28 #include "llvm/Support/ToolOutputFile.h" [all …]
|
/freebsd/contrib/llvm-project/lldb/source/Interpreter/ |
H A D | OptionValueDictionary.cpp | 1 //===-- OptionValueDictionary.cpp -----------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 64 option_value->DumpValue(exe_ctx, strm, dump_mask | extra_dump_options); in DumpValue() 77 // No need to show the type for dictionaries of simple items in DumpValue() 79 option_value->DumpValue(exe_ctx, strm, in DumpValue() 94 dict.try_emplace(value.first(), value.second->ToJSON(exe_ctx)); in ToJSON() 104 value.second->DumpValue(nullptr, strm, eDumpOptionValue | eDumpOptionRaw); in GetArgs() 151 key = key.substr(1, key.size() - 2); in SetArgs() 156 key = key.substr(1, key.size() - 2); in SetArgs() [all …]
|
/freebsd/sys/dev/amdtemp/ |
H A D | amdtemp.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 6 * Copyright (c) 2009-2012 Jung-uk Kim <jkim@FreeBSD.org> 8 * Copyright (c) 2017-2020 Conrad Meyer <cem@FreeBSD.org>. All rights reserved. 22 * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 33 * Driver for the AMD CPU on-die thermal sensors. 77 NUM_CCDS = CCD_MAX - CCD_BASE + 1, 85 #define AMDTEMP_FLAG_CT_10BIT 0x02 /* CurTmp is 10-bit wide. */ 86 #define AMDTEMP_FLAG_ALT_OFFSET 0x04 /* CurTmp starts at -28C. */ 99 * when adding support for new devices. [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/ObjCopy/MachO/ |
H A D | MachOWriter.cpp | 1 //===- MachOWriter.cpp ------------------------------------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 #include "llvm/Support/Errc.h" 16 #include "llvm/Support/ErrorHandling.h" 17 #include "llvm/Support/SHA256.h" 26 using namespace llvm::support::endian; 114 if (!S->hasValidOffset()) { in totalSize() 115 assert((S->Offset == 0) && "Skipped section's offset must be zero"); in totalSize() 116 assert((S->isVirtualSection() || S->Size == 0) && in totalSize() [all …]
|
/freebsd/sys/dev/syscons/rain/ |
H A D | rain_saver.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 4 * Copyright (c) 1998 Dag-Erling Smørgrav 22 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 71 for (i = MAX; i > 1; i--) in rain_update() 72 rain_pal[BLUE(i)] = rain_pal[BLUE(i - 1)]; in rain_update() 81 u_char temp; in rain_saver() local 82 int last_origin = -1; in rain_saver() 92 vid = (u_char *)adp->va_window; in rain_saver() 93 banksize = adp->va_window_size; in rain_saver() [all …]
|
/freebsd/contrib/ncurses/ncurses/trace/ |
H A D | visbuf.c | 2 * Copyright 2019-2021,2023 Thomas E. Dickey * 3 * Copyright 2001-2016,2017 Free Software Foundation, Inc. * 19 * IN NO EVENT SHALL THE ABOVE COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, * 31 * Author: Thomas E. Dickey 1996-on * 32 * and: Zeyd M. Ben-Halim <zmbenhal@netcom.com> 1992,1995 * 37 * visbuf.c - Tracing/Debugging support routines 147 while ((--count >= 0) && (c = *buf++) != '\0') { in _nc_visbuf2n() 161 return _nc_visbuf2n(bufnum, buf, -1); in _nc_visbuf2() 219 while ((--count >= 0) && (c = *buf++) != '\0') { in _nc_viswbuf2n() 220 char temp[CCHARW_MAX + 80]; in _nc_viswbuf2n() local [all …]
|