Lines Matching refs:bar_count
38 void __iomem *base, int bar_count) in chameleon_parse_gdd() argument
71 if (mdev->bar > bar_count - 1) { in chameleon_parse_gdd()
117 struct chameleon_bar *cb, int bar_count) in chameleon_parse_bar() argument
125 for (i = 0; i < bar_count; i++) { in chameleon_parse_bar()
137 int bar_count; in chameleon_get_bar() local
152 bar_count = BAR_CNT(reg); in chameleon_get_bar()
153 if (bar_count <= 0 || bar_count > CHAMELEON_BAR_MAX) in chameleon_get_bar()
156 c = kcalloc(bar_count, sizeof(struct chameleon_bar), in chameleon_get_bar()
161 chameleon_parse_bar(*base, c, bar_count); in chameleon_get_bar()
162 *base += BAR_DESC_SIZE(bar_count); in chameleon_get_bar()
168 bar_count = 1; in chameleon_get_bar()
174 return bar_count; in chameleon_get_bar()
185 int bar_count; in chameleon_parse_cells() local
213 bar_count = chameleon_get_bar(&p, mapbase, &cb); in chameleon_parse_cells()
214 if (bar_count < 0) { in chameleon_parse_cells()
215 ret = bar_count; in chameleon_parse_cells()
222 ret = chameleon_parse_gdd(bus, cb, p, bar_count); in chameleon_parse_cells()