/freebsd/sys/dev/bhnd/nvram/ |
H A D | bhnd_nvram_plist.c | 121 bhnd_nvram_prop_release(ple->prop); in bhnd_nvram_plist_release() 142 bhnd_nvram_prop *prop; in bhnd_nvram_plist_copy() local 150 prop = NULL; in bhnd_nvram_plist_copy() 151 while ((prop = bhnd_nvram_plist_next(plist, prop)) != NULL) { in bhnd_nvram_plist_copy() 152 error = bhnd_nvram_plist_append(copy, prop); in bhnd_nvram_plist_copy() 194 * of @p prop, maintaining the property's current order in @p plist. 196 * If a matching property is not found in @p plist, @p prop will instead be 200 * @param prop The replacement property. 208 bhnd_nvram_plist_replace(bhnd_nvram_plist *plist, bhnd_nvram_prop *prop) in bhnd_nvram_plist_replace() argument 213 entry = bhnd_nvram_plist_get_entry(plist, prop->name); in bhnd_nvram_plist_replace() [all …]
|
H A D | bhnd_nvram_plist.h | 59 bhnd_nvram_prop *prop); 69 bhnd_nvram_prop *prop); 84 bhnd_nvram_prop *prop); 115 bhnd_nvram_prop *bhnd_nvram_prop_retain(bhnd_nvram_prop *prop); 116 void bhnd_nvram_prop_release(bhnd_nvram_prop *prop); 118 const char *bhnd_nvram_prop_name(bhnd_nvram_prop *prop); 119 bhnd_nvram_val *bhnd_nvram_prop_val(bhnd_nvram_prop *prop); 120 bhnd_nvram_type bhnd_nvram_prop_type(bhnd_nvram_prop *prop); 122 bool bhnd_nvram_prop_is_null(bhnd_nvram_prop *prop); 124 const void *bhnd_nvram_prop_bytes(bhnd_nvram_prop *prop, [all …]
|
/freebsd/usr.sbin/bhyve/riscv/ |
H A D | fdt.c | 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) 181 void *fdt, *prop; in fdt_add_aplic() local 199 fdt_property_placeholder(fdt, "reg", 2 * sizeof(uint64_t), &prop); in fdt_add_aplic() 200 SET_PROP_U64(prop, 0, mem_base); in fdt_add_aplic() 201 SET_PROP_U64(prop, 1, mem_size); in fdt_add_aplic() 205 2 * ncpu * sizeof(uint32_t), &prop); in fdt_add_aplic() 207 SET_PROP_U32(prop, i * 2 + 0, intc_phandles[i]); in fdt_add_aplic() [all …]
|
/freebsd/sys/contrib/openzfs/module/zcommon/ |
H A D | zprop_common.c | 97 zprop_register_impl(int prop, const char *name, zprop_type_t type, in zprop_register_impl() argument 107 pd = &prop_tbl[prop]; in zprop_register_impl() 114 pd->pd_propnum = prop; in zprop_register_impl() 134 zprop_register_string(int prop, const char *name, const char *def, in zprop_register_string() argument 138 zprop_register_impl(prop, name, PROP_TYPE_STRING, 0, def, attr, in zprop_register_string() 145 zprop_register_number(int prop, const char *name, uint64_t def, in zprop_register_number() argument 150 zprop_register_impl(prop, name, PROP_TYPE_NUMBER, def, NULL, attr, in zprop_register_number() 156 zprop_register_index(int prop, const char *name, uint64_t def, in zprop_register_index() argument 161 zprop_register_impl(prop, name, PROP_TYPE_INDEX, def, NULL, attr, in zprop_register_index() 167 zprop_register_hidden(int prop, const char *name, zprop_type_t type, in zprop_register_hidden() argument [all …]
|
H A D | zfs_prop.c | 784 zfs_prop_delegatable(zfs_prop_t prop) in zfs_prop_delegatable() argument 786 ASSERT3S(prop, >=, 0); in zfs_prop_delegatable() 787 ASSERT3S(prop, <, ZFS_NUM_PROPS); in zfs_prop_delegatable() 788 zprop_desc_t *pd = &zfs_prop_table[prop]; in zfs_prop_delegatable() 791 if (prop == ZFS_PROP_MLSLABEL) in zfs_prop_delegatable() 839 zfs_userquota_prop_t prop; in zfs_prop_userquota() local 841 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) { in zfs_prop_userquota() 842 if (strncmp(name, zfs_userquota_prop_prefixes[prop], in zfs_prop_userquota() 843 strlen(zfs_userquota_prop_prefixes[prop])) == 0) { in zfs_prop_userquota() 870 zfs_prop_string_to_index(zfs_prop_t prop, const char *string, uint64_t *index) in zfs_prop_string_to_index() argument [all …]
|
H A D | zpool_prop.c | 210 zpool_prop_to_name(zpool_prop_t prop) in zpool_prop_to_name() argument 212 return (zpool_prop_table[prop].pd_name); in zpool_prop_to_name() 216 zpool_prop_get_type(zpool_prop_t prop) in zpool_prop_get_type() argument 218 return (zpool_prop_table[prop].pd_proptype); in zpool_prop_get_type() 222 zpool_prop_readonly(zpool_prop_t prop) in zpool_prop_readonly() argument 224 return (zpool_prop_table[prop].pd_attr == PROP_READONLY); in zpool_prop_readonly() 228 zpool_prop_setonce(zpool_prop_t prop) in zpool_prop_setonce() argument 230 return (zpool_prop_table[prop].pd_attr == PROP_ONETIME); in zpool_prop_setonce() 234 zpool_prop_default_string(zpool_prop_t prop) in zpool_prop_default_string() argument 236 return (zpool_prop_table[prop].pd_strdefault); in zpool_prop_default_string() [all …]
|
/freebsd/crypto/openssl/crypto/property/ |
H A D | property_query.c | 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() 57 value = prop->v.int_val; in ossl_property_get_number_value() 70 const OSSL_PROPERTY_DEFINITION *prop; in ossl_property_is_enabled() local 72 prop = ossl_property_find_property(prop_list, ctx, property_name); in ossl_property_is_enabled() [all …]
|
H A D | property_parse.c | 347 OSSL_PROPERTY_DEFINITION *prop = NULL; in ossl_parse_property() 361 prop = OPENSSL_malloc(sizeof(*prop)); in ossl_parse_property() 362 if (prop == NULL) in ossl_parse_property() 364 memset(&prop->v, 0, sizeof(prop->v)); in ossl_parse_property() 365 prop->optional = 0; in ossl_parse_property() 366 if (!parse_name(ctx, &s, 1, &prop->name_idx)) in ossl_parse_property() 368 prop->oper = OSSL_PROPERTY_OPER_EQ; in ossl_parse_property() 369 if (prop in ossl_parse_property() 346 OSSL_PROPERTY_DEFINITION *prop = NULL; ossl_parse_property() local 408 OSSL_PROPERTY_DEFINITION *prop = NULL; ossl_parse_query() local 702 const OSSL_PROPERTY_DEFINITION *prop = NULL; ossl_property_list_to_string() local [all...] |
H A D | defn_cache.c | 26 const char *prop; member 35 return OPENSSL_LH_strhash(a->prop); in property_defn_hash() 41 return strcmp(a->prop, b->prop); in property_defn_cmp() 71 OSSL_PROPERTY_LIST *ossl_prop_defn_get(OSSL_LIB_CTX *ctx, const char *prop) in ossl_prop_defn_get() argument 82 elem.prop = prop; in ossl_prop_defn_get() 95 int ossl_prop_defn_set(OSSL_LIB_CTX *ctx, const char *prop, in ossl_prop_defn_set() argument 109 if (prop == NULL) in ossl_prop_defn_set() 114 elem.prop = prop; in ossl_prop_defn_set() 125 len = strlen(prop); in ossl_prop_defn_set() 128 p->prop = p->body; in ossl_prop_defn_set() [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/ |
H A D | zfs_set_common.kshlib | 52 typeset prop=$2 59 [[ -n $prop ]] && old_value=$(get_prop $prop $dataset) 62 [[ -z $prop || -z $dataset ]] && \ 65 log_must zfs set $prop=$expect_value $dataset 70 [[ -n $prop ]] && cur_value=$(get_prop $prop $dataset) 72 case $prop in 76 log_fail "The '$dataset' '$prop' value" \ 79 log_fail "The '$dataset' '$prop' value '$cur_value'" \ 85 log_fail "The '$dataset' '$prop' value '$cur_value'" \ 92 log_mustnot zfs set $prop=$expect_value $dataset [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/ |
H A D | properties.shlib | 43 # Given the 'prop' passed in, return 'num_vals' elements of the corresponding 50 typeset prop=$1 54 [[ -z $prop || -z $num_vals || -z $first ]] && \ 59 typeset prop_vals_var=${prop}_prop_vals 63 log_fail "get_rand_prop_vals: bad prop $prop" 92 typeset prop=$2 94 typeset val=$(get_prop $prop $ds) 98 log_must zfs set $prop=$newval $ds 104 typeset prop 106 for prop in "${binary_props[@]}"; do [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/ |
H A D | tst.set_props.zcp | 47 pos_props["a:prop"] = {"hello"} 68 for prop, values in pairs(pos_props) do 70 old_val, src = zfs.get_prop(fs, prop) 73 err = zfs.sync.set_prop(fs, prop, val) 76 set_fail[prop] = err -- tuple of prop, val that resulted in error 79 new_val, src = zfs.get_prop(fs, prop) 81 val_fail[prop] = new_val 84 -- We modified the prop, restore old value (if one existed) 86 err = zfs.sync.set_prop(fs, prop, old_val) 90 err = zfs.sync.inherit(fs, prop) [all …]
|
H A D | tst.get_string_props.zcp | 23 -- prop filesystem snapshot clone 48 function match(n, prop, ans, src, expected) 49 if ((prop == 'clones') or (prop == 'redact_snaps')) then 56 for prop, expected in pairs(props) do 57 ans, src = zfs.get_prop(fs, prop) 58 if not (match(1, prop, ans, src, expected)) then 59 fs_fails[prop] = {ans, src} 62 ans, src = zfs.get_prop(snap, prop) 63 if not (match(2, prop, ans, src, expected)) then 64 snap_fails[prop] = {ans, src} [all …]
|
/freebsd/contrib/llvm-project/clang/lib/StaticAnalyzer/Checkers/ |
H A D | GenericTaintChecker.cpp | 291 static GenericTaintRule Prop(ArgSet &&SrcArgs, ArgSet &&DstArgs) { in Prop() function in __anoncee4e0c00111::GenericTaintRule 543 P, GenericTaintRule::Prop(std::move(SrcDesc), std::move(DstDesc)), Rules); in parseConfig() 608 {{CDM::CLibrary, {"accept"}}, TR::Prop({{0}}, {{ReturnValueIndex}})}, in initTaintRules() 609 {{CDM::CLibrary, {"atoi"}}, TR::Prop({{0}}, {{ReturnValueIndex}})}, in initTaintRules() 610 {{CDM::CLibrary, {"atol"}}, TR::Prop({{0}}, {{ReturnValueIndex}})}, in initTaintRules() 611 {{CDM::CLibrary, {"atoll"}}, TR::Prop({{0}}, {{ReturnValueIndex}})}, in initTaintRules() 612 {{CDM::CLibrary, {"fgetc"}}, TR::Prop({{0}}, {{ReturnValueIndex}})}, in initTaintRules() 613 {{CDM::CLibrary, {"fgetln"}}, TR::Prop({{0}}, {{ReturnValueIndex}})}, in initTaintRules() 615 TR::Prop({{2}}, {{0, ReturnValueIndex}})}, in initTaintRules() 617 TR::Prop({{2}}, {{0, ReturnValueIndex}})}, in initTaintRules() [all …]
|
/freebsd/sys/contrib/libfdt/ |
H A D | fdt_rw.c | 204 int len, struct fdt_property **prop) in fdt_resize_property_() argument 209 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_() 210 if (!*prop) in fdt_resize_property_() 213 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in fdt_resize_property_() 217 (*prop)->len = cpu_to_fdt32(len); in fdt_resize_property_() 222 int len, struct fdt_property **prop) in fdt_add_property_() argument 236 *prop = fdt_offset_ptr_w_(fdt, nextoffset); in fdt_add_property_() 237 proplen = sizeof(**prop) + FDT_TAGALIGN(len); in fdt_add_property_() 239 err = fdt_splice_struct_(fdt, *prop, 0, proplen); in fdt_add_property_() 243 (*prop)->tag = cpu_to_fdt32(FDT_PROP); in fdt_add_property_() [all …]
|
H A D | fdt_ro.c | 295 const struct fdt_property *prop; in fdt_get_property_by_offset_() local 303 prop = fdt_offset_ptr_(fdt, offset); in fdt_get_property_by_offset_() 306 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset_() 308 return prop; in fdt_get_property_by_offset_() 337 const struct fdt_property *prop; in fdt_get_property_namelen_() local 339 if (!(prop = fdt_get_property_by_offset_(fdt, offset, lenp))) { in fdt_get_property_namelen_() 343 if (fdt_string_eq_(fdt, fdt32_to_cpu(prop->nameoff), in fdt_get_property_namelen_() 347 return prop; in fdt_get_property_namelen_() 387 const struct fdt_property *prop; in fdt_getprop_namelen() local 389 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() [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` 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 103 $ZFS set $prop=$prop_val $dataset [all …]
|
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/inheritance/ |
H A D | inherit.kshlib | 37 typeset prop=$1 40 zfs get -H -o source $prop $dataset || 41 log_fail "Unable to determine the source of $prop" \ 57 typeset prop=$2 60 prop_src=$(get_prop_src $prop $target) 71 log_note "Property $prop of $target has source"\ 77 log_note "Property $prop of $target has source"\ 82 log_note "Property $prop of $expected has source $prop_src"\ 97 typeset prop=$1 101 zfs set $prop=$prop_val $dataset [all …]
|
H A D | inherit_001_pos.ksh | 101 while (( i < ${#prop[*]} )); do 102 if [[ ${prop[i]} == "recordsize" ]]; then 105 if [[ ${prop[i]} == "mountpoint" ]]; then 106 set_n_verify_prop ${prop[i]} \ 109 set_n_verify_prop ${prop[i]} \ 135 while (( idx < ${#prop[*]} )); do 136 [[ ${prop[idx]} == "recordsize" ]] && break 221 typeset prop=$1 230 prop_val=`get_prop $prop $dataset` 233 if [[ $prop == "mountpoint" ]]; then [all …]
|
/freebsd/usr.sbin/mfiutil/ |
H A D | mfi_patrol.c | 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() 119 if (prop.op_mode == MFI_PR_OPMODE_AUTO) { in show_patrol() 120 if (at != 0 && prop.next_exec) in show_patrol() 122 prop.next_exec)); in show_patrol() [all …]
|
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ |
H A D | zfs_set_common.kshlib | 49 typeset prop=$2 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) 63 err="ERROR: Dataset '$dataset': '$prop' value '$cur_value'" 66 case "$prop" in 101 typeset prop 102 for prop in $user_prop; do 103 $ZFS inherit $prop $dt [all …]
|
/freebsd/contrib/llvm-project/llvm/lib/Target/DirectX/ |
H A D | DXILOpBuilder.cpp | 149 const OpCodeProperty &Prop) { in constructOverloadName() argument 151 return (Twine(DXILOpNamePrefix) + getOpCodeClassName(Prop)).str(); in constructOverloadName() 153 return (Twine(DXILOpNamePrefix) + getOpCodeClassName(Prop) + "." + in constructOverloadName() 227 /// <param-types> are constructed from types in Prop. 228 /// \param Prop Structure containing DXIL Operation properties based on 231 static FunctionType *getDXILOpFunctionType(const OpCodeProperty *Prop, in getDXILOpFunctionType() argument 235 auto ParamKinds = getOpCodeParameterKind(*Prop); in getDXILOpFunctionType() 244 for (unsigned I = 0; I < Prop->NumOfParameters; ++I) { in getDXILOpFunctionType() 258 const OpCodeProperty *Prop = getOpCodeProperty(OpCode); in createDXILOpCall() local 261 if ((Prop->OverloadTys & (uint16_t)Kind) == 0) { in createDXILOpCall() [all …]
|
/freebsd/usr.sbin/ofwdump/ |
H A D | ofwdump.c | 53 const char *prop, bool raw, bool str); 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() 150 ofw_dump_property(fd, n, level, prop, raw, str); in ofw_dump_properties() 154 ofw_dump_property(int fd, phandle_t n, int level, const char *prop, bool raw, in ofw_dump_property() argument 163 len = ofw_getprop_alloc(fd, n, prop, &pbuf, &pblen, 1); in ofw_dump_property() 172 printf("%s:\n", prop); in ofw_dump_property() 210 ofw_dump_node(int fd, phandle_t n, int level, int rec, int prop, in ofw_dump_node() argument 227 if (prop) { in ofw_dump_node() [all …]
|
/freebsd/sys/contrib/device-tree/Bindings/soundwire/ |
H A D | qcom,sdw.txt | 18 Value type: <prop-encoded-array> 24 Value type: <prop-encoded-array> 46 Value type: <prop-encoded-array> 66 Value type: <prop-encoded-array> 75 Value type: <prop-encoded-array> 84 Value type: <prop-encoded-array> 94 Value type: <prop-encoded-array> 102 Value type: <prop-encoded-array> 113 Value type: <prop-encoded-array> 123 Value type: <prop-encoded-array> [all …]
|
/freebsd/contrib/llvm-project/clang/lib/Sema/ |
H A D | SemaObjCProperty.cpp | 108 CheckPropertyAgainstProtocol(Sema &S, ObjCPropertyDecl *Prop, in CheckPropertyAgainstProtocol() argument 117 Prop->getIdentifier(), Prop->isInstanceProperty())) { in CheckPropertyAgainstProtocol() 118 S.ObjC().DiagnosePropertyMismatch(Prop, ProtoProp, Proto->getIdentifier(), in CheckPropertyAgainstProtocol() 125 CheckPropertyAgainstProtocol(S, Prop, P, Known); in CheckPropertyAgainstProtocol() 851 for (const auto &Prop : llvm::enumerate(Properties)) { in SelectPropertyForSynthesisFromProtocols() local 853 if (Property->isReadOnly() && !Prop.value()->isReadOnly()) { in SelectPropertyForSynthesisFromProtocols() 854 Property = Prop.value(); in SelectPropertyForSynthesisFromProtocols() 855 SelectedIndex = Prop.index(); in SelectPropertyForSynthesisFromProtocols() 875 const ObjCPropertyDecl *Prop; in SelectPropertyForSynthesisFromProtocols() member 880 for (ObjCPropertyDecl *Prop : Properties) { in SelectPropertyForSynthesisFromProtocols() [all …]
|