Lines Matching refs:id_data

3487 static int nand_id_has_period(u8 *id_data, int arrlen, int period)  in nand_id_has_period()  argument
3492 if (id_data[i] != id_data[j]) in nand_id_has_period()
3505 static int nand_id_len(u8 *id_data, int arrlen) in nand_id_len() argument
3511 if (id_data[last_nonzero]) in nand_id_len()
3520 if (nand_id_has_period(id_data, arrlen, period)) in nand_id_len()
3551 u8 id_data[8], int *busw) in nand_decode_ext_id()
3555 chip->bits_per_cell = nand_get_bits_per_cell(id_data[2]); in nand_decode_ext_id()
3557 extid = id_data[3]; in nand_decode_ext_id()
3559 id_len = nand_id_len(id_data, 8); in nand_decode_ext_id()
3570 if (id_len == 6 && id_data[0] == NAND_MFR_SAMSUNG && in nand_decode_ext_id()
3571 !nand_is_slc(chip) && id_data[5] != 0x00) { in nand_decode_ext_id()
3605 } else if (id_len == 6 && id_data[0] == NAND_MFR_HYNIX && in nand_decode_ext_id()
3668 if (id_len >= 6 && id_data[0] == NAND_MFR_TOSHIBA && in nand_decode_ext_id()
3670 (id_data[5] & 0x7) == 0x6 /* 24nm */ && in nand_decode_ext_id()
3671 !(id_data[4] & 0x80) /* !BENAND */) { in nand_decode_ext_id()
3684 struct nand_flash_dev *type, u8 id_data[8], in nand_decode_id()
3687 int maf_id = id_data[0]; in nand_decode_id()
3703 if (maf_id == NAND_MFR_AMD && id_data[4] != 0x00 && id_data[5] == 0x00 in nand_decode_id()
3704 && id_data[6] == 0x00 && id_data[7] == 0x00 in nand_decode_id()
3707 mtd->erasesize <<= ((id_data[3] & 0x03) << 1); in nand_decode_id()
3717 struct nand_chip *chip, u8 id_data[8]) in nand_decode_bbm_options()
3719 int maf_id = id_data[0]; in nand_decode_bbm_options()
3754 struct nand_flash_dev *type, u8 *id_data, int *busw) in find_full_id_nand() argument
3756 if (!strncmp(type->id, id_data, type->id_len)) { in find_full_id_nand()
3761 chip->bits_per_cell = nand_get_bits_per_cell(id_data[2]); in find_full_id_nand()
3789 u8 id_data[8]; in nand_get_flash_type() local
3818 id_data[i] = chip->read_byte(mtd); in nand_get_flash_type()
3820 if (id_data[0] != *maf_id || id_data[1] != *dev_id) { in nand_get_flash_type()
3822 *maf_id, *dev_id, id_data[0], id_data[1]); in nand_get_flash_type()
3831 if (find_full_id_nand(mtd, chip, type, id_data, &busw)) in nand_get_flash_type()
3859 nand_decode_ext_id(mtd, chip, id_data, &busw); in nand_get_flash_type()
3861 nand_decode_id(mtd, chip, type, id_data, &busw); in nand_get_flash_type()
3898 nand_decode_bbm_options(mtd, chip, id_data); in nand_get_flash_type()