Lines Matching defs:new
97 * new_fm_vbuf() - allocate a new volume header for fastmap usage.
99 * @vol_id: the VID of the new header
101 * Returns a new struct ubi_vid_hdr on success.
106 struct ubi_vid_io_buf *new;
109 new = ubi_alloc_vid_buf(ubi, GFP_KERNEL);
110 if (!new)
113 vh = ubi_get_vid_hdr(new);
123 return new;
130 * @pnum: PEB number of the new attach erase block
131 * @ec: erease counter of the new LEB
164 * add_vol - create and add a new volume to ubi_attach_info.
166 * @vol_id: VID of the new volume
168 * @data_pad: data padding value of the new volume
172 * Returns the new struct ubi_ainf_volume on success.
309 /* This LEB is new, let's add it to the volume */
834 struct ubi_ainf_peb *new;
836 new = ubi_alloc_aeb(ai, old->pnum, old->ec);
837 if (!new)
840 new->vol_id = old->vol_id;
841 new->sqnum = old->sqnum;
842 new->lnum = old->lnum;
843 new->scrub = old->scrub;
844 new->copy_flag = old->copy_flag;
846 return new;
878 /* Copy all (possible) fastmap blocks into our new attach structure. */
880 struct ubi_ainf_peb *new;
882 new = clone_aeb(ai, aeb);
883 if (!new)
886 list_add(&new->u.list, &ai->fastmap);
1398 * Returns the new EC value on success, < 0 indicates an internal error.
1445 * is issued. We need this if UBI is about to write a new fastmap
1615 /* Old fastmap is larger than the new one */
1647 /* we've got a new anchor PEB, return the old one */
1684 ubi_warn(ubi, "Unable to write new fastmap, err=%i", ret);