Lines Matching defs:rom
582 u32 *rom, *stack;
586 rom = kmalloc(sizeof(*rom) * MAX_CONFIG_ROM_SIZE +
588 if (rom == NULL)
591 stack = &rom[MAX_CONFIG_ROM_SIZE];
592 memset(rom, 0, sizeof(*rom) * MAX_CONFIG_ROM_SIZE);
598 ret = read_rom(device, generation, i, &rom[i]);
604 * rom to indicate that they are booting (for example,
609 if (i == 0 && rom[i] == 0) {
626 if ((rom[2] & 0x7) < device->max_speed ||
644 * Now parse the config rom. The config rom is a recursive
656 * lower 24 bits is the offset into the config rom,
668 ret = read_rom(device, generation, i, &rom[i]);
671 end = i + (rom[i] >> 16) + 1;
679 rom[i],
681 rom[i] = 0;
692 ret = read_rom(device, generation, i, &rom[i]);
696 if ((key >> 30) != 3 || (rom[i] >> 30) < 2)
705 if (i + (rom[i] & 0xffffff) >= MAX_CONFIG_ROM_SIZE) {
708 rom[i],
710 rom[i] = 0;
713 stack[sp++] = i + rom[i];
720 new_rom = kmemdup(rom, length * 4, GFP_KERNEL);
733 device->max_rec = rom[2] >> 12 & 0xf;
734 device->cmc = rom[2] >> 30 & 1;
735 device->irmc = rom[2] >> 31 & 1;
737 kfree(rom);
840 * rom. It shouldn't be necessary to tweak these; if the device
841 * doesn't respond to a config rom read within 10 seconds, it's not
1026 fw_notice(card, "giving up on node %x: reading config rom failed: %s\n",
1142 * root node config rom. If this races with a bus reset we
1306 * first config rom scan half a second after bus reset.
1354 * process of reading its config rom
1358 * scheduled to read it's config rom, and we just put