| /netbsd-src/usr.sbin/memswitch/ |
| H A D | methods.c | 98 fill_uchar(struct property *prop) in fill_uchar() argument 103 prop->current_value.byte[0] = current_values[prop->offset]; in fill_uchar() 104 prop->current_value.byte[1] = 0; in fill_uchar() 105 prop->current_value.byte[2] = 0; in fill_uchar() 106 prop->current_value.byte[3] = 0; in fill_uchar() 107 prop->value_valid = 1; in fill_uchar() 113 fill_ushort(struct property *prop) in fill_ushort() argument 118 prop->current_value.byte[0] = current_values[prop->offset]; in fill_ushort() 119 prop->current_value.byte[1] = current_values[prop->offset+1]; in fill_ushort() 120 prop->current_value.byte[2] = 0; in fill_ushort() [all …]
|
| /netbsd-src/external/gpl2/dtc/dist/ |
| H A D | checks.c | 65 struct property *prop, in check_msg() argument 76 if (prop && prop->srcpos) in check_msg() 77 pos = prop->srcpos; in check_msg() 95 if (prop) in check_msg() 96 xasprintf_append(&str, "%s:%s: ", node->fullpath, prop->name); in check_msg() 107 if (!prop && pos) { in check_msg() 128 #define FAIL_PROP(c, dti, node, prop, ...) \ argument 132 check_msg((c), dti, node, prop, __VA_ARGS__); \ 203 struct property *prop; in check_is_string() local 206 prop = get_property(node, propname); in check_is_string() [all …]
|
| H A D | livetree.c | 268 void add_property(struct node *node, struct property *prop) in add_property() argument 272 prop->next = NULL; in add_property() 278 *p = prop; in add_property() 283 struct property *prop = node->proplist; in delete_property_by_name() local 285 while (prop) { in delete_property_by_name() 286 if (streq(prop->name, name)) { in delete_property_by_name() 287 delete_property(prop); in delete_property_by_name() 290 prop = prop->next; in delete_property_by_name() 294 void delete_property(struct property *prop) in delete_property() argument 296 prop->deleted = 1; in delete_property() [all …]
|
| H A D | treesource.c | 165 static enum markertype guess_value_type(struct property *prop) in guess_value_type() argument 167 int len = prop->val.len; in guess_value_type() 168 const char *p = prop->val.val; in guess_value_type() 169 struct marker *m = prop->val.markers; in guess_value_type() 182 if ((m->offset > 0) && (prop->val.val[m->offset - 1] != '\0')) in guess_value_type() 198 static void write_propval(FILE *f, struct property *prop) in write_propval() argument 200 size_t len = prop->val.len; in write_propval() 201 struct marker *m = prop->val.markers; in write_propval() 209 srcstr = srcpos_string_first(prop->srcpos, annotate); in write_propval() 223 dummy_marker.type = guess_value_type(prop); in write_propval() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/ |
| H A D | drm_mode_config.c | 226 struct drm_property *prop; in drm_mode_create_standard_properties() local 233 prop = drm_property_create_enum(dev, DRM_MODE_PROP_IMMUTABLE, in drm_mode_create_standard_properties() 236 if (!prop) in drm_mode_create_standard_properties() 238 dev->mode_config.plane_type_property = prop; in drm_mode_create_standard_properties() 240 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties() 242 if (!prop) in drm_mode_create_standard_properties() 244 dev->mode_config.prop_src_x = prop; in drm_mode_create_standard_properties() 246 prop = drm_property_create_range(dev, DRM_MODE_PROP_ATOMIC, in drm_mode_create_standard_properties() 248 if (!prop) in drm_mode_create_standard_properties() 250 dev->mode_config.prop_src_y = prop; in drm_mode_create_standard_properties() [all …]
|
| H A D | drm_blend.c | 211 struct drm_property *prop; in drm_plane_create_alpha_property() local 213 prop = drm_property_create_range(plane->dev, 0, "alpha", in drm_plane_create_alpha_property() 215 if (!prop) in drm_plane_create_alpha_property() 218 drm_object_attach_property(&plane->base, prop, DRM_BLEND_ALPHA_OPAQUE); in drm_plane_create_alpha_property() 219 plane->alpha_property = prop; in drm_plane_create_alpha_property() 274 struct drm_property *prop; in drm_plane_create_rotation_property() local 280 prop = drm_property_create_bitmask(plane->dev, 0, "rotation", in drm_plane_create_rotation_property() 283 if (!prop) in drm_plane_create_rotation_property() 286 drm_object_attach_property(&plane->base, prop, rotation); in drm_plane_create_rotation_property() 291 plane->rotation_property = prop; in drm_plane_create_rotation_property() [all …]
|
| /netbsd-src/external/cddl/osnet/dist/common/zfs/ |
| H A D | zprop_common.c | 75 zprop_register_impl(int prop, const char *name, zprop_type_t type, in zprop_register_impl() argument 83 pd = &prop_tbl[prop]; in zprop_register_impl() 90 pd->pd_propnum = prop; in zprop_register_impl() 107 zprop_register_string(int prop, const char *name, const char *def, in zprop_register_string() argument 111 zprop_register_impl(prop, name, PROP_TYPE_STRING, 0, def, attr, in zprop_register_string() 117 zprop_register_number(int prop, const char *name, uint64_t def, in zprop_register_number() argument 121 zprop_register_impl(prop, name, PROP_TYPE_NUMBER, def, NULL, attr, in zprop_register_number() 126 zprop_register_index(int prop, const char *name, uint64_t def, in zprop_register_index() argument 130 zprop_register_impl(prop, name, PROP_TYPE_INDEX, def, NULL, attr, in zprop_register_index() 135 zprop_register_hidden(int prop, const char *name, zprop_type_t type, in zprop_register_hidden() argument [all …]
|
| H A D | zfs_prop.c | 472 zfs_prop_delegatable(zfs_prop_t prop) in zfs_prop_delegatable() argument 474 zprop_desc_t *pd = &zfs_prop_table[prop]; in zfs_prop_delegatable() 477 if (prop == ZFS_PROP_MLSLABEL) in zfs_prop_delegatable() 536 zfs_userquota_prop_t prop; in zfs_prop_userquota() local 538 for (prop = 0; prop < ZFS_NUM_USERQUOTA_PROPS; prop++) { in zfs_prop_userquota() 539 if (strncmp(name, zfs_userquota_prop_prefixes[prop], in zfs_prop_userquota() 540 strlen(zfs_userquota_prop_prefixes[prop])) == 0) { in zfs_prop_userquota() 565 zfs_prop_string_to_index(zfs_prop_t prop, const char *string, uint64_t *index) in zfs_prop_string_to_index() argument 567 return (zprop_string_to_index(prop, string, index, ZFS_TYPE_DATASET)); in zfs_prop_string_to_index() 571 zfs_prop_index_to_string(zfs_prop_t prop, uint64_t index, const char **string) in zfs_prop_index_to_string() argument [all …]
|
| H A D | zpool_prop.c | 149 zpool_prop_to_name(zpool_prop_t prop) in zpool_prop_to_name() argument 151 return (zpool_prop_table[prop].pd_name); in zpool_prop_to_name() 155 zpool_prop_get_type(zpool_prop_t prop) in zpool_prop_get_type() argument 157 return (zpool_prop_table[prop].pd_proptype); in zpool_prop_get_type() 161 zpool_prop_readonly(zpool_prop_t prop) in zpool_prop_readonly() argument 163 return (zpool_prop_table[prop].pd_attr == PROP_READONLY); in zpool_prop_readonly() 167 zpool_prop_default_string(zpool_prop_t prop) in zpool_prop_default_string() argument 169 return (zpool_prop_table[prop].pd_strdefault); in zpool_prop_default_string() 173 zpool_prop_default_numeric(zpool_prop_t prop) in zpool_prop_default_numeric() argument 175 return (zpool_prop_table[prop].pd_numdefault); in zpool_prop_default_numeric() [all …]
|
| /netbsd-src/games/adventure/ |
| H A D | subr.c | 99 i = prop[bottle]; in liq() 137 if ((cond[loc] % 2) == 0 && (prop[lamp] == 0 || !here(lamp))) in dark() 219 if (loc == chloc || prop[chest] >= 0) in fdwarf() 232 && here(lamp) && prop[lamp] == 1) in fdwarf() 372 if (prop[k] != (newloc / 100) - 3) in march() 447 if (prop[troll] == 1) { in trbridge() 449 prop[troll] = 0; in trbridge() 459 if (prop[troll] == 0) in trbridge() 460 prop[troll] = 1; in trbridge() 464 prop[chasm] = 1; in trbridge() [all …]
|
| H A D | main.c | 136 if (prop[obj] < 0) { in main() 139 prop[obj] = 0; in main() 141 prop[obj] = 1; in main() 147 ll = prop[obj]; /* 2006 */ in main() 161 if (prop[oyster] < 0 && toting(oyster)) in main() 164 if (toting(i) && prop[i] < 0) /* 2604 */ in main() 165 prop[i] = -1 - prop[i]; in main() 199 if (prop[lamp] == 1) in main() 201 if (limit <= 30 && here(batter) && prop[batter] == 0 in main() 204 prop[batter] = 1; in main() [all …]
|
| /netbsd-src/crypto/external/bsd/openssl/dist/crypto/property/ |
| H A D | property_query.c | 37 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 D | property_parse.c | 347 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 D | defn_cache.c | 26 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 …]
|
| /netbsd-src/sys/dev/fdt/ |
| H A D | fdt_subr.c | 122 fdtbus_get_phandle(int phandle, const char *prop) in fdtbus_get_phandle() argument 129 fdtbus_phandle2offset(phandle), prop, &len); in fdtbus_get_phandle() 139 fdtbus_get_phandle_with_data(int phandle, const char *prop, const char *cells, in fdtbus_get_phandle_with_data() argument 145 const u_int *p = fdtbus_get_prop(phandle, prop, &len); in fdtbus_get_phandle_with_data() 375 const char *prop; in fdtbus_get_stdout_path() local 379 prop = fdt_getprop(fdtbus_get_data(), off, "stdout-path", NULL); in fdtbus_get_stdout_path() 380 if (prop != NULL) in fdtbus_get_stdout_path() 381 return prop; in fdtbus_get_stdout_path() 391 const char *prop, *p; in fdtbus_get_stdout_phandle() local 394 prop = fdtbus_get_stdout_path(); in fdtbus_get_stdout_phandle() [all …]
|
| /netbsd-src/sys/dev/ofw/ |
| H A D | ofw_subr.c | 202 char *prop, propbuf[OFW_MAX_STACK_BUF_SIZE]; in of_compatible() local 211 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP); in of_compatible() 213 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) { in of_compatible() 218 if ((match = strlist_match(prop, proplen, cp)) != 0) { in of_compatible() 224 kmem_tmpbuf_free(prop, proplen, propbuf); in of_compatible() 260 char *prop, propbuf[OFW_MAX_STACK_BUF_SIZE]; in of_compatible_match() local 268 prop = kmem_tmpbuf_alloc(proplen, propbuf, sizeof(propbuf), KM_SLEEP); in of_compatible_match() 270 if (OF_getprop(phandle, "compatible", prop, proplen) != proplen) { in of_compatible_match() 274 match = device_compatible_match_strlist(prop, proplen, compat_data); in of_compatible_match() 277 kmem_tmpbuf_free(prop, proplen, propbuf); in of_compatible_match() [all …]
|
| /netbsd-src/games/monop/ |
| H A D | monop.c | 149 PROP prop[N_PROP] = { /* typical properties */ variable 179 {"Mediterranean Ave. (P)", -1, PRPTY, &prop[0], 60 }, 181 {"Baltic Ave. (P)", -1, PRPTY, &prop[1], 60 }, 184 {"Oriental Ave. (L)", -1, PRPTY, &prop[2], 100 }, 186 {"Vermont Ave. (L)", -1, PRPTY, &prop[3], 100 }, 187 {"Connecticut Ave. (L)", -1, PRPTY, &prop[4], 120 }, 189 {"St. Charles Pl. (V)", -1, PRPTY, &prop[5], 140 }, 191 {"States Ave. (V)", -1, PRPTY, &prop[6], 140 }, 192 {"Virginia Ave. (V)", -1, PRPTY, &prop[7], 160 }, 194 {"St. James Pl. (O)", -1, PRPTY, &prop[8], 180 }, [all …]
|
| /netbsd-src/sys/external/bsd/libfdt/dist/ |
| H A D | fdt_rw.c | 173 int len, struct fdt_property **prop) in fdt_resize_property_() argument 178 *prop = fdt_get_property_w(fdt, nodeoffset, name, &oldlen); in fdt_resize_property_() 179 if (!*prop) in fdt_resize_property_() 182 if ((err = fdt_splice_struct_(fdt, (*prop)->data, FDT_TAGALIGN(oldlen), in fdt_resize_property_() 186 (*prop)->len = cpu_to_fdt32(len); in fdt_resize_property_() 191 int len, struct fdt_property **prop) in fdt_add_property_() argument 206 *prop = fdt_offset_ptr_w_(fdt, nextoffset); in fdt_add_property_() 207 proplen = sizeof(**prop) + FDT_TAGALIGN(len); in fdt_add_property_() 209 err = fdt_splice_struct_(fdt, *prop, 0, proplen); in fdt_add_property_() 216 (*prop)->tag = cpu_to_fdt32(FDT_PROP); in fdt_add_property_() [all …]
|
| H A D | fdt_ro.c | 349 const struct fdt_property *prop; in fdt_get_property_by_offset_() local 357 prop = fdt_offset_ptr_(fdt, offset); in fdt_get_property_by_offset_() 360 *lenp = fdt32_ld(&prop->len); in fdt_get_property_by_offset_() 362 return prop; in fdt_get_property_by_offset_() 391 const struct fdt_property *prop; in fdt_get_property_namelen_() local 393 if (!(prop = fdt_get_property_by_offset_(fdt, offset, lenp))) { in fdt_get_property_namelen_() 397 if (fdt_string_eq_(fdt, fdt32_ld(&prop->nameoff), in fdt_get_property_namelen_() 401 return prop; in fdt_get_property_namelen_() 441 const struct fdt_property *prop; in fdt_getprop_namelen() local 443 prop = fdt_get_property_namelen_(fdt, nodeoffset, name, namelen, lenp, in fdt_getprop_namelen() [all …]
|
| /netbsd-src/external/gpl3/binutils.old/dist/gprof/ |
| H A D | cg_arcs.c | 170 if (parent->cg.prop.fract == 0.0) in propagate_time() 180 if (arc->count == 0 || child == parent || child->cg.prop.fract == 0) in propagate_time() 218 prop_share = parent->cg.prop.fract * share; in propagate_time() 221 parent->cg.prop.child += prop_share; in propagate_time() 222 arc->time *= parent->cg.prop.fract; in propagate_time() 223 arc->child_time *= parent->cg.prop.fract; in propagate_time() 229 parent->cg.cyc.head->cg.prop.child += prop_share; in propagate_time() 256 if (member->cg.prop.fract == 0.0) in cycle_time() 266 cyc->cg.prop.self = cyc->cg.prop.fract * cyc->hist.time; in cycle_time() 370 child->cg.prop.fract = 0.0; in inherit_flags() [all …]
|
| /netbsd-src/external/gpl3/binutils/dist/gprof/ |
| H A D | cg_arcs.c | 171 if (parent->cg.prop.fract == 0.0) in propagate_time() 181 if (arc->count == 0 || child == parent || child->cg.prop.fract == 0) in propagate_time() 219 prop_share = parent->cg.prop.fract * share; in propagate_time() 222 parent->cg.prop.child += prop_share; in propagate_time() 223 arc->time *= parent->cg.prop.fract; in propagate_time() 224 arc->child_time *= parent->cg.prop.fract; in propagate_time() 230 parent->cg.cyc.head->cg.prop.child += prop_share; in propagate_time() 257 if (member->cg.prop.fract == 0.0) in cycle_time() 267 cyc->cg.prop.self = cyc->cg.prop.fract * cyc->hist.time; in cycle_time() 371 child->cg.prop.fract = 0.0; in inherit_flags() [all …]
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/i915/display/ |
| H A D | intel_connector.c | 229 struct drm_property *prop; in intel_attach_force_audio_property() local 231 prop = dev_priv->force_audio_property; in intel_attach_force_audio_property() 232 if (prop == NULL) { in intel_attach_force_audio_property() 233 prop = drm_property_create_enum(dev, 0, in intel_attach_force_audio_property() 237 if (prop == NULL) in intel_attach_force_audio_property() 240 dev_priv->force_audio_property = prop; in intel_attach_force_audio_property() 242 drm_object_attach_property(&connector->base, prop, 0); in intel_attach_force_audio_property() 256 struct drm_property *prop; in intel_attach_broadcast_rgb_property() local 258 prop = dev_priv->broadcast_rgb_property; in intel_attach_broadcast_rgb_property() 259 if (prop == NULL) { in intel_attach_broadcast_rgb_property() [all …]
|
| /netbsd-src/usr.sbin/ofctl/ |
| H A D | ofctl.c | 107 struct of_prop *prop; in of_tree_mkprop() local 114 prop = malloc(sizeof(*prop) + strlen(name) + 1); in of_tree_mkprop() 115 if (prop == NULL) in of_tree_mkprop() 116 err(1, "malloc(%zu)", sizeof(*prop) + strlen(name) + 1); in of_tree_mkprop() 118 memset(prop, 0, sizeof(*prop)); in of_tree_mkprop() 119 prop->prop_name = (char *) (prop + 1); in of_tree_mkprop() 120 prop->prop_namelen = strlen(name); in of_tree_mkprop() 121 memcpy(prop->prop_name, name, prop->prop_namelen+1); in of_tree_mkprop() 122 TAILQ_INSERT_TAIL(&node->of_properties, prop, prop_sibling); in of_tree_mkprop() 125 node->of_name = prop; in of_tree_mkprop() [all …]
|
| /netbsd-src/external/gpl2/dtc/dist/tests/ |
| H A D | test_tree1_label_noderef.dts | 8 prop-int = <0xdeadbeef>; 9 prop-int64 = /bits/ 64 <0xdeadbeef01abcdef>; 10 prop-str = "hello world"; 17 prop-int = [deadbeef]; 22 prop-int = <0xdeadbeef>; 32 prop-int = <123456789>; 38 prop-int = <0xbad>; 49 prop-int = <123456789>; 54 prop-int = <0726746425>;
|
| /netbsd-src/sys/external/bsd/drm2/dist/drm/amd/amdkfd/ |
| H A D | kfd_kernel_queue.c | 48 struct queue_properties prop; in kq_initialize() local 58 memset(&prop, 0, sizeof(prop)); in kq_initialize() 82 prop.doorbell_ptr = kfd_get_kernel_doorbell(dev, &prop.doorbell_off); in kq_initialize() 84 if (!prop.doorbell_ptr) { in kq_initialize() 132 prop.queue_size = queue_size; in kq_initialize() 133 prop.is_interop = false; in kq_initialize() 134 prop.priority = 1; in kq_initialize() 135 prop.queue_percent = 100; in kq_initialize() 136 prop.type = type; in kq_initialize() 137 prop.vmid = 0; in kq_initialize() [all …]
|