Lines Matching +full:0 +full:x8005
26 for (i = 0; i < 8; i++) in onfi_crc16()
27 crc = (crc << 1) ^ ((crc & 0x8000) ? 0x8005 : 0); in onfi_crc16()
80 for (i = 0; i < ONFI_EXT_SECTION_MAX; i++) { in nand_flash_detect_ext_param_page()
103 ret = 0; in nand_flash_detect_ext_param_page()
120 for (i = 0; i < bufsize; i++) { in nand_bit_wise_majority()
121 u8 val = 0; in nand_bit_wise_majority()
123 for (j = 0; j < 8; j++) { in nand_bit_wise_majority()
124 unsigned int cnt = 0; in nand_bit_wise_majority()
126 for (k = 0; k < nsrcbufs; k++) { in nand_bit_wise_majority()
142 * Check if the NAND chip is ONFI compliant, returns 1 if it is, 0 otherwise.
152 int onfi_version = 0; in nand_onfi_detect()
160 ret = nand_readid_op(chip, 0x20, id, sizeof(id)); in nand_onfi_detect()
162 return 0; in nand_onfi_detect()
172 for (i = 0; i < ONFI_PARAM_PAGES; i++) { in nand_onfi_detect()
174 ret = nand_read_param_page_op(chip, 0, &pbuf[i], in nand_onfi_detect()
184 ret = 0; in nand_onfi_detect()
199 for (j = 0; j < ONFI_PARAM_PAGES; j++) in nand_onfi_detect()
271 if (p->ecc_bits != 0xff) { in nand_onfi_detect()
320 onfi->fast_tCAD = le16_to_cpu(p->nvddr_nvddr2_features) & BIT(0); in nand_onfi_detect()