Lines Matching refs:busw

1364 	int busw = (chip->options & NAND_BUSWIDTH_16) ? 2 : 1;  in nand_read_subpage()  local
1408 aligned_pos = eccpos[index] & ~(busw - 1); in nand_read_subpage()
1410 if (eccpos[index] & (busw - 1)) in nand_read_subpage()
1412 if (eccpos[index + (num_steps * chip->ecc.bytes)] & (busw - 1)) in nand_read_subpage()
3117 static void nand_set_defaults(struct nand_chip *chip, int busw) in nand_set_defaults() argument
3142 chip->read_byte = busw ? nand_read_byte16 : nand_read_byte; in nand_set_defaults()
3150 chip->write_buf = busw ? nand_write_buf16 : nand_write_buf; in nand_set_defaults()
3152 chip->write_byte = busw ? nand_write_byte16 : nand_write_byte; in nand_set_defaults()
3154 chip->read_buf = busw ? nand_read_buf16 : nand_read_buf; in nand_set_defaults()
3295 int *busw) in nand_flash_detect_onfi() argument
3363 *busw = NAND_BUSWIDTH_16; in nand_flash_detect_onfi()
3365 *busw = 0; in nand_flash_detect_onfi()
3399 int *busw) in nand_flash_detect_jedec() argument
3459 *busw = NAND_BUSWIDTH_16; in nand_flash_detect_jedec()
3461 *busw = 0; in nand_flash_detect_jedec()
3551 u8 id_data[8], int *busw) in nand_decode_ext_id() argument
3604 *busw = 0; in nand_decode_ext_id()
3645 *busw = 0; in nand_decode_ext_id()
3658 *busw = (extid & 0x01) ? NAND_BUSWIDTH_16 : 0; in nand_decode_ext_id()
3685 int *busw) in nand_decode_id() argument
3692 *busw = type->options & NAND_BUSWIDTH_16; in nand_decode_id()
3754 struct nand_flash_dev *type, u8 *id_data, int *busw) in find_full_id_nand() argument
3769 *busw = type->options & NAND_BUSWIDTH_16; in find_full_id_nand()
3787 int busw; in nand_get_flash_type() local
3831 if (find_full_id_nand(mtd, chip, type, id_data, &busw)) in nand_get_flash_type()
3841 if (nand_flash_detect_onfi(mtd, chip, &busw)) in nand_get_flash_type()
3845 if (nand_flash_detect_jedec(mtd, chip, &busw)) in nand_get_flash_type()
3859 nand_decode_ext_id(mtd, chip, id_data, &busw); in nand_get_flash_type()
3861 nand_decode_id(mtd, chip, type, id_data, &busw); in nand_get_flash_type()
3882 chip->options |= busw; in nand_get_flash_type()
3883 nand_set_defaults(chip, busw); in nand_get_flash_type()
3884 } else if (busw != (chip->options & NAND_BUSWIDTH_16)) { in nand_get_flash_type()
3894 busw ? 16 : 8); in nand_get_flash_type()