| /freebsd-14.2/sys/dev/bhnd/nvram/ |
| H A D | bhnd_nvram_plist.c | 151 prop = NULL; in bhnd_nvram_plist_copy() 152 while ((prop = bhnd_nvram_plist_next(plist, prop)) != NULL) { in bhnd_nvram_plist_copy() 222 entry->prop = bhnd_nvram_prop_retain(prop); in bhnd_nvram_plist_replace() 431 entry->prop = bhnd_nvram_prop_retain(prop); in bhnd_nvram_plist_append() 552 if (entry->prop != prop) in bhnd_nvram_plist_next() 781 prop = bhnd_nv_calloc(1, sizeof(*prop)); in bhnd_nvram_prop_new() 782 if (prop == NULL) in bhnd_nvram_prop_new() 786 prop->refs = 1; in bhnd_nvram_prop_new() 794 return (prop); in bhnd_nvram_prop_new() 847 return (prop); in bhnd_nvram_prop_bytes_new() [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-14.2/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) 70 [[ -n $prop ]] && cur_value=$(get_prop $prop $dataset) 72 case $prop in 94 [[ -n $prop ]] && cur_value=$(get_prop $prop $dataset) 120 typeset prop 253 typeset prop=$1 273 typeset prop="$2" 301 typeset prop="$2" 323 typeset prop="$2" [all …]
|
| /freebsd-14.2/crypto/openssl/crypto/property/ |
| H A D | property_query.c | 39 return prop->type; in ossl_property_get_type() 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() 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 74 if (prop == NULL || prop->optional || prop->oper == OSSL_PROPERTY_OVERRIDE) in ossl_property_is_enabled() 76 return (prop->type == OSSL_PROPERTY_TYPE_STRING in ossl_property_is_enabled() 77 && ((prop->oper == OSSL_PROPERTY_OPER_EQ in ossl_property_is_enabled() 78 && prop->v.str_val == OSSL_PROPERTY_TRUE) in ossl_property_is_enabled() [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 …]
|
| H A D | property_parse.c | 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() 388 prop = NULL; in ossl_parse_property() 399 OPENSSL_free(prop); in ossl_parse_property() 418 prop = OPENSSL_malloc(sizeof(*prop)); in ossl_parse_query() 419 if (prop == NULL) in ossl_parse_query() 421 memset(&prop->v, 0, sizeof(prop->v)); in ossl_parse_query() 451 prop = NULL; in ossl_parse_query() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/module/zcommon/ |
| H A D | zprop_common.c | 107 pd = &prop_tbl[prop]; in zprop_register_impl() 229 prop = ZPROP_CONT; in zprop_iter_common() 244 return (prop); in zprop_iter_common() 288 return (prop); in zprop_name_to_prop_cb() 296 int prop; in zprop_name_to_prop() local 305 return (prop == ZPROP_CONT ? ZPROP_INVAL : prop); in zprop_name_to_prop() 316 if (prop == ZPROP_INVAL || prop == ZPROP_CONT) in zprop_string_to_index() 342 if (prop == ZPROP_INVAL || prop == ZPROP_CONT) in zprop_index_to_string() 384 ASSERT(prop != ZPROP_INVAL && prop != ZPROP_CONT); in zprop_values() 404 if (prop == ZPROP_INVAL || prop == ZPROP_CONT) in zprop_valid_for_type() [all …]
|
| H A D | zfs_prop.c | 766 ASSERT3S(prop, >=, 0); in zfs_prop_delegatable() 820 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) { in zfs_prop_userquota() 878 ASSERT3S(prop, >=, 0); in zfs_prop_get_type() 889 ASSERT3S(prop, >=, 0); in zfs_prop_readonly() 902 ASSERT3S(prop, >=, 0); in zfs_prop_visible() 914 ASSERT3S(prop, >=, 0); in zfs_prop_setonce() 923 ASSERT3S(prop, >=, 0); in zfs_prop_default_string() 931 ASSERT3S(prop, >=, 0); in zfs_prop_default_numeric() 943 ASSERT3S(prop, >=, 0); in zfs_prop_to_name() 954 ASSERT3S(prop, >=, 0); in zfs_prop_inheritable() [all …]
|
| H A D | zpool_prop.c | 198 zpool_prop_to_name(zpool_prop_t prop) in zpool_prop_to_name() argument 204 zpool_prop_get_type(zpool_prop_t prop) in zpool_prop_get_type() argument 210 zpool_prop_readonly(zpool_prop_t prop) in zpool_prop_readonly() argument 216 zpool_prop_setonce(zpool_prop_t prop) in zpool_prop_setonce() argument 277 zpool_prop_values(zpool_prop_t prop) in zpool_prop_values() argument 496 vdev_prop_to_name(vdev_prop_t prop) in vdev_prop_to_name() argument 502 vdev_prop_get_type(vdev_prop_t prop) in vdev_prop_get_type() argument 508 vdev_prop_readonly(vdev_prop_t prop) in vdev_prop_readonly() argument 556 vdev_prop_values(vdev_prop_t prop) in vdev_prop_values() argument 562 vdev_prop_column_name(vdev_prop_t prop) in vdev_prop_column_name() argument [all …]
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/inheritance/ |
| H A D | inherit.kshlib | 37 typeset prop=$1 40 prop_val=`$ZFS get -H -o source $prop $dataset` 62 typeset prop=$2 65 prop_src=`get_prop_src $prop $target` 76 log_note "Property $prop of $target has source"\ 82 log_note "Property $prop of $target has source"\ 87 log_note "Property $prop of $expected has source $prop_src"\ 102 typeset prop=$1 106 $ZFS set $prop=$prop_val $dataset 107 check_val=`get_prop $prop $dataset` [all …]
|
| /freebsd-14.2/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 || 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 102 check_val=$(get_prop $prop $dataset) [all …]
|
| H A D | inherit_001_pos.ksh | 106 set_n_verify_prop ${prop[i]} \ 109 set_n_verify_prop ${prop[i]} \ 221 typeset prop=$1 245 exp_val=`get_prop $prop $src` 255 if [[ $prop != "aclinherit" || \ 339 for p in ${prop[i]} ${prop[((i+1))]}; do 347 for p in ${prop[i]} ${prop[((i+1))]}; do 374 set -A prop "checksum" "" \ 405 prop+=("acltype" "") 409 prop+=("aclmode" "") [all …]
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/cli_root/zfs_set/ |
| H A D | zfs_set_common.kshlib | 52 typeset prop=$2 58 [ -n "$prop" ] && old_value=$(get_prop $prop $dataset) 60 log_must $ZFS set $prop=$expect_value $dataset 64 [ -n "$prop" ] && cur_value=$(get_prop $prop $dataset) 69 case "$prop" in 104 typeset prop 105 for prop in $user_prop; do 106 $ZFS inherit $prop $dt 107 (($? != 0)) && log_must $ZFS inherit $prop $dt 241 typeset prop=$1 [all …]
|
| /freebsd-14.2/usr.sbin/mfiutil/ |
| H A D | mfi_patrol.c | 80 struct mfi_pr_properties prop; in show_patrol() local 105 switch (prop.op_mode) { in show_patrol() 120 if (at != 0 && prop.next_exec) in show_patrol() 122 prop.next_exec)); in show_patrol() 123 if (prop.exec_freq == 0xffffffff) in show_patrol() 125 else if (prop.exec_freq != 0) in show_patrol() 127 prop.exec_freq); in show_patrol() 250 struct mfi_pr_properties prop; in patrol_config() local 308 prop.op_mode = op_mode; in patrol_config() 311 prop.exec_freq = exec_freq; in patrol_config() [all …]
|
| /freebsd-14.2/sys/contrib/libfdt/ |
| H A D | fdt_rw.c | 210 if (!*prop) in fdt_resize_property_() 217 (*prop)->len = cpu_to_fdt32(len); in fdt_resize_property_() 245 (*prop)->len = cpu_to_fdt32(len); in fdt_add_property_() 275 struct fdt_property *prop; in fdt_setprop_placeholder() local 286 *prop_data = prop->data; in fdt_setprop_placeholder() 308 struct fdt_property *prop; in fdt_appendprop() local 314 if (prop) { in fdt_appendprop() 321 prop->len = cpu_to_fdt32(newlen); in fdt_appendprop() 327 memcpy(prop->data, val, len); in fdt_appendprop() 334 struct fdt_property *prop; in fdt_delprop() local [all …]
|
| H A D | fdt_ro.c | 295 const struct fdt_property *prop; in fdt_get_property_by_offset_() local 308 return prop; in fdt_get_property_by_offset_() 347 return prop; in fdt_get_property_namelen_() 391 if (!prop) in fdt_getprop_namelen() 397 return prop->data + 4; in fdt_getprop_namelen() 398 return prop->data; in fdt_getprop_namelen() 407 if (!prop) in fdt_getprop_by_offset() 415 return prop->data + 4; in fdt_getprop_by_offset() 416 return prop->data; in fdt_getprop_by_offset() 740 const void *prop; in fdt_node_check_compatible() local [all …]
|
| /freebsd-14.2/usr.sbin/ofwdump/ |
| H A D | ofwdump.c | 52 const char *prop, int raw, int str); 145 char prop[OFIOCSUGGPROPNAMELEN]; in ofw_dump_properties() local 147 for (nlen = ofw_firstprop(fd, n, prop, sizeof(prop)); nlen != 0; in ofw_dump_properties() 148 nlen = ofw_nextprop(fd, n, prop, prop, sizeof(prop))) in ofw_dump_properties() 149 ofw_dump_property(fd, n, level, prop, raw, str); in ofw_dump_properties() 162 len = ofw_getprop_alloc(fd, n, prop, &pbuf, &pblen, 1); in ofw_dump_property() 171 printf("%s:\n", prop); in ofw_dump_property() 209 ofw_dump_node(int fd, phandle_t n, int level, int rec, int prop, in ofw_dump_node() argument 226 if (prop) { in ofw_dump_node() 234 ofw_dump_node(fd, c, level + 1, rec, prop, pmatch, in ofw_dump_node() [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/ |
| H A D | tst.get_string_props.zcp | 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} 67 ans, src = zfs.get_prop(clone, prop) [all …]
|
| 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 90 err = zfs.sync.inherit(fs, prop) 98 for prop, expected in pairs(neg_props) do 103 err = zfs.sync.set_prop(fs, prop, exp_val) [all …]
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_inherit/ |
| H A D | zfs_inherit_002_neg.ksh | 75 for prop in ${props[@]}; do 76 log_mustnot eval "zfs inherit $opt $prop $ds \ 82 for prop in "${illprops[@]}"; do 83 log_mustnot eval "zfs inherit $prop $ds >/dev/null 2>&1" 84 log_mustnot eval "zfs inherit -r $prop $ds >/dev/null 2>&1" 101 for prop in ${props[@]}; do 102 log_mustnot eval "zfs inherit $prop >/dev/null 2>&1" 103 log_mustnot eval "zfs inherit -r $prop >/dev/null 2>&1"
|
| /freebsd-14.2/sys/dev/gpio/ |
| H A D | gpiopower.c | 72 uint32_t prop; in gpiopower_attach() local 93 if ((OF_getprop(node, "active-delay-ms", &prop, sizeof(prop))) > 0) in gpiopower_attach() 94 sc->sc_hi_period = fdt32_to_cpu(prop) * 1000; in gpiopower_attach() 95 if ((OF_getprop(node, "inactive-delay-ms", &prop, sizeof(prop))) > 0) in gpiopower_attach() 96 sc->sc_lo_period = fdt32_to_cpu(prop) * 1000; in gpiopower_attach() 97 if ((OF_getprop(node, "timeout-ms", &prop, sizeof(prop))) > 0) in gpiopower_attach() 98 sc->sc_timeout = fdt32_to_cpu(prop) * 1000; in gpiopower_attach()
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/rsend/ |
| H A D | rsend_012_pos.ksh | 62 typeset prop=$2 66 log_must eval "$ZFS set $prop='$value' $dtst" 94 typeset prop value 95 while read prop value ; do 96 eval $ZFS set $prop='$value' $ds 98 log_fail "$ZFS set $prop=$value $ds" 115 typeset prop 116 for prop in $(fs_inherit_prop) ; do 117 log_must $ZFS inherit $prop $POOL 118 log_must $ZFS inherit $prop $POOL2 [all …]
|
| H A D | rsend_011_pos.ksh | 73 for prop in $(fs_inherit_prop); do 74 value=$(get_prop $prop $POOL/$FS) 75 log_must $ZFS set $prop=$value $POOL/$FS 82 for prop in $(fs_inherit_prop) ; do 83 $ZFS inherit $prop $ds 85 log_fail "$ZFS inherit $prop $ds" 90 for prop in $(vol_inherit_prop) ; do 91 $ZFS inherit $prop $POOL/$FS/vol 93 log_fail "$ZFS inherit $prop $POOL/$FS/vol"
|
| /freebsd-14.2/tests/sys/cddl/zfs/tests/cli_root/zfs_inherit/ |
| H A D | zfs_inherit_002_neg.ksh | 82 for prop in ${props[@]}; do 83 log_mustnot eval "$ZFS inherit $opt $prop $ds >/dev/null 2>&1" 88 for prop in ${illprops[@]}; do 89 log_mustnot eval "$ZFS inherit $prop $ds >/dev/null 2>&1" 90 log_mustnot eval "$ZFS inherit -r $prop $ds >/dev/null 2>&1" 107 for prop in ${props[@]}; do 108 log_mustnot eval "$ZFS inherit $prop >/dev/null 2>&1" 109 log_mustnot eval "$ZFS inherit -r $prop >/dev/null 2>&1"
|
| /freebsd-14.2/sys/contrib/openzfs/tests/zfs-tests/include/ |
| H A D | properties.shlib | 50 typeset prop=$1 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 107 toggle_prop $ds $prop 114 typeset prop proplist val 126 for prop in $proplist; do [all …]
|