Lines Matching refs:partition
1047 partition_t *partition; in ftl_add_mtd() local
1049 partition = kzalloc(sizeof(partition_t), GFP_KERNEL); in ftl_add_mtd()
1051 if (!partition) { in ftl_add_mtd()
1057 partition->mbd.mtd = mtd; in ftl_add_mtd()
1059 if ((scan_header(partition) == 0) && in ftl_add_mtd()
1060 (build_maps(partition) == 0)) { in ftl_add_mtd()
1062 partition->state = FTL_FORMATTED; in ftl_add_mtd()
1065 le32_to_cpu(partition->header.FormattedSize) >> 10); in ftl_add_mtd()
1067 partition->mbd.size = le32_to_cpu(partition->header.FormattedSize) >> 9; in ftl_add_mtd()
1069 partition->mbd.tr = tr; in ftl_add_mtd()
1070 partition->mbd.devnum = -1; in ftl_add_mtd()
1071 if (!add_mtd_blktrans_dev((void *)partition)) in ftl_add_mtd()
1075 kfree(partition); in ftl_add_mtd()