Lines Matching defs:rom
588 u32 *rom, *stack;
592 rom = kmalloc(sizeof(*rom) * MAX_CONFIG_ROM_SIZE +
594 if (rom == NULL)
597 stack = &rom[MAX_CONFIG_ROM_SIZE];
598 memset(rom, 0, sizeof(*rom) * MAX_CONFIG_ROM_SIZE);
604 ret = read_rom(device, generation, i, &rom[i]);
610 * rom to indicate that they are booting (for example,
615 if (i == 0 && rom[i] == 0) {
632 if ((rom[2] & 0x7) < device->max_speed ||
650 * Now parse the config rom. The config rom is a recursive
662 * lower 24 bits is the offset into the config rom,
674 ret = read_rom(device, generation, i, &rom[i]);
677 end = i + (rom[i] >> 16) + 1;
685 rom[i],
687 rom[i] = 0;
698 ret = read_rom(device, generation, i, &rom[i]);
702 if ((key >> 30) != 3 || (rom[i] >> 30) < 2)
711 if (i + (rom[i] & 0xffffff) >= MAX_CONFIG_ROM_SIZE) {
714 rom[i],
716 rom[i] = 0;
719 stack[sp++] = i + rom[i];
726 new_rom = kmemdup(rom, length * 4, GFP_KERNEL);
739 device->max_rec = rom[2] >> 12 & 0xf;
740 device->cmc = rom[2] >> 30 & 1;
741 device->irmc = rom[2] >> 31 & 1;
743 kfree(rom);
849 * rom. It shouldn't be necessary to tweak these; if the device
850 * doesn't respond to a config rom read within 10 seconds, it's not
1080 fw_notice(card, "giving up on node %x: reading config rom failed: %s\n",
1158 * root node config rom. If this races with a bus reset we
1324 * first config rom scan half a second after bus reset.
1372 * process of reading its config rom
1376 * scheduled to read it's config rom, and we just put