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()
115 struct chameleon_bar *cb, int bar_count) in chameleon_parse_bar() argument
123 for (i = 0; i < bar_count; i++) { in chameleon_parse_bar()
135 int bar_count; in chameleon_get_bar() local
150 bar_count = BAR_CNT(reg); in chameleon_get_bar()
151 if (bar_count <= 0 || bar_count > CHAMELEON_BAR_MAX) in chameleon_get_bar()
154 c = kcalloc(bar_count, sizeof(struct chameleon_bar), in chameleon_get_bar()
159 chameleon_parse_bar(*base, c, bar_count); in chameleon_get_bar()
160 *base += BAR_DESC_SIZE(bar_count); in chameleon_get_bar()
166 bar_count = 1; in chameleon_get_bar()
172 return bar_count; in chameleon_get_bar()
183 int bar_count; in chameleon_parse_cells() local
212 bar_count = chameleon_get_bar(&p, mapbase, &cb); in chameleon_parse_cells()
213 if (bar_count < 0) { in chameleon_parse_cells()
214 ret = bar_count; in chameleon_parse_cells()
221 ret = chameleon_parse_gdd(bus, cb, p, bar_count); in chameleon_parse_cells()