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()
793 ns->buf.byte = kmalloc(ns->geom.pgszoob, GFP_KERNEL); in init_nandsim()
794 if (!ns->buf.byte) { in init_nandsim()
799 memset(ns->buf.byte, 0xFF, ns->geom.pgszoob); in init_nandsim()
809 kfree(ns->buf.byte); in free_nandsim()
1178 uint byte = (uint)bt; in accept_addr_byte() local
1181 ns->regs.column |= (byte << 8 * ns->regs.count); in accept_addr_byte()
1183 ns->regs.row |= (byte << 8 * (ns->regs.count - in accept_addr_byte()
1433 return NS_GET_PAGE(ns)->byte + ns->regs.column + ns->regs.off; in NS_PAGE_BYTE_OFF()
1441 prandom_bytes(ns->buf.byte, num); in do_read_error()
1456 ns->buf.byte[pos / 8] ^= (1 << (pos % 8)); in do_bit_flips()
1475 memset(ns->buf.byte, 0xFF, num); in read_page()
1485 tx = read_file(ns, ns->cfile, ns->buf.byte, num, pos); in read_page()
1496 if (mypage->byte == NULL) { in read_page()
1498 memset(ns->buf.byte, 0xFF, num); in read_page()
1504 memcpy(ns->buf.byte, NS_PAGE_BYTE_OFF(ns), num); in read_page()
1528 if (mypage->byte != NULL) { in erase_sector()
1530 kmem_cache_free(ns->nand_pages_slab, mypage->byte); in erase_sector()
1531 mypage->byte = NULL; in erase_sector()
1566 pg_off[i] &= ns->buf.byte[i]; in prog_page()
1586 if (mypage->byte == NULL) { in prog_page()
1594 mypage->byte = kmem_cache_alloc(ns->nand_pages_slab, GFP_NOFS); in prog_page()
1595 if (mypage->byte == NULL) { in prog_page()
1599 memset(mypage->byte, 0xFF, ns->geom.pgszoob); in prog_page()
1604 pg_off[i] &= ns->buf.byte[i]; in prog_page()
1944 outb = ns->buf.byte[ns->regs.count]; in ns_nand_read_byte()
1970 static void ns_nand_write_byte(struct mtd_info *mtd, u_char byte) in ns_nand_write_byte() argument
1989 if (byte == NAND_CMD_RESET) { in ns_nand_write_byte()
1996 if (check_command(byte)) { in ns_nand_write_byte()
1997 NS_ERR("write_byte: unknown command %#x\n", (uint)byte); in ns_nand_write_byte()
2006 if (byte == NAND_CMD_RNDOUT) in ns_nand_write_byte()
2021 "ignore previous states\n", (uint)byte, get_state_name(ns->nxstate)); in ns_nand_write_byte()
2027 get_state_name(get_state_by_command(byte))); in ns_nand_write_byte()
2028 ns->regs.command = byte; in ns_nand_write_byte()
2067 "switch to STATE_READY\n", (uint)byte, get_state_name(ns->nxstate)); in ns_nand_write_byte()
2079 accept_addr_byte(ns, byte); in ns_nand_write_byte()
2084 (uint)byte, ns->regs.count, ns->regs.num); in ns_nand_write_byte()
2099 "switch to %s\n", (uint)byte, in ns_nand_write_byte()
2113 ns->buf.byte[ns->regs.count] = byte; in ns_nand_write_byte()
2116 ns->buf.word[ns->regs.count >> 1] = cpu_to_le16((uint16_t)byte); in ns_nand_write_byte()
2170 memcpy(ns->buf.byte + ns->regs.count, buf, len); in ns_nand_write_buf()
2213 memcpy(buf, ns->buf.byte + ns->regs.count, len); in ns_nand_read_buf()