Home | History | Annotate | Download | only in vgabios

Lines Matching refs:pm

93   const ModeInfo *pm;
103 for (pm = modes; pm->mode != 0; pm++) {
104 if (pm->depth == 4)
105 pitch = (pm->width + 7) / 8;
107 pitch = pm->width * ((pm->depth + 7) / 8);
108 pages = vram_size / (pm->height * pitch);
111 pm->mode, pm->width, pm->height, pm->depth);
112 if (pm->depth == 4)
146 printf("/*Bit16u XResolution*/ %d,\n", pm->width);
147 printf("/*Bit16u YResolution*/ %d,\n", pm->height);
150 if (pm->depth == 4) {
155 printf("/*Bit8u BitsPerPixel*/ %d,\n", pm->depth);
157 (pm->height * pitch + 65535) / 65536);
159 if (pm->depth == 4)
161 else if (pm->depth == 8)
167 if (pm->depth == 4)
174 switch(pm->depth) {
235 if (pm->depth == 32)
242 if (pm->depth > 4)