Lines Matching refs:rom
508 u32 *rom, *stack;
512 rom = kmalloc(sizeof(*rom) * MAX_CONFIG_ROM_SIZE +
514 if (rom == NULL)
517 stack = &rom[MAX_CONFIG_ROM_SIZE];
518 memset(rom, 0, sizeof(*rom) * MAX_CONFIG_ROM_SIZE);
524 ret = read_rom(device, generation, i, &rom[i]);
530 * rom to indicate that they are booting (for example,
535 if (i == 0 && rom[i] == 0) {
552 if ((rom[2] & 0x7) < device->max_speed ||
570 * Now parse the config rom. The config rom is a recursive
582 * lower 24 bits is the offset into the config rom,
594 ret = read_rom(device, generation, i, &rom[i]);
597 end = i + (rom[i] >> 16) + 1;
605 rom[i],
607 rom[i] = 0;
618 ret = read_rom(device, generation, i, &rom[i]);
622 if ((key >> 30) != 3 || (rom[i] >> 30) < 2)
631 if (i + (rom[i] & 0xffffff) >= MAX_CONFIG_ROM_SIZE) {
634 rom[i],
636 rom[i] = 0;
639 stack[sp++] = i + rom[i];
646 new_rom = kmemdup(rom, length * 4, GFP_KERNEL);
659 device->max_rec = rom[2] >> 12 & 0xf;
660 device->cmc = rom[2] >> 30 & 1;
661 device->irmc = rom[2] >> 31 & 1;
663 kfree(rom);
769 * rom. It shouldn't be necessary to tweak these; if the device
770 * doesn't respond to a config rom read within 10 seconds, it's not
1000 fw_notice(card, "giving up on node %x: reading config rom failed: %s\n",
1078 * root node config rom. If this races with a bus reset we
1244 * first config rom scan half a second after bus reset.
1292 * process of reading its config rom
1296 * scheduled to read it's config rom, and we just put