Lines Matching refs:dbbt
315 struct mx28_nand_dbbt *dbbt; in mx28_nand_get_dbbt() local
317 dbbt = malloc(nand_writesize); in mx28_nand_get_dbbt()
318 if (!dbbt) { in mx28_nand_get_dbbt()
323 memset(dbbt, 0, nand_writesize); in mx28_nand_get_dbbt()
325 dbbt->fingerprint = 0x54424244; in mx28_nand_get_dbbt()
326 dbbt->version = 0x1; in mx28_nand_get_dbbt()
328 return dbbt; in mx28_nand_get_dbbt()
406 static int mx28_nand_write_dbbt(struct mx28_nand_dbbt *dbbt, uint8_t *buf) in mx28_nand_write_dbbt() argument
413 memcpy(buf + offset, dbbt, sizeof(struct mx28_nand_dbbt)); in mx28_nand_write_dbbt()
467 struct mx28_nand_dbbt *dbbt; in mx28_create_nand_image() local
489 dbbt = mx28_nand_get_dbbt(); in mx28_create_nand_image()
490 if (!dbbt) { in mx28_create_nand_image()
501 ret = mx28_nand_write_dbbt(dbbt, buf); in mx28_create_nand_image()
522 free(dbbt); in mx28_create_nand_image()