| /plan9/sys/src/games/music/jukebox/ |
| H A D | music.c | 180 Controlset *cs; variable 207 b->ctl = createbutton(cs, b->name); in readbuts() 208 chanprint(cs->ctl, "%q align center", b->name); in readbuts() 209 chanprint(cs->ctl, "%q border 0", b->name); in readbuts() 221 chanprint(cs->ctl, "%q image %q", b->name, str); in readbuts() 224 chanprint(cs->ctl, "%q mask %q", b->name, str); in readbuts() 225 chanprint(cs->ctl, "%q light red", b->name); in readbuts() 226 chanprint(cs->ctl, "%q size %d %d %d %d", b->name, butwid, butht, butwid, butht); in readbuts() 246 chanprint(cs->ctl, "%q image %q", b->name, str); in activatebuttons() 247 chanprint(cs->ctl, "%q show", b->name); in activatebuttons() [all …]
|
| /plan9/sys/src/games/music/jukefs/ |
| H A D | catset.c | 17 catsetprint(int f, Catset*cs) in catsetprint() argument 20 fprint(2, "(%p %d:", cs->bitpiece, cs->nbitpiece); in catsetprint() 21 for (i = 0; i < cs->nbitpiece; i++) in catsetprint() 22 fprint(f, "[%d]=%x", i, cs->bitpiece[i]); in catsetprint() 27 catsetrealloc(Catset *cs, int sz) in catsetrealloc() argument 29 if (debug) fprint(2, "catsetrealloc %p %d (%p %d)", cs, sz, cs->bitpiece, cs->nbitpiece); in catsetrealloc() 30 if (sz > cs->nbitpiece) { in catsetrealloc() 31 cs->bitpiece = realloc(cs->bitpiece, sz*sizeof(uchar)); in catsetrealloc() 32 memset(cs->bitpiece + cs->nbitpiece, 0, sz - cs->nbitpiece); in catsetrealloc() 33 cs->nbitpiece = sz; in catsetrealloc() [all …]
|
| /plan9/sys/src/cmd/gs/src/ |
| H A D | gxshade.c | 47 private bool cs_eod(const shade_coord_stream_t * cs); 51 shade_next_init(shade_coord_stream_t * cs, in shade_next_init() argument 55 cs->params = params; in shade_next_init() 56 cs->pctm = &pis->ctm; in shade_next_init() 62 stream *s = cs->s = params->DataSource.data.strm; in shade_next_init() 69 sread_string(&cs->ds, params->DataSource.data.str.data, in shade_next_init() 71 cs->s = &cs->ds; in shade_next_init() 74 cs->get_value = cs_next_array_value; in shade_next_init() 75 cs->get_decoded = cs_next_array_decoded; in shade_next_init() 77 cs->get_value = cs_next_packed_value; in shade_next_init() [all …]
|
| H A D | zcsindex.c | 49 gs_color_space cs; in zsetindexedspace() local 63 cs = *gs_currentcolorspace(igs); in zsetindexedspace() 64 if (!cs.type->can_be_base_space) in zsetindexedspace() 79 int num_values = num_entries * cs_num_components(&cs); in zsetindexedspace() 90 memmove(&cs.params.indexed.base_space, &cs, in zsetindexedspace() 91 sizeof(cs.params.indexed.base_space)); in zsetindexedspace() 92 gs_cspace_init(&cs, &gs_color_space_type_Indexed, imemory, false); in zsetindexedspace() 93 cs.params.indexed.lookup.table.data = pcsa[2].value.const_bytes; in zsetindexedspace() 94 cs.params.indexed.lookup.table.size = num_values; in zsetindexedspace() 95 cs.params.indexed.use_proc = 0; in zsetindexedspace() [all …]
|
| H A D | zcsdevn.c | 47 gs_color_space cs; in zsetdevicenspace() local 74 cs = *pacs; in zsetdevicenspace() 76 memmove(&cs.params.device_n.alt_space, &cs, in zsetdevicenspace() 77 sizeof(cs.params.device_n.alt_space)); in zsetdevicenspace() 78 gs_cspace_init(&cs, &gs_color_space_type_DeviceN, imemory, false); in zsetdevicenspace() 79 code = gs_build_DeviceN(&cs, num_components, pacs, imemory); in zsetdevicenspace() 82 names = cs.params.device_n.names; in zsetdevicenspace() 83 pmap = cs.params.device_n.map; in zsetdevicenspace() 84 cs.params.device_n.get_colorname_string = gs_get_colorname_string; in zsetdevicenspace() 133 gs_cspace_set_devn_function(&cs, pfn); in zsetdevicenspace() [all …]
|
| H A D | zcssepr.c | 61 gs_color_space cs; in zsetseparationspace() local 78 cs = *pacs; in zsetseparationspace() 79 if (!cs.type->can_be_alt_space) in zsetseparationspace() 117 memmove(&cs.params.separation.alt_space, &cs, in zsetseparationspace() 118 sizeof(cs.params.separation.alt_space)); in zsetseparationspace() 120 code = gs_build_Separation(&cs, pacs, imemory); in zsetseparationspace() 123 pmap = cs.params.separation.map; in zsetseparationspace() 124 gs_cspace_init(&cs, &gs_color_space_type_Separation, imemory, false); in zsetseparationspace() 125 cs.params.separation.sep_type = sep_type; in zsetseparationspace() 126 cs.params.separation.sep_name = name_index(mem, &sname); in zsetseparationspace() [all …]
|
| H A D | gxshade4.c | 53 Gt_next_vertex(const gs_shading_mesh_t * psh, shade_coord_stream_t * cs, in Gt_next_vertex() argument 56 int code = shade_next_vertex(cs, vertex); in Gt_next_vertex() 101 shade_coord_stream_t cs; in gs_shading_FfGt_fill_rectangle() local 117 shade_next_init(&cs, (const gs_shading_mesh_params_t *)&psh->params, in gs_shading_FfGt_fill_rectangle() 119 while ((flag = shade_next_flag(&cs, num_bits)) >= 0) { in gs_shading_FfGt_fill_rectangle() 124 if ((code = Gt_next_vertex(state.pshm, &cs, &va)) < 0 || in gs_shading_FfGt_fill_rectangle() 125 (code = shade_next_flag(&cs, num_bits)) < 0 || in gs_shading_FfGt_fill_rectangle() 126 (code = Gt_next_vertex(state.pshm, &cs, &vb)) < 0 || in gs_shading_FfGt_fill_rectangle() 127 (code = shade_next_flag(&cs, num_bits)) < 0 in gs_shading_FfGt_fill_rectangle() 135 v2: if ((code = Gt_next_vertex(state.pshm, &cs, &vc)) < 0) in gs_shading_FfGt_fill_rectangle() [all …]
|
| H A D | gxshade.h | 120 int (*get_value)(shade_coord_stream_t *cs, int num_bits, uint *pvalue); 121 int (*get_decoded)(shade_coord_stream_t *cs, int num_bits, 123 bool (*is_eod)(const shade_coord_stream_t *cs); 136 void shade_next_init(shade_coord_stream_t * cs, 141 int shade_next_flag(shade_coord_stream_t * cs, int BitsPerFlag); 144 int shade_next_coords(shade_coord_stream_t * cs, gs_fixed_point * ppt, 148 int shade_next_color(shade_coord_stream_t * cs, float *pc); 151 int shade_next_vertex(shade_coord_stream_t * cs, shading_vertex_t * vertex);
|
| H A D | gscspace.c | 464 gx_cspace_no_linear(gs_direct_color_space *cs, const gs_imager_state * pis, in gx_cspace_no_linear() argument 474 cc2dc(gs_direct_color_space *cs, const gs_imager_state * pis, gx_device *dev, in cc2dc() argument 477 …return cs->type->remap_color(cc, (const gs_color_space *)cs, dc, pis, dev, gs_color_select_texture… in cc2dc() 522 gx_cspace_is_linear_in_line(gs_direct_color_space *cs, const gs_imager_state * pis, in gx_cspace_is_linear_in_line() argument 529 int n = cs->type->num_components((const gs_color_space *)cs); in gx_cspace_is_linear_in_line() 532 code = cc2dc(cs, pis, dev, &d[0], c0); in gx_cspace_is_linear_in_line() 535 code = cc2dc(cs, pis, dev, &d[1], c1); in gx_cspace_is_linear_in_line() 539 code = cc2dc(cs, pis, dev, &d01a, &c01a); in gx_cspace_is_linear_in_line() 545 code = cc2dc(cs, pis, dev, &d01b, &c01b); in gx_cspace_is_linear_in_line() 555 gx_cspace_is_linear_in_triangle(gs_direct_color_space *cs, const gs_imager_state * pis, in gx_cspace_is_linear_in_triangle() argument [all …]
|
| H A D | gscolor3.c | 66 gs_color_space cs; in gs_shfill() local 80 gs_cspace_init(&cs, &gs_color_space_type_Pattern, pgs->memory, false); in gs_shfill() 81 cs.params.pattern.has_base_space = false; in gs_shfill() 82 code = cs.type->remap_color(&cc, &cs, &devc, (gs_imager_state *)pgs, in gs_shfill()
|
| /plan9/sys/src/cmd/auth/factotum/ |
| H A D | fgui.c | 20 Controlset *cs; member 134 rt->cs = nil; in readreq() 184 rt->cs = nil; in readreq() 241 resizecontrolset(Controlset *cs) in resizecontrolset() argument 246 if(p->cs == cs){ in resizecontrolset() 247 (*p->r)(cs); in resizecontrolset() 290 Controlset *cs; in setupconfirm() local 296 cs = newcontrolset(screen, kbdc, mousec, resizec); in setupconfirm() 298 createtext(cs, "msg"); in setupconfirm() 299 chanprint(cs->ctl, "msg image paleyellow"); in setupconfirm() [all …]
|
| /plan9/sys/src/libcontrol/ |
| H A D | control.c | 124 _newcontrol(Controlset *cs, uint n, char *name, char *type) in _newcontrol() argument 128 for(c=cs->controls; c; c=c->next) in _newcontrol() 134 c->screen = cs->screen; in _newcontrol() 149 c->controlset = cs; in _newcontrol() 150 c->next = cs->controls; in _newcontrol() 151 cs->controls = c; in _newcontrol() 158 Controlset *cs; in controlsetthread() local 166 cs = v; in controlsetthread() 167 snprint(tmp, sizeof tmp, "controlsetthread 0x%p", cs); in controlsetthread() 170 alts[AKey].c = cs->kbdc; in controlsetthread() [all …]
|
| /plan9/sys/src/cmd/ssh1/ |
| H A D | cipher3des.c | 13 CipherState *cs; in init3des() local 15 cs = emalloc(sizeof(CipherState)); in init3des() 17 setupDESstate(&cs->enc3des[i], c->sesskey+8*i, nil); in init3des() 18 setupDESstate(&cs->dec3des[i], c->sesskey+8*i, nil); in init3des() 20 return cs; in init3des() 24 encrypt3des(CipherState *cs, uchar *buf, int nbuf) in encrypt3des() argument 26 desCBCencrypt(buf, nbuf, &cs->enc3des[0]); in encrypt3des() 27 desCBCdecrypt(buf, nbuf, &cs->enc3des[1]); in encrypt3des() 28 desCBCencrypt(buf, nbuf, &cs->enc3des[2]); in encrypt3des() 32 decrypt3des(CipherState *cs, uchar *buf, int nbuf) in decrypt3des() argument [all …]
|
| H A D | cipherrc4.c | 12 CipherState *cs; in initrc4() local 14 cs = emalloc(sizeof(CipherState)); in initrc4() 16 setupRC4state(&cs->enc, c->sesskey, 16); in initrc4() 17 setupRC4state(&cs->dec, c->sesskey+16, 16); in initrc4() 19 setupRC4state(&cs->dec, c->sesskey, 16); in initrc4() 20 setupRC4state(&cs->enc, c->sesskey+16, 16); in initrc4() 22 return cs; in initrc4() 26 encryptrc4(CipherState *cs, uchar *buf, int nbuf) in encryptrc4() argument 28 rc4(&cs->enc, buf, nbuf); in encryptrc4() 32 decryptrc4(CipherState *cs, uchar *buf, int nbuf) in decryptrc4() argument [all …]
|
| H A D | cipherdes.c | 12 CipherState *cs; in initdes() local 14 cs = emalloc(sizeof(CipherState)); in initdes() 15 setupDESstate(&cs->enc, c->sesskey, nil); in initdes() 16 setupDESstate(&cs->dec, c->sesskey, nil); in initdes() 17 return cs; in initdes() 21 encryptdes(CipherState *cs, uchar *buf, int nbuf) in encryptdes() argument 23 desCBCencrypt(buf, nbuf, &cs->enc); in encryptdes() 27 decryptdes(CipherState *cs, uchar *buf, int nbuf) in decryptdes() argument 29 desCBCdecrypt(buf, nbuf, &cs->dec); in decryptdes()
|
| H A D | cipherblowfish.c | 12 CipherState *cs; in initblowfish() local 14 cs = emalloc(sizeof(CipherState)); in initblowfish() 15 setupBFstate(&cs->enc, c->sesskey, SESSKEYLEN, nil); in initblowfish() 16 setupBFstate(&cs->dec, c->sesskey, SESSKEYLEN, nil); in initblowfish() 17 return cs; in initblowfish() 21 encryptblowfish(CipherState *cs, uchar *buf, int nbuf) in encryptblowfish() argument 23 bfCBCencrypt(buf, nbuf, &cs->enc); in encryptblowfish() 27 decryptblowfish(CipherState *cs, uchar *buf, int nbuf) in decryptblowfish() argument 29 bfCBCdecrypt(buf, nbuf, &cs->dec); in decryptblowfish()
|
| /plan9/sys/src/cmd/ssh2/ |
| H A D | cipherblowfish.c | 18 CipherState *cs; in initblowfish() local 35 cs = emalloc9p(sizeof(CipherState)); in initblowfish() 36 memset(cs, '\0', sizeof *cs); in initblowfish() 37 fprint(2, "cs: %p\n", cs); in initblowfish() 39 setupBFstate(&cs->state, c->s2cek, 16, c->s2civ); in initblowfish() 41 setupBFstate(&cs->state, c->c2sek, 16, c->c2siv); in initblowfish() 42 return cs; in initblowfish() 46 encryptblowfish(CipherState *cs, uchar *buf, int nbuf) in encryptblowfish() argument 48 bfCBCencrypt(buf, nbuf, &cs->state); in encryptblowfish() 52 decryptblowfish(CipherState *cs, uchar *buf, int nbuf) in decryptblowfish() argument [all …]
|
| H A D | cipheraes.c | 19 CipherState *cs; in initaes() local 22 cs = emalloc9p(sizeof(CipherState)); in initaes() 24 setupAESstate(&cs->state, c->s2cek, bits/8, c->s2civ); in initaes() 26 setupAESstate(&cs->state, c->c2sek, bits/8, c->c2siv); in initaes() 28 return cs; in initaes() 50 encryptaes(CipherState *cs, uchar *buf, int nbuf) in encryptaes() argument 52 if(cs->state.setup != 0xcafebabe || cs->state.rounds > AESmaxrounds) in encryptaes() 55 aesCBCencrypt(buf, nbuf, &cs->state); in encryptaes() 60 decryptaes(CipherState *cs, uchar *buf, int nbuf) in decryptaes() argument 62 if(cs->state.setup != 0xcafebabe || cs->state.rounds > AESmaxrounds) in decryptaes() [all …]
|
| H A D | cipherrc4.c | 17 CipherState *cs; in initrc4() local 19 cs = emalloc9p(sizeof(CipherState)); in initrc4() 21 setupRC4state(&cs->state, c->s2cek, 16); in initrc4() 23 setupRC4state(&cs->state, c->c2sek, 16); in initrc4() 24 return cs; in initrc4() 28 encryptrc4(CipherState *cs, uchar *buf, int nbuf) in encryptrc4() argument 30 rc4(&cs->state, buf, nbuf); in encryptrc4() 34 decryptrc4(CipherState *cs, uchar *buf, int nbuf) in decryptrc4() argument 36 rc4(&cs->state, buf, nbuf); in decryptrc4()
|
| H A D | cipher3des.c | 17 CipherState *cs; in init3des() local 20 cs = emalloc9p(sizeof(CipherState)); in init3des() 23 setupDES3state(&cs->state, key, c->s2civ); in init3des() 26 setupDES3state(&cs->state, key, c->c2siv); in init3des() 28 return cs; in init3des() 32 encrypt3des(CipherState *cs, uchar *buf, int nbuf) in encrypt3des() argument 34 des3CBCencrypt(buf, nbuf, &cs->state); in encrypt3des() 38 decrypt3des(CipherState *cs, uchar *buf, int nbuf) in decrypt3des() argument 40 des3CBCdecrypt(buf, nbuf, &cs->state); in decrypt3des()
|
| /plan9/sys/src/cmd/ip/ppp/ |
| H A D | mppc.c | 142 Cstate *cs; in compinit() local 144 cs = mallocz(sizeof(Cstate), 1); in compinit() 145 cs->hist = &cs->arenas[0]; in compinit() 146 cs->ohist = &cs->arenas[1]; in compinit() 147 compreset(cs); in compinit() 151 cs->me = ~0; in compinit() 152 compreset(cs); in compinit() 154 cs->reset = 0; in compinit() 157 cs->encrypt = 1; in compinit() 158 memmove(cs->startkey, ppp->key, 16); in compinit() [all …]
|
| H A D | thw.c | 69 Cstate *cs; in compinit() local 71 cs = mallocz(sizeof(Cstate), 1); in compinit() 72 thwackinit(&cs->th); in compinit() 73 return cs; in compinit() 79 Cstate *cs; in compfini() local 81 cs = as; in compfini() 82 thwackcleanup(&cs->th); in compfini() 83 free(cs); in compfini() 90 Cstate *cs; in compresetreq() local 94 cs = as; in compresetreq() [all …]
|
| /plan9/sys/src/cmd/ip/imap4d/ |
| H A D | auth.c | 131 Chalstate *cs; in cramauth() local 135 if((cs = auth_challenge("proto=cram role=server")) == nil) in cramauth() 138 n = cs->nchal; in cramauth() 140 n = enc64(s, n * 2, (uchar*)cs->chal, n); in cramauth() 158 cs->user = username; in cramauth() 159 cs->resp = t; in cramauth() 160 cs->nresp = strlen(t); in cramauth() 161 if((ai = auth_response(cs)) == nil) in cramauth() 163 auth_freechal(cs); in cramauth() 172 Chalstate *cs; in passLogin() local [all …]
|
| /plan9/sys/lib/sysconfig/auth/boundary/ |
| H A D | lib.ndb.mkfile | 7 mk local-cs.^($ATTR) 13 mk external-cs.^($ATTR) 17 local-cs.%: local-cs 18 ndb/mkhash local-cs $stem 23 external-cs.%: external-cs 24 ndb/mkhash external-cs $stem 35 local-cs: /n/$fileserver/lib/ndb/local-cs 36 cp /n/$fileserver/lib/ndb/local-cs /n/kfs/lib/ndb 53 external-cs: /n/$fileserver/lib/ndb/external-cs 54 cp /n/$fileserver/lib/ndb/external-cs /n/kfs/lib/ndb
|
| /plan9/sys/src/libflate/ |
| H A D | deflate.c | 1131 Chains cs; in mkprecode() local 1143 cs.leafcount[m] = count[i]; in mkprecode() 1144 cs.leafmap[m] = i; in mkprecode() 1150 tab[cs.leafmap[0]].bits = 0; in mkprecode() 1156 cs.nleaf = m; in mkprecode() 1157 leafsort(cs.leafcount, cs.leafmap, 0, m); in mkprecode() 1160 cs.leafcount[i] = count[cs.leafmap[i]]; in mkprecode() 1165 cs.free = &cs.chains[2]; in mkprecode() 1166 cs.echains = &cs.chains[ChainMem]; in mkprecode() 1167 cs.col = 1; in mkprecode() [all …]
|