Lines Matching refs:nbytes
110 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_read_bbt() local
127 bbt_page_num = (sizeof(struct nanddev_bbt_info) + nbytes + in nanddev_read_bbt()
140 bbt_info = (struct nanddev_bbt_info *)(data_buf + nbytes); in nanddev_read_bbt()
169 !bbt_check_hash(data_buf, nbytes + sizeof(struct nanddev_bbt_info) - 4, bbt_info->hash)) { in nanddev_read_bbt()
180 memcpy(nand->bbt.cache, data_buf, nbytes); in nanddev_read_bbt()
185 bbt_dbg_hex("bbt", data_buf, nbytes + sizeof(struct nanddev_bbt_info)); in nanddev_read_bbt()
193 memcpy(temp_buf, nand->bbt.cache, nbytes); in nanddev_read_bbt()
194 memcpy(nand->bbt.cache, data_buf, nbytes); in nanddev_read_bbt()
205 memcpy(nand->bbt.cache, temp_buf, nbytes); in nanddev_read_bbt()
222 unsigned int nbytes = DIV_ROUND_UP(nblocks * bits_per_block, in nanddev_write_bbt() local
240 bbt_page_num = (sizeof(struct nanddev_bbt_info) + nbytes + in nanddev_write_bbt()
254 bbt_info = (struct nanddev_bbt_info *)(data_buf + nbytes); in nanddev_write_bbt()
256 memcpy(data_buf, nand->bbt.cache, nbytes); in nanddev_write_bbt()
259 bbt_info->hash = js_hash(data_buf, nbytes + sizeof(struct nanddev_bbt_info) - 4); in nanddev_write_bbt()