Lines Matching defs:max_rom
201 const u32 *bus_info_data, int max_rom)
205 BUG_ON(max_rom & ~0x3);
206 csr->max_rom = mr_map[max_rom];
579 !csr->ops->release_addr || csr->max_rom < 1);
581 /* ROM size must be a multiple of csr->max_rom */
582 romsize = (romsize + (csr->max_rom - 1)) & ~(csr->max_rom - 1);
584 csr_addr = csr->ops->allocate_addr_range(romsize, csr->max_rom,
999 * max_rom in size. */
1000 BUG_ON(csr->max_rom < 1);
1001 leaf_size = (cache->len + (csr->max_rom - 1)) &
1002 ~(csr->max_rom - 1);
1064 * a single transaction regardless of the max_rom value.
1067 * ConfigROM will be read according to the max_rom field. */
1259 BUG_ON(!csr || !kv || csr->max_rom < 1);
1283 (csr->max_rom - 1)) & ~(csr->max_rom - 1);
1320 newcr->offset_start = cache_index & ~(csr->max_rom - 1);
1344 newcr->offset_start = cache_index & ~(csr->max_rom - 1);
1355 ~(csr->max_rom - 1))];
1358 cr->offset_end) & ~(csr->max_rom - 1);
1360 if (csr->ops->bus_read(csr, addr, csr->max_rom, cache_ptr,
1362 if (csr->max_rom == 4)
1366 /* Apperently the max_rom value was a lie, set it to
1368 csr->max_rom = 4;
1372 cr->offset_end += csr->max_rom - (cr->offset_end &
1373 (csr->max_rom - 1));
1432 csr->max_rom = mr_map[0]; /* default value */
1438 csr->max_rom = mr_map[i];