| /freebsd-11-stable/sys/cddl/contrib/opensolaris/common/zfs/ |
| HD | zprop_common.c | 71 zprop_register_impl(int prop, const char *name, zprop_type_t type, in zprop_register_impl() argument 79 pd = &prop_tbl[prop]; in zprop_register_impl() 86 pd->pd_propnum = prop; in zprop_register_impl() 103 zprop_register_string(int prop, const char *name, const char *def, in zprop_register_string() argument 107 zprop_register_impl(prop, name, PROP_TYPE_STRING, 0, def, attr, in zprop_register_string() 113 zprop_register_number(int prop, const char *name, uint64_t def, in zprop_register_number() argument 117 zprop_register_impl(prop, name, PROP_TYPE_NUMBER, def, NULL, attr, in zprop_register_number() 122 zprop_register_index(int prop, const char *name, uint64_t def, in zprop_register_index() argument 126 zprop_register_impl(prop, name, PROP_TYPE_INDEX, def, NULL, attr, in zprop_register_index() 131 zprop_register_hidden(int prop, const char *name, zprop_type_t type, in zprop_register_hidden() argument [all …]
|
| HD | zfs_prop.c | 471 zfs_prop_delegatable(zfs_prop_t prop) in zfs_prop_delegatable() argument 473 zprop_desc_t *pd = &zfs_prop_table[prop]; in zfs_prop_delegatable() 476 if (prop == ZFS_PROP_MLSLABEL) in zfs_prop_delegatable() 535 zfs_userquota_prop_t prop; in zfs_prop_userquota() local 537 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) { in zfs_prop_userquota() 538 if (strncmp(name, zfs_userquota_prop_prefixes[prop], in zfs_prop_userquota() 539 strlen(zfs_userquota_prop_prefixes[prop])) == 0) { in zfs_prop_userquota() 564 zfs_prop_string_to_index(zfs_prop_t prop, const char *string, uint64_t *index) in zfs_prop_string_to_index() argument 566 return (zprop_string_to_index(prop, string, index, ZFS_TYPE_DATASET)); in zfs_prop_string_to_index() 570 zfs_prop_index_to_string(zfs_prop_t prop, uint64_t index, const char **string) in zfs_prop_index_to_string() argument [all …]
|
| HD | zpool_prop.c | 157 zpool_prop_to_name(zpool_prop_t prop) in zpool_prop_to_name() argument 159 return (zpool_prop_table[prop].pd_name); in zpool_prop_to_name() 163 zpool_prop_get_type(zpool_prop_t prop) in zpool_prop_get_type() argument 165 return (zpool_prop_table[prop].pd_proptype); in zpool_prop_get_type() 169 zpool_prop_readonly(zpool_prop_t prop) in zpool_prop_readonly() argument 171 return (zpool_prop_table[prop].pd_attr == PROP_READONLY); in zpool_prop_readonly() 175 zpool_prop_default_string(zpool_prop_t prop) in zpool_prop_default_string() argument 177 return (zpool_prop_table[prop].pd_strdefault); in zpool_prop_default_string() 181 zpool_prop_default_numeric(zpool_prop_t prop) in zpool_prop_default_numeric() argument 183 return (zpool_prop_table[prop].pd_numdefault); in zpool_prop_default_numeric() [all …]
|
| /freebsd-11-stable/contrib/dtc/ |
| HD | checks.c | 170 struct property *prop; in check_is_string() local 173 prop = get_property(node, propname); in check_is_string() 174 if (!prop) in check_is_string() 177 if (!data_is_one_string(prop->val)) in check_is_string() 189 struct property *prop; in check_is_cell() local 192 prop = get_property(node, propname); in check_is_cell() 193 if (!prop) in check_is_cell() 196 if (prop->val.len != sizeof(cell_t)) in check_is_cell() 227 struct property *prop, *prop2; in check_duplicate_property_names() local 229 for_each_property(node, prop) { in check_duplicate_property_names() [all …]
|
| HD | livetree.c | 227 void add_property(struct node *node, struct property *prop) in add_property() argument 231 prop->next = NULL; in add_property() 237 *p = prop; in add_property() 242 struct property *prop = node->proplist; in delete_property_by_name() local 244 while (prop) { in delete_property_by_name() 245 if (streq(prop->name, name)) { in delete_property_by_name() 246 delete_property(prop); in delete_property_by_name() 249 prop = prop->next; in delete_property_by_name() 253 void delete_property(struct property *prop) in delete_property() argument 255 prop->deleted = 1; in delete_property() [all …]
|
| HD | treesource.c | 195 static void write_propval(FILE *f, struct property *prop) in write_propval() argument 197 int len = prop->val.len; in write_propval() 198 const char *p = prop->val.val; in write_propval() 199 struct marker *m = prop->val.markers; in write_propval() 217 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in write_propval() 226 write_propval_string(f, prop->val); in write_propval() 228 write_propval_cells(f, prop->val); in write_propval() 230 write_propval_bytes(f, prop->val); in write_propval() 238 struct property *prop; in write_tree_source_node() local 250 for_each_property(tree, prop) { in write_tree_source_node() [all …]
|
| HD | fdtget.c | 126 int prop; in list_properties() local 128 prop = fdt_first_property_offset(blob, node); in list_properties() 131 if (prop < 0) in list_properties() 132 return prop == -FDT_ERR_NOTFOUND ? 0 : prop; in list_properties() 133 data = fdt_get_property_by_offset(blob, prop, NULL); in list_properties() 137 prop = fdt_next_property_offset(blob, prop); in list_properties() 254 const char *prop; in do_fdtget() local 273 prop = args_per_step == 1 ? NULL : arg[i + 1]; in do_fdtget() 275 if (show_data_for_item(blob, disp, node, prop)) { in do_fdtget()
|
| /freebsd-11-stable/sys/dev/drm2/i915/ |
| HD | intel_modes.c | 87 struct drm_property *prop; in intel_attach_force_audio_property() local 89 prop = dev_priv->force_audio_property; in intel_attach_force_audio_property() 90 if (prop == NULL) { in intel_attach_force_audio_property() 91 prop = drm_property_create_enum(dev, 0, in intel_attach_force_audio_property() 95 if (prop == NULL) in intel_attach_force_audio_property() 98 dev_priv->force_audio_property = prop; in intel_attach_force_audio_property() 100 drm_object_attach_property(&connector->base, prop, 0); in intel_attach_force_audio_property() 113 struct drm_property *prop; in intel_attach_broadcast_rgb_property() local 115 prop = dev_priv->broadcast_rgb_property; in intel_attach_broadcast_rgb_property() 116 if (prop == NULL) { in intel_attach_broadcast_rgb_property() [all …]
|
| /freebsd-11-stable/usr.sbin/eeprom/ |
| HD | ofw_options.c | 79 ofwo_printprop(const char *prop, const char* buf, int buflen) in ofwo_printprop() argument 82 printf("%s: %.*s\n", prop, buflen, buf); in ofwo_printprop() 203 ofwo_setstr(int fd, const void *buf, int buflen, const char *prop, in ofwo_setstr() argument 215 ofw_setprop(fd, optnode, prop, val, strlen(val) + 1); in ofwo_setstr() 216 len = ofw_getprop_alloc(fd, optnode, prop, &pbuf, &pblen, 1); in ofwo_setstr() 230 len = ofw_setprop(fd, optnode, prop, oval, buflen + 1); in ofwo_setstr() 236 printf("%s: %.*s%s->%s%.*s\n", prop, buflen, (const char *)buf, in ofwo_setstr() 250 char prop[OFWO_MAXPROP + 1]; in ofwo_dump() local 257 for (nlen = ofw_firstprop(fd, optnode, prop, sizeof(prop)); nlen != 0; in ofwo_dump() 258 nlen = ofw_nextprop(fd, optnode, prop, prop, sizeof(prop))) { in ofwo_dump() [all …]
|
| /freebsd-11-stable/usr.sbin/mfiutil/ |
| HD | mfi_patrol.c | 66 patrol_get_props(int fd, struct mfi_pr_properties *prop) in patrol_get_props() argument 70 if (mfi_dcmd_command(fd, MFI_DCMD_PR_GET_PROPERTIES, prop, in patrol_get_props() 71 sizeof(*prop), NULL, 0, NULL) < 0) { in patrol_get_props() 82 struct mfi_pr_properties prop; in show_patrol() local 101 error = patrol_get_props(fd, &prop); in show_patrol() 107 switch (prop.op_mode) { in show_patrol() 118 printf("??? (%02x)\n", prop.op_mode); in show_patrol() 121 if (prop.op_mode == MFI_PR_OPMODE_AUTO) { in show_patrol() 122 if (at != 0 && prop.next_exec) in show_patrol() 124 prop.next_exec)); in show_patrol() [all …]
|
| /freebsd-11-stable/contrib/dtc/libfdt/ |
| HD | fdt_rw.c | 204 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 …]
|
| HD | fdt_ro.c | 276 const struct fdt_property *prop; in fdt_get_property_by_offset() local 284 prop = _fdt_offset_ptr(fdt, offset); in fdt_get_property_by_offset() 287 *lenp = fdt32_to_cpu(prop->len); in fdt_get_property_by_offset() 289 return prop; in fdt_get_property_by_offset() 300 const struct fdt_property *prop; in fdt_get_property_namelen() local 302 if (!(prop = fdt_get_property_by_offset(fdt, offset, lenp))) { in fdt_get_property_namelen() 306 if (_fdt_string_eq(fdt, fdt32_to_cpu(prop->nameoff), in fdt_get_property_namelen() 308 return prop; in fdt_get_property_namelen() 327 const struct fdt_property *prop; in fdt_getprop_namelen() local 329 prop = fdt_get_property_namelen(fdt, nodeoffset, name, namelen, lenp); in fdt_getprop_namelen() [all …]
|
| HD | fdt_sw.c | 225 struct fdt_property *prop; in fdt_property() local 234 prop = _fdt_grab_space(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); in fdt_property() 235 if (! prop) in fdt_property() 238 prop->tag = cpu_to_fdt32(FDT_PROP); in fdt_property() 239 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_property() 240 prop->len = cpu_to_fdt32(len); in fdt_property() 241 memcpy(prop->data, val, len); in fdt_property() 271 struct fdt_property *prop = in fdt_finish() local 275 nameoff = fdt32_to_cpu(prop->nameoff); in fdt_finish() 277 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_finish()
|
| /freebsd-11-stable/contrib/subversion/subversion/libsvn_subr/ |
| HD | properties.c | 207 svn_prop_t *prop, *newprop; in svn_categorize_props() local 210 prop = &APR_ARRAY_IDX(proplist, i, svn_prop_t); in svn_categorize_props() 211 kind = svn_property_kind2(prop->name); in svn_categorize_props() 234 prop->name); in svn_categorize_props() 238 newprop->name = prop->name; in svn_categorize_props() 239 newprop->value = prop->value; in svn_categorize_props() 344 svn_prop__members_dup(svn_prop_t *prop, apr_pool_t *pool) in svn_prop__members_dup() argument 346 if (prop->name) in svn_prop__members_dup() 347 prop->name = apr_pstrdup(pool, prop->name); in svn_prop__members_dup() 348 if (prop->value) in svn_prop__members_dup() [all …]
|
| /freebsd-11-stable/sys/contrib/libfdt/ |
| HD | fdt_rw.c | 204 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 …]
|
| HD | fdt_ro.c | 295 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 …]
|
| HD | fdt_sw.c | 225 struct fdt_property *prop; in fdt_property_placeholder() local 234 prop = fdt_grab_space_(fdt, sizeof(*prop) + FDT_TAGALIGN(len)); in fdt_property_placeholder() 235 if (! prop) in fdt_property_placeholder() 238 prop->tag = cpu_to_fdt32(FDT_PROP); in fdt_property_placeholder() 239 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_property_placeholder() 240 prop->len = cpu_to_fdt32(len); in fdt_property_placeholder() 241 *valp = prop->data; in fdt_property_placeholder() 283 struct fdt_property *prop = in fdt_finish() local 287 nameoff = fdt32_to_cpu(prop->nameoff); in fdt_finish() 289 prop->nameoff = cpu_to_fdt32(nameoff); in fdt_finish()
|
| /freebsd-11-stable/usr.sbin/ofwdump/ |
| HD | ofwdump.c | 54 const char *prop, int raw, int str); 147 char prop[32]; in ofw_dump_properties() local 149 for (nlen = ofw_firstprop(fd, n, prop, sizeof(prop)); nlen != 0; in ofw_dump_properties() 150 nlen = ofw_nextprop(fd, n, prop, prop, sizeof(prop))) in ofw_dump_properties() 151 ofw_dump_property(fd, n, level, prop, raw, str); in ofw_dump_properties() 155 ofw_dump_property(int fd, phandle_t n, int level, const char *prop, int raw, in ofw_dump_property() argument 164 len = ofw_getprop_alloc(fd, n, prop, &pbuf, &pblen, 1); in ofw_dump_property() 173 printf("%s:\n", prop); in ofw_dump_property() 211 ofw_dump_node(int fd, phandle_t n, int level, int rec, int prop, in ofw_dump_node() argument 228 if (prop) { in ofw_dump_node() [all …]
|
| /freebsd-11-stable/sys/arm/amlogic/aml8726/ |
| HD | aml8726_fb.c | 305 pcell_t prop; in aml8726_fb_attach() local 314 if (OF_getencprop(node, "width", &prop, sizeof(prop)) <= 0) { in aml8726_fb_attach() 318 if ((prop % 8) != 0) { in aml8726_fb_attach() 323 sc->info.fb_width = prop; in aml8726_fb_attach() 325 if (OF_getencprop(node, "height", &prop, sizeof(prop)) <= 0) { in aml8726_fb_attach() 329 sc->info.fb_height = prop; in aml8726_fb_attach() 331 if (OF_getencprop(node, "depth", &prop, sizeof(prop)) <= 0) { in aml8726_fb_attach() 335 if (prop != 24) { in aml8726_fb_attach() 340 sc->info.fb_depth = prop; in aml8726_fb_attach() 341 sc->info.fb_bpp = prop; in aml8726_fb_attach() [all …]
|
| HD | aml8726_clkmsr.c | 153 pcell_t prop; in aml8726_clkmsr_fixup_clk81() local 160 len = OF_getencprop(node, "clocks", &prop, sizeof(prop)); in aml8726_clkmsr_fixup_clk81() 161 if ((len / sizeof(prop)) != 1 || prop == 0 || in aml8726_clkmsr_fixup_clk81() 162 (clk_node = OF_node_from_xref(prop)) == 0) in aml8726_clkmsr_fixup_clk81() 165 len = OF_getencprop(clk_node, "clock-frequency", &prop, sizeof(prop)); in aml8726_clkmsr_fixup_clk81() 166 if ((len / sizeof(prop)) != 1 || prop != 0) in aml8726_clkmsr_fixup_clk81()
|
| HD | aml8726_mmc.c | 117 pcell_t prop; in aml8726_mmc_clk() local 121 len = OF_getencprop(node, "clocks", &prop, sizeof(prop)); in aml8726_mmc_clk() 122 if ((len / sizeof(prop)) != 1 || prop == 0 || in aml8726_mmc_clk() 123 (clk_node = OF_node_from_xref(prop)) == 0) in aml8726_mmc_clk() 126 len = OF_getencprop(clk_node, "clock-frequency", &prop, sizeof(prop)); in aml8726_mmc_clk() 127 if ((len / sizeof(prop)) != 1 || prop == 0) in aml8726_mmc_clk() 130 return ((unsigned int)prop); in aml8726_mmc_clk() 560 pcell_t prop[3]; in aml8726_mmc_attach() local 581 len = OF_getencprop(node, "pinctrl-0", prop, sizeof(prop)); in aml8726_mmc_attach() 583 if ((len / sizeof(prop[0])) != 1 || prop[0] == 0) { in aml8726_mmc_attach() [all …]
|
| HD | aml8726_usb_phy-m6.c | 141 pcell_t *prop; in aml8726_usb_phy_attach() local 172 3 * sizeof(pcell_t), (void **)&prop); in aml8726_usb_phy_attach() 180 sc->pwr_en[i].dev = OF_device_from_xref(prop[i * 3]); in aml8726_usb_phy_attach() 181 sc->pwr_en[i].pin = prop[i * 3 + 1]; in aml8726_usb_phy_attach() 182 sc->pwr_en[i].pol = prop[i * 3 + 2]; in aml8726_usb_phy_attach() 190 OF_prop_free(prop); in aml8726_usb_phy_attach() 193 3 * sizeof(pcell_t), (void **)&prop); in aml8726_usb_phy_attach() 195 sc->hub_rst.dev = OF_device_from_xref(prop[0]); in aml8726_usb_phy_attach() 196 sc->hub_rst.pin = prop[1]; in aml8726_usb_phy_attach() 197 sc->hub_rst.pol = prop[2]; in aml8726_usb_phy_attach() [all …]
|
| /freebsd-11-stable/sys/dev/ofw/ |
| HD | ofw_fdt.c | 210 const void *prop; in ofw_fdt_getproplen() local 218 prop = fdt_getprop(fdtp, offset, propname, &len); in ofw_fdt_getproplen() 220 if (prop == NULL && strcmp(propname, "name") == 0) { in ofw_fdt_getproplen() 226 if (prop == NULL && offset == fdt_path_offset(fdtp, "/chosen")) { in ofw_fdt_getproplen() 233 if (prop == NULL) in ofw_fdt_getproplen() 244 const void *prop; in ofw_fdt_getprop() local 253 prop = fdt_getprop(fdtp, offset, propname, &len); in ofw_fdt_getprop() 255 if (prop == NULL && strcmp(propname, "name") == 0) { in ofw_fdt_getprop() 264 if (prop == NULL && offset == fdt_path_offset(fdtp, "/chosen")) { in ofw_fdt_getprop() 268 prop = &cpuid; in ofw_fdt_getprop() [all …]
|
| HD | openpromio.c | 100 char *prop; in openprom_ioctl() local 107 prop = buf = NULL; in openprom_ioctl() 153 prop = malloc(len, M_TEMP, M_WAITOK | M_ZERO); in openprom_ioctl() 154 if (prop == NULL) { in openprom_ioctl() 158 error = copyinstr(&oprom->oprom_array, prop, len, &done); in openprom_ioctl() 169 proplen = OF_getproplen(node, prop); in openprom_ioctl() 174 error = OF_getprop(node, prop, buf, proplen); in openprom_ioctl() 177 error = OF_nextprop(node, prop, buf, OPROMMAXPARAM); in openprom_ioctl() 195 if (prop != NULL) in openprom_ioctl() 196 free(prop, M_TEMP); in openprom_ioctl()
|
| /freebsd-11-stable/cddl/contrib/opensolaris/lib/libzfs/common/ |
| HD | libzfs_dataset.c | 971 zfs_prop_t prop; in zfs_valid_proplist() local 989 prop = zfs_name_to_prop(propname); in zfs_valid_proplist() 990 if (prop == ZPROP_INVAL && zfs_prop_user(propname)) { in zfs_valid_proplist() 1029 if (prop == ZPROP_INVAL && zfs_prop_userquota(propname)) { in zfs_valid_proplist() 1099 } else if (prop == ZPROP_INVAL && zfs_prop_written(propname)) { in zfs_valid_proplist() 1107 if (prop == ZPROP_INVAL) { in zfs_valid_proplist() 1114 if (!zfs_prop_valid_for_type(prop, type)) { in zfs_valid_proplist() 1122 if (zfs_prop_readonly(prop) && in zfs_valid_proplist() 1123 (!zfs_prop_setonce(prop) || zhp != NULL)) { in zfs_valid_proplist() 1131 if (zprop_parse_value(hdl, elem, prop, type, ret, in zfs_valid_proplist() [all …]
|