• Home
  • Raw
  • Download

Lines Matching refs:id_data

3463 static int nand_id_has_period(u8 *id_data, int arrlen, int period)  in nand_id_has_period()  argument
3468 if (id_data[i] != id_data[j]) in nand_id_has_period()
3481 static int nand_id_len(u8 *id_data, int arrlen) in nand_id_len() argument
3487 if (id_data[last_nonzero]) in nand_id_len()
3496 if (nand_id_has_period(id_data, arrlen, period)) in nand_id_len()
3527 u8 id_data[8], int *busw) in nand_decode_ext_id()
3531 chip->bits_per_cell = nand_get_bits_per_cell(id_data[2]); in nand_decode_ext_id()
3533 extid = id_data[3]; in nand_decode_ext_id()
3535 id_len = nand_id_len(id_data, 8); in nand_decode_ext_id()
3546 if (id_len == 6 && id_data[0] == NAND_MFR_SAMSUNG && in nand_decode_ext_id()
3547 !nand_is_slc(chip) && id_data[5] != 0x00) { in nand_decode_ext_id()
3581 } else if (id_len == 6 && id_data[0] == NAND_MFR_HYNIX && in nand_decode_ext_id()
3644 if (id_len >= 6 && id_data[0] == NAND_MFR_TOSHIBA && in nand_decode_ext_id()
3646 (id_data[5] & 0x7) == 0x6 /* 24nm */ && in nand_decode_ext_id()
3647 !(id_data[4] & 0x80) /* !BENAND */) { in nand_decode_ext_id()
3660 struct nand_flash_dev *type, u8 id_data[8], in nand_decode_id()
3663 int maf_id = id_data[0]; in nand_decode_id()
3679 if (maf_id == NAND_MFR_AMD && id_data[4] != 0x00 && id_data[5] == 0x00 in nand_decode_id()
3680 && id_data[6] == 0x00 && id_data[7] == 0x00 in nand_decode_id()
3683 mtd->erasesize <<= ((id_data[3] & 0x03) << 1); in nand_decode_id()
3693 struct nand_chip *chip, u8 id_data[8]) in nand_decode_bbm_options()
3695 int maf_id = id_data[0]; in nand_decode_bbm_options()
3730 struct nand_flash_dev *type, u8 *id_data, int *busw) in find_full_id_nand() argument
3732 if (!strncmp((char *)type->id, (char *)id_data, type->id_len)) { in find_full_id_nand()
3737 chip->bits_per_cell = nand_get_bits_per_cell(id_data[2]); in find_full_id_nand()
3765 u8 id_data[8]; in nand_get_flash_type() local
3794 id_data[i] = chip->read_byte(mtd); in nand_get_flash_type()
3796 if (id_data[0] != *maf_id || id_data[1] != *dev_id) { in nand_get_flash_type()
3798 *maf_id, *dev_id, id_data[0], id_data[1]); in nand_get_flash_type()
3807 if (find_full_id_nand(mtd, chip, type, id_data, &busw)) in nand_get_flash_type()
3835 nand_decode_ext_id(mtd, chip, id_data, &busw); in nand_get_flash_type()
3837 nand_decode_id(mtd, chip, type, id_data, &busw); in nand_get_flash_type()
3874 nand_decode_bbm_options(mtd, chip, id_data); in nand_get_flash_type()