Lines Matching refs:ums
22 static int ums_read_sector(struct ums *ums_dev, in ums_read_sector()
31 static int ums_write_sector(struct ums *ums_dev, in ums_write_sector()
40 static struct ums *ums; variable
48 free((void *)ums[i].name); in ums_fini()
49 free(ums); in ums_fini()
50 ums = NULL; in ums_fini()
63 struct ums *ums_new; in ums_init()
94 ums_new = realloc(ums, (ums_count + 1) * sizeof(*ums)); in ums_init()
97 ums = ums_new; in ums_init()
101 ums[ums_count].start_sector = 0; in ums_init()
102 ums[ums_count].num_sectors = block_dev->lba; in ums_init()
104 ums[ums_count].start_sector = info.start; in ums_init()
105 ums[ums_count].num_sectors = info.size; in ums_init()
108 ums[ums_count].read_sector = ums_read_sector; in ums_init()
109 ums[ums_count].write_sector = ums_write_sector; in ums_init()
115 ums[ums_count].name = name; in ums_init()
116 ums[ums_count].block_dev = *block_dev; in ums_init()
119 ums_count, devtype, ums[ums_count].block_dev.devnum, in ums_init()
120 ums[ums_count].block_dev.hwpart, in ums_init()
121 ums[ums_count].start_sector, in ums_init()
122 ums[ums_count].num_sectors); in ums_init()
173 rc = fsg_init(ums, ums_count, controller_index); in do_usb_mass_storage()
247 U_BOOT_CMD(ums, 4, 1, do_usb_mass_storage,