Lines Matching refs:bar_count
33 void __iomem *base, int bar_count) in chameleon_parse_gdd() argument
66 if (mdev->bar > bar_count - 1) { in chameleon_parse_gdd()
110 struct chameleon_bar *cb, int bar_count) in chameleon_parse_bar() argument
118 for (i = 0; i < bar_count; i++) { in chameleon_parse_bar()
130 int bar_count; in chameleon_get_bar() local
145 bar_count = BAR_CNT(reg); in chameleon_get_bar()
146 if (bar_count <= 0 || bar_count > CHAMELEON_BAR_MAX) in chameleon_get_bar()
149 c = kcalloc(bar_count, sizeof(struct chameleon_bar), in chameleon_get_bar()
154 chameleon_parse_bar(*base, c, bar_count); in chameleon_get_bar()
155 *base += BAR_DESC_SIZE(bar_count); in chameleon_get_bar()
161 bar_count = 1; in chameleon_get_bar()
167 return bar_count; in chameleon_get_bar()
178 int bar_count; in chameleon_parse_cells() local
207 bar_count = chameleon_get_bar(&p, mapbase, &cb); in chameleon_parse_cells()
208 if (bar_count < 0) { in chameleon_parse_cells()
209 ret = bar_count; in chameleon_parse_cells()
216 ret = chameleon_parse_gdd(bus, cb, p, bar_count); in chameleon_parse_cells()