/freebsd-9.3-release/sys/cddl/contrib/opensolaris/uts/common/fs/zfs/sys/ |
H A D | spa_boot.h | 39 extern char *spa_get_bootprop(char *prop); 40 extern void spa_free_bootprop(char *prop);
|
/freebsd-9.3-release/usr.sbin/eeprom/ |
H A D | ofw_options.h | 32 int ofwo_action(const char *prop, const char *val);
|
H A D | ofw_options.c | 77 ofwo_printprop(const char *prop, const char* buf, int buflen) argument 80 printf("%s: %.*s\n", prop, buflen, buf); 201 ofwo_setstr(int fd, const void *buf, int buflen, const char *prop, argument 213 ofw_setprop(fd, optnode, prop, val, strlen(val) + 1); 214 len = ofw_getprop_alloc(fd, optnode, prop, &pbuf, &pblen, 1); 228 len = ofw_setprop(fd, optnode, prop, oval, buflen + 1); 234 printf("%s: %.*s%s->%s%.*s\n", prop, buflen, (const char *)buf, 248 char prop[OFWO_MAXPROP + 1]; local 255 for (nlen = ofw_firstprop(fd, optnode, prop, sizeof(prop)); nle 276 ofwo_action(const char *prop, const char *val) argument [all...] |
/freebsd-9.3-release/sys/cddl/contrib/opensolaris/common/zfs/ |
H A D | zprop_common.c | 71 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 D | zpool_prop.c | 142 zpool_prop_to_name(zpool_prop_t prop) argument 144 return (zpool_prop_table[prop].pd_name); 148 zpool_prop_get_type(zpool_prop_t prop) argument 150 return (zpool_prop_table[prop].pd_proptype); 154 zpool_prop_readonly(zpool_prop_t prop) argument 156 return (zpool_prop_table[prop].pd_attr == PROP_READONLY); 160 zpool_prop_default_string(zpool_prop_t prop) argument 162 return (zpool_prop_table[prop].pd_strdefault); 166 zpool_prop_default_numeric(zpool_prop_t prop) argument 168 return (zpool_prop_table[prop] 192 zpool_prop_string_to_index(zpool_prop_t prop, const char *string, uint64_t *index) argument 199 zpool_prop_index_to_string(zpool_prop_t prop, uint64_t index, const char **string) argument 206 zpool_prop_random_value(zpool_prop_t prop, uint64_t seed) argument 214 zpool_prop_values(zpool_prop_t prop) argument 220 zpool_prop_column_name(zpool_prop_t prop) argument 226 zpool_prop_align_right(zpool_prop_t prop) argument [all...] |
H A D | zfs_prop.c | 423 zfs_prop_delegatable(zfs_prop_t prop) argument 425 zprop_desc_t *pd = &zfs_prop_table[prop]; 428 if (prop == ZFS_PROP_MLSLABEL) 487 zfs_userquota_prop_t prop; local 489 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) { 490 if (strncmp(name, zfs_userquota_prop_prefixes[prop], 491 strlen(zfs_userquota_prop_prefixes[prop])) == 0) { 516 zfs_prop_string_to_index(zfs_prop_t prop, cons argument 522 zfs_prop_index_to_string(zfs_prop_t prop, uint64_t index, const char **string) argument 528 zfs_prop_random_value(zfs_prop_t prop, uint64_t seed) argument 537 zfs_prop_valid_for_type(int prop, zfs_type_t types) argument 543 zfs_prop_get_type(zfs_prop_t prop) argument 552 zfs_prop_readonly(zfs_prop_t prop) argument 562 zfs_prop_setonce(zfs_prop_t prop) argument 568 zfs_prop_default_string(zfs_prop_t prop) argument 574 zfs_prop_default_numeric(zfs_prop_t prop) argument 584 zfs_prop_to_name(zfs_prop_t prop) argument 593 zfs_prop_inheritable(zfs_prop_t prop) argument 606 zfs_prop_values(zfs_prop_t prop) argument 617 zfs_prop_is_string(zfs_prop_t prop) argument 628 zfs_prop_column_name(zfs_prop_t prop) argument 638 zfs_prop_align_right(zfs_prop_t prop) argument [all...] |
H A D | zfs_deleg.c | 83 zfs_prop_t prop; local 90 prop = zfs_name_to_prop(perm); 91 if (prop != ZPROP_INVAL && zfs_prop_delegatable(prop)) 92 return (zfs_prop_to_name(prop));
|
/freebsd-9.3-release/sys/dev/drm2/i915/ |
H A D | intel_modes.c | 102 struct drm_property *prop; local 104 prop = dev_priv->force_audio_property; 105 if (prop == NULL) { 106 prop = drm_property_create_enum(dev, 0, 110 if (prop == NULL) 113 dev_priv->force_audio_property = prop; 115 drm_connector_attach_property(connector, prop, 0); 128 struct drm_property *prop; local 130 prop = dev_priv->broadcast_rgb_property; 131 if (prop [all...] |
/freebsd-9.3-release/contrib/dtc/ |
H A D | checks.c | 52 struct node *node, struct property *prop); 117 struct property *prop; local 124 for_each_property(node, prop) { 125 TRACE(c, "%s\t'%s'", node->fullpath, prop->name); 126 c->prop_fn(c, dt, node, prop); 182 struct property *prop; local 185 prop = get_property(node, propname); 186 if (!prop) 189 if (!data_is_one_string(prop->val)) 199 struct property *prop; local 235 struct property *prop, *prop2; local 270 check_property_name_chars(struct check *c, struct node *dt, struct node *node, struct property *prop) argument 281 check_explicit_phandles(struct check *c, struct node *root, struct node *node, struct property *prop) argument 343 struct property **pp, *prop = NULL; local 374 fixup_phandle_references(struct check *c, struct node *dt, struct node *node, struct property *prop) argument 398 fixup_path_references(struct check *c, struct node *dt, struct node *node, struct property *prop) argument 437 struct property *prop; local 461 struct property *prop; local 490 struct property *prop; local 559 struct property *prop; local [all...] |
H A D | treesource.c | 193 static void write_propval(FILE *f, struct property *prop) argument 195 int len = prop->val.len; 196 const char *p = prop->val.val; 197 struct marker *m = prop->val.markers; 215 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) 224 write_propval_string(f, prop->val); 226 write_propval_cells(f, prop->val); 228 write_propval_bytes(f, prop->val); 236 struct property *prop; local 247 for_each_property(tree, prop) { [all...] |
H A D | fstree.c | 52 struct property *prop; local 61 prop = build_property(xstrdup(de->d_name), 65 add_property(tree, prop);
|
H A D | livetree.c | 100 void add_property(struct node *node, struct property *prop) argument 104 prop->next = NULL; 110 *p = prop; 196 struct property *prop; local 198 for_each_property(node, prop) 199 if (streq(prop->name, propname)) 200 return prop; 205 cell_t propval_cell(struct property *prop) argument 207 assert(prop->val.len == sizeof(cell_t)); 208 return fdt32_to_cpu(*((cell_t *)prop [all...] |
/freebsd-9.3-release/usr.sbin/mfiutil/ |
H A D | mfi_patrol.c | 64 patrol_get_props(int fd, struct mfi_pr_properties *prop) argument 68 if (mfi_dcmd_command(fd, MFI_DCMD_PR_GET_PROPERTIES, prop, 69 sizeof(*prop), NULL, 0, NULL) < 0) { 80 struct mfi_pr_properties prop; local 99 error = patrol_get_props(fd, &prop); 105 switch (prop.op_mode) { 116 printf("??? (%02x)\n", prop.op_mode); 119 if (prop.op_mode == MFI_PR_OPMODE_AUTO) { 120 if (at != 0 && prop.next_exec) 122 prop 250 struct mfi_pr_properties prop; local [all...] |
/freebsd-9.3-release/contrib/dtc/libfdt/ |
H A D | fdt_wip.c | 85 struct fdt_property *prop; local 88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); 89 if (! prop) 92 _fdt_nop_region(prop, len + sizeof(*prop));
|
H A D | fdt_rw.c | 206 int len, struct fdt_property **prop) 211 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); 212 if (! (*prop)) 215 if ((err = _fdt_splice_struct(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), 219 (*prop)->len = cpu_to_fdt32(len); 224 int len, struct fdt_property **prop) 238 *prop = _fdt_offset_ptr_w(fdt, nextoffset); 239 proplen = sizeof(**prop) + FDT_TAGALIGN(len); 241 err = _fdt_splice_struct(fdt, *prop, 0, proplen); 245 (*prop) 205 _fdt_resize_property(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument 223 _fdt_add_property(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument 277 struct fdt_property *prop; local 294 struct fdt_property *prop; local [all...] |
H A D | fdt_sw.c | 193 struct fdt_property *prop; local 202 prop = _fdt_grab_space(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); 203 if (! prop) 206 prop->tag = cpu_to_fdt32(FDT_PROP); 207 prop->nameoff = cpu_to_fdt32(nameoff); 208 prop->len = cpu_to_fdt32(len); 209 memcpy(prop->data, val, len); 239 struct fdt_property *prop = local 243 nameoff = fdt32_to_cpu(prop [all...] |
H A D | fdt_ro.c | 203 const struct fdt_property *prop; local 226 prop = _fdt_offset_ptr(fdt, offset); 227 if (_fdt_string_eq(fdt, fdt32_to_cpu(prop->nameoff), 231 *lenp = fdt32_to_cpu(prop->len); 233 return prop; 257 const struct fdt_property *prop; local 259 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); 260 if (! prop) 263 return prop->data; 488 const void *prop; local [all...] |
/freebsd-9.3-release/sys/contrib/libfdt/ |
H A D | fdt_wip.c | 85 struct fdt_property *prop; local 88 prop = fdt_get_property_w(fdt, nodeoffset, name, &len); 89 if (! prop) 92 _fdt_nop_region(prop, len + sizeof(*prop));
|
H A D | fdt_rw.c | 206 int len, struct fdt_property **prop) 211 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); 212 if (! (*prop)) 215 if ((err = _fdt_splice_struct(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), 219 (*prop)->len = cpu_to_fdt32(len); 224 int len, struct fdt_property **prop) 238 *prop = _fdt_offset_ptr_w(fdt, nextoffset); 239 proplen = sizeof(**prop) + FDT_TAGALIGN(len); 241 err = _fdt_splice_struct(fdt, *prop, 0, proplen); 245 (*prop) 205 _fdt_resize_property(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument 223 _fdt_add_property(void *fdt, int nodeoffset, const char *name, int len, struct fdt_property **prop) argument 277 struct fdt_property *prop; local 294 struct fdt_property *prop; local [all...] |
H A D | fdt_sw.c | 193 struct fdt_property *prop; local 202 prop = _fdt_grab_space(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); 203 if (! prop) 206 prop->tag = cpu_to_fdt32(FDT_PROP); 207 prop->nameoff = cpu_to_fdt32(nameoff); 208 prop->len = cpu_to_fdt32(len); 209 memcpy(prop->data, val, len); 239 struct fdt_property *prop = local 243 nameoff = fdt32_to_cpu(prop [all...] |
H A D | fdt_ro.c | 203 const struct fdt_property *prop; local 226 prop = _fdt_offset_ptr(fdt, offset); 227 if (_fdt_string_eq(fdt, fdt32_to_cpu(prop->nameoff), 231 *lenp = fdt32_to_cpu(prop->len); 233 return prop; 257 const struct fdt_property *prop; local 259 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); 260 if (! prop) 263 return prop->data; 488 const void *prop; local [all...] |
/freebsd-9.3-release/sys/dev/ofw/ |
H A D | openpromio.c | 100 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 D | ofw_fdt.c | 218 * 'phandle' prop, so that ofw I/F consumers have a uniform way of 234 const struct fdt_property *prop; local 248 prop = fdt_get_property(fdtp, offset, propname, &len); 258 const void *prop; local 275 prop = fdt_getprop(fdtp, offset, propname, &len); 276 if (prop == NULL) 281 bcopy(prop, buf, len); 288 const struct fdt_property *prop; local 296 /* Find the next prop */ 306 prop 328 const struct fdt_property *prop; local [all...] |
/freebsd-9.3-release/usr.sbin/ofwdump/ |
H A D | ofwdump.c | 150 char prop[32]; local 153 for (nlen = ofw_firstprop(fd, n, prop, sizeof(prop)); nlen != 0; 154 nlen = ofw_nextprop(fd, n, prop, prop, sizeof(prop))) { 155 if (pmatch != NULL && strcmp(pmatch, prop) != 0) 157 len = ofw_getprop_alloc(fd, n, prop, &pbuf, &pblen, 1); 166 printf("%s:\n", prop); 205 ofw_dump_node(int fd, phandle_t n, int level, int rec, int prop, argument 233 ofw_dump(int fd, const char *start, int rec, int prop, const char *pmatch, int raw, int str) argument [all...] |
/freebsd-9.3-release/cddl/contrib/opensolaris/lib/pyzfs/common/ |
H A D | userspace.py | 49 def skiptype(options, prop): 51 (field, isgroup) = props[prop] 103 def process_one_raw(acct, options, prop, elem): 105 information from this elem from Dataset.userspace(prop).""" 108 (field, isgroup) = props[prop] 217 for prop in props.keys(): 218 if skiptype(options, prop): 220 for elem in ds.userspace(prop): 221 process_one_raw(acct, options, prop, elem)
|