Home
last modified time | relevance | path

Searched refs:mode (Results 1 – 25 of 694) sorted by relevance

12345678910>>...28

/plan9/sys/src/cmd/aux/vga/
H A Ddb.c231 dbmonitor(Ndb* db, Mode* mode, char* type, char* size) in dbmonitor() argument
251 memset(mode, 0, sizeof(Mode)); in dbmonitor()
255 mode->z = atoi(p); in dbmonitor()
262 mode->videobw = atol(p)*1000000UL; in dbmonitor()
266 if(mode->x == 0 && ((mode->x = strtol(val, &p, 0)) == 0 || *p++ != 'x')) in dbmonitor()
268 if(mode->y == 0 && (mode->y = strtol(p, &p, 0)) == 0) in dbmonitor()
276 if(strcmp(t->attr, "clock") == 0 && mode->frequency == 0) in dbmonitor()
277 mode->frequency = strtod(t->val, 0)*1000000; in dbmonitor()
278 else if(strcmp(t->attr, "defaultclock") == 0 && mode->deffrequency == 0) in dbmonitor()
279 mode->deffrequency = strtod(t->val, 0)*1000000; in dbmonitor()
[all …]
H A Ds3928.c26 Mode *mode; in init() local
35 if(vga->mode->z > 8) in init()
36 error("depth %d not supported\n", vga->mode->z); in init()
38 mode = vga->mode; in init()
39 if((ctlr->flag & Henhanced) && mode->x >= 1024 && mode->z == 8){ in init()
41 vga->crt[0x00] = ((mode->ht/4)>>3)-5; in init()
42 vga->crt[0x01] = ((mode->x/4)>>3)-1; in init()
43 vga->crt[0x02] = ((mode->shb/4)>>3)-1; in init()
45 x = (mode->ehb/4)>>3; in init()
47 vga->crt[0x04] = (mode->shs/4)>>3; in init()
[all …]
H A Dmain.c21 if(vga->mode) in dump()
22 dbdumpmode(vga->mode); in dump()
294 vga->mode = dbvesamode(psize); in main()
296 vga->mode = dbmode(monitordb, type, psize); in main()
297 if(vga->mode == 0) in main()
305 if(vga->virtx < vga->mode->x || vga->virty < vga->mode->y) in main()
310 vga->virtx = vga->mode->x; in main()
311 vga->virty = vga->mode->y; in main()
316 vga->mode->frequency, vga->mode->deffrequency, in main()
317 vga->f[1], vga->mode->videobw); in main()
[all …]
H A Dvga.c185 Mode *mode; in init() local
189 mode = vga->mode; in init()
204 if(mode->frequency == VgaFreq1) in init()
206 if(mode->hsync && mode->vsync){ in init()
207 if(mode->hsync == '-') in init()
209 if(mode->vsync == '-') in init()
213 if(mode->y < 480) in init()
215 else if(mode->y < 400) in init()
217 else if(mode->y < 768) in init()
228 if(mode->z >= 8) in init()
[all …]
H A Dvision964.c29 Mode *mode; in init() local
34 if(vga->mode->z > 8) in init()
35 error("depth %d not supported\n", vga->mode->z); in init()
37 mode = vga->mode; in init()
40 vga->crt[0x00] = ((mode->ht/2)>>3)-5; in init()
41 vga->crt[0x01] = ((mode->x/2)>>3)-1; in init()
42 vga->crt[0x02] = ((mode->shb/2)>>3)-1; in init()
44 x = (mode->ehb/2)>>3; in init()
46 vga->crt[0x04] = (mode->shs/2)>>3; in init()
47 vga->crt[0x05] = ((mode->ehs/2)>>3) & 0x1F; in init()
[all …]
H A Dradeon.c308 radeon_init_crtc_registers(Radeon*radeon, Mode*mode) in radeon_init_crtc_registers() argument
319 switch (mode->z) { in radeon_init_crtc_registers()
351 error("radeon: unsupported mode depth %d\n", mode->z); in radeon_init_crtc_registers()
356 mode->z, format, bpp, dac6bit? "true": "false"); in radeon_init_crtc_registers()
359 (mode->interlace? CRTC_INTERLACE_EN: 0); in radeon_init_crtc_registers()
364 radeon->crtc_h_total_disp = ((mode->ht/8 - 1) & 0x3ff) | in radeon_init_crtc_registers()
365 ((mode->x/8 - 1) & 0x1ff) << 16; in radeon_init_crtc_registers()
367 hsync_wid = (mode->ehb - mode->shb) / 8; in radeon_init_crtc_registers()
371 hsync_start = mode->shb - 8 + hsync_fudge; in radeon_init_crtc_registers()
377 (hsync_wid & 0x3f) << 16 | (mode->hsync? CRTC_H_SYNC_POL: 0)); in radeon_init_crtc_registers()
[all …]
H A Dvision968.c36 Mode *mode; in init() local
41 if(vga->mode->z > 8) in init()
42 error("depth %d not supported\n", vga->mode->z); in init()
44 mode = vga->mode; in init()
47 vga->crt[0x00] = ((mode->ht/2)>>3)-5; in init()
48 vga->crt[0x01] = ((mode->x/2)>>3)-1; in init()
49 vga->crt[0x02] = ((mode->shb/2)>>3)-1; in init()
51 x = (mode->ehb/2)>>3; in init()
53 vga->crt[0x04] = (mode->shs/2)>>3; in init()
54 vga->crt[0x05] = ((mode->ehs/2)>>3) & 0x1F; in init()
[all …]
H A Dark2000pv.c62 Mode *mode; in init() local
65 mode = vga->mode; in init()
69 vga->crt[0x00] = ((mode->ht/2)>>3)-5; in init()
70 vga->crt[0x01] = ((mode->x/2)>>3)-1; in init()
71 vga->crt[0x02] = ((mode->shb/2)>>3)-1; in init()
73 x = (mode->ehb/2)>>3; in init()
75 vga->crt[0x04] = (mode->shs/2)>>3; in init()
76 vga->crt[0x05] = ((mode->ehs/2)>>3) & 0x1F; in init()
79 vga->crt[0x13] = mode->x/8; in init()
116 if(mode->interlace){ in init()
[all …]
H A Dt2r4.c175 crtclocks = 64/vga->mode->z; in init()
178 if((val = dbattr(vga->mode->attr, "zoom")) && strtol(val, 0, 0)) in init()
182 switch(vga->mode->z){ in init()
184 t2r4->g[DbPtch] = vga->mode->x*1; in init()
187 t2r4->g[DbPtch] = vga->mode->x*2; in init()
190 t2r4->g[DbPtch] = vga->mode->x*4; in init()
193 t2r4->g[CrtHac] = vga->mode->x/crtclocks; in init()
194 t2r4->g[CrtHbl] = (vga->mode->ht-vga->mode->x)/crtclocks; in init()
195 if(vga->mode->shs == 0) in init()
196 vga->mode->shs = vga->mode->shb; in init()
[all …]
/plan9/sys/src/cmd/
H A Dchmod.c18 ulong mode, mask; in main() local
25 mode = strtol(argv[1], &p, 8); in main()
28 else if(!parsemode(argv[1], &mask, &mode)){ in main()
39 ndir.mode = (dir->mode & ~mask) | (mode & mask); in main()
52 ulong mode, mask; in parsemode() local
81 mode = 0; in parsemode()
85 mode |= A(DMREAD); break; in parsemode()
87 mode |= A(DMWRITE); break; in parsemode()
89 mode |= A(DMEXEC); break; in parsemode()
91 mode |= DMAPPEND; break; in parsemode()
[all …]
/plan9/sys/src/cmd/gs/src/
H A Dgdevsco.c207 int mode; in pcfb_get_state() local
210 mode = ioctl(console_fd, CONS_CURRENT, 0L); in pcfb_get_state()
211 if (mode == -1) { in pcfb_get_state()
213 mode = M_ENH_C80x25; in pcfb_get_state()
222 (mode == M_ENH_CG640 || mode == M_CG640x350 ? 0x10 : in pcfb_get_state()
224 mode == M_VGA12 ? 0x12 : in pcfb_get_state()
231 pcfb_set_mode(int mode) in pcfb_set_mode() argument
236 cur_mode = mode; in pcfb_set_mode()
238 if (mode == 0x10) in pcfb_set_mode()
239 mode = SW_ENH_CG640; in pcfb_set_mode()
[all …]
/plan9/power/include/ape/
H A Dstdarg.h11 #define va_arg(list, mode)\ argument
12 ((sizeof(mode) <= 4)?\
13 ((list += 4), (mode*)list)[-1]:\
14 (signof(mode) != signof(double))?\
15 ((list += sizeof(mode)), (mode*)list)[-1]:\
16 ((list = (char*)((unsigned long)(list+7) & ~7) + sizeof(mode)), (mode*)list)[-1])
/plan9/sys/src/ape/lib/ap/plan9/
H A Dchmod.c15 chmod(const char *path, mode_t mode) in chmod() argument
23 d.mode = (dir->mode & ~0777) | (mode & 0777); in chmod()
31 fchmod(int fd, mode_t mode) in fchmod() argument
39 d.mode = (dir->mode & ~0777) | (mode & 0777); in fchmod()
/plan9/amd64/include/
H A Du.h65 #define va_arg(list, mode)\ argument
66 ((sizeof(mode) == 1)?\
67 ((list += 8), (mode*)list)[-8]:\
68 (sizeof(mode) == 2)?\
69 ((list += 8), (mode*)list)[-4]:\
70 (sizeof(mode) == 4)?\
71 ((list += 8), (mode*)list)[-2]:\
72 ((list += sizeof(mode)), (mode*)list)[-1])
/plan9/sparc/include/ape/
H A Dstdarg.h11 #define va_arg(list, mode)\ argument
12 ((sizeof(mode) == 1)?\
13 ((list += 4), (mode*)list)[-1]:\
14 (sizeof(mode) == 2)?\
15 ((list += 4), (mode*)list)[-1]:\
16 ((list += sizeof(mode)), (mode*)list)[-1])
/plan9/386/include/ape/
H A Dstdarg.h9 #define va_arg(list, mode)\ argument
10 ((sizeof(mode) == 1)?\
11 ((list += 4), (mode*)list)[-4]:\
12 (sizeof(mode) == 2)?\
13 ((list += 4), (mode*)list)[-2]:\
14 ((list += sizeof(mode)), (mode*)list)[-1])
/plan9/arm/include/ape/
H A Dstdarg.h9 #define va_arg(list, mode)\ argument
10 ((sizeof(mode) == 1)?\
11 ((list += 4), (mode*)list)[-4]:\
12 (sizeof(mode) == 2)?\
13 ((list += 4), (mode*)list)[-2]:\
14 ((list += sizeof(mode)), (mode*)list)[-1])
/plan9/mips/include/ape/
H A Dstdarg.h11 #define va_arg(list, mode)\ argument
12 ((sizeof(mode) == 1)?\
13 ((list += 4), (mode*)list)[-1]:\
14 (sizeof(mode) == 2)?\
15 ((list += 4), (mode*)list)[-1]:\
16 ((list += sizeof(mode)), (mode*)list)[-1])
/plan9/sys/src/ape/lib/ap/stdio/
H A Dfreopen.c15 FILE *freopen(const char *name, const char *mode, FILE *f){ in freopen() argument
24 m = *mode++; in freopen()
27 if(*mode == 'b') in freopen()
28 mode++; in freopen()
33 f->fd=open(name, (*mode == '+'? O_RDWR: O_RDONLY)); in freopen()
38 if(*mode == '+' && f->fd >= 0) { in freopen()
44 f->fd=open(name, (*mode == '+'? O_RDWR: O_WRONLY)); in freopen()
48 if(*mode == '+' && f->fd >= 0) { in freopen()
59 f->flags=(mode[0]=='a')? APPEND : 0; in freopen()
/plan9/power64/include/
H A Du.h80 #define va_arg(list, mode)\ argument
81 ((sizeof(mode) == 1)?\
82 ((mode*)(list += 8))[-1]:\
83 (sizeof(mode) == 2)?\
84 ((mode*)(list += 8))[-1]:\
85 (sizeof(mode) == 4)?\
86 ((mode*)(list += 8))[-1]:\
87 ((mode*)(list += sizeof(mode)))[-1])
/plan9/sys/src/libstdio/
H A Dfreopen.c15 FILE *freopen(const char *name, const char *mode, FILE *f){ in freopen() argument
24 m = *mode++; in freopen()
27 if(*mode == 'b') in freopen()
28 mode++; in freopen()
33 f->fd=open(name, (*mode == '+'? ORDWR: OREAD)); in freopen()
36 f->fd=create(name, (*mode == '+'? ORDWR: OWRITE), 0666); in freopen()
39 m = (*mode == '+'? ORDWR: OWRITE); in freopen()
49 f->flags=(mode[0]=='a')? APPEND : 0; in freopen()
/plan9/sys/src/libbio/
H A Dbinit.c54 Binits(Biobufhdr *bp, int f, int mode, uchar *p, int size) in Binits() argument
60 switch(mode&~(OCEXEC|ORCLOSE|OTRUNC)) { in Binits()
62 fprint(2, "Binits: unknown mode %d\n", mode); in Binits()
91 Binit(Biobuf *bp, int f, int mode) in Binit() argument
93 return Binits(bp, f, mode, bp->b, sizeof(bp->b)); in Binit()
97 Bopen(char *name, int mode) in Bopen() argument
102 switch(mode&~(OCEXEC|ORCLOSE|OTRUNC)) { in Bopen()
104 fprint(2, "Bopen: unknown mode %#x\n", mode); in Bopen()
107 f = open(name, mode); in Bopen()
110 f = create(name, mode, 0666); in Bopen()
[all …]
/plan9/sys/src/cmd/gs/zlib/
H A Dinflate.c113 state->mode = HEAD;
563 if (state->mode == TYPE) state->mode = TYPEDO; /* skip check */
569 switch (state->mode) {
572 state->mode = TYPEDO;
581 state->mode = FLAGS;
591 state->mode = BAD;
596 state->mode = BAD;
602 state->mode = BAD;
607 state->mode = hold & 0x200 ? DICTID : TYPE;
616 state->mode = BAD;
[all …]
/plan9/sys/src/cmd/wikifs/
H A Dwdir.c24 wopen(char *fn, int mode) in wopen() argument
29 rv = open(fn, mode); in wopen()
35 wcreate(char *fn, int mode, long perm) in wcreate() argument
40 rv = create(fn, mode, perm); in wcreate()
46 wBopen(char *fn, int mode) in wBopen() argument
51 rv = Bopen(fn, mode); in wBopen()
57 waccess(char *fn, int mode) in waccess() argument
62 rv = access(fn, mode); in waccess()
/plan9/sys/src/cmd/aux/flashfs/
H A Dconv.c12 if(j->mode & (1 << 8)) { in convJ2M()
13 if(j->mode & DMDIR) in convJ2M()
19 if(j->mode & DMDIR) in convJ2M()
31 if(j->mode & (1 << 8)) in convJ2M()
38 buff[n++] = j->mode; in convJ2M()
52 if(j->mode & (1 << 8)) in convJ2M()
67 buff[n++] = j->mode; in convJ2M()
92 j->mode = buff[n++]; in convM2J()
97 j->mode |= 1 << 8; in convM2J()
100 j->mode |= DMDIR; in convM2J()
[all …]

12345678910>>...28