Lines Matching refs:byte
118 module_param_array(id_bytes, byte, NULL, 0400);
119 module_param_named(first_id_byte, id_bytes[0], byte, 0400);
120 module_param_named(second_id_byte, id_bytes[1], byte, 0400);
121 module_param_named(third_id_byte, id_bytes[2], byte, 0400);
122 module_param_named(fourth_id_byte, id_bytes[3], byte, 0400);
298 u_char *byte; /* for byte access */ member
614 ns->pages[i].byte = NULL; in alloc_device()
648 if (ns->pages[i].byte) in free_device()
650 ns->pages[i].byte); in free_device()
788 ns->buf.byte = kmalloc(ns->geom.pgszoob, GFP_KERNEL); in init_nandsim()
789 if (!ns->buf.byte) { in init_nandsim()
795 memset(ns->buf.byte, 0xFF, ns->geom.pgszoob); in init_nandsim()
810 kfree(ns->buf.byte); in free_nandsim()
1179 uint byte = (uint)bt; in accept_addr_byte() local
1182 ns->regs.column |= (byte << 8 * ns->regs.count); in accept_addr_byte()
1184 ns->regs.row |= (byte << 8 * (ns->regs.count - in accept_addr_byte()
1434 return NS_GET_PAGE(ns)->byte + ns->regs.column + ns->regs.off; in NS_PAGE_BYTE_OFF()
1442 prandom_bytes(ns->buf.byte, num); in do_read_error()
1457 ns->buf.byte[pos / 8] ^= (1 << (pos % 8)); in do_bit_flips()
1476 memset(ns->buf.byte, 0xFF, num); in read_page()
1486 tx = read_file(ns, ns->cfile, ns->buf.byte, num, pos); in read_page()
1497 if (mypage->byte == NULL) { in read_page()
1499 memset(ns->buf.byte, 0xFF, num); in read_page()
1505 memcpy(ns->buf.byte, NS_PAGE_BYTE_OFF(ns), num); in read_page()
1529 if (mypage->byte != NULL) { in erase_sector()
1531 kmem_cache_free(ns->nand_pages_slab, mypage->byte); in erase_sector()
1532 mypage->byte = NULL; in erase_sector()
1567 pg_off[i] &= ns->buf.byte[i]; in prog_page()
1587 if (mypage->byte == NULL) { in prog_page()
1595 mypage->byte = kmem_cache_alloc(ns->nand_pages_slab, GFP_NOFS); in prog_page()
1596 if (mypage->byte == NULL) { in prog_page()
1600 memset(mypage->byte, 0xFF, ns->geom.pgszoob); in prog_page()
1605 pg_off[i] &= ns->buf.byte[i]; in prog_page()
1945 outb = ns->buf.byte[ns->regs.count]; in ns_nand_read_byte()
1971 static void ns_nand_write_byte(struct mtd_info *mtd, u_char byte) in ns_nand_write_byte() argument
1990 if (byte == NAND_CMD_RESET) { in ns_nand_write_byte()
1997 if (check_command(byte)) { in ns_nand_write_byte()
1998 NS_ERR("write_byte: unknown command %#x\n", (uint)byte); in ns_nand_write_byte()
2007 if (byte == NAND_CMD_RNDOUT) in ns_nand_write_byte()
2022 "ignore previous states\n", (uint)byte, get_state_name(ns->nxstate)); in ns_nand_write_byte()
2028 get_state_name(get_state_by_command(byte))); in ns_nand_write_byte()
2029 ns->regs.command = byte; in ns_nand_write_byte()
2068 "switch to STATE_READY\n", (uint)byte, get_state_name(ns->nxstate)); in ns_nand_write_byte()
2080 accept_addr_byte(ns, byte); in ns_nand_write_byte()
2085 (uint)byte, ns->regs.count, ns->regs.num); in ns_nand_write_byte()
2100 "switch to %s\n", (uint)byte, in ns_nand_write_byte()
2114 ns->buf.byte[ns->regs.count] = byte; in ns_nand_write_byte()
2117 ns->buf.word[ns->regs.count >> 1] = cpu_to_le16((uint16_t)byte); in ns_nand_write_byte()
2171 memcpy(ns->buf.byte + ns->regs.count, buf, len); in ns_nand_write_buf()
2214 memcpy(buf, ns->buf.byte + ns->regs.count, len); in ns_nand_read_buf()