Home
last modified time | relevance | path

Searched refs:phase (Results 1 – 25 of 67) sorted by relevance

123

/plan9/sys/src/cmd/cwfs/
H A Dauth.c122 int phase; member
143 if(*why)print("authentication failed: %s: %s\n", phasename[s->phase], why); in failure()
151 s->phase = HaveProtos; in failure()
205 switch(s->phase){ in authread()
210 s->phase = NeedProto; in authread()
217 s->phase = NeedCchal; in authread()
224 s->phase = NeedTicket; in authread()
231 s->phase = SSuccess; in authread()
249 switch(s->phase){ in authwrite()
264 s->phase = HaveOK; in authwrite()
[all …]
/plan9/sys/src/cmd/gs/src/
H A Dgxclipm.c111 int mx0 = x + cdev->phase.x, my0 = y + cdev->phase.y; in mask_clip_fill_rectangle()
125 mx0 - cdev->phase.x, my0 - cdev->phase.y, in mask_clip_fill_rectangle()
142 mx0 = vx + cdev->phase.x, my0 = vy + cdev->phase.y;\
172 int ty = cy - cdev->phase.y; in mask_clip_copy_mono()
179 int tx = cx - cdev->phase.x; in mask_clip_copy_mono()
231 if_debug1('B', "[B]clip runs y=%d:", cy - cdev->phase.y); in clip_runs_enumerate()
253 tx1 = cx - cdev->phase.x; in clip_runs_enumerate()
273 tx = cx - cdev->phase.x; in clip_runs_enumerate()
275 ty = cy - cdev->phase.y; in clip_runs_enumerate()
346 ccdata.phase.x = phase_x, ccdata.phase.y = phase_y; in mask_clip_strip_tile_rectangle()
[all …]
H A Dsdcte.c75 ss->phase = 0; in s_DCTE_init()
92 switch (ss->phase) { in s_DCTE_process()
102 ss->phase = 1; in s_DCTE_process()
109 ss->phase = 2; in s_DCTE_process()
133 ss->phase = 3; in s_DCTE_process()
168 ss->phase = 4; in s_DCTE_process()
181 ss->phase = 5; in s_DCTE_process()
H A Dgxclip2.c124 cdev->phase.x = px; in tile_clip_set_phase()
125 cdev->phase.y = py; in tile_clip_set_phase()
138 gx_no_color_index, color, cdev->phase.x, cdev->phase.y); in tile_clip_fill_rectangle()
144 ((cdev)->phase.x + (((ty) + (cdev)->phase.y) / (cdev)->tiles.rep_height) *\
164 int cy = (ty + cdev->phase.y) % cdev->tiles.rep_height; in tile_clip_copy_mono()
217 int cy = (y + cdev->phase.y) % cdev->tiles.rep_height;\
H A Dsdctd.c104 ss->phase = 0; in s_DCTD_init()
136 switch (ss->phase) { in s_DCTD_process()
149 ss->phase = 1; in s_DCTD_process()
179 ss->phase = 2; in s_DCTD_process()
204 ss->phase = 3; in s_DCTD_process()
251 ss->phase = 4; in s_DCTD_process()
260 ss->phase = 5; in s_DCTD_process()
H A Dgsdcolor.h68 ((pdc)->phase)
130 ((pdc)->phase.x = (px),\
131 (pdc)->phase.y = (py))
308 gs_int_point phase; member
396 gs_int_point phase; member
402 gs_int_point phase; member
H A Dgxp1fill.c48 gs_int_point phase; member
73 ptfs->phase = pdevc->phase; in tile_fill_init()
78 ptfs->phase.x = pdevc->mask.m_phase.x; in tile_fill_init()
79 ptfs->phase.y = pdevc->mask.m_phase.y; in tile_fill_init()
85 px = imod(-(int)(m_tile->step_matrix.tx - ptfs->phase.x + 0.5), in tile_fill_init()
87 py = imod(-(int)(m_tile->step_matrix.ty - ptfs->phase.y + 0.5), in tile_fill_init()
117 step_matrix.tx -= ptfs->phase.x; in tile_by_steps()
118 step_matrix.ty -= ptfs->phase.y; in tile_by_steps()
264 imod(-(int)(ptile->step_matrix.tx - state.phase.x + 0.5), in gx_dc_pattern_fill_rectangle()
267 imod(-(int)(ptile->step_matrix.ty - state.phase.y + 0.5), in gx_dc_pattern_fill_rectangle()
H A Dzdps.c71 gs_int_point phase; in zcurrentscreenphase() local
79 code = gs_currentscreenphase(igs, &phase, in zcurrentscreenphase()
84 make_int(op - 1, phase.x); in zcurrentscreenphase()
85 make_int(op, phase.y); in zcurrentscreenphase()
H A Dgxht.c275 psdc->phase = pdevc->phase; in gx_dc_ht_binary_save_dc()
359 pdevc->phase.x, pdevc->phase.y); in gx_dc_ht_binary_fill_rectangle()
372 x, y, w, h, pdevc->phase.x, pdevc->phase.y, in gx_dc_ht_binary_fill_rectangle()
402 pdevc1->phase.x == pdevc2->phase.x && in gx_dc_ht_binary_equal()
403 pdevc1->phase.y == pdevc2->phase.y && in gx_dc_ht_binary_equal()
H A Dgxmclip.c81 cdev->phase.x = -tx; in gx_mask_clip_initialize()
82 cdev->phase.y = -ty; in gx_mask_clip_initialize()
H A Dgxwts.c221 psdc->phase = pdevc->phase; in gx_dc_wts_save_dc()
503 pdevc1->phase.x != pdevc2->phase.x || in gx_dc_wts_equal()
504 pdevc1->phase.y != pdevc2->phase.y || in gx_dc_wts_equal()
H A Dgxclip.c478 pccd->color[0], pccd->color[1], pccd->phase.x, pccd->phase.y); in clip_call_strip_tile_rectangle()
490 ccdata.phase.x = phase_x, ccdata.phase.y = phase_y; in clip_strip_tile_rectangle()
502 xc, yc, xec - xc, yec - yc, pccd->phase.x, pccd->phase.y, in clip_call_strip_copy_rop()
519 ccdata.phase.x = phase_x, ccdata.phase.y = phase_y, ccdata.lop = lop; in clip_strip_copy_rop()
/plan9/sys/src/cmd/auth/factotum/
H A Dp9any.c70 fss->phase = CNeedProtos; in p9anyinit()
72 fss->phase = SHaveProtos; in p9anyinit()
101 s->subfss.phase = Notstarted; in setupfss()
115 if(s->subfss.phase == Broken) in passret()
116 fss->phase = Broken; in passret()
128 if(s->subfss.phase == Established) in passret()
129 fss->phase = Established; in passret()
152 switch(fss->phase){ in p9anyread()
187 fss->phase = SNeedProto; in p9anyread()
200 fss->phase = CRelay; in p9anyread()
[all …]
H A Drsa.c100 fss->phase = CHavePub; in rsainit()
102 fss->phase = SNeedHash; in rsainit()
104 fss->phase = VNeedHash; in rsainit()
113 switch(fss->phase){ in rsainit()
120 if(fss->phase == SNeedHash && s->key->privattr == nil) in rsainit()
137 switch(fss->phase){ in rsaread()
156 fss->phase = Established; in rsaread()
171 fss->phase = Established; in rsaread()
176 fss->phase = Established; in rsaread()
191 switch(fss->phase){ in rsawrite()
[all …]
H A Dapop.c75 fss->phase = CNeedChal; in apopinit()
85 fss->phase = SHaveChal; in apopinit()
104 switch(fss->phase){ in apopwrite()
132 fss->phase = CHaveResp; in apopwrite()
140 fss->phase = SNeedResp; in apopwrite()
147 fss->phase = SNeedUser; in apopwrite()
155 fss->phase = Established; in apopwrite()
166 switch(fss->phase){ in apopread()
174 fss->phase = Established; in apopread()
182 fss->phase = SNeedUser; in apopread()
H A Dp9sk1.c90 fss->phase = CHaveChal; in p9skinit()
94 fss->phase = CNeedTreq; in p9skinit()
114 fss->phase = SNeedChal; in p9skinit()
117 fss->phase = SHaveTreq; in p9skinit()
133 switch(fss->phase){ in p9skread()
143 fss->phase = CNeedTreq; in p9skread()
152 fss->phase = SNeedTicket; in p9skread()
161 fss->phase = CNeedAuth; in p9skread()
177 fss->phase = Established; in p9skread()
194 switch(fss->phase){ in p9skwrite()
[all …]
H A Drpc.c161 if(fss->phase == Notstarted){ in rdwrcheck()
165 if(fss->phase == Broken){ in rdwrcheck()
170 if(fss->phase == Established){ in rdwrcheck()
219 fss->seqnum, rdwr, n, phasename(fss, ophase, buf0), phasename(fss, fss->phase, buf1)); in rpcrdwrlog()
231 attr, phasename(fss, fss->phase, tmp)); in rpcstartlog()
264 if(fss->phase != Notstarted){ in rpcread()
272 fss->phase = Notstarted; in rpcread()
294 fss->phase = Notstarted; in rpcread()
307 ophase = fss->phase; in rpcread()
325 ophase = fss->phase; in rpcread()
[all …]
H A Dhttpdigest.c45 fss->phase = CNeedChal; in hdinit()
115 if(fss->phase != CNeedChal) in hdwrite()
148 fss->phase = CHaveResp; in hdwrite()
158 if(fss->phase != CHaveResp) in hdread()
163 fss->phase = Established; in hdread()
H A Dp9cr.c94 fss->phase = CNeedChal; in p9crinit()
140 switch(fss->phase){ in p9crread()
148 fss->phase = Established; in p9crread()
160 fss->phase = SNeedResp; in p9crread()
258 switch(fss->phase){ in p9crwrite()
275 fss->phase = CHaveResp; in p9crwrite()
311 fss->phase = Established; in p9crwrite()
340 fss->phase = SHaveChal; in getchal()
H A Dchap.c97 fss->phase = CNeedChal; in chapinit()
107 fss->phase = SHaveChal; in chapinit()
144 switch(fss->phase){ in chapwrite()
168 fss->phase = CHaveResp; in chapwrite()
176 fss->phase = SNeedResp; in chapwrite()
208 fss->phase = Established; in chapwrite()
224 switch(fss->phase){ in chapread()
244 fss->phase = Established; in chapread()
252 fss->phase = SNeedUser; in chapread()
H A Dpass.c41 fss->phase = HavePass; in passinit()
65 switch(fss->phase){ in passread()
H A Dutil.c631 werrstr("protocol phase error: %s in state %s", op, phasename(s, s->phase, tmp)); in phaseerror()
636 phasename(Fsstate *fss, int phase, char *tmp) in phasename() argument
640 if(fss->phase == Broken) in phasename()
642 else if(phase == Established) in phasename()
644 else if(phase == Notstarted) in phasename()
646 else if(phase < 0 || phase >= fss->maxphase in phasename()
647 || (name = fss->phasename[phase]) == nil){ in phasename()
648 sprint(tmp, "%d", phase); in phasename()
/plan9/sys/src/games/mp3dec/
H A Dsynth.c40 synth->phase = 0; in mad_synth_init()
561 unsigned int phase, ch, s, sb, pe, po; in synth_full() local
572 phase = synth->phase; in synth_full()
576 dct32((*sbsample)[s], phase >> 1, in synth_full()
577 (*filter)[0][phase & 1], (*filter)[1][phase & 1]); in synth_full()
579 pe = phase & ~1; in synth_full()
580 po = ((phase - 1) & 0xf) | 1; in synth_full()
584 fe = &(*filter)[0][ phase & 1][0]; in synth_full()
585 fx = &(*filter)[0][~phase & 1][0]; in synth_full()
586 fo = &(*filter)[1][~phase & 1][0]; in synth_full()
[all …]
/plan9/sys/src/cmd/fax/
H A Dfax2modem.c11 m->phase = 'A'; in initfaxmodem()
41 if(m->fax == 0 || m->phase != 'A') in fcon()
43 m->phase = 'B'; in fcon()
/plan9/sys/src/cmd/usb/disk/
H A Ddisk.c409 lun->phase = Pcmd; in dopen()
507 switch(lun->phase){ in dread()
517 lun->phase = Pstatus; in dread()
524 lun->phase = Pcmd; in dread()
581 switch(lun->phase){ in dwrite()
592 lun->phase = Pdata; in dwrite()
599 lun->phase = Pstatus; in dwrite()
604 lun->phase = Pcmd; in dwrite()

123