| /freebsd/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_plist.c | 1 /*- 2 * Copyright (c) 2015-2016 Landon Fuller <landonf@FreeBSD.org> 58 * @retval non-NULL success 70 /* Implicit caller-owned reference */ in bhnd_nvram_plist_new() 71 plist->refs = 1; in bhnd_nvram_plist_new() 74 plist->num_entries = 0; in bhnd_nvram_plist_new() 75 TAILQ_INIT(&plist->entries); in bhnd_nvram_plist_new() 78 for (size_t i = 0; i < nitems(plist->names); i++) in bhnd_nvram_plist_new() 79 LIST_INIT(&plist->names[i]); in bhnd_nvram_plist_new() 95 BHND_NV_ASSERT(plist->refs >= 1, ("plist over-released")); in bhnd_nvram_plist_retain() [all …]
|
| /freebsd/usr.sbin/bhyve/aarch64/ |
| H A D | fdt.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 46 #define SET_PROP_U32(prop, idx, val) \ argument 47 ((uint32_t *)(prop))[(idx)] = cpu_to_fdt32(val) 48 #define SET_PROP_U64(prop, idx, val) \ argument 49 ((uint64_t *)(prop))[(idx)] = cpu_to_fdt64(val) 97 fdt_property_string(fdt, "enable-method", "psci"); in add_cpu() 107 /* XXX: Needed given the root #address-cells? */ in add_cpus() 108 fdt_property_u32(fdt, "#address-cells", 2); in add_cpus() 109 fdt_property_u32(fdt, "#size-cells", 0); in add_cpus() [all …]
|
| /freebsd/usr.sbin/bhyve/riscv/ |
| H A D | fdt.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 5 * Copyright (c) 2024-2025 Ruslan Bukin <br@bsdpad.com> 53 #define SET_PROP_U32(prop, idx, val) \ argument 54 ((uint32_t *)(prop))[(idx)] = cpu_to_fdt32(val) 55 #define SET_PROP_U64(prop, idx, val) \ argument 56 ((uint64_t *)(prop))[(idx)] = cpu_to_fdt64(val) 100 fdt_property_string(fdt, "mmu-type", "riscv,sv39"); in add_cpu() 102 fdt_begin_node(fdt, "interrupt-controller"); in add_cpu() 104 fdt_property_u32(fdt, "#address-cells", 2); in add_cpu() [all …]
|
| /freebsd/sys/contrib/openzfs/module/zcommon/ |
| H A D | zprop_common.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 79 * The zfs module spa_feature_table[], whether in-kernel or in libzpool, in zfs_mod_supported_prop() 98 zprop_register_impl(int prop, const char *name, zprop_type_t type, in zprop_register_impl() argument 108 pd = &prop_tbl[prop]; in zprop_register_impl() 110 ASSERT(pd->pd_name == NULL || pd->pd_name == name); in zprop_register_impl() 114 pd->pd_name = name; in zprop_register_impl() 115 pd->pd_propnum = prop; in zprop_register_impl() 116 pd->pd_proptype = type; in zprop_register_impl() 117 pd->pd_numdefault = numdefault; in zprop_register_impl() [all …]
|
| H A D | zfs_prop.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 124 { "gzip-1", ZIO_COMPRESS_GZIP_1 }, in zfs_prop_init() 125 { "gzip-2", ZIO_COMPRESS_GZIP_2 }, in zfs_prop_init() 126 { "gzip-3", ZIO_COMPRESS_GZIP_3 }, in zfs_prop_init() 127 { "gzip-4", ZIO_COMPRESS_GZIP_4 }, in zfs_prop_init() 128 { "gzip-5", ZIO_COMPRESS_GZIP_5 }, in zfs_prop_init() 129 { "gzip-6", ZIO_COMPRESS_GZIP_6 }, in zfs_prop_init() 130 { "gzip-7", ZIO_COMPRESS_GZIP_7 }, in zfs_prop_init() 131 { "gzip-8", ZIO_COMPRESS_GZIP_8 }, in zfs_prop_init() [all …]
|
| H A D | zpool_prop.c | 1 // SPDX-License-Identifier: CDDL-1.0 10 * or https://opensource.org/licenses/CDDL-1.0. 81 PROP_DEFAULT, ZFS_TYPE_POOL, "<comment-string>", "COMMENT", in zpool_prop_init() 141 ZFS_TYPE_POOL, "<ashift, 9-16, or 0=default>", "ASHIFT", B_FALSE, in zpool_prop_init() 211 zpool_prop_to_name(zpool_prop_t prop) in zpool_prop_to_name() argument 213 return (zpool_prop_table[prop].pd_name); in zpool_prop_to_name() 217 zpool_prop_get_type(zpool_prop_t prop) in zpool_prop_get_type() argument 219 return (zpool_prop_table[prop].pd_proptype); in zpool_prop_get_type() 223 zpool_prop_readonly(zpool_prop_t prop) in zpool_prop_readonly() argument 225 return (zpool_prop_table[prop].pd_attr == PROP_READONLY); in zpool_prop_readonly() [all …]
|
| /freebsd/crypto/openssl/crypto/property/ |
| H A D | property_query.c | 20 return key - defn->name_idx; in property_idx_cmp() 33 return ossl_bsearch(&name_idx, list->properties, list->num_properties, in ossl_property_find_property() 34 sizeof(*list->properties), &property_idx_cmp, 0); in ossl_property_find_property() 37 OSSL_PROPERTY_TYPE ossl_property_get_type(const OSSL_PROPERTY_DEFINITION *prop) in ossl_property_get_type() argument 39 return prop->type; in ossl_property_get_type() 43 const OSSL_PROPERTY_DEFINITION *prop) in ossl_property_get_string_value() argument 47 if (prop != NULL && prop->type == OSSL_PROPERTY_TYPE_STRING) in ossl_property_get_string_value() 48 value = ossl_property_value_str(libctx, prop->v.str_val); in ossl_property_get_string_value() 52 int64_t ossl_property_get_number_value(const OSSL_PROPERTY_DEFINITION *prop) in ossl_property_get_number_value() argument 56 if (prop != NULL && prop->type == OSSL_PROPERTY_TYPE_NUMBER) in ossl_property_get_number_value() [all …]
|
| H A D | property_parse.c | 2 * Copyright 2019-2025 The OpenSSL Project Authors. All Rights Reserved. 43 #define MATCH(s, m) match(s, m, sizeof(m) - 1) 68 "HERE-->%s", *t); in parse_name() 72 if (i < sizeof(name) - 1) in parse_name() 80 if (i < sizeof(name) - 1) in parse_name() 88 ERR_raise_data(ERR_LIB_PROP, PROP_R_NAME_TOO_LONG, "HERE-->%s", *t); in parse_name() 104 "HERE-->%s", *t); in parse_number() 108 if (v > ((INT64_MAX - (*s - '0')) / 10)) { in parse_number() 113 v = v * 10 + (*s++ - '0'); in parse_number() 117 "HERE-->%s", *t); in parse_number() [all …]
|
| H A D | defn_cache.c | 2 * Copyright 2019-2022 The OpenSSL Project Authors. All Rights Reserved. 27 const char *prop; member 36 return OPENSSL_LH_strhash(a->prop); in property_defn_hash() 42 return strcmp(a->prop, b->prop); in property_defn_cmp() 47 ossl_property_free(elem->defn); in property_defn_free() 66 OSSL_PROPERTY_LIST *ossl_prop_defn_get(OSSL_LIB_CTX *ctx, const char *prop) in ossl_prop_defn_get() argument 76 elem.prop = prop; in ossl_prop_defn_get() 79 if (r == NULL || !ossl_assert(r->defn != NULL)) in ossl_prop_defn_get() 81 return r->defn; in ossl_prop_defn_get() 89 int ossl_prop_defn_set(OSSL_LIB_CTX *ctx, const char *prop, in ossl_prop_defn_set() argument [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/ |
| H A D | zfs_set_common.kshlib | 1 # SPDX-License-Identifier: CDDL-1.0 10 # or https://opensource.org/licenses/CDDL-1.0. 34 set -A VALID_NAME_CHAR a b c d e f g h i j k l m n o p q r s t u v w x y z \ 35 0 1 2 3 4 5 6 7 8 9 ':' '-' '.' '_' 36 set -A INVALID_NAME_CHAR A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \ 39 set -A ALL_CHAR ${VALID_NAME_CHAR[*]} ${INVALID_NAME_CHAR[*]} 53 typeset prop=$2 55 typeset expect_result=${4:-true} 60 [[ -n $prop ]] && old_value=$(get_prop $prop $dataset) 63 [[ -z $prop || -z $dataset ]] && \ [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/include/ |
| H A D | properties.shlib | 1 # SPDX-License-Identifier: CDDL-1.0 20 typeset -a compress_prop_vals=('off' 'lzjb' 'lz4' 'gzip' 'zle' 'zstd') 21 typeset -a checksum_prop_vals=('on' 'off' 'fletcher2' 'fletcher4' 'sha256' 26 typeset -a recsize_prop_vals=('512' '1024' '2048' '4096' '8192' '16384' 28 typeset -a canmount_prop_vals=('on' 'off' 'noauto') 29 typeset -a copies_prop_vals=('1' '2' '3') 30 typeset -a logbias_prop_vals=('latency' 'throughput') 31 typeset -a primarycache_prop_vals=('all' 'none' 'metadata') 32 typeset -a redundant_metadata_prop_vals=('all' 'most' 'some' 'none') 33 typeset -a secondarycache_prop_vals=('all' 'none' 'metadata') [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/ |
| H A D | tst.set_props.zcp | 1 -- SPDX-License-Identifier: CDDL-1.0 2 -- 3 -- This file and its contents are supplied under the terms of the 4 -- Common Development and Distribution License ("CDDL"), version 1.0. 5 -- You may only use this file in accordance with the terms of version 6 -- 1.0 of the CDDL. 7 -- 8 -- A full copy of the text of the CDDL should have accompanied this 9 -- source. A copy of the CDDL is also available via the Internet at 10 -- http://www.illumos.org/license/CDDL. [all …]
|
| H A D | tst.get_string_props.zcp | 1 -- SPDX-License-Identifier: CDDL-1.0 2 -- 3 -- This file and its contents are supplied under the terms of the 4 -- Common Development and Distribution License ("CDDL"), version 1.0. 5 -- You may only use this file in accordance with the terms of version 6 -- 1.0 of the CDDL. 7 -- 8 -- A full copy of the text of the CDDL should have accompanied this 9 -- source. A copy of the CDDL is also available via the Internet at 10 -- http://www.illumos.org/license/CDDL. [all …]
|
| /freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
| H A D | GenericTaintChecker.cpp | 1 //== GenericTaintChecker.cpp ----------------------------------- -*- C++ -*--=// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 15 //===----------------------------------------------------------------------===// 39 #define DEBUG_TYPE "taint-checker" 51 /// Check for CWE-134: Uncontrolled Format String. 54 "(CWE-134: Uncontrolled Format String)"; 57 /// CERT/STR02-C. "Sanitize data passed to complex subsystems" 58 /// CWE-78, "Failure to Sanitize Data into an OS Command" 61 "(CERT/STR02-C. Sanitize data passed to complex subsystems)"; [all …]
|
| /freebsd/sys/contrib/libfdt/ |
| H A D | fdt_rw.c | 2 * libfdt - Flat Device Tree manipulation 21 * MA 02110-1301 USA 75 return -FDT_ERR_BADVERSION; in fdt_rw_check_header_() 78 return -FDT_ERR_BADLAYOUT; in fdt_rw_check_header_() 103 return -FDT_ERR_BADOFFSET; in fdt_splice_() 104 if ((p < (char *)fdt) || ((end - oldlen + newlen) < (char *)fdt)) in fdt_splice_() 105 return -FDT_ERR_BADOFFSET; in fdt_splice_() 106 if ((end - oldlen + newlen) > ((char *)fdt + fdt_totalsize(fdt))) in fdt_splice_() 107 return -FDT_ERR_NOSPACE; in fdt_splice_() 108 memmove(p + newlen, p + oldlen, end - p - oldlen); in fdt_splice_() [all …]
|
| H A D | fdt_ro.c | 2 * libfdt - Flat Device Tree manipulation 21 * MA 02110-1301 USA 97 for (offset = fdt_next_node(fdt, -1, NULL);; in fdt_get_max_phandle() 101 if (offset == -FDT_ERR_NOTFOUND) in fdt_get_max_phandle() 105 return (uint32_t)-1; in fdt_get_max_phandle() 108 if (phandle == (uint32_t)-1) in fdt_get_max_phandle() 121 *address = fdt64_to_cpu(fdt_mem_rsv_(fdt, n)->address); in fdt_get_mem_rsv() 122 *size = fdt64_to_cpu(fdt_mem_rsv_(fdt, n)->size); in fdt_get_mem_rsv() 130 while (fdt64_to_cpu(fdt_mem_rsv_(fdt, i)->size) != 0) in fdt_num_mem_rsv() 146 return -FDT_ERR_BADSTRUCTURE; in nextprop_() [all …]
|
| /freebsd/usr.sbin/moused/moused/ |
| H A D | util.c | 3 * Copyright © 2013-2019 Red Hat, Inc. 42 #include "util-evdev.h" 43 #include "util-list.h" 45 /* util-strings.c */ 55 * @return The first word in *state, NOT null-terminated 80 * Return a null-terminated string array with the tokens in the input 87 * result = strv_from_string("+1-2++3--4++-+5-+-", "+-", &nelem) 94 * @return A null-terminated string array or NULL on errors 113 size_t strv_len = nelems + 1; /* NULL-terminated */ in strv_from_string() 140 * If func returns non-zero, iteration stops and strv_for_each returns [all …]
|
| /freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/inheritance/ |
| H A D | inherit.kshlib | 1 # SPDX-License-Identifier: CDDL-1.0 10 # or https://opensource.org/licenses/CDDL-1.0. 38 typeset prop=$1 41 zfs get -H -o source $prop $dataset || 42 log_fail "Unable to determine the source of $prop" \ 58 typeset prop=$2 61 prop_src=$(get_prop_src $prop $target) 72 log_note "Property $prop of $target has source"\ 78 log_note "Property $prop of $target has source"\ 83 log_note "Property $prop of $expected has source $prop_src"\ [all …]
|
| H A D | inherit_001_pos.ksh | 1 #! /bin/ksh -p 2 # SPDX-License-Identifier: CDDL-1.0 11 # or https://opensource.org/licenses/CDDL-1.0. 39 # 'zfs inherit' and 'zfs inherit -r'. 45 # 3) Repeat steps 1-2 for each configX and stateX files found. 83 typeset -i i=0 86 # Though the effect of '-' and 'default' is the same we 90 if [[ $init_code == "-" ]]; then 102 while (( i < ${#prop[*]} )); do 103 if [[ ${prop[i]} == "recordsize" ]]; then [all …]
|
| /freebsd/usr.sbin/mfiutil/ |
| H A D | mfi_patrol.c | 1 /*- 2 * SPDX-License-Identifier: BSD-3-Clause 48 t = (now - at_now) + at; in adapter_time() 64 patrol_get_props(int fd, struct mfi_pr_properties *prop) in patrol_get_props() argument 68 if (mfi_dcmd_command(fd, MFI_DCMD_PR_GET_PROPERTIES, prop, in patrol_get_props() 69 sizeof(*prop), NULL, 0, NULL) < 0) { in patrol_get_props() 80 struct mfi_pr_properties prop; in show_patrol() local 99 error = patrol_get_props(fd, &prop); in show_patrol() 105 switch (prop.op_mode) { in show_patrol() 116 printf("??? (%02x)\n", prop.op_mode); in show_patrol() [all …]
|
| /freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ |
| H A D | zfs_set_common.kshlib | 29 set -A VALID_NAME_CHAR a b c d e f g h i j k l m n o p q r s t u v w x y z \ 30 0 1 2 3 4 5 6 7 8 9 ':' '-' '.' '_' 31 set -A INVALID_NAME_CHAR A B C D E F G H I J K L M N O P Q R S T U V W X Y Z \ 35 set -A ALL_CHAR ${VALID_NAME_CHAR[*]} ${INVALID_NAME_CHAR[*]} 49 typeset prop=$2 51 typeset expect_result=${4:-true} 55 [ -n "$prop" ] && old_value=$(get_prop $prop $dataset) 57 log_must $ZFS set $prop=$expect_value $dataset 59 log_mustnot $ZFS set $prop=$expect_value $dataset 61 [ -n "$prop" ] && cur_value=$(get_prop $prop $dataset) [all …]
|
| /freebsd/tests/sys/cddl/zfs/tests/inheritance/ |
| H A D | inherit.kshlib | 34 typeset prop=$1 37 prop_val=`$ZFS get -H -o source $prop $dataset` 39 if [[ $? -ne 0 ]]; then 40 log_fail "Unable to determine the source of $prop " \ 59 typeset prop=$2 62 prop_src=`get_prop_src $prop $target` 73 log_note "Property $prop of $target has source"\ 79 log_note "Property $prop of $target has source"\ 84 log_note "Property $prop of $expected has source $prop_src"\ 99 typeset prop=$1 [all …]
|
| /freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
| H A D | DXILOpBuilder.cpp | 1 //===- DXILOpBuilder.cpp - Helper class for build DIXLOp functions --------===// 5 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception 7 //===----------------------------------------------------------------------===// 10 //===----------------------------------------------------------------------===// 70 Type::TypeID T = Ty->getTypeID(); in getOverloadKind() 82 unsigned Bits = ITy->getBitWidth(); in getOverloadKind() 114 return ST->getStructName().str(); in getTypeName() 117 return ST->getStructName().str(); in getTypeName() 121 Ty->print(OS); in getTypeName() 149 const OpCodeProperty &Prop) { in constructOverloadName() argument [all …]
|
| /freebsd/usr.sbin/ofwdump/ |
| H A D | ofwdump.c | 1 /*- 53 const char *prop, bool raw, bool str); 61 "usage: ofwdump -a [-p | -P property] [-R | -S]\n" in usage() 62 " ofwdump [-p | -P property] [-r] [-R | -S] [--] nodes\n"); in usage() 75 while ((opt = getopt(argc, argv, "-aprP:RS")) != -1) { in main() 76 if (opt == '-') in main() 113 argc -= optind; in main() 146 char prop[OFIOCSUGGPROPNAMELEN]; in ofw_dump_properties() local 148 for (nlen = ofw_firstprop(fd, n, prop, sizeof(prop)); nlen != 0; in ofw_dump_properties() 149 nlen = ofw_nextprop(fd, n, prop, prop, sizeof(prop))) in ofw_dump_properties() [all …]
|
| /freebsd/sys/contrib/device-tree/Bindings/soundwire/ |
| H A D | qcom,sdw.txt | 7 - compatible: 10 Definition: must be "qcom,soundwire-v<MAJOR>.<MINOR>.<STEP>", 12 "qcom,soundwire-v1.3.0" 13 "qcom,soundwire-v1.5.0" 14 "qcom,soundwire-v1.5.1" 15 "qcom,soundwire-v1.6.0" 16 - reg: 18 Value type: <prop-encoded-array> 22 - interrupts: 24 Value type: <prop-encoded-array> [all …]
|