| /freebsd/contrib/llvm-project/compiler-rt/lib/fuzzer/ |
| H A D | FuzzerMutate.cpp | 1 //===- FuzzerMutate.cpp - Mutate a test input -----------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===// 53 if (EF->LLVMFuzzerCustomMutator) in MutationDispatcher() 58 if (EF->LLVMFuzzerCustomCrossOver) in MutationDispatcher() 66 const char Special[] = "!*'();:@&=+$,/?%#[]012Az-`~.\xff\x00"; in RandCh() 67 return Special[Rand(sizeof(Special) - 1)]; in RandCh() 72 if (EF->__msan_unpoison) in Mutate_Custom() 73 EF->__msan_unpoison(Data, Size); in Mutate_Custom() [all …]
|
| H A D | FuzzerDictionary.h | 1 //===- FuzzerDictionary.h - Internal header for the Fuzzer ------*- C++ -* ===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===// 31 assert(S <= kMaxSize); in Set() 63 assert(HasPositionHint()); in GetPositionHint() 90 return std::any_of(begin(), end(), [&](const DictionaryEntry &DE) { in ContainsWord() 91 return DE.GetW() == W; in ContainsWord() 94 const DictionaryEntry *begin() const { return &DE[0]; } in begin() 97 assert(Idx < Size); [all …]
|
| /freebsd/contrib/elftoolchain/nm/ |
| H A D | nm.c | 1 /*- 31 #include <assert.h> 55 ELFTC_VCSID("$Id: nm.c 3722 2019-03-23 17:01:58Z jkoshy $"); 158 * possible function - cmp_name, cmp_none, cmp_size, cmp_value 164 * possible function - sym_elem_print_all 176 #define CHECK_SYM_PRINT_DATA(p) (p->headp == NULL || p->sh_num == 0 || \ 177 p->t_table == NULL || p->s_table == NULL || p->filename == NULL) 254 { "debug-syms", no_argument, NULL, 'a' }, 255 { "defined-only", no_argument, &nm_opts.def_only, 1}, 258 { "extern-only", no_argument, NULL, 'g' }, [all …]
|
| /freebsd/sys/contrib/libsodium/test/default/ |
| H A D | codecs.c | 29 printf("dt1: %ld\n", (long) (hex_end - hex)); in main() 37 if (sodium_hex2bin(buf1, 1U, hex, 8U, NULL, &bin_len, &hex_end) != -1) { in main() 40 printf("dt2: %ld\n", (long) (hex_end - hex)); in main() 42 hex = "de:ad:be:eff"; in main() 43 if (sodium_hex2bin(buf1, 4U, hex, 12U, ":", &bin_len, &hex_end) != -1) { in main() 48 printf("dt3: %ld\n", (long) (hex_end - hex)); in main() 50 hex = "de:ad:be:eff"; in main() 52 &bin_len, &hex_end) != -1) { in main() 55 printf("dt4: %ld\n", (long) (hex_end - hex)); in main() 57 hex = "de:ad:be:eff"; in main() [all …]
|
| /freebsd/usr.sbin/makefs/ |
| H A D | ffs.c | 3 /*- 4 * SPDX-License-Identifier: BSD-4-Clause 77 #include <assert.h> 108 ((ffs_opts->version == 1) ? \ 109 (dp)->dp1.di_##field : (dp)->dp2.di_##field) 156 { 'b', "bsize", &ffs_opts->bsize, OPT_INT32, in ffs_prep_opts() 158 { 'f', "fsize", &ffs_opts->fsize, OPT_INT32, in ffs_prep_opts() 160 { 'd', "density", &ffs_opts->density, OPT_INT32, in ffs_prep_opts() 162 { 'm', "minfree", &ffs_opts->minfree, OPT_INT32, in ffs_prep_opts() 164 { 'M', "maxbpg", &ffs_opts->maxbpg, OPT_INT32, in ffs_prep_opts() [all …]
|
| H A D | msdos.c | 3 /*- 41 #include <assert.h> 79 .type = _min == -1 ? OPT_STRPTR : \ in msdos_prep_opts() 80 (_min == -2 ? OPT_BOOL : \ in msdos_prep_opts() 84 .value = &msdos_opt->options._name, \ in msdos_prep_opts() 96 fsopts->fs_specific = msdos_opt; in msdos_prep_opts() 97 fsopts->fs_options = copy_opts(msdos_options); in msdos_prep_opts() 103 free(fsopts->fs_specific); in msdos_cleanup_opts() 104 free(fsopts->fs_options); in msdos_cleanup_opts() 110 struct msdos_options *msdos_opt = fsopts->fs_specific; in msdos_parse_opts() [all …]
|
| /freebsd/contrib/llvm-project/llvm/tools/llvm-mca/Views/ |
| H A D | BottleneckAnalysis.cpp | 1 //===--------------------- BottleneckAnalysis.cpp ---------------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 13 //===----------------------------------------------------------------------===// 23 #define DEBUG_TYPE "llvm-mca" 80 uint64_t Current = CumulativeMask & (-CumulativeMask); in updateResourcePressureDistribution() 93 uint64_t SubUnit = Mask & (-Mask); in updateResourcePressureDistribution() 105 assert(Event.Reason != HWPressureEvent::INVALID && in handlePressureEvent() 149 assert(FromIID < ToIID && "Graph should be acyclic!"); in dumpDependencyEdge() 151 const DependencyEdge::Dependency &DE = DepEdge.Dep; in dumpDependencyEdge() local [all …]
|
| H A D | RegisterFileStatistics.cpp | 1 //===--------------------- RegisterFileStatistics.cpp -----------*- C++ -*-===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 12 //===----------------------------------------------------------------------===// 68 const ReadState &RS = Inst.getUses()[E - (I + 1)]; in updateMoveElimInfo() 87 PRFUsage[I].CurrentlyUsedMappings -= RE.FreedPhysRegs[I]; in onEvent() 91 const auto &DE = static_cast<const HWInstructionDispatchedEvent &>(Event); in onEvent() local 92 updateRegisterFileUsage(DE.UsedPhysRegs); in onEvent() 93 updateMoveElimInfo(*DE.IR.getInstruction()); in onEvent() 121 assert(STI.getSchedModel().hasExtraProcessorInfo() && in printView() [all …]
|
| /freebsd/tools/test/ptrace/ |
| H A D | scescx.c | 1 /*- 31 #include <assert.h> 104 char de[32]; in decode_pl_flags() local 109 flags = lwpinfo->pl_flags; in decode_pl_flags() 126 snprintf(de, sizeof(de), "<%d>", i); in decode_pl_flags() 127 strlcat(c, de, sizeof(c)); in decode_pl_flags() 137 switch (lwpinfo->pl_event) { in decode_pl_event() 190 if ((lwpinfo->pl_flags & (PL_FLAG_SCE | PL_FLAG_SCX)) != 0) { in wait_info() 191 printf(" sc%d", lwpinfo->pl_syscall_code); in wait_info() 192 args = calloc(lwpinfo->pl_syscall_narg, sizeof(long)); in wait_info() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/sound/ |
| H A D | cs4271.txt | 7 - compatible: "cirrus,cs4271" 10 Documentation/devicetree/bindings/spi/spi-bus.txt 14 - reg: the i2c address 19 - reset-gpio: a GPIO spec to define which pin is connected to the chip's 21 - cirrus,amuteb-eq-bmutec: When given, the Codec's AMUTEB=BMUTEC flag 23 - cirrus,enable-soft-reset: 25 line is de-asserted. That also means that clocks cannot be changed 27 a complete re-initialization of all registers. 29 One (undocumented) workaround is to assert and de-assert the PDN bit 36 - vd-supply: Digital power [all …]
|
| H A D | cirrus,cs4271.yaml | 1 # SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause) 3 --- 5 $schema: http://devicetree.org/meta-schemas/core.yaml# 10 - Alexander Sverdlin <alexander.sverdlin@gmail.com> 11 - Nikita Shubin <nikita.shubin@maquefel.me> 18 - $ref: dai-common.yaml# 19 - $ref: /schemas/spi/spi-peripheral-props.yaml# 28 spi-cpha: true 30 spi-cpol: true 32 '#sound-dai-cells': [all …]
|
| /freebsd/contrib/elftoolchain/libelf/ |
| H A D | libelf_xlate.c | 1 /*- 27 #include <assert.h> 32 ELFTC_VCSID("$Id: libelf_xlate.c 3732 2019-04-22 11:08:38Z jkoshy $"); 40 * - an endianness conversion, 41 * - a change of layout, as the file representation of ELF objects 42 * can differ from their in-memory representation. 43 * - a change in representation due to a layout version change. 52 uintptr_t sb, se, db, de; in _libelf_xlate() local 64 assert(elfclass == ELFCLASS32 || elfclass == ELFCLASS64); in _libelf_xlate() 65 assert(direction == ELF_TOFILE || direction == ELF_TOMEMORY); in _libelf_xlate() [all …]
|
| /freebsd/sys/arm/allwinner/ |
| H A D | aw_mp.c | 1 /*- 47 /* Register for all dual-core SoC */ 49 /* Register for all quad-core SoC */ 54 /* Register for multi-cluster SoC */ 103 mp_maxid = ncpu - 1; in aw_mp_setmaxid() 134 * Assert nCOREPORESET low and set L1RSTDISABLE low. in aw_mp_start_ap() 166 /* Clear power-off gating */ in aw_mp_start_ap() 181 /* De-assert cpu core reset */ in aw_mp_start_ap() 186 /* Assert DBGPWRDUP signal */ in aw_mp_start_ap() 206 /* Assert core reset */ in aw_mc_mp_start_cpu() [all …]
|
| /freebsd/cddl/contrib/opensolaris/lib/libdtrace/common/ |
| H A D | dt_link.c | 25 * Copyright 2017-2018 Mark Johnston <markj@FreeBSD.org> 32 #include <assert.h> 114 dofs = (dof_sec_t *)((char *)dof + dof->dofh_secoff); in prepare_elf32() 120 for (i = 0; i < dof->dofh_secnum; i++) { in prepare_elf32() 127 s = &dofs[dofrh->dofr_strtab]; in prepare_elf32() 128 strtab = (char *)dof + s->dofs_offset; in prepare_elf32() 129 assert(strtab[0] == '\0'); in prepare_elf32() 130 strtabsz += s->dofs_size - 1; in prepare_elf32() 132 s = &dofs[dofrh->dofr_relsec]; in prepare_elf32() 134 dofr = (dof_relodesc_t *)((char *)dof + s->dofs_offset); in prepare_elf32() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Support/ |
| H A D | VirtualFileSystem.cpp | 1 //===- VirtualFileSystem.cpp - Virtual File System Layer ------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 24 #include "llvm/Config/llvm-config.h" 94 assert(isStatusKnown() && Other.isStatusKnown()); in equivalent() 125 return (*F)->getBuffer(Name, FileSize, RequiresNullTerminator, IsVolatile); in getBufferForFile() 151 return Status && Status->exists(); in exists() 161 return StatusA->equivalent(*StatusB); in equivalent() 183 //===-----------------------------------------------------------------------===/ [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/Hexagon/ |
| H A D | HexagonBlockRanges.cpp | 1 //===- HexagonBlockRanges.cpp ---------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 39 bool SbAE = (S < AE) || (S == AE && A.TiedEnd); // S-before-AE. in overlaps() 40 bool ASbE = (AS < E) || (AS == E && TiedEnd); // AS-before-E. in overlaps() 60 assert(end() == A.start() || overlaps(A)); in merge() 90 while (Iter != end()-1) { in unionize() 94 bool Merge = MergeAdjacent && (Iter->end() == Next->start()); in unionize() 95 if (Merge || Iter->overlaps(*Next)) { in unionize() 96 Iter->merge(*Next); in unionize() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Object/ |
| H A D | XCOFFObjectFile.cpp | 1 //===--- XCOFFObjectFile.cpp - XCOFF object file implementation -----------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 11 //===----------------------------------------------------------------------===// 53 return NulCharPtr ? StringRef(Name, NulCharPtr - Name) in generateXCOFFFixedNameStringRef() 101 if (LoaderSecHeader->LengthOfStrTbl > Offset) in getLoaderSecSymNameInStrTbl() 103 LoaderSecHeader->OffsetToStrTbl + Offset); in getLoaderSecSymNameInStrTbl() 107 Twine::utohexstr(LoaderSecHeader->LengthOfStrTbl) + in getLoaderSecSymNameInStrTbl() 115 if (NameInStrTbl->IsNameInStrTbl != XCOFFSymbolRef::NAME_IN_STR_TBL_MAGIC) in getSymbolName() 118 return getLoaderSecSymNameInStrTbl(LoaderSecHeader32, NameInStrTbl->Offset); in getSymbolName() [all …]
|
| /freebsd/contrib/libarchive/tar/test/ |
| H A D | test_copy.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2003-2007 Tim Kientzle 34 * wide-character paths with '\\?\' prefix, which has a 32k PATH_MAX 37 * continue to special-case Cygwin 1.5 and earlier). 48 assert(_getcwd(buf, MAX_PATH) != NULL); in compute_loop_max() 53 LOOP_MAX = MAX_PATH - (int)cwdlen - 12 - 4 - 1; in compute_loop_max() 64 assert(getcwd(pbuf, PATH_MAX) != NULL); in compute_loop_max() 70 LOOP_MAX = PATH_MAX - (int)cwdlen - 12 - 4 - 4; in compute_loop_max() 74 /* cygwin-1.7 ends up here, along with "normal" unix */ in compute_loop_max() [all …]
|
| /freebsd/sys/dev/iicbus/controller/twsi/ |
| H A D | a10_twsi.c | 1 /*- 2 * Copyright (c) 2016-2019 Emmanuel Vadot <manu@freebsd.org> 63 {"allwinner,sun4i-a10-i2c", 1}, 64 {"allwinner,sun6i-a31-i2c", 1}, 65 {"allwinner,sun8i-a83t-i2c", 1}, 76 if (ofw_bus_search_compatible(dev, compat_data)->ocd_data == 0) in a10_twsi_probe() 92 /* De-assert reset */ in a10_twsi_attach() 96 device_printf(dev, "could not de-assert reset\n"); in a10_twsi_attach() 102 error = clk_get_by_ofw_index(dev, 0, 0, &sc->clk_core); in a10_twsi_attach() 107 error = clk_enable(sc->clk_core); in a10_twsi_attach() [all …]
|
| /freebsd/contrib/elftoolchain/libdwarf/ |
| H A D | libdwarf_die.c | 1 /*- 3 * Copyright (c) 2009-2011 Kai Wang 30 ELFTC_VCSID("$Id: libdwarf_die.c 3039 2014-05-18 15:10:56Z kaiwang27 $"); 37 assert(ret_die != NULL); in _dwarf_die_alloc() 44 STAILQ_INIT(&die->die_attr); in _dwarf_die_alloc() 59 assert(cu != NULL); in _dwarf_die_add() 60 assert(ab != NULL); in _dwarf_die_add() 62 dbg = cu->cu_dbg; in _dwarf_die_add() 67 die->die_offset = offset; in _dwarf_die_add() 68 die->die_abnum = abnum; in _dwarf_die_add() [all …]
|
| /freebsd/lib/libc/iconv/ |
| H A D | citrus_db_factory.c | 3 /*- 4 * SPDX-License-Identifier: BSD-2-Clause 35 #include <assert.h> 77 df->df_num_entries = 0; in _citrus_db_factory_create() 78 df->df_total_key_size = df->df_total_data_size = 0; in _citrus_db_factory_create() 79 STAILQ_INIT(&df->df_entries); in _citrus_db_factory_create() 80 df->df_hashfunc = hashfunc; in _citrus_db_factory_create() 81 df->df_hashfunc_closure = hashfunc_closure; in _citrus_db_factory_create() 91 struct _citrus_db_factory_entry *de; in _citrus_db_factory_free() local 93 while ((de = STAILQ_FIRST(&df->df_entries)) != NULL) { in _citrus_db_factory_free() [all …]
|
| /freebsd/sys/dev/usb/controller/ |
| H A D | generic_ehci_fdt.c | 1 /*- 97 if (!ofw_bus_is_compatible(self, "generic-ehci")) in generic_ehci_fdt_probe() 119 TAILQ_INIT(&sc->clk_list); in generic_ehci_fdt_attach() 129 clkp->clk = clk; in generic_ehci_fdt_attach() 130 TAILQ_INSERT_TAIL(&sc->clk_list, clkp, next); in generic_ehci_fdt_attach() 133 /* De-assert reset */ in generic_ehci_fdt_attach() 134 TAILQ_INIT(&sc->rst_list); in generic_ehci_fdt_attach() 138 device_printf(dev, "Could not de-assert reset\n"); in generic_ehci_fdt_attach() 142 rstp->rst = rst; in generic_ehci_fdt_attach() 143 TAILQ_INSERT_TAIL(&sc->rst_list, rstp, next); in generic_ehci_fdt_attach() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/AMDGPU/Disassembler/ |
| H A D | AMDGPUDisassembler.cpp | 1 //===- AMDGPUDisassembler.cpp - Disassembler for AMDGPU ISA ---------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 9 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 26 #include "llvm-c/DisassemblerTypes.h" 40 #define DEBUG_TYPE "amdgpu-disassembler" 96 if (OpIdx != -1) { in insertNamedMCOperand() 114 if (DAsm->tryAddingSymbolicOperand(Inst, Offset, Addr, true, 2, 2, 0)) in decodeSOPPBrTarget() 123 if (DAsm->isGFX12Plus()) { // GFX12 supports 24-bit signed offsets. in decodeSMEMOffset() [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/CodeGen/ |
| H A D | InterleavedAccessPass.cpp | 1 //===- InterleavedAccessPass.cpp ------------------------------------------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 14 // DE-interleaving the data on a factor. An interleaved store writes several 15 // vectors to memory with RE-interleaving the data on a factor. 45 //===----------------------------------------------------------------------===// 77 #define DEBUG_TYPE "interleaved-access" 80 "lower-interleaved-accesses", 92 : DT(DT), TLI(TLI), MaxFactor(TLI->getMaxSupportedInterleaveFactor()) {} in InterleavedAccessImpl() 162 auto *TLI = TM->getSubtargetImpl(F)->getTargetLowering(); in run() [all …]
|
| /freebsd/sys/cddl/boot/zfs/ |
| H A D | blake3_zfs.c | 9 * or http://opensource.org/licenses/CDDL-1.0. 23 * Copyright 2022 Tino Reichardt <milky-zfs@mcmilk.de> 29 * Computes a native 256-bit BLAKE3 MAC checksum. Please note that this 39 ASSERT(ctx_template != 0); in zio_checksum_blake3_native() 51 * BLAKE3 is internally endian-insensitive). 59 ASSERT(ctx_template != 0); in zio_checksum_blake3_byteswap() 62 zcp->zc_word[0] = BSWAP_64(tmp.zc_word[0]); in zio_checksum_blake3_byteswap() 63 zcp->zc_word[1] = BSWAP_64(tmp.zc_word[1]); in zio_checksum_blake3_byteswap() 64 zcp->zc_word[2] = BSWAP_64(tmp.zc_word[2]); in zio_checksum_blake3_byteswap() 65 zcp->zc_word[3] = BSWAP_64(tmp.zc_word[3]); in zio_checksum_blake3_byteswap() [all …]
|