Searched refs:busw (Results 1 – 5 of 5) sorted by relevance
583 unsigned int busw = chip->options & NAND_BUSWIDTH_16; in nand_legacy_set_defaults() local605 chip->legacy.read_byte = busw ? nand_read_byte16 : nand_read_byte; in nand_legacy_set_defaults()607 chip->legacy.write_buf = busw ? nand_write_buf16 : nand_write_buf; in nand_legacy_set_defaults()609 chip->legacy.write_byte = busw ? nand_write_byte16 : nand_write_byte; in nand_legacy_set_defaults()611 chip->legacy.read_buf = busw ? nand_read_buf16 : nand_read_buf; in nand_legacy_set_defaults()
295 uint busw; /* flash chip bus width (8 or 16) */ member654 ns->busw = chip->options & NAND_BUSWIDTH_16 ? 16 : 8; in ns_init()670 if (ns->busw == 8) in ns_init()741 if (ns->busw == 16) in ns_init()751 printk("bus width: %u\n", ns->busw); in ns_init()1574 int busdiv = ns->busw == 8 ? 1 : 2; in ns_do_state_action()1763 if ((ns->nxstate & STATE_ADDR_MASK) && ns->busw == 16) { in ns_switch_state()1897 if (ns->busw == 8) { in ns_nand_read_byte()2069 if (ns->busw == 8) { in ns_nand_write_byte()2316 ns->busw = 16; in ns_init_module()
3103 int busw = (chip->options & NAND_BUSWIDTH_16) ? 2 : 1; in nand_read_subpage() local3151 aligned_pos = oobregion.offset & ~(busw - 1); in nand_read_subpage()3153 if (oobregion.offset & (busw - 1)) in nand_read_subpage()3156 (busw - 1)) in nand_read_subpage()5204 int busw, ret; in nand_detect() local5273 busw = chip->options & NAND_BUSWIDTH_16; in nand_detect()5331 WARN_ON(busw & NAND_BUSWIDTH_16); in nand_detect()5333 } else if (busw != (chip->options & NAND_BUSWIDTH_16)) { in nand_detect()5342 pr_warn("bus width %d instead of %d bits\n", busw ? 16 : 8, in nand_detect()
600 unsigned int busw = OP_BUSW_1; in mxic_spi_transfer_one() local617 busw = OP_BUSW_4; in mxic_spi_transfer_one()619 busw = OP_BUSW_2; in mxic_spi_transfer_one()622 busw = OP_BUSW_4; in mxic_spi_transfer_one()624 busw = OP_BUSW_2; in mxic_spi_transfer_one()627 writel(OP_CMD_BYTES(1) | OP_CMD_BUSW(busw) | in mxic_spi_transfer_one()628 OP_DATA_BUSW(busw) | (t->rx_buf ? OP_READ : 0), in mxic_spi_transfer_one()
192 static int cbrscan_ast2150(struct ast_device *ast, int busw) in cbrscan_ast2150() argument209 static void cbrdlli_ast2150(struct ast_device *ast, int busw) in cbrdlli_ast2150() argument220 data = cbrscan_ast2150(ast, busw); in cbrdlli_ast2150()