Home
last modified time | relevance | path

Searched refs:strset (Results 1 – 7 of 7) sorted by relevance

/Linux-v5.15/tools/lib/bpf/
Dstrset.h10 struct strset;
12 struct strset *strset__new(size_t max_data_sz, const char *init_data, size_t init_data_sz);
13 void strset__free(struct strset *set);
15 const char *strset__data(const struct strset *set);
16 size_t strset__data_size(const struct strset *set);
18 int strset__find_str(struct strset *set, const char *s);
19 int strset__add_str(struct strset *set, const char *s);
Dstrset.c12 struct strset { struct
24 const struct strset *s = ctx; in strset_hash_fn() argument
32 const struct strset *s = ctx; in strset_equal_fn()
39 struct strset *strset__new(size_t max_data_sz, const char *init_data, size_t init_data_sz) in strset__new()
41 struct strset *set = calloc(1, sizeof(*set)); in strset__new()
84 void strset__free(struct strset *set) in strset__free()
94 size_t strset__data_size(const struct strset *set) in strset__data_size()
99 const char *strset__data(const struct strset *set) in strset__data()
104 static void *strset_add_str_mem(struct strset *set, size_t add_sz) in strset_add_str_mem()
116 int strset__find_str(struct strset *set, const char *s) in strset__find_str()
[all …]
DBuild3 btf_dump.o ringbuf.o strset.o linker.o gen_loader.o relo_core.o
Dbtf.c115 struct strset *strs_set;
1510 struct strset *set = NULL; in btf_ensure_modifiable()
2997 struct strset *strs_set;
Dlinker.c144 struct strset *strtab_strs; /* STRTAB unique strings */
/Linux-v5.15/net/ethtool/
DMakefile7 ethtool_nl-y := netlink.o bitset.o strset.o linkinfo.o linkmodes.o \
/Linux-v5.15/drivers/net/ethernet/hisilicon/hns3/hns3vf/
Dhclgevf_main.c168 static int hclgevf_tqps_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_tqps_get_sset_count() argument
213 static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_get_sset_count() argument
215 if (strset == ETH_SS_TEST) in hclgevf_get_sset_count()
217 else if (strset == ETH_SS_STATS) in hclgevf_get_sset_count()
218 return hclgevf_tqps_get_sset_count(handle, strset); in hclgevf_get_sset_count()
223 static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset, in hclgevf_get_strings() argument
228 if (strset == ETH_SS_STATS) in hclgevf_get_strings()