Lines Matching refs:busw
815 int busw = (chip->options & NAND_BUSWIDTH_16) ? 2 : 1; in nand_read_subpage() local
854 aligned_pos = eccpos[start_step * chip->ecc.bytes] & ~(busw - 1); in nand_read_subpage()
856 if (eccpos[start_step * chip->ecc.bytes] & (busw - 1)) in nand_read_subpage()
858 if (eccpos[(start_step + num_steps) * chip->ecc.bytes] & (busw - 1)) in nand_read_subpage()
2269 static void nand_set_defaults(struct nand_chip *chip, int busw) in nand_set_defaults() argument
2286 chip->read_byte = busw ? nand_read_byte16 : nand_read_byte; in nand_set_defaults()
2294 chip->write_buf = busw ? nand_write_buf16 : nand_write_buf; in nand_set_defaults()
2296 chip->read_buf = busw ? nand_read_buf16 : nand_read_buf; in nand_set_defaults()
2298 chip->verify_buf = busw ? nand_verify_buf16 : nand_verify_buf; in nand_set_defaults()
2315 int busw, int *maf_id) in nand_get_flash_type() argument
2390 busw = (extid & 0x01) ? NAND_BUSWIDTH_16 : 0; in nand_get_flash_type()
2399 busw = type->options & NAND_BUSWIDTH_16; in nand_get_flash_type()
2412 if (busw != (chip->options & NAND_BUSWIDTH_16)) { in nand_get_flash_type()
2418 busw ? 16 : 8); in nand_get_flash_type()
2482 int i, busw, nand_maf_id; in nand_scan_ident() local
2487 busw = chip->options & NAND_BUSWIDTH_16; in nand_scan_ident()
2489 nand_set_defaults(chip, busw); in nand_scan_ident()
2492 type = nand_get_flash_type(mtd, chip, busw, &nand_maf_id); in nand_scan_ident()