Lines Matching refs:nc_oob_cache
154 chip->nc_oob_cache = kmem_alloc(chip->nc_spare_size, KM_SLEEP);
180 kmem_free(chip->nc_oob_cache, chip->nc_spare_size);
251 kmem_free(chip->nc_oob_cache, chip->nc_spare_size);
717 nand_read_oob(self, offset, chip->nc_oob_cache);
718 ecc = chip->nc_oob_cache + chip->nc_ecc->necc_offset;
785 ecc = chip->nc_oob_cache + chip->nc_ecc->necc_offset;
796 nand_write_buf_2(self, chip->nc_oob_cache,
805 nand_write_buf_1(self, chip->nc_oob_cache,
903 nand_read_oob(self, blockoffset, chip->nc_oob_cache);
905 chip->nc_oob_cache[chip->nc_badmarker_offs] = 0x00;
906 chip->nc_oob_cache[chip->nc_badmarker_offs + 1] = 0x00;
908 nand_write_oob(self, blockoffset, chip->nc_oob_cache);