Lines Matching refs:rom
511 u32 *rom, *stack; in read_config_rom() local
515 rom = kmalloc(sizeof(*rom) * MAX_CONFIG_ROM_SIZE + in read_config_rom()
517 if (rom == NULL) in read_config_rom()
520 stack = &rom[MAX_CONFIG_ROM_SIZE]; in read_config_rom()
521 memset(rom, 0, sizeof(*rom) * MAX_CONFIG_ROM_SIZE); in read_config_rom()
527 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
538 if (i == 0 && rom[i] == 0) { in read_config_rom()
555 if ((rom[2] & 0x7) < device->max_speed || in read_config_rom()
597 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
600 end = i + (rom[i] >> 16) + 1; in read_config_rom()
608 rom[i], in read_config_rom()
610 rom[i] = 0; in read_config_rom()
621 ret = read_rom(device, generation, i, &rom[i]); in read_config_rom()
625 if ((key >> 30) != 3 || (rom[i] >> 30) < 2) in read_config_rom()
634 if (i + (rom[i] & 0xffffff) >= MAX_CONFIG_ROM_SIZE) { in read_config_rom()
637 rom[i], in read_config_rom()
639 rom[i] = 0; in read_config_rom()
642 stack[sp++] = i + rom[i]; in read_config_rom()
649 new_rom = kmemdup(rom, length * 4, GFP_KERNEL); in read_config_rom()
662 device->max_rec = rom[2] >> 12 & 0xf; in read_config_rom()
663 device->cmc = rom[2] >> 30 & 1; in read_config_rom()
664 device->irmc = rom[2] >> 31 & 1; in read_config_rom()
666 kfree(rom); in read_config_rom()