Searched refs:geom (Results 1 - 2 of 2) sorted by last modified time

/system/core/toolbox/
H A Dnewfs_msdos.c788 struct hd_geometry geom; local
802 if (ioctl(fd, HDIO_GETGEO, &geom)) {
804 geom.heads = 64;
805 geom.sectors = 63;
808 if (!geom.heads) {
810 geom.heads = 64;
813 if (!geom.sectors) {
815 geom.sectors = 63;
818 bpb->spt = geom.sectors;
821 bpb->hds = geom
[all...]
/system/extras/tests/framebuffer/
H A Dmdp_test.c140 int parse_geometry(char *geom, int *w, int *h, int *x, int *y) argument
146 if (!(ptr = strchr(geom, 'x')))
149 *w = atoi(geom);
150 geom = ptr + 1;
152 ptr = strchr(geom, '+');
155 *h = atoi(geom);
159 geom = ptr + 1;
161 if (!x || !y || !(ptr = strchr(geom, '+')))
164 *x = atoi(geom);
165 geom
[all...]

Completed in 77 milliseconds