Home
last modified time | relevance | path

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

12345678910>>...14

/src/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 …]
/src/usr.sbin/bhyve/aarch64/
H A Dfdt.c46 #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)
179 void *fdt, *prop; in fdt_add_gic() local
194 fdt_property_placeholder(fdt, "reg", 4 * sizeof(uint64_t), &prop); in fdt_add_gic()
196 SET_PROP_U64(prop, 0, dist_base); in fdt_add_gic()
197 SET_PROP_U64(prop, 1, dist_size); in fdt_add_gic()
199 SET_PROP_U64(prop, 2, redist_base); in fdt_add_gic()
200 SET_PROP_U64(prop, 3, redist_size); in fdt_add_gic()
[all …]
/src/usr.sbin/bhyve/riscv/
H A Dfdt.c53 #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 …]
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_set/
H A Dzfs_set_common.kshlib53 typeset prop=$2
60 [[ -n $prop ]] && old_value=$(get_prop $prop $dataset)
63 [[ -z $prop || -z $dataset ]] && \
66 log_must zfs set $prop=$expect_value $dataset
71 [[ -n $prop ]] && cur_value=$(get_prop $prop $dataset)
73 case $prop in
77 log_fail "The '$dataset' '$prop' value" \
80 log_fail "The '$dataset' '$prop' value '$cur_value'" \
86 log_fail "The '$dataset' '$prop' value '$cur_value'" \
93 log_mustnot zfs set $prop=$expect_value $dataset
[all …]
/src/sys/contrib/openzfs/module/zcommon/
H A Dzprop_common.c98 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()
115 pd->pd_propnum = prop; in zprop_register_impl()
135 zprop_register_string(int prop, const char *name, const char *def, in zprop_register_string() argument
139 zprop_register_impl(prop, name, PROP_TYPE_STRING, 0, def, attr, in zprop_register_string()
146 zprop_register_number(int prop, const char *name, uint64_t def, in zprop_register_number() argument
151 zprop_register_impl(prop, name, PROP_TYPE_NUMBER, def, NULL, attr, in zprop_register_number()
157 zprop_register_index(int prop, const char *name, uint64_t def, in zprop_register_index() argument
162 zprop_register_impl(prop, name, PROP_TYPE_INDEX, def, NULL, attr, in zprop_register_index()
168 zprop_register_hidden(int prop, const char *name, zprop_type_t type, in zprop_register_hidden() argument
[all …]
H A Dzfs_prop.c813 zfs_prop_delegatable(zfs_prop_t prop) in zfs_prop_delegatable() argument
815 ASSERT3S(prop, >=, 0); in zfs_prop_delegatable()
816 ASSERT3S(prop, <, ZFS_NUM_PROPS); in zfs_prop_delegatable()
817 zprop_desc_t *pd = &zfs_prop_table[prop]; in zfs_prop_delegatable()
820 if (prop == ZFS_PROP_MLSLABEL) in zfs_prop_delegatable()
868 zfs_userquota_prop_t prop; in zfs_prop_userquota() local
870 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) { in zfs_prop_userquota()
871 if (strncmp(name, zfs_userquota_prop_prefixes[prop], in zfs_prop_userquota()
872 strlen(zfs_userquota_prop_prefixes[prop])) == 0) { in zfs_prop_userquota()
899 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.c217 zpool_prop_to_name(zpool_prop_t prop) in zpool_prop_to_name() argument
219 return (zpool_prop_table[prop].pd_name); in zpool_prop_to_name()
223 zpool_prop_get_type(zpool_prop_t prop) in zpool_prop_get_type() argument
225 return (zpool_prop_table[prop].pd_proptype); in zpool_prop_get_type()
229 zpool_prop_readonly(zpool_prop_t prop) in zpool_prop_readonly() argument
231 return (zpool_prop_table[prop].pd_attr == PROP_READONLY); in zpool_prop_readonly()
235 zpool_prop_setonce(zpool_prop_t prop) in zpool_prop_setonce() argument
237 return (zpool_prop_table[prop].pd_attr == PROP_ONETIME); in zpool_prop_setonce()
241 zpool_prop_default_string(zpool_prop_t prop) in zpool_prop_default_string() argument
243 return (zpool_prop_table[prop].pd_strdefault); in zpool_prop_default_string()
[all …]
/src/crypto/openssl/crypto/property/
H A Dproperty_query.c36 OSSL_PROPERTY_TYPE ossl_property_get_type(const OSSL_PROPERTY_DEFINITION *prop) in ossl_property_get_type() argument
38 return prop->type; in ossl_property_get_type()
42 const OSSL_PROPERTY_DEFINITION *prop) in ossl_property_get_string_value() argument
46 if (prop != NULL && prop->type == OSSL_PROPERTY_TYPE_STRING) in ossl_property_get_string_value()
47 value = ossl_property_value_str(libctx, prop->v.str_val); in ossl_property_get_string_value()
51 int64_t ossl_property_get_number_value(const OSSL_PROPERTY_DEFINITION *prop) in ossl_property_get_number_value() argument
55 if (prop != NULL && prop->type == OSSL_PROPERTY_TYPE_NUMBER) in ossl_property_get_number_value()
56 value = prop->v.int_val; in ossl_property_get_number_value()
69 const OSSL_PROPERTY_DEFINITION *prop; in ossl_property_is_enabled() local
71 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() local
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->name_idx == 0) { in ossl_parse_property()
375 if (!parse_value(ctx, &s, prop, 1)) { in ossl_parse_property()
382 prop->type = OSSL_PROPERTY_TYPE_STRING; in ossl_parse_property()
[all …]
H A Ddefn_cache.c27 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()
67 OSSL_PROPERTY_LIST *ossl_prop_defn_get(OSSL_LIB_CTX *ctx, const char *prop) in ossl_prop_defn_get() argument
77 elem.prop = prop; in ossl_prop_defn_get()
90 int ossl_prop_defn_set(OSSL_LIB_CTX *ctx, const char *prop, in ossl_prop_defn_set() argument
103 if (prop == NULL) in ossl_prop_defn_set()
108 elem.prop = prop; in ossl_prop_defn_set()
119 len = strlen(prop); in ossl_prop_defn_set()
122 p->prop = p->body; in ossl_prop_defn_set()
[all …]
/src/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 …]
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/inheritance/
H A Dinherit.kshlib38 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"\
98 typeset prop=$1
102 zfs set $prop=$prop_val $dataset
[all …]
H A Dinherit_001_pos.ksh103 if [[ ${prop[i]} == "recordsize" ]]; then
106 if [[ ${prop[i]} == "mountpoint" ]]; then
107 set_n_verify_prop ${prop[i]} \
110 set_n_verify_prop ${prop[i]} \
137 [[ ${prop[idx]} == "recordsize" ]] && break
222 typeset prop=$1
231 prop_val=`get_prop $prop $dataset`
234 if [[ $prop == "mountpoint" ]]; then
246 exp_val=`get_prop $prop $src`
256 if [[ $prop != "aclinherit" || \
[all …]
/src/usr.sbin/moused/moused/
H A Dutil.c171 parse_dimension_property(const char *prop, size_t *w, size_t *h) in parse_dimension_property() argument
175 if (!prop) in parse_dimension_property()
178 if (sscanf(prop, "%dx%d", &x, &y) != 2) in parse_dimension_property()
200 parse_range_property(const char *prop, int *hi, int *lo) in parse_range_property() argument
204 if (!prop) in parse_range_property()
207 if (streq(prop, "none")) { in parse_range_property()
213 if (sscanf(prop, "%d:%d", &first, &second) != 2) in parse_range_property()
226 parse_boolean_property(const char *prop, bool *b) in parse_boolean_property() argument
228 if (!prop) in parse_boolean_property()
231 if (streq(prop, "1")) in parse_boolean_property()
[all …]
/src/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 …]
/src/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 …]
/src/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 …]
/src/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 …]
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/channel_program/synctask_core/
H A Dtst.get_string_props.zcp24 -- prop filesystem snapshot clone
49 function match(n, prop, ans, src, expected)
50 if ((prop == 'clones') or (prop == 'redact_snaps')) then
57 for prop, expected in pairs(props) do
58 ans, src = zfs.get_prop(fs, prop)
59 if not (match(1, prop, ans, src, expected)) then
60 fs_fails[prop] = {ans, src}
63 ans, src = zfs.get_prop(snap, prop)
64 if not (match(2, prop, ans, src, expected)) then
65 snap_fails[prop] = {ans, src}
[all …]
/src/sys/contrib/openzfs/tests/zfs-tests/tests/functional/cli_root/zfs_inherit/
H A Dzfs_inherit_002_neg.ksh76 for prop in ${props[@]}; do
77 log_mustnot eval "zfs inherit $opt $prop $ds \
83 for prop in "${illprops[@]}"; do
84 log_mustnot eval "zfs inherit $prop $ds >/dev/null 2>&1"
85 log_mustnot eval "zfs inherit -r $prop $ds >/dev/null 2>&1"
102 for prop in ${props[@]}; do
103 log_mustnot eval "zfs inherit $prop >/dev/null 2>&1"
104 log_mustnot eval "zfs inherit -r $prop >/dev/null 2>&1"
/src/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 …]
/src/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()
/src/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"
/src/sys/contrib/openzfs/tests/zfs-tests/include/
H A Dproperties.shlib44 # Given the 'prop' passed in, return 'num_vals' elements of the corresponding
51 typeset prop=$1
55 [[ -z $prop || -z $num_vals || -z $first ]] && \
60 typeset prop_vals_var=${prop}_prop_vals
64 log_fail "get_rand_prop_vals: bad prop $prop"
93 typeset prop=$2
95 typeset val=$(get_prop $prop $ds)
99 log_must zfs set $prop=$newval $ds
105 typeset prop
107 for prop in "${binary_props[@]}"; do
[all …]

12345678910>>...14