Lines Matching refs:rom
510 u32 *rom, *stack;
514 rom = kmalloc(sizeof(*rom) * MAX_CONFIG_ROM_SIZE +
516 if (rom == NULL)
519 stack = &rom[MAX_CONFIG_ROM_SIZE];
520 memset(rom, 0, sizeof(*rom) * MAX_CONFIG_ROM_SIZE);
526 ret = read_rom(device, generation, i, &rom[i]);
532 * rom to indicate that they are booting (for example,
537 if (i == 0 && rom[i] == 0) {
554 if ((rom[2] & 0x7) < device->max_speed ||
572 * Now parse the config rom. The config rom is a recursive
584 * lower 24 bits is the offset into the config rom,
596 ret = read_rom(device, generation, i, &rom[i]);
599 end = i + (rom[i] >> 16) + 1;
607 rom[i],
609 rom[i] = 0;
620 ret = read_rom(device, generation, i, &rom[i]);
624 if ((key >> 30) != 3 || (rom[i] >> 30) < 2)
633 if (i + (rom[i] & 0xffffff) >= MAX_CONFIG_ROM_SIZE) {
636 rom[i],
638 rom[i] = 0;
641 stack[sp++] = i + rom[i];
648 new_rom = kmemdup(rom, length * 4, GFP_KERNEL);
661 device->max_rec = rom[2] >> 12 & 0xf;
662 device->cmc = rom[2] >> 30 & 1;
663 device->irmc = rom[2] >> 31 & 1;
665 kfree(rom);
771 * rom. It shouldn't be necessary to tweak these; if the device
772 * doesn't respond to a config rom read within 10 seconds, it's not
1002 fw_notice(card, "giving up on node %x: reading config rom failed: %s\n",
1080 * root node config rom. If this races with a bus reset we
1246 * first config rom scan half a second after bus reset.
1294 * process of reading its config rom
1298 * scheduled to read it's config rom, and we just put