Lines Matching full:dim

425 	struct c2c_dimension	*dim;  member
448 struct c2c_dimension *dim; in c2c_width() local
451 dim = c2c_fmt->dim; in c2c_width()
453 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_width()
454 return symbol_width(hists, dim->se); in c2c_width()
456 return dim->se ? hists__col_len(hists, dim->se->se_width_idx) : in c2c_width()
457 c2c_fmt->dim->width; in c2c_width()
465 struct c2c_dimension *dim; in c2c_header() local
470 dim = c2c_fmt->dim; in c2c_header()
472 if (dim->se) { in c2c_header()
473 text = dim->header.line[line].text; in c2c_header()
476 text = dim->se->se_header; in c2c_header()
478 text = dim->header.line[line].text; in c2c_header()
484 *span = dim->header.line[line].span; in c2c_header()
1883 return c2c_a->dim == c2c_b->dim; in fmt_equal()
1891 struct c2c_dimension *dim = dimensions[i]; in get_dimension() local
1893 if (!strcmp(dim->name, name)) in get_dimension()
1894 return dim; in get_dimension()
1904 struct c2c_dimension *dim = c2c_fmt->dim; in c2c_se_entry() local
1908 len = hists__col_len(he->hists, dim->se->se_width_idx); in c2c_se_entry()
1910 if (dim == &dim_symbol || dim == &dim_srcline) in c2c_se_entry()
1911 len = symbol_width(he->hists, dim->se); in c2c_se_entry()
1914 return dim->se->se_snprintf(he, hpp->buf, hpp->size, len); in c2c_se_entry()
1921 struct c2c_dimension *dim = c2c_fmt->dim; in c2c_se_cmp() local
1923 return dim->se->se_cmp(a, b); in c2c_se_cmp()
1930 struct c2c_dimension *dim = c2c_fmt->dim; in c2c_se_collapse() local
1933 collapse_fn = dim->se->se_collapse ?: dim->se->se_cmp; in c2c_se_collapse()
1939 struct c2c_dimension *dim = get_dimension(name); in get_format() local
1943 if (!dim) in get_format()
1950 c2c_fmt->dim = dim; in get_format()
1956 fmt->cmp = dim->se ? c2c_se_cmp : dim->cmp; in get_format()
1957 fmt->sort = dim->se ? c2c_se_cmp : dim->cmp; in get_format()
1958 fmt->color = dim->se ? NULL : dim->color; in get_format()
1959 fmt->entry = dim->se ? c2c_se_entry : dim->entry; in get_format()
1962 fmt->collapse = dim->se ? c2c_se_collapse : dim->cmp; in get_format()
1985 struct c2c_dimension *dim; in c2c_hists__init_sort() local
1992 dim = c2c_fmt->dim; in c2c_hists__init_sort()
1993 if (dim == &dim_dso) in c2c_hists__init_sort()
2154 struct c2c_dimension *dim; in set_node_width() local
2156 dim = &c2c.hists == c2c_he->hists ? in set_node_width()
2159 if (len > dim->width) in set_node_width()
2160 dim->width = len; in set_node_width()