Lines Matching defs:tbl
123 struct ubi_eba_table *tbl;
127 tbl = kzalloc(sizeof(*tbl), GFP_KERNEL);
128 if (!tbl)
131 tbl->entries = kmalloc_array(nentries, sizeof(*tbl->entries),
133 if (!tbl->entries)
137 tbl->entries[i].pnum = UBI_LEB_UNMAPPED;
139 return tbl;
142 kfree(tbl);
149 * @tbl: the table to destroy
153 void ubi_eba_destroy_table(struct ubi_eba_table *tbl)
155 if (!tbl)
158 kfree(tbl->entries);
159 kfree(tbl);
187 * @tbl: new EBA table
191 void ubi_eba_replace_table(struct ubi_volume *vol, struct ubi_eba_table *tbl)
194 vol->eba_tbl = tbl;
1641 struct ubi_eba_table *tbl;
1649 tbl = ubi_eba_create_table(vol, vol->reserved_pebs);
1650 if (IS_ERR(tbl)) {
1651 err = PTR_ERR(tbl);
1655 ubi_eba_replace_table(vol, tbl);