Searched refs:strset (Results 1 – 4 of 4) sorted by relevance
| /linux/tools/lib/bpf/ |
| H A D | strset.h | 10 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);
|
| H A D | strset.c | 12 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 …]
|
| /linux/tools/net/ynl/pyynl/ |
| H A D | ethtool.py | 305 strset = dumpit(ynl, args, 'strset-get') 306 pprint.PrettyPrinter().pprint(strset)
|
| /linux/drivers/net/ethernet/hisilicon/hns3/hns3vf/ |
| H A D | hclgevf_main.c | 122 static int hclgevf_get_sset_count(struct hnae3_handle *handle, int strset) in hclgevf_get_sset_count() argument 124 if (strset == ETH_SS_TEST) in hclgevf_get_sset_count() 126 else if (strset == ETH_SS_STATS) in hclgevf_get_sset_count() 132 static void hclgevf_get_strings(struct hnae3_handle *handle, u32 strset, in hclgevf_get_strings() argument 135 if (strset == ETH_SS_STATS) in hclgevf_get_strings()
|