Lines Matching refs:busw

1906 	int busw = (chip->options & NAND_BUSWIDTH_16) ? 2 : 1;  in nand_read_subpage()  local
1956 aligned_pos = eccpos[index] & ~(busw - 1); in nand_read_subpage()
1958 if (eccpos[index] & (busw - 1)) in nand_read_subpage()
1960 if (eccpos[index + (num_steps * chip->ecc.bytes)] & (busw - 1)) in nand_read_subpage()
3709 static void nand_set_defaults(struct nand_chip *chip, int busw) in nand_set_defaults() argument
3734 chip->read_byte = busw ? nand_read_byte16 : nand_read_byte; in nand_set_defaults()
3742 chip->write_buf = busw ? nand_write_buf16 : nand_write_buf; in nand_set_defaults()
3744 chip->write_byte = busw ? nand_write_byte16 : nand_write_byte; in nand_set_defaults()
3746 chip->read_buf = busw ? nand_read_buf16 : nand_read_buf; in nand_set_defaults()
3894 int *busw) in nand_flash_detect_onfi() argument
3966 *busw = NAND_BUSWIDTH_16; in nand_flash_detect_onfi()
3968 *busw = 0; in nand_flash_detect_onfi()
3999 int *busw) in nand_flash_detect_onfi() argument
4009 int *busw) in nand_flash_detect_jedec() argument
4071 *busw = NAND_BUSWIDTH_16; in nand_flash_detect_jedec()
4073 *busw = 0; in nand_flash_detect_jedec()
4163 u8 id_data[8], int *busw) in nand_decode_ext_id() argument
4216 *busw = 0; in nand_decode_ext_id()
4257 *busw = 0; in nand_decode_ext_id()
4270 *busw = (extid & 0x01) ? NAND_BUSWIDTH_16 : 0; in nand_decode_ext_id()
4297 int *busw) in nand_decode_id() argument
4304 *busw = type->options & NAND_BUSWIDTH_16; in nand_decode_id()
4366 struct nand_flash_dev *type, u8 *id_data, int *busw) in find_full_id_nand() argument
4381 *busw = type->options & NAND_BUSWIDTH_16; in find_full_id_nand()
4399 int busw, ret; in nand_get_flash_type() local
4446 if (find_full_id_nand(mtd, chip, type, id_data, &busw)) in nand_get_flash_type()
4456 if (nand_flash_detect_onfi(mtd, chip, &busw)) in nand_get_flash_type()
4460 if (nand_flash_detect_jedec(mtd, chip, &busw)) in nand_get_flash_type()
4474 nand_decode_ext_id(mtd, chip, id_data, &busw); in nand_get_flash_type()
4476 nand_decode_id(mtd, chip, type, id_data, &busw); in nand_get_flash_type()
4497 chip->options |= busw; in nand_get_flash_type()
4498 nand_set_defaults(chip, busw); in nand_get_flash_type()
4499 } else if (busw != (chip->options & NAND_BUSWIDTH_16)) { in nand_get_flash_type()
4509 busw ? 16 : 8); in nand_get_flash_type()