Searched refs:geom (Results 1 – 2 of 2) sorted by relevance
140 int parse_geometry(char *geom, int *w, int *h, int *x, int *y) in parse_geometry() argument146 if (!(ptr = strchr(geom, 'x'))) in parse_geometry()149 *w = atoi(geom); in parse_geometry()150 geom = ptr + 1; in parse_geometry()152 ptr = strchr(geom, '+'); in parse_geometry()155 *h = atoi(geom); in parse_geometry()159 geom = ptr + 1; in parse_geometry()161 if (!x || !y || !(ptr = strchr(geom, '+'))) in parse_geometry()164 *x = atoi(geom); in parse_geometry()165 geom = ptr + 1; in parse_geometry()[all …]
787 struct hd_geometry geom; in getdiskinfo() local801 if (ioctl(fd, HDIO_GETGEO, &geom)) { in getdiskinfo()803 geom.heads = 64; in getdiskinfo()804 geom.sectors = 63; in getdiskinfo()807 if (!geom.heads) { in getdiskinfo()809 geom.heads = 64; in getdiskinfo()812 if (!geom.sectors) { in getdiskinfo()814 geom.sectors = 63; in getdiskinfo()817 bpb->spt = geom.sectors; in getdiskinfo()820 bpb->hds = geom.heads; in getdiskinfo()