• Home
  • Raw
  • Download

Lines Matching refs:i

39 void tracing_map_update_sum(struct tracing_map_elt *elt, unsigned int i, u64 n)  in tracing_map_update_sum()  argument
41 atomic64_add(n, &elt->fields[i].sum); in tracing_map_update_sum()
56 u64 tracing_map_read_sum(struct tracing_map_elt *elt, unsigned int i) in tracing_map_read_sum() argument
58 return (u64)atomic64_read(&elt->fields[i].sum); in tracing_map_read_sum()
71 void tracing_map_set_var(struct tracing_map_elt *elt, unsigned int i, u64 n) in tracing_map_set_var() argument
73 atomic64_set(&elt->vars[i], n); in tracing_map_set_var()
74 elt->var_set[i] = true; in tracing_map_set_var()
86 bool tracing_map_var_set(struct tracing_map_elt *elt, unsigned int i) in tracing_map_var_set() argument
88 return elt->var_set[i]; in tracing_map_var_set()
103 u64 tracing_map_read_var(struct tracing_map_elt *elt, unsigned int i) in tracing_map_read_var() argument
105 return (u64)atomic64_read(&elt->vars[i]); in tracing_map_read_var()
122 u64 tracing_map_read_var_once(struct tracing_map_elt *elt, unsigned int i) in tracing_map_read_var_once() argument
124 elt->var_set[i] = false; in tracing_map_read_var_once()
125 return (u64)atomic64_read(&elt->vars[i]); in tracing_map_read_var_once()
289 unsigned int i; in tracing_map_array_clear() local
294 for (i = 0; i < a->n_pages; i++) in tracing_map_array_clear()
295 memset(a->pages[i], 0, PAGE_SIZE); in tracing_map_array_clear()
300 unsigned int i; in tracing_map_array_free() local
308 for (i = 0; i < a->n_pages; i++) { in tracing_map_array_free()
309 if (!a->pages[i]) in tracing_map_array_free()
311 kmemleak_free(a->pages[i]); in tracing_map_array_free()
312 free_page((unsigned long)a->pages[i]); in tracing_map_array_free()
325 unsigned int i; in tracing_map_array_alloc() local
343 for (i = 0; i < a->n_pages; i++) { in tracing_map_array_alloc()
344 a->pages[i] = (void *)get_zeroed_page(GFP_KERNEL); in tracing_map_array_alloc()
345 if (!a->pages[i]) in tracing_map_array_alloc()
347 kmemleak_alloc(a->pages[i], PAGE_SIZE, 1, GFP_KERNEL); in tracing_map_array_alloc()
360 unsigned i; in tracing_map_elt_clear() local
362 for (i = 0; i < elt->map->n_fields; i++) in tracing_map_elt_clear()
363 if (elt->fields[i].cmp_fn == tracing_map_cmp_atomic64) in tracing_map_elt_clear()
364 atomic64_set(&elt->fields[i].sum, 0); in tracing_map_elt_clear()
366 for (i = 0; i < elt->map->n_vars; i++) { in tracing_map_elt_clear()
367 atomic64_set(&elt->vars[i], 0); in tracing_map_elt_clear()
368 elt->var_set[i] = false; in tracing_map_elt_clear()
377 unsigned int i; in tracing_map_elt_init_fields() local
381 for (i = 0; i < elt->map->n_fields; i++) { in tracing_map_elt_init_fields()
382 elt->fields[i].cmp_fn = elt->map->fields[i].cmp_fn; in tracing_map_elt_init_fields()
384 if (elt->fields[i].cmp_fn != tracing_map_cmp_atomic64) in tracing_map_elt_init_fields()
385 elt->fields[i].offset = elt->map->fields[i].offset; in tracing_map_elt_init_fields()
469 unsigned int i; in tracing_map_free_elts() local
474 for (i = 0; i < map->max_elts; i++) { in tracing_map_free_elts()
475 tracing_map_elt_free(*(TRACING_MAP_ELT(map->elts, i))); in tracing_map_free_elts()
476 *(TRACING_MAP_ELT(map->elts, i)) = NULL; in tracing_map_free_elts()
485 unsigned int i; in tracing_map_alloc_elts() local
492 for (i = 0; i < map->max_elts; i++) { in tracing_map_alloc_elts()
493 *(TRACING_MAP_ELT(map->elts, i)) = tracing_map_elt_alloc(map); in tracing_map_alloc_elts()
494 if (IS_ERR(*(TRACING_MAP_ELT(map->elts, i)))) { in tracing_map_alloc_elts()
495 *(TRACING_MAP_ELT(map->elts, i)) = NULL; in tracing_map_alloc_elts()
700 unsigned int i; in tracing_map_clear() local
708 for (i = 0; i < map->max_elts; i++) in tracing_map_clear()
709 tracing_map_elt_clear(*(TRACING_MAP_ELT(map->elts, i))); in tracing_map_clear()
774 unsigned int i; in tracing_map_create() local
799 for (i = 0; i < TRACING_MAP_KEYS_MAX; i++) in tracing_map_create()
800 map->key_idx[i] = -1; in tracing_map_create()
943 unsigned int i; in tracing_map_destroy_sort_entries() local
945 for (i = 0; i < n_entries; i++) in tracing_map_destroy_sort_entries()
946 destroy_sort_entry(entries[i]); in tracing_map_destroy_sort_entries()
970 int i; in detect_dups() local
980 for (i = 1; i < n_entries; i++) { in detect_dups()
981 if (!memcmp(sort_entries[i]->key, key, key_size)) { in detect_dups()
985 key = sort_entries[i]->key; in detect_dups()
994 unsigned int i; in is_key() local
996 for (i = 0; i < map->n_keys; i++) in is_key()
997 if (map->key_idx[i] == field_idx) in is_key()
1010 unsigned i, start = 0, n_sub = 1; in sort_secondary() local
1022 for (i = 0; i < n_entries - 1; i++) { in sort_secondary()
1023 const struct tracing_map_sort_entry **a = &entries[i]; in sort_secondary()
1024 const struct tracing_map_sort_entry **b = &entries[i + 1]; in sort_secondary()
1028 if (i < n_entries - 2) in sort_secondary()
1033 start = i + 1; in sort_secondary()
1044 start = i + 1; in sort_secondary()
1081 int i, n_entries, ret; in tracing_map_sort_entries() local
1087 for (i = 0, n_entries = 0; i < map->map_size; i++) { in tracing_map_sort_entries()
1090 entry = TRACING_MAP_ENTRY(map->map, i); in tracing_map_sort_entries()