Lines Matching refs:ums_count
37 static int ums_count; variable
43 for (i = 0; i < ums_count; i++) in ums_fini()
47 ums_count = 0; in ums_fini()
66 ums_count = 0; in ums_init()
90 ums_new = realloc(ums, (ums_count + 1) * sizeof(*ums)); in ums_init()
97 ums[ums_count].start_sector = 0; in ums_init()
98 ums[ums_count].num_sectors = block_dev->lba; in ums_init()
100 ums[ums_count].start_sector = info.start; in ums_init()
101 ums[ums_count].num_sectors = info.size; in ums_init()
104 ums[ums_count].read_sector = ums_read_sector; in ums_init()
105 ums[ums_count].write_sector = ums_write_sector; in ums_init()
110 snprintf(name, UMS_NAME_LEN, "UMS disk %d", ums_count); in ums_init()
111 ums[ums_count].name = name; in ums_init()
112 ums[ums_count].block_dev = *block_dev; in ums_init()
115 ums_count, ums[ums_count].block_dev.devnum, in ums_init()
116 ums[ums_count].block_dev.hwpart, in ums_init()
117 ums[ums_count].start_sector, in ums_init()
118 ums[ums_count].num_sectors); in ums_init()
120 ums_count++; in ums_init()
123 if (ums_count) in ums_init()
169 rc = fsg_init(ums, ums_count); in do_usb_mass_storage()