Lines Matching refs:fields
41 atomic64_add(n, &elt->fields[i].sum); in tracing_map_update_sum()
58 return (u64)atomic64_read(&elt->fields[i].sum); in tracing_map_read_sum()
209 map->fields[map->n_fields++].cmp_fn = cmp_fn; in tracing_map_add_field()
280 map->fields[idx].offset = offset; in tracing_map_add_key_field()
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()
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()
396 kfree(elt->fields); in tracing_map_elt_free()
420 elt->fields = kcalloc(map->n_fields, sizeof(*elt->fields), GFP_KERNEL); in tracing_map_elt_alloc()
421 if (!elt->fields) { in tracing_map_elt_alloc()
872 field = &elt_a->fields[sort_key->field_idx]; in cmp_entries_sum()
875 val_a = &elt_a->fields[sort_key->field_idx].sum; in cmp_entries_sum()
876 val_b = &elt_b->fields[sort_key->field_idx].sum; in cmp_entries_sum()
903 field = &elt_a->fields[sort_key->field_idx]; in cmp_entries_key()