Lines Matching full:new
13 * order to allocate memory for the new bitmap. These operations then,
67 /* Replace the internal bitmap with a new one of different size */
69 dbitmap_replace(struct dbitmap *dmap, unsigned long *new, unsigned int nbits) in dbitmap_replace() argument
71 bitmap_copy(new, dmap->map, min(dmap->nbits, nbits)); in dbitmap_replace()
73 dmap->map = new; in dbitmap_replace()
78 dbitmap_shrink(struct dbitmap *dmap, unsigned long *new, unsigned int nbits) in dbitmap_shrink() argument
80 if (!new) in dbitmap_shrink()
84 * Verify that shrinking to @nbits is still possible. The @new in dbitmap_shrink()
86 * could now be outdated. In this case, free @new and move on. in dbitmap_shrink()
89 kfree(new); in dbitmap_shrink()
93 dbitmap_replace(dmap, new, nbits); in dbitmap_shrink()
103 dbitmap_grow(struct dbitmap *dmap, unsigned long *new, unsigned int nbits) in dbitmap_grow() argument
106 * Verify that growing to @nbits is still possible. The @new in dbitmap_grow()
108 * could now be outdated. In this case, free @new and move on. in dbitmap_grow()
111 kfree(new); in dbitmap_grow()
121 if (!new) { in dbitmap_grow()
126 dbitmap_replace(dmap, new, nbits); in dbitmap_grow()