Lines Matching refs:id_data
2929 static int nand_id_has_period(u8 *id_data, int arrlen, int period) in nand_id_has_period() argument
2934 if (id_data[i] != id_data[j]) in nand_id_has_period()
2947 static int nand_id_len(u8 *id_data, int arrlen) in nand_id_len() argument
2953 if (id_data[last_nonzero]) in nand_id_len()
2962 if (nand_id_has_period(id_data, arrlen, period)) in nand_id_len()
2983 u8 id_data[8], int *busw) in nand_decode_ext_id()
2987 chip->cellinfo = id_data[2]; in nand_decode_ext_id()
2989 extid = id_data[3]; in nand_decode_ext_id()
2991 id_len = nand_id_len(id_data, 8); in nand_decode_ext_id()
3002 if (id_len == 6 && id_data[0] == NAND_MFR_SAMSUNG && in nand_decode_ext_id()
3004 id_data[5] != 0x00) { in nand_decode_ext_id()
3035 } else if (id_len == 6 && id_data[0] == NAND_MFR_HYNIX && in nand_decode_ext_id()
3098 struct nand_flash_dev *type, u8 id_data[8], in nand_decode_id()
3101 int maf_id = id_data[0]; in nand_decode_id()
3114 if (maf_id == NAND_MFR_AMD && id_data[4] != 0x00 && id_data[5] == 0x00 in nand_decode_id()
3115 && id_data[6] == 0x00 && id_data[7] == 0x00 in nand_decode_id()
3118 mtd->erasesize <<= ((id_data[3] & 0x03) << 1); in nand_decode_id()
3128 struct nand_chip *chip, u8 id_data[8]) in nand_decode_bbm_options()
3130 int maf_id = id_data[0]; in nand_decode_bbm_options()
3165 struct nand_flash_dev *type, u8 *id_data, int *busw) in find_full_id_nand() argument
3167 if (!strncmp(type->id, id_data, type->id_len)) { in find_full_id_nand()
3172 chip->cellinfo = id_data[2]; in find_full_id_nand()
3193 u8 id_data[8]; in nand_get_flash_type() local
3222 id_data[i] = chip->read_byte(mtd); in nand_get_flash_type()
3224 if (id_data[0] != *maf_id || id_data[1] != *dev_id) { in nand_get_flash_type()
3227 *maf_id, *dev_id, id_data[0], id_data[1]); in nand_get_flash_type()
3236 if (find_full_id_nand(mtd, chip, type, id_data, &busw)) in nand_get_flash_type()
3260 busw = chip->init_size(mtd, chip, id_data); in nand_get_flash_type()
3263 nand_decode_ext_id(mtd, chip, id_data, &busw); in nand_get_flash_type()
3265 nand_decode_id(mtd, chip, type, id_data, &busw); in nand_get_flash_type()
3302 nand_decode_bbm_options(mtd, chip, id_data); in nand_get_flash_type()