Lines Matching defs:value
698 * guessed value by using btf__set_pointer_size() API.
2381 * Append new enum value for the current ENUM type with:
2382 * - *name* - name of the enumerator value, can't be NULL or empty;
2383 * - *value* - integer value corresponding to enum value *name*;
2388 int btf__add_enum_value(struct btf *btf, const char *name, __s64 value)
2404 if (value < INT_MIN || value > UINT_MAX)
2421 v->val = value;
2427 /* if negative value, set signedness to signed */
2428 if (value < 0)
2458 * Append new enum value for the current ENUM64 type with:
2459 * - *name* - name of the enumerator value, can't be NULL or empty;
2460 * - *value* - integer value corresponding to enum value *name*;
2465 int btf__add_enum64_value(struct btf *btf, const char *name, __u64 value)
2496 v->val_lo32 = (__u32)value;
2497 v->val_hi32 = value >> 32;
2599 * - *value*, non-empty/non-NULL tag value;
2605 int btf__add_type_tag(struct btf *btf, const char *value, int ref_type_id)
2607 if (!value || !value[0])
2610 return btf_add_ref_kind(btf, BTF_KIND_TYPE_TAG, value, ref_type_id);
2869 * - *value* - non-empty/non-NULL string;
2877 int btf__add_decl_tag(struct btf *btf, const char *value, int ref_type_id,
2883 if (!value || !value[0] || component_idx < -1)
2897 value_off = btf__add_str(btf, value);
3405 static long hash_combine(long h, long value)
3407 return h * 31 + value;
4034 cand_id = hash_entry->value;
4047 cand_id = hash_entry->value;
4069 cand_id = hash_entry->value;
4572 __u32 cand_id = hash_entry->value;
4677 cand_id = hash_entry->value;
4694 cand_id = hash_entry->value;
4718 cand_id = hash_entry->value;
4750 cand_id = hash_entry->value;
4789 * use a special value 0 to indicate this fact.
4843 /* Zero is a special value indicating that name is not unique */