Lines Matching refs:c1

52 chunk_compare(Chunk *c1, Chunk *c2)
54 if (!c1 && !c2)
56 else if (!c1 && c2)
58 else if (c1 && !c2)
60 else if (!c1->private_data && !c2->private_data)
62 else if (c1->private_data && !c2->private_data)
64 else if (!c1->private_data && c2->private_data)
67 return strcmp(((PartInfo *)(c1->private_data))->mountpoint, ((PartInfo *)(c2->private_data))->mountpoint);
103 name_of(Chunk *c1)
105 return c1->name;
109 mount_point(Chunk *c1)
111 if (c1->type == part && c1->subtype == FS_SWAP)
113 else if (c1->type == part || c1->type == fat || c1->type == efi)
114 return ((PartInfo *)c1->private_data)->mountpoint;
119 fstype(Chunk *c1)
121 if (c1->type == fat || c1->type == efi)
123 else if (c1->type == part) {
124 if (c1->subtype != FS_SWAP)
133 fstype_short(Chunk *c1)
135 if (c1->type == part) {
136 if (c1->subtype != FS_SWAP) {
137 if (rootdev_is_od == 0 && strncmp(c1->name, "od", 2) == 0)
145 else if (c1->type == fat) {
146 if (strncmp(c1->name, "od", 2) == 0)
151 else if (c1->type == efi)
158 seq_num(Chunk *c1)
160 if (c1->type == part && c1->subtype != FS_SWAP) {
161 if (rootdev_is_od == 0 && strncmp(c1->name, "od", 2) == 0)
163 else if (c1->flags & CHUNK_IS_ROOT)
178 Chunk *c1, *c2;
202 for (c1 = disk->chunks->part; c1; c1 = c1->next) {
204 if (c1->type == apple) {
206 if (c1->type == freebsd) {
208 for (c2 = c1->part; c2; c2 = c2->next) {
213 else if (((c1->type == fat || c1->type == efi || c1->type == part) &&
214 c1->private_data) || (c1->type == part && c1->subtype == FS_SWAP))
215 chunk_list[nchunks++] = c1;