Lines Matching refs:bcode

557 	uint8_t *buf = (void *)req->ring, *bcode,  last_image;  in qla2xxx_find_flt_start()  local
588 bcode = buf + (pcihdr % 4); in qla2xxx_find_flt_start()
589 if (bcode[0x0] != 0x55 || bcode[0x1] != 0xaa) in qla2xxx_find_flt_start()
593 pcids = pcihdr + ((bcode[0x19] << 8) | bcode[0x18]); in qla2xxx_find_flt_start()
595 bcode = buf + (pcihdr % 4); in qla2xxx_find_flt_start()
598 if (bcode[0x0] != 'P' || bcode[0x1] != 'C' || in qla2xxx_find_flt_start()
599 bcode[0x2] != 'I' || bcode[0x3] != 'R') in qla2xxx_find_flt_start()
602 last_image = bcode[0x15] & BIT_7; in qla2xxx_find_flt_start()
605 pcihdr += ((bcode[0x11] << 8) | bcode[0x10]) * 512; in qla2xxx_find_flt_start()
3279 uint8_t *bcode = mbuf; in qla82xx_get_flash_version() local
3297 bcode = mbuf + (pcihdr % 4); in qla82xx_get_flash_version()
3298 if (memcmp(bcode, "\x55\xaa", 2)) { in qla82xx_get_flash_version()
3307 pcids = pcihdr + ((bcode[0x19] << 8) | bcode[0x18]); in qla82xx_get_flash_version()
3310 bcode = mbuf + (pcihdr % 4); in qla82xx_get_flash_version()
3313 if (memcmp(bcode, "PCIR", 4)) { in qla82xx_get_flash_version()
3322 code_type = bcode[0x14]; in qla82xx_get_flash_version()
3326 ha->bios_revision[0] = bcode[0x12]; in qla82xx_get_flash_version()
3327 ha->bios_revision[1] = bcode[0x13]; in qla82xx_get_flash_version()
3334 ha->fcode_revision[0] = bcode[0x12]; in qla82xx_get_flash_version()
3335 ha->fcode_revision[1] = bcode[0x13]; in qla82xx_get_flash_version()
3342 ha->efi_revision[0] = bcode[0x12]; in qla82xx_get_flash_version()
3343 ha->efi_revision[1] = bcode[0x13]; in qla82xx_get_flash_version()
3355 last_image = bcode[0x15] & BIT_7; in qla82xx_get_flash_version()
3358 pcihdr += ((bcode[0x11] << 8) | bcode[0x10]) * 512; in qla82xx_get_flash_version()
3365 bcode = mbuf + (pcihdr % 4); in qla82xx_get_flash_version()
3368 if (bcode[0x0] == 0x3 && bcode[0x1] == 0x0 && in qla82xx_get_flash_version()
3369 bcode[0x2] == 0x40 && bcode[0x3] == 0x40) { in qla82xx_get_flash_version()
3370 ha->fw_revision[0] = bcode[0x4]; in qla82xx_get_flash_version()
3371 ha->fw_revision[1] = bcode[0x5]; in qla82xx_get_flash_version()
3372 ha->fw_revision[2] = bcode[0x6]; in qla82xx_get_flash_version()
3388 uint8_t *bcode = mbuf; in qla24xx_get_flash_version() local
3417 bcode = mbuf + (pcihdr % 4); in qla24xx_get_flash_version()
3418 if (memcmp(bcode, "\x55\xaa", 2)) { in qla24xx_get_flash_version()
3427 pcids = pcihdr + ((bcode[0x19] << 8) | bcode[0x18]); in qla24xx_get_flash_version()
3430 bcode = mbuf + (pcihdr % 4); in qla24xx_get_flash_version()
3433 if (memcmp(bcode, "PCIR", 4)) { in qla24xx_get_flash_version()
3443 code_type = bcode[0x14]; in qla24xx_get_flash_version()
3447 ha->bios_revision[0] = bcode[0x12]; in qla24xx_get_flash_version()
3448 ha->bios_revision[1] = bcode[0x13]; in qla24xx_get_flash_version()
3455 ha->fcode_revision[0] = bcode[0x12]; in qla24xx_get_flash_version()
3456 ha->fcode_revision[1] = bcode[0x13]; in qla24xx_get_flash_version()
3463 ha->efi_revision[0] = bcode[0x12]; in qla24xx_get_flash_version()
3464 ha->efi_revision[1] = bcode[0x13]; in qla24xx_get_flash_version()
3476 last_image = bcode[0x15] & BIT_7; in qla24xx_get_flash_version()
3479 pcihdr += ((bcode[0x11] << 8) | bcode[0x10]) * 512; in qla24xx_get_flash_version()