Lines Matching defs:tbl
126 struct ubi_eba_table *tbl;
130 tbl = kzalloc(sizeof(*tbl), GFP_KERNEL);
131 if (!tbl)
134 tbl->entries = kmalloc_array(nentries, sizeof(*tbl->entries),
136 if (!tbl->entries)
140 tbl->entries[i].pnum = UBI_LEB_UNMAPPED;
142 return tbl;
145 kfree(tbl);
152 * @tbl: the table to destroy
156 void ubi_eba_destroy_table(struct ubi_eba_table *tbl)
158 if (!tbl)
161 kfree(tbl->entries);
162 kfree(tbl);
190 * @tbl: new EBA table
194 void ubi_eba_replace_table(struct ubi_volume *vol, struct ubi_eba_table *tbl)
197 vol->eba_tbl = tbl;
1637 struct ubi_eba_table *tbl;
1645 tbl = ubi_eba_create_table(vol, vol->reserved_pebs);
1646 if (IS_ERR(tbl)) {
1647 err = PTR_ERR(tbl);
1651 ubi_eba_replace_table(vol, tbl);