Lines Matching refs:bar_count
37 void __iomem *base, int bar_count) in chameleon_parse_gdd() argument
70 if (mdev->bar > bar_count - 1) { in chameleon_parse_gdd()
116 struct chameleon_bar *cb, int bar_count) in chameleon_parse_bar() argument
124 for (i = 0; i < bar_count; i++) { in chameleon_parse_bar()
136 int bar_count; in chameleon_get_bar() local
151 bar_count = BAR_CNT(reg); in chameleon_get_bar()
152 if (bar_count <= 0 || bar_count > CHAMELEON_BAR_MAX) in chameleon_get_bar()
155 c = kcalloc(bar_count, sizeof(struct chameleon_bar), in chameleon_get_bar()
160 chameleon_parse_bar(*base, c, bar_count); in chameleon_get_bar()
161 *base += BAR_DESC_SIZE(bar_count); in chameleon_get_bar()
167 bar_count = 1; in chameleon_get_bar()
173 return bar_count; in chameleon_get_bar()
184 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()