Home
last modified time | relevance | path

Searched refs:table (Results 1 – 25 of 67) sorted by relevance

123

/hardware/qcom/msm8998/json-c/
Dlinkhash.c439 t->table = (struct lh_entry*)calloc(size, sizeof(struct lh_entry)); in lh_table_new()
440 if(!t->table) lh_abort("lh_table_new: calloc failed\n"); in lh_table_new()
444 for(i = 0; i < size; i++) t->table[i].k = LH_EMPTY; in lh_table_new()
471 free(t->table); in lh_table_resize()
472 t->table = new_t->table; in lh_table_resize()
488 free(t->table); in lh_table_free()
504 if(t->table[n].k == LH_EMPTY || t->table[n].k == LH_FREED) break; in lh_table_insert()
509 t->table[n].k = k; in lh_table_insert()
510 t->table[n].v = v; in lh_table_insert()
514 t->head = t->tail = &t->table[n]; in lh_table_insert()
[all …]
Dlinkhash.h135 struct lh_entry *table; member
159 #define lh_foreach(table, entry) \ argument
160 for(entry = table->head; entry; entry = entry->next)
165 #define lh_foreach_safe(table, entry, tmp) \ argument
166 for(entry = table->head; entry && ((tmp = entry->next) || 1); entry = tmp)
/hardware/qcom/gps/msm8909/utils/
Dloc_log.h55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) argument
58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask);
59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
Dloc_log.cpp61 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask) in loc_get_name_from_mask() argument
66 if (table[i].val & (long) mask) in loc_get_name_from_mask()
68 return table[i].name; in loc_get_name_from_mask()
75 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value) in loc_get_name_from_val() argument
80 if (table[i].val == (long) value) in loc_get_name_from_val()
82 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/gps/msm8909w_3100/utils/
Dloc_log.h55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) argument
58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask);
59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
Dloc_log.cpp56 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask) in loc_get_name_from_mask() argument
61 if (table[i].val & (long) mask) in loc_get_name_from_mask()
63 return table[i].name; in loc_get_name_from_mask()
70 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value) in loc_get_name_from_val() argument
75 if (table[i].val == (long) value) in loc_get_name_from_val()
77 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/gps/msm8996/utils/
Dloc_log.h55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) argument
58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask);
59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
Dloc_log.cpp61 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask) in loc_get_name_from_mask() argument
66 if (table[i].val & (long) mask) in loc_get_name_from_mask()
68 return table[i].name; in loc_get_name_from_mask()
75 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value) in loc_get_name_from_val() argument
80 if (table[i].val == (long) value) in loc_get_name_from_val()
82 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/sdm845/gps/msm8909/utils/
Dloc_log.h55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) argument
58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask);
59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
Dloc_log.cpp61 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask) in loc_get_name_from_mask() argument
66 if (table[i].val & (long) mask) in loc_get_name_from_mask()
68 return table[i].name; in loc_get_name_from_mask()
75 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value) in loc_get_name_from_val() argument
80 if (table[i].val == (long) value) in loc_get_name_from_val()
82 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/sdm845/gps/msm8996/utils/
Dloc_log.h55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) argument
58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask);
59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
Dloc_log.cpp61 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask) in loc_get_name_from_mask() argument
66 if (table[i].val & (long) mask) in loc_get_name_from_mask()
68 return table[i].name; in loc_get_name_from_mask()
75 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value) in loc_get_name_from_val() argument
80 if (table[i].val == (long) value) in loc_get_name_from_val()
82 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/sdm845/gps/msm8998/utils/
Dloc_log.h55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) argument
58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask);
59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
Dloc_log.cpp57 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask) in loc_get_name_from_mask() argument
62 if (table[i].val & (long) mask) in loc_get_name_from_mask()
64 return table[i].name; in loc_get_name_from_mask()
71 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value) in loc_get_name_from_val() argument
76 if (table[i].val == (long) value) in loc_get_name_from_val()
78 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/sdm845/gps/sdm845/utils/
Dloc_log.h55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) argument
58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask);
59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
Dloc_log.cpp57 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask) in loc_get_name_from_mask() argument
62 if (table[i].val & (long) mask) in loc_get_name_from_mask()
64 return table[i].name; in loc_get_name_from_mask()
71 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value) in loc_get_name_from_val() argument
76 if (table[i].val == (long) value) in loc_get_name_from_val()
78 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/gps/msm8998/utils/
Dloc_log.h55 #define LOC_TABLE_SIZE(table) (sizeof(table)/sizeof((table)[0])) argument
58 const char* loc_get_name_from_mask(const loc_name_val_s_type table[], size_t table_size, long mask);
59 const char* loc_get_name_from_val(const loc_name_val_s_type table[], size_t table_size, long value);
/hardware/qcom/gps/msm8960/utils/
Dloc_log.cpp60 const char* loc_get_name_from_mask(loc_name_val_s_type table[], int table_size, long mask) in loc_get_name_from_mask() argument
65 if (table[i].val & (long) mask) in loc_get_name_from_mask()
67 return table[i].name; in loc_get_name_from_mask()
74 const char* loc_get_name_from_val(loc_name_val_s_type table[], int table_size, long value) in loc_get_name_from_val() argument
79 if (table[i].val == (long) value) in loc_get_name_from_val()
81 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/sdm845/gps/msm8084/utils/
Dloc_log.cpp60 const char* loc_get_name_from_mask(loc_name_val_s_type table[], int table_size, long mask) in loc_get_name_from_mask() argument
65 if (table[i].val & (long) mask) in loc_get_name_from_mask()
67 return table[i].name; in loc_get_name_from_mask()
74 const char* loc_get_name_from_val(loc_name_val_s_type table[], int table_size, long value) in loc_get_name_from_val() argument
79 if (table[i].val == (long) value) in loc_get_name_from_val()
81 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/sdm845/gps/utils/
Dloc_log.cpp60 const char* loc_get_name_from_mask(loc_name_val_s_type table[], int table_size, long mask) in loc_get_name_from_mask() argument
65 if (table[i].val & (long) mask) in loc_get_name_from_mask()
67 return table[i].name; in loc_get_name_from_mask()
74 const char* loc_get_name_from_val(loc_name_val_s_type table[], int table_size, long value) in loc_get_name_from_val() argument
79 if (table[i].val == (long) value) in loc_get_name_from_val()
81 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/gps/msm8084/utils/
Dloc_log.cpp60 const char* loc_get_name_from_mask(loc_name_val_s_type table[], int table_size, long mask) in loc_get_name_from_mask() argument
65 if (table[i].val & (long) mask) in loc_get_name_from_mask()
67 return table[i].name; in loc_get_name_from_mask()
74 const char* loc_get_name_from_val(loc_name_val_s_type table[], int table_size, long value) in loc_get_name_from_val() argument
79 if (table[i].val == (long) value) in loc_get_name_from_val()
81 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/sdm845/gps/msm8960/utils/
Dloc_log.cpp60 const char* loc_get_name_from_mask(loc_name_val_s_type table[], int table_size, long mask) in loc_get_name_from_mask() argument
65 if (table[i].val & (long) mask) in loc_get_name_from_mask()
67 return table[i].name; in loc_get_name_from_mask()
74 const char* loc_get_name_from_val(loc_name_val_s_type table[], int table_size, long value) in loc_get_name_from_val() argument
79 if (table[i].val == (long) value) in loc_get_name_from_val()
81 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/gps/utils/
Dloc_log.cpp60 const char* loc_get_name_from_mask(loc_name_val_s_type table[], int table_size, long mask) in loc_get_name_from_mask() argument
65 if (table[i].val & (long) mask) in loc_get_name_from_mask()
67 return table[i].name; in loc_get_name_from_mask()
74 const char* loc_get_name_from_val(loc_name_val_s_type table[], int table_size, long value) in loc_get_name_from_val() argument
79 if (table[i].val == (long) value) in loc_get_name_from_val()
81 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/gps/msm8994/utils/
Dloc_log.cpp60 const char* loc_get_name_from_mask(loc_name_val_s_type table[], int table_size, long mask) in loc_get_name_from_mask() argument
65 if (table[i].val & (long) mask) in loc_get_name_from_mask()
67 return table[i].name; in loc_get_name_from_mask()
74 const char* loc_get_name_from_val(loc_name_val_s_type table[], int table_size, long value) in loc_get_name_from_val() argument
79 if (table[i].val == (long) value) in loc_get_name_from_val()
81 return table[i].name; in loc_get_name_from_val()
/hardware/qcom/sdm845/gps/msm8994/utils/
Dloc_log.cpp60 const char* loc_get_name_from_mask(loc_name_val_s_type table[], int table_size, long mask) in loc_get_name_from_mask() argument
65 if (table[i].val & (long) mask) in loc_get_name_from_mask()
67 return table[i].name; in loc_get_name_from_mask()
74 const char* loc_get_name_from_val(loc_name_val_s_type table[], int table_size, long value) in loc_get_name_from_val() argument
79 if (table[i].val == (long) value) in loc_get_name_from_val()
81 return table[i].name; in loc_get_name_from_val()

123