gluebi 68 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi; gluebi 70 drivers/mtd/ubi/gluebi.c list_for_each_entry(gluebi, &gluebi_devices, list) gluebi 71 drivers/mtd/ubi/gluebi.c if (gluebi->ubi_num == ubi_num && gluebi->vol_id == vol_id) gluebi 72 drivers/mtd/ubi/gluebi.c return gluebi; gluebi 86 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi; gluebi 92 drivers/mtd/ubi/gluebi.c gluebi = container_of(mtd, struct gluebi_device, mtd); gluebi 94 drivers/mtd/ubi/gluebi.c if (gluebi->refcnt > 0) { gluebi 103 drivers/mtd/ubi/gluebi.c gluebi->refcnt += 1; gluebi 112 drivers/mtd/ubi/gluebi.c gluebi->desc = ubi_open_volume(gluebi->ubi_num, gluebi->vol_id, gluebi 114 drivers/mtd/ubi/gluebi.c if (IS_ERR(gluebi->desc)) { gluebi 116 drivers/mtd/ubi/gluebi.c return PTR_ERR(gluebi->desc); gluebi 118 drivers/mtd/ubi/gluebi.c gluebi->refcnt += 1; gluebi 132 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi; gluebi 134 drivers/mtd/ubi/gluebi.c gluebi = container_of(mtd, struct gluebi_device, mtd); gluebi 136 drivers/mtd/ubi/gluebi.c gluebi->refcnt -= 1; gluebi 137 drivers/mtd/ubi/gluebi.c if (gluebi->refcnt == 0) gluebi 138 drivers/mtd/ubi/gluebi.c ubi_close_volume(gluebi->desc); gluebi 157 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi; gluebi 159 drivers/mtd/ubi/gluebi.c gluebi = container_of(mtd, struct gluebi_device, mtd); gluebi 168 drivers/mtd/ubi/gluebi.c err = ubi_read(gluebi->desc, lnum, buf, offs, to_read); gluebi 197 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi; gluebi 199 drivers/mtd/ubi/gluebi.c gluebi = container_of(mtd, struct gluebi_device, mtd); gluebi 212 drivers/mtd/ubi/gluebi.c err = ubi_leb_write(gluebi->desc, lnum, buf, offs, to_write); gluebi 237 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi; gluebi 244 drivers/mtd/ubi/gluebi.c gluebi = container_of(mtd, struct gluebi_device, mtd); gluebi 247 drivers/mtd/ubi/gluebi.c err = ubi_leb_unmap(gluebi->desc, lnum + i); gluebi 258 drivers/mtd/ubi/gluebi.c err = ubi_leb_erase(gluebi->desc, lnum + i); gluebi 281 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi, *g; gluebi 284 drivers/mtd/ubi/gluebi.c gluebi = kzalloc(sizeof(struct gluebi_device), GFP_KERNEL); gluebi 285 drivers/mtd/ubi/gluebi.c if (!gluebi) gluebi 288 drivers/mtd/ubi/gluebi.c mtd = &gluebi->mtd; gluebi 291 drivers/mtd/ubi/gluebi.c kfree(gluebi); gluebi 295 drivers/mtd/ubi/gluebi.c gluebi->vol_id = vi->vol_id; gluebi 296 drivers/mtd/ubi/gluebi.c gluebi->ubi_num = vi->ubi_num; gluebi 330 drivers/mtd/ubi/gluebi.c kfree(gluebi); gluebi 335 drivers/mtd/ubi/gluebi.c list_add_tail(&gluebi->list, &gluebi_devices); gluebi 352 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi; gluebi 355 drivers/mtd/ubi/gluebi.c gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id); gluebi 356 drivers/mtd/ubi/gluebi.c if (!gluebi) { gluebi 360 drivers/mtd/ubi/gluebi.c } else if (gluebi->refcnt) gluebi 363 drivers/mtd/ubi/gluebi.c list_del(&gluebi->list); gluebi 368 drivers/mtd/ubi/gluebi.c mtd = &gluebi->mtd; gluebi 372 drivers/mtd/ubi/gluebi.c mtd->index, gluebi->ubi_num, gluebi->vol_id, err); gluebi 374 drivers/mtd/ubi/gluebi.c list_add_tail(&gluebi->list, &gluebi_devices); gluebi 380 drivers/mtd/ubi/gluebi.c kfree(gluebi); gluebi 396 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi; gluebi 399 drivers/mtd/ubi/gluebi.c gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id); gluebi 400 drivers/mtd/ubi/gluebi.c if (!gluebi) { gluebi 408 drivers/mtd/ubi/gluebi.c gluebi->mtd.size = vi->used_bytes; gluebi 423 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi; gluebi 426 drivers/mtd/ubi/gluebi.c gluebi = find_gluebi_nolock(vi->ubi_num, vi->vol_id); gluebi 427 drivers/mtd/ubi/gluebi.c if (!gluebi) { gluebi 433 drivers/mtd/ubi/gluebi.c gluebi->mtd.size = vi->used_bytes; gluebi 479 drivers/mtd/ubi/gluebi.c struct gluebi_device *gluebi, *g; gluebi 481 drivers/mtd/ubi/gluebi.c list_for_each_entry_safe(gluebi, g, &gluebi_devices, list) { gluebi 483 drivers/mtd/ubi/gluebi.c struct mtd_info *mtd = &gluebi->mtd; gluebi 488 drivers/mtd/ubi/gluebi.c err, mtd->index, gluebi->ubi_num, gluebi 489 drivers/mtd/ubi/gluebi.c gluebi->vol_id); gluebi 491 drivers/mtd/ubi/gluebi.c kfree(gluebi);