Lines Matching refs:busw
1230 int busw = (chip->options & NAND_BUSWIDTH_16) ? 2 : 1; in nand_read_subpage() local
1274 aligned_pos = eccpos[index] & ~(busw - 1); in nand_read_subpage()
1276 if (eccpos[index] & (busw - 1)) in nand_read_subpage()
1278 if (eccpos[index + (num_steps * chip->ecc.bytes)] & (busw - 1)) in nand_read_subpage()
2975 static void nand_set_defaults(struct nand_chip *chip, int busw) in nand_set_defaults() argument
3000 chip->read_byte = busw ? nand_read_byte16 : nand_read_byte; in nand_set_defaults()
3008 chip->write_buf = busw ? nand_write_buf16 : nand_write_buf; in nand_set_defaults()
3010 chip->write_byte = busw ? nand_write_byte16 : nand_write_byte; in nand_set_defaults()
3012 chip->read_buf = busw ? nand_read_buf16 : nand_read_buf; in nand_set_defaults()
3153 int *busw) in nand_flash_detect_onfi() argument
3221 *busw = NAND_BUSWIDTH_16; in nand_flash_detect_onfi()
3223 *busw = 0; in nand_flash_detect_onfi()
3257 int *busw) in nand_flash_detect_jedec() argument
3317 *busw = NAND_BUSWIDTH_16; in nand_flash_detect_jedec()
3319 *busw = 0; in nand_flash_detect_jedec()
3409 u8 id_data[8], int *busw) in nand_decode_ext_id() argument
3462 *busw = 0; in nand_decode_ext_id()
3503 *busw = 0; in nand_decode_ext_id()
3516 *busw = (extid & 0x01) ? NAND_BUSWIDTH_16 : 0; in nand_decode_ext_id()
3543 int *busw) in nand_decode_id() argument
3550 *busw = type->options & NAND_BUSWIDTH_16; in nand_decode_id()
3612 struct nand_flash_dev *type, u8 *id_data, int *busw) in find_full_id_nand() argument
3627 *busw = type->options & NAND_BUSWIDTH_16; in find_full_id_nand()
3645 int busw; in nand_get_flash_type() local
3689 if (find_full_id_nand(mtd, chip, type, id_data, &busw)) in nand_get_flash_type()
3699 if (nand_flash_detect_onfi(mtd, chip, &busw)) in nand_get_flash_type()
3703 if (nand_flash_detect_jedec(mtd, chip, &busw)) in nand_get_flash_type()
3717 busw = chip->init_size(mtd, chip, id_data); in nand_get_flash_type()
3720 nand_decode_ext_id(mtd, chip, id_data, &busw); in nand_get_flash_type()
3722 nand_decode_id(mtd, chip, type, id_data, &busw); in nand_get_flash_type()
3743 chip->options |= busw; in nand_get_flash_type()
3744 nand_set_defaults(chip, busw); in nand_get_flash_type()
3745 } else if (busw != (chip->options & NAND_BUSWIDTH_16)) { in nand_get_flash_type()
3755 busw ? 16 : 8); in nand_get_flash_type()