Home
last modified time | relevance | path

Searched refs:busw (Results 1 – 2 of 2) sorted by relevance

/drivers/mtd/nand/
Dnand_base.c815 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
[all …]
Dnandsim.c293 uint busw; /* flash chip bus width (8 or 16) */ member
567 ns->busw = chip->options & NAND_BUSWIDTH_16 ? 16 : 8; in init_nandsim()
587 if (ns->busw == 8) in init_nandsim()
657 if (ns->busw == 16) in init_nandsim()
667 printk("bus width: %u\n", ns->busw); in init_nandsim()
1579 int busdiv = ns->busw == 8 ? 1 : 2; in do_state_action()
1772 if ((ns->nxstate & STATE_ADDR_MASK) && ns->busw == 16) { in switch_state()
1906 if (ns->busw == 8) { in ns_nand_read_byte()
2088 if (ns->busw == 8) { in ns_nand_write_byte()
2277 nand->busw = 16; in ns_init_module()