Lines Matching defs:busw
1168 int busw = (chip->options & NAND_BUSWIDTH_16) ? 2 : 1;
1207 aligned_pos = eccpos[start_step * chip->ecc.bytes] & ~(busw - 1);
1209 if (eccpos[start_step * chip->ecc.bytes] & (busw - 1))
1211 if (eccpos[(start_step + num_steps) * chip->ecc.bytes] & (busw - 1))
2748 static void nand_set_defaults(struct nand_chip *chip, int busw)
2765 chip->read_byte = busw ? nand_read_byte16 : nand_read_byte;
2773 chip->write_buf = busw ? nand_write_buf16 : nand_write_buf;
2775 chip->read_buf = busw ? nand_read_buf16 : nand_read_buf;
2777 chip->verify_buf = busw ? nand_verify_buf16 : nand_verify_buf;
2794 int busw, int *maf_id,
2880 busw = 0;
2893 busw = (extid & 0x01) ? NAND_BUSWIDTH_16 : 0;
2902 busw = type->options & NAND_BUSWIDTH_16;
2924 if (busw != (chip->options & NAND_BUSWIDTH_16)) {
2930 busw ? 16 : 8);
2947 if (mtd->writesize > 512 || (busw & NAND_BUSWIDTH_16))
2989 if (!(busw & NAND_BUSWIDTH_16) &&
3027 int i, busw, nand_maf_id;
3032 busw = chip->options & NAND_BUSWIDTH_16;
3034 nand_set_defaults(chip, busw);
3037 type = nand_get_flash_type(mtd, chip, busw, &nand_maf_id, table);