Lines Matching refs:id_data

4099 static int nand_id_has_period(u8 *id_data, int arrlen, int period)  in nand_id_has_period()  argument
4104 if (id_data[i] != id_data[j]) in nand_id_has_period()
4117 static int nand_id_len(u8 *id_data, int arrlen) in nand_id_len() argument
4123 if (id_data[last_nonzero]) in nand_id_len()
4132 if (nand_id_has_period(id_data, arrlen, period)) in nand_id_len()
4163 u8 id_data[8], int *busw) in nand_decode_ext_id()
4167 chip->bits_per_cell = nand_get_bits_per_cell(id_data[2]); in nand_decode_ext_id()
4169 extid = id_data[3]; in nand_decode_ext_id()
4171 id_len = nand_id_len(id_data, 8); in nand_decode_ext_id()
4182 if (id_len == 6 && id_data[0] == NAND_MFR_SAMSUNG && in nand_decode_ext_id()
4183 !nand_is_slc(chip) && id_data[5] != 0x00) { in nand_decode_ext_id()
4217 } else if (id_len == 6 && id_data[0] == NAND_MFR_HYNIX && in nand_decode_ext_id()
4280 if (id_len >= 6 && id_data[0] == NAND_MFR_TOSHIBA && in nand_decode_ext_id()
4282 (id_data[5] & 0x7) == 0x6 /* 24nm */ && in nand_decode_ext_id()
4283 !(id_data[4] & 0x80) /* !BENAND */) { in nand_decode_ext_id()
4296 struct nand_flash_dev *type, u8 id_data[8], in nand_decode_id()
4299 int maf_id = id_data[0]; in nand_decode_id()
4315 if (maf_id == NAND_MFR_AMD && id_data[4] != 0x00 && id_data[5] == 0x00 in nand_decode_id()
4316 && id_data[6] == 0x00 && id_data[7] == 0x00 in nand_decode_id()
4319 mtd->erasesize <<= ((id_data[3] & 0x03) << 1); in nand_decode_id()
4329 struct nand_chip *chip, u8 id_data[8]) in nand_decode_bbm_options()
4331 int maf_id = id_data[0]; in nand_decode_bbm_options()
4366 struct nand_flash_dev *type, u8 *id_data, int *busw) in find_full_id_nand() argument
4368 if (!strncmp((char *)type->id, (char *)id_data, type->id_len)) { in find_full_id_nand()
4373 chip->bits_per_cell = nand_get_bits_per_cell(id_data[2]); in find_full_id_nand()
4401 u8 id_data[8]; in nand_get_flash_type() local
4415 ret = nand_readid_op(chip, 0, id_data, 2); in nand_get_flash_type()
4420 *maf_id = id_data[0]; in nand_get_flash_type()
4421 *dev_id = id_data[1]; in nand_get_flash_type()
4431 ret = nand_readid_op(chip, 0, id_data, 8); in nand_get_flash_type()
4435 if (id_data[0] != *maf_id || id_data[1] != *dev_id) { in nand_get_flash_type()
4437 *maf_id, *dev_id, id_data[0], id_data[1]); in nand_get_flash_type()
4446 if (find_full_id_nand(mtd, chip, type, id_data, &busw)) in nand_get_flash_type()
4474 nand_decode_ext_id(mtd, chip, id_data, &busw); in nand_get_flash_type()
4476 nand_decode_id(mtd, chip, type, id_data, &busw); in nand_get_flash_type()
4513 nand_decode_bbm_options(mtd, chip, id_data); in nand_get_flash_type()