Searched refs:prop (Results 1 - 25 of 163) sorted by relevance

1234567

/freebsd-11-stable/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/
H A Dspa_boot.h39 extern char *spa_get_bootprop(char *prop);
40 extern void spa_free_bootprop(char *prop);
/freebsd-11-stable/usr.sbin/eeprom/
H A Dofw_options.h34 int ofwo_action(const char *prop, const char *val);
H A Dofw_options.c79 ofwo_printprop(const char *prop, const char* buf, int buflen) argument
82 printf("%s: %.*s\n", prop, buflen, buf);
203 ofwo_setstr(int fd, const void *buf, int buflen, const char *prop, argument
215 ofw_setprop(fd, optnode, prop, val, strlen(val) + 1);
216 len = ofw_getprop_alloc(fd, optnode, prop, &pbuf, &pblen, 1);
230 len = ofw_setprop(fd, optnode, prop, oval, buflen + 1);
236 printf("%s: %.*s%s->%s%.*s\n", prop, buflen, (const char *)buf,
250 char prop[OFWO_MAXPROP + 1]; local
257 for (nlen = ofw_firstprop(fd, optnode, prop, sizeof(prop)); nle
278 ofwo_action(const char *prop, const char *val) argument
[all...]
/freebsd-11-stable/sys/dev/drm2/i915/
H A Dintel_modes.c87 struct drm_property *prop; local
89 prop = dev_priv->force_audio_property;
90 if (prop == NULL) {
91 prop = drm_property_create_enum(dev, 0,
95 if (prop == NULL)
98 dev_priv->force_audio_property = prop;
100 drm_object_attach_property(&connector->base, prop, 0);
113 struct drm_property *prop; local
115 prop = dev_priv->broadcast_rgb_property;
116 if (prop
[all...]
/freebsd-11-stable/sys/cddl/contrib/opensolaris/common/zfs/
H A Dzprop_common.c71 zprop_register_impl(int prop, const char *name, zprop_type_t type, argument
79 pd = &prop_tbl[prop];
86 pd->pd_propnum = prop;
103 zprop_register_string(int prop, const char *name, const char *def, argument
107 zprop_register_impl(prop, name, PROP_TYPE_STRING, 0, def, attr,
113 zprop_register_number(int prop, const char *name, uint64_t def, argument
117 zprop_register_impl(prop, name, PROP_TYPE_NUMBER, def, NULL, attr,
122 zprop_register_index(int prop, const char *name, uint64_t def, argument
126 zprop_register_impl(prop, name, PROP_TYPE_INDEX, def, NULL, attr,
131 zprop_register_hidden(int prop, cons argument
169 int i, j, num_props, size, prop; local
242 zprop_name_to_prop_cb(int prop, void *cb_data) argument
256 int prop; local
269 zprop_string_to_index(int prop, const char *string, uint64_t *index, zfs_type_t type) argument
295 zprop_index_to_string(int prop, uint64_t index, const char **string, zfs_type_t type) argument
324 zprop_random_value(int prop, uint64_t seed, zfs_type_t type) argument
340 zprop_values(int prop, zfs_type_t type) argument
356 zprop_valid_for_type(int prop, zfs_type_t type) argument
375 zprop_width(int prop, boolean_t *fixed, zfs_type_t type) argument
[all...]
H A Dzpool_prop.c157 zpool_prop_to_name(zpool_prop_t prop) argument
159 return (zpool_prop_table[prop].pd_name);
163 zpool_prop_get_type(zpool_prop_t prop) argument
165 return (zpool_prop_table[prop].pd_proptype);
169 zpool_prop_readonly(zpool_prop_t prop) argument
171 return (zpool_prop_table[prop].pd_attr == PROP_READONLY);
175 zpool_prop_default_string(zpool_prop_t prop) argument
177 return (zpool_prop_table[prop].pd_strdefault);
181 zpool_prop_default_numeric(zpool_prop_t prop) argument
183 return (zpool_prop_table[prop]
207 zpool_prop_string_to_index(zpool_prop_t prop, const char *string, uint64_t *index) argument
214 zpool_prop_index_to_string(zpool_prop_t prop, uint64_t index, const char **string) argument
221 zpool_prop_random_value(zpool_prop_t prop, uint64_t seed) argument
229 zpool_prop_values(zpool_prop_t prop) argument
235 zpool_prop_column_name(zpool_prop_t prop) argument
241 zpool_prop_align_right(zpool_prop_t prop) argument
[all...]
H A Dzfs_prop.c471 zfs_prop_delegatable(zfs_prop_t prop) argument
473 zprop_desc_t *pd = &zfs_prop_table[prop];
476 if (prop == ZFS_PROP_MLSLABEL)
535 zfs_userquota_prop_t prop; local
537 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) {
538 if (strncmp(name, zfs_userquota_prop_prefixes[prop],
539 strlen(zfs_userquota_prop_prefixes[prop])) == 0) {
564 zfs_prop_string_to_index(zfs_prop_t prop, cons argument
570 zfs_prop_index_to_string(zfs_prop_t prop, uint64_t index, const char **string) argument
576 zfs_prop_random_value(zfs_prop_t prop, uint64_t seed) argument
585 zfs_prop_valid_for_type(int prop, zfs_type_t types) argument
591 zfs_prop_get_type(zfs_prop_t prop) argument
600 zfs_prop_readonly(zfs_prop_t prop) argument
610 zfs_prop_visible(zfs_prop_t prop) argument
619 zfs_prop_setonce(zfs_prop_t prop) argument
625 zfs_prop_default_string(zfs_prop_t prop) argument
631 zfs_prop_default_numeric(zfs_prop_t prop) argument
641 zfs_prop_to_name(zfs_prop_t prop) argument
650 zfs_prop_inheritable(zfs_prop_t prop) argument
663 zfs_prop_values(zfs_prop_t prop) argument
674 zfs_prop_is_string(zfs_prop_t prop) argument
685 zfs_prop_column_name(zfs_prop_t prop) argument
695 zfs_prop_align_right(zfs_prop_t prop) argument
[all...]
H A Dzfs_deleg.c85 zfs_prop_t prop; local
92 prop = zfs_name_to_prop(perm);
93 if (prop != ZPROP_INVAL && zfs_prop_delegatable(prop))
94 return (zfs_prop_to_name(prop));
/freebsd-11-stable/contrib/dtc/
H A Dchecks.c170 struct property *prop; local
173 prop = get_property(node, propname);
174 if (!prop)
177 if (!data_is_one_string(prop->val))
189 struct property *prop; local
192 prop = get_property(node, propname);
193 if (!prop)
196 if (prop->val.len != sizeof(cell_t))
227 struct property *prop, *prop2; local
229 for_each_property(node, prop) {
282 struct property *prop = get_property(node, "reg"); local
305 struct property *prop; local
321 struct property *prop; local
356 check_duplicate_label(struct check *c, struct dt_info *dti, const char *label, struct node *node, struct property *prop, struct marker *mark) argument
387 struct property *prop; local
408 struct property *prop; local
490 struct property **pp, *prop = NULL; local
525 struct property *prop; local
558 struct property *prop; local
597 struct property *prop; local
621 struct property *prop; local
650 struct property *prop; local
722 struct property *prop; local
[all...]
H A Dlivetree.c227 void add_property(struct node *node, struct property *prop) argument
231 prop->next = NULL;
237 *p = prop;
242 struct property *prop = node->proplist; local
244 while (prop) {
245 if (streq(prop->name, name)) {
246 delete_property(prop);
249 prop = prop->next;
253 void delete_property(struct property *prop) argument
288 struct property *prop; local
384 struct property *prop; local
393 propval_cell(struct property *prop) argument
402 struct property *prop; local
425 get_marker_label(struct node *tree, const char *label, struct node **node, struct property **prop) argument
657 struct property *prop, **tbl; local
815 struct property *prop; local
834 add_fixup_entry(struct dt_info *dti, struct node *fn, struct node *node, struct property *prop, struct marker *m) argument
860 struct property *prop; local
880 struct property *prop; local
899 add_local_fixup_entry(struct dt_info *dti, struct node *lfn, struct node *node, struct property *prop, struct marker *m, struct node *refnode) argument
941 struct property *prop; local
[all...]
H A Dtreesource.c195 static void write_propval(FILE *f, struct property *prop) argument
197 int len = prop->val.len;
198 const char *p = prop->val.val;
199 struct marker *m = prop->val.markers;
217 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0'))
226 write_propval_string(f, prop->val);
228 write_propval_cells(f, prop->val);
230 write_propval_bytes(f, prop->val);
238 struct property *prop; local
250 for_each_property(tree, prop) {
[all...]
H A Dfstree.c52 struct property *prop; local
61 prop = build_property(xstrdup(de->d_name),
64 add_property(tree, prop);
/freebsd-11-stable/usr.sbin/mfiutil/
H A Dmfi_patrol.c66 patrol_get_props(int fd, struct mfi_pr_properties *prop) argument
70 if (mfi_dcmd_command(fd, MFI_DCMD_PR_GET_PROPERTIES, prop,
71 sizeof(*prop), NULL, 0, NULL) < 0) {
82 struct mfi_pr_properties prop; local
101 error = patrol_get_props(fd, &prop);
107 switch (prop.op_mode) {
118 printf("??? (%02x)\n", prop.op_mode);
121 if (prop.op_mode == MFI_PR_OPMODE_AUTO) {
122 if (at != 0 && prop.next_exec)
124 prop
252 struct mfi_pr_properties prop; local
[all...]
/freebsd-11-stable/contrib/dtc/libfdt/
H A Dfdt_wip.c106 struct fdt_property *prop; local
109 prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
110 if (! prop)
113 _fdt_nop_region(prop, len + sizeof(*prop));
H A Dfdt_rw.c204 int len, struct fdt_property **prop)
209 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen);
210 if (! (*prop))
213 if ((err = _fdt_splice_struct(fdt, (*prop)->data, FDT_TAGALIGN(oldlen),
217 (*prop)->len = cpu_to_fdt32(len);
222 int len, struct fdt_property **prop)
236 *prop = _fdt_offset_ptr_w(fdt, nextoffset);
237 proplen = sizeof(**prop) + FDT_TAGALIGN(len);
239 err = _fdt_splice_struct(fdt, *prop, 0, proplen);
243 (*prop)
203 _fdt_resize_property(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
221 _fdt_add_property(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
275 struct fdt_property *prop; local
294 struct fdt_property *prop; local
320 struct fdt_property *prop; local
[all...]
H A Dfdt_ro.c276 const struct fdt_property *prop; local
284 prop = _fdt_offset_ptr(fdt, offset);
287 *lenp = fdt32_to_cpu(prop->len);
289 return prop;
300 const struct fdt_property *prop; local
302 if (!(prop = fdt_get_property_by_offset(fdt, offset, lenp))) {
306 if (_fdt_string_eq(fdt, fdt32_to_cpu(prop->nameoff),
308 return prop;
327 const struct fdt_property *prop; local
329 prop
339 const struct fdt_property *prop; local
670 const void *prop; local
[all...]
H A Dfdt_sw.c225 struct fdt_property *prop; local
234 prop = _fdt_grab_space(fdt, sizeof(*prop) + FDT_TAGALIGN(len));
235 if (! prop)
238 prop->tag = cpu_to_fdt32(FDT_PROP);
239 prop->nameoff = cpu_to_fdt32(nameoff);
240 prop->len = cpu_to_fdt32(len);
241 memcpy(prop->data, val, len);
271 struct fdt_property *prop = local
275 nameoff = fdt32_to_cpu(prop
[all...]
/freebsd-11-stable/sys/contrib/libfdt/
H A Dfdt_wip.c106 struct fdt_property *prop; local
109 prop = fdt_get_property_w(fdt, nodeoffset, name, &len);
110 if (!prop)
113 fdt_nop_region_(prop, len + sizeof(*prop));
H A Dfdt_rw.c204 int len, struct fdt_property **prop)
209 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen);
210 if (!*prop)
213 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen),
217 (*prop)->len = cpu_to_fdt32(len);
222 int len, struct fdt_property **prop)
236 *prop = fdt_offset_ptr_w_(fdt, nextoffset);
237 proplen = sizeof(**prop) + FDT_TAGALIGN(len);
239 err = fdt_splice_struct_(fdt, *prop, 0, proplen);
243 (*prop)
203 fdt_resize_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
221 fdt_add_property_(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument
275 struct fdt_property *prop; local
308 struct fdt_property *prop; local
334 struct fdt_property *prop; local
[all...]
/freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/
H A Dproperties.c208 svn_prop_t *prop, *newprop;
211 prop = &APR_ARRAY_IDX(proplist, i, svn_prop_t);
212 kind = svn_property_kind2(prop->name);
235 prop->name);
239 newprop->name = prop->name;
240 newprop->value = prop->value;
345 svn_prop__members_dup(svn_prop_t *prop, apr_pool_t *pool)
347 if (prop->name)
348 prop->name = apr_pstrdup(pool, prop
207 svn_prop_t *prop, *newprop; local
344 svn_prop__members_dup(svn_prop_t *prop, apr_pool_t *pool) argument
353 svn_prop_dup(const svn_prop_t *prop, apr_pool_t *pool) argument
391 svn_prop_t prop; local
414 void *prop; local
432 const svn_prop_t *prop = &APR_ARRAY_IDX(properties, i, svn_prop_t); local
[all...]
/freebsd-11-stable/usr.sbin/ofwdump/
H A Dofwdump.c54 const char *prop, int raw, int str);
147 char prop[32]; local
149 for (nlen = ofw_firstprop(fd, n, prop, sizeof(prop)); nlen != 0;
150 nlen = ofw_nextprop(fd, n, prop, prop, sizeof(prop)))
151 ofw_dump_property(fd, n, level, prop, raw, str);
155 ofw_dump_property(int fd, phandle_t n, int level, const char *prop, int raw, argument
164 len = ofw_getprop_alloc(fd, n, prop,
211 ofw_dump_node(int fd, phandle_t n, int level, int rec, int prop, const char *pmatch, int raw, int str) argument
243 ofw_dump(int fd, const char *start, int rec, int prop, const char *pmatch, int raw, int str) argument
[all...]
/freebsd-11-stable/sys/dev/ofw/
H A Dopenpromio.c100 char *prop; local
107 prop = buf = NULL;
153 prop = malloc(len, M_TEMP, M_WAITOK | M_ZERO);
154 if (prop == NULL) {
158 error = copyinstr(&oprom->oprom_array, prop, len, &done);
169 proplen = OF_getproplen(node, prop);
174 error = OF_getprop(node, prop, buf, proplen);
177 error = OF_nextprop(node, prop, buf, OPROMMAXPARAM);
195 if (prop != NULL)
196 free(prop, M_TEM
[all...]
H A Dofw_fdt.c210 const void *prop; local
218 prop = fdt_getprop(fdtp, offset, propname, &len);
220 if (prop == NULL && strcmp(propname, "name") == 0) {
226 if (prop == NULL && offset == fdt_path_offset(fdtp, "/chosen")) {
233 if (prop == NULL)
244 const void *prop; local
253 prop = fdt_getprop(fdtp, offset, propname, &len);
255 if (prop == NULL && strcmp(propname, "name") == 0) {
264 if (prop == NULL && offset == fdt_path_offset(fdtp, "/chosen")) {
268 prop
295 const void *prop; local
[all...]
/freebsd-11-stable/sys/arm/amlogic/aml8726/
H A Daml8726_machdep.c62 pcell_t freq, prop; local
77 len = OF_getencprop(node, "bus-frequency", &prop, sizeof(prop));
78 if ((len / sizeof(prop)) == 1 && prop == 0)
H A Daml8726_fb.c305 pcell_t prop; local
314 if (OF_getencprop(node, "width", &prop, sizeof(prop)) <= 0) {
318 if ((prop % 8) != 0) {
323 sc->info.fb_width = prop;
325 if (OF_getencprop(node, "height", &prop, sizeof(prop)) <= 0) {
329 sc->info.fb_height = prop;
331 if (OF_getencprop(node, "depth", &prop, sizeof(prop)) <
[all...]

Completed in 180 milliseconds

1234567