Home
last modified time | relevance | path

Searched refs:geom (Results 1 – 2 of 2) sorted by relevance

/system/extras/tests/framebuffer/
Dmdp_test.c140 int parse_geometry(char *geom, int *w, int *h, int *x, int *y) in parse_geometry() argument
146 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 …]
/system/core/toolbox/
Dnewfs_msdos.c787 struct hd_geometry geom; in getdiskinfo() local
801 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()