Home
last modified time | relevance | path

Searched refs:prop (Results 1 – 25 of 323) sorted by relevance

12345678910>>...13

/freebsd/sys/dev/bhnd/nvram/
H A Dbhnd_nvram_plist.c121 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()
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()
216 return (bhnd_nvram_plist_append(plist, prop)); in bhnd_nvram_plist_replace()
220 bhnd_nvram_prop_release(entry->prop); in bhnd_nvram_plist_replace()
221 entry->prop = bhnd_nvram_prop_retain(prop); in bhnd_nvram_plist_replace()
[all …]
H A Dbhnd_nvram_plist.h59 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 Dfdt.c51 #define SET_PROP_U32(prop, idx, val) \ argument
52 ((uint32_t *)(prop))[(idx)] = cpu_to_fdt32(val)
53 #define SET_PROP_U64(prop, idx, val) \ argument
54 ((uint64_t *)(prop))[(idx)] = cpu_to_fdt64(val)
177 void *fdt, *prop; in fdt_add_aplic() local
194 fdt_property_placeholder(fdt, "reg", 2 * sizeof(uint64_t), &prop); in fdt_add_aplic()
195 SET_PROP_U64(prop, 0, mem_base); in fdt_add_aplic()
196 SET_PROP_U64(prop, 1, mem_size); in fdt_add_aplic()
199 2 * sizeof(uint32_t), &prop); in fdt_add_aplic()
200 SET_PROP_U32(prop, 0, intc0_phandle); in fdt_add_aplic()
[all …]
/freebsd/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dzfs_set_common.kshlib52 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/module/zcommon/
H A Dzprop_common.c97 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 Dzfs_prop.c784 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 Dzpool_prop.c207 zpool_prop_to_name(zpool_prop_t prop) in zpool_prop_to_name() argument
209 return (zpool_prop_table[prop].pd_name); in zpool_prop_to_name()
213 zpool_prop_get_type(zpool_prop_t prop) in zpool_prop_get_type() argument
215 return (zpool_prop_table[prop].pd_proptype); in zpool_prop_get_type()
219 zpool_prop_readonly(zpool_prop_t prop) in zpool_prop_readonly() argument
221 return (zpool_prop_table[prop].pd_attr == PROP_READONLY); in zpool_prop_readonly()
225 zpool_prop_setonce(zpool_prop_t prop) in zpool_prop_setonce() argument
227 return (zpool_prop_table[prop].pd_attr == PROP_ONETIME); in zpool_prop_setonce()
231 zpool_prop_default_string(zpool_prop_t prop) in zpool_prop_default_string() argument
233 return (zpool_prop_table[prop].pd_strdefault); in zpool_prop_default_string()
[all …]
/freebsd/crypto/openssl/crypto/property/
H A Dproperty_query.c37 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 Dproperty_parse.c347 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 Ddefn_cache.c26 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/tests/sys/cddl/zfs/tests/inheritance/
H A Dinherit.kshlib34 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 Dinherit.kshlib37 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 Dinherit_001_pos.ksh102 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]} \
136 [[ ${prop[idx]} == "recordsize" ]] && break
221 typeset prop=$1
230 prop_val=`get_prop $prop $dataset`
233 if [[ $prop == "mountpoint" ]]; then
245 exp_val=`get_prop $prop $src`
255 if [[ $prop != "aclinherit" || \
[all …]
/freebsd/tests/sys/cddl/zfs/tests/cli_root/zfs_set/
H A Dzfs_set_common.kshlib49 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/usr.sbin/mfiutil/
H A Dmfi_patrol.c64 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/sys/contrib/libfdt/
H A Dfdt_rw.c204 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 Dfdt_ro.c295 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/usr.sbin/ofwdump/
H A Dofwdump.c53 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/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/
H A Dtst.get_string_props.zcp23 -- 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/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_inherit/
H A Dzfs_inherit_002_neg.ksh75 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/tests/sys/cddl/zfs/tests/rsend/
H A Drsend_012_pos.ksh59 typeset prop=$2
63 log_must eval "$ZFS set $prop='$value' $dtst"
91 typeset prop value
92 while read prop value ; do
93 eval $ZFS set $prop='$value' $ds
95 log_fail "$ZFS set $prop=$value $ds"
112 typeset prop
113 for prop in $(fs_inherit_prop) ; do
114 log_must $ZFS inherit $prop $POOL
115 log_must $ZFS inherit $prop $POOL2
[all …]
H A Drsend_011_pos.ksh70 for prop in $(fs_inherit_prop); do
71 value=$(get_prop $prop $POOL/$FS)
72 log_must $ZFS set $prop=$value $POOL/$FS
79 for prop in $(fs_inherit_prop) ; do
80 $ZFS inherit $prop $ds
82 log_fail "$ZFS inherit $prop $ds"
87 for prop in $(vol_inherit_prop) ; do
88 $ZFS inherit $prop $POOL/$FS/vol
90 log_fail "$ZFS inherit $prop $POOL/$FS/vol"
/freebsd/sys/dev/gpio/
H A Dgpiopower.c72 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/tests/sys/cddl/zfs/tests/cli_root/zfs_inherit/
H A Dzfs_inherit_002_neg.ksh79 for prop in ${props[@]}; do
80 log_mustnot eval "$ZFS inherit $opt $prop $ds >/dev/null 2>&1"
85 for prop in ${illprops[@]}; do
86 log_mustnot eval "$ZFS inherit $prop $ds >/dev/null 2>&1"
87 log_mustnot eval "$ZFS inherit -r $prop $ds >/dev/null 2>&1"
104 for prop in ${props[@]}; do
105 log_mustnot eval "$ZFS inherit $prop >/dev/null 2>&1"
106 log_mustnot eval "$ZFS inherit -r $prop >/dev/null 2>&1"
/freebsd/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dproperties.shlib43 # 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 …]

12345678910>>...13