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->entries);
146 kfree(tbl);
153 * @tbl: the table to destroy
157 void ubi_eba_destroy_table(struct ubi_eba_table *tbl)
159 if (!tbl)
162 kfree(tbl->entries);
163 kfree(tbl);
191 * @tbl: new EBA table
195 void ubi_eba_replace_table(struct ubi_volume *vol, struct ubi_eba_table *tbl)
198 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);