Home
last modified time | relevance | path

Searched refs:cap (Results 1 – 25 of 84) sorted by relevance

1234

/plan9/sys/src/cmd/auth/
H A Das.c124 char *cap; in mkcap() local
136 cap = emalloc(ncap); in mkcap()
137 snprint(cap, ncap, "%s@%s", from, to); in mkcap()
139 key = cap+nfrom+1+nto+1; in mkcap()
143 hmac_sha1((uchar*)cap, strlen(cap), (uchar*)key, strlen(key), hash, nil); in mkcap()
148 free(cap); in mkcap()
152 return cap; in mkcap()
156 usecap(char *cap) in usecap() argument
163 rv = write(fd, cap, strlen(cap)); in usecap()
171 char *cap; in becomeuser() local
[all …]
H A Dcron.c687 char *cap; in mkcap() local
699 cap = emalloc(ncap); in mkcap()
700 snprint(cap, ncap, "%s@%s", from, to); in mkcap()
702 key = cap+nfrom+1+nto+1; in mkcap()
706 hmac_sha1((uchar*)cap, strlen(cap), (uchar*)key, strlen(key), hash, nil); in mkcap()
711 free(cap); in mkcap()
715 return cap; in mkcap()
719 usecap(char *cap) in usecap() argument
726 rv = write(fd, cap, strlen(cap)); in usecap()
734 char *cap; in becomeuser() local
[all …]
H A Dlogin.c91 rv = write(fd, ai->cap, strlen(ai->cap)); in chuid()
176 if(ai == nil || ai->cap == nil) in main()
/plan9/sys/src/libauth/
H A Dauth_chuid.c13 if(ai == nil || ai->cap == nil || *ai->cap == 0){ in auth_chuid()
24 rv = write(fd, ai->cap, strlen(ai->cap)); in auth_chuid()
27 werrstr("writing %s to #¤/capuse: %r", ai->cap); in auth_chuid()
H A Dauth_proxy.c60 free(ai->cap); in auth_freeAI()
77 p = gstring(p, e, &ai->cap); in convM2AI()
/plan9/sys/src/9/pc/
H A Dmtrr.c251 vlong def, cap; in mtrr() local
272 rdmsr(MTRRCap, &cap); in mtrr()
280 if(!(cap & Capwc)) in mtrr()
292 vcnt = cap & Capvcnt; in mtrr()
322 vlong cap, def; in mtrrprint() local
328 rdmsr(MTRRCap, &cap); in mtrrprint()
332 vcnt = cap & Capvcnt; in mtrrprint()
H A Dusbehcipc.c25 int i, ptr, cap, sem; in getehci() local
31 cap = pcicfgr8(ctlr->pcidev, ptr); in getehci()
32 if(cap != Clegacy) in getehci()
196 ctlr->opio = (Eopio*)((uintptr)capio + (capio->cap & 0xff)); in scanpci()
H A Ddevfloppy.c155 floppydir[1+NFDIR*dp->dev].length = dp->t->cap; in floppysetdef()
176 t->cap = t->bytes * t->heads * t->sectors * t->tracks; in floppyreset()
323 floppydir[1+NFDIR*dp->dev].length = dp->t->cap; in changed()
833 if(off >= dp->t->cap) in floppyxfer()
835 if(off + n > dp->t->cap) in floppyxfer()
836 n = dp->t->cap - off; in floppyxfer()
944 floppydir[1+NFDIR*dp->dev].length = dp->t->cap; in floppyformat()
H A Detherm10g.c274 pcicap(Pcidev *p, int cap) in pcicap() argument
291 if(c == cap) in pcicap()
303 pciecap(Pcidev *p, int cap) in pciecap() argument
308 while(((i = pcicfgr32(p, off)) & 0xffff) != cap){ in pciecap()
337 ulong cap; in whichfw() local
344 cap = pcicfgr16(p, off); in whichfw()
345 lanes = (cap>>4) & 0x3f; in whichfw()
350 cap = 0; in whichfw()
353 cap = pcicfgr32(p, off); in whichfw()
354 print("m10g: %lud cap\n", cap); in whichfw()
[all …]
/plan9/sys/src/9/pcboot/
H A Ddevbios.c242 int cap, mask, lastbit, ndrive; in biosinit0() local
259 cap = drivecap(devid); in biosinit0()
261 if(cap < 0 || (cap & (Fixeddisk|Edd)) != (Fixeddisk|Edd) in biosinit0()
561 int cap; in drivecap() local
574 cap = regs.cx; in drivecap()
577 drive, (uchar)(regs.ax >> 8), (uchar)regs.ax, cap); in drivecap()
583 if (cap & Fixeddisk) in drivecap()
585 if (cap & Drlock) in drivecap()
587 if (cap & Edd) in drivecap()
589 if (cap & Bit64ext) in drivecap()
[all …]
/plan9/sys/src/cmd/gs/src/
H A Dgsline.c51 gs_setlinecap(gs_state * pgs, gs_line_cap cap) in gs_setlinecap() argument
53 if ((uint) cap > gs_line_cap_max) in gs_setlinecap()
55 pgs_lp->cap = cap; in gs_setlinecap()
63 return pgs_lp->cap; in gs_currentlinecap()
H A Dgxstroke.c105 !(pis->line_params.cap == gs_cap_square || in gx_stroke_path_expansion()
106 pis->line_params.cap == gs_cap_round); in gx_stroke_path_expansion()
361 pgs_lp->half_width, (int)pgs_lp->cap, (int)pgs_lp->join); in gx_stroke_path_only_aux()
574 if (pgs_lp->cap != gs_cap_round) { in gx_stroke_path_only_aux()
618 if (pgs_lp->cap == gs_cap_butt) { in gx_stroke_path_only_aux()
968 gs_line_cap cap = pgs_lp->cap; in stroke_fill() local
971 && ((first != 0 && nplp != 0) || cap == gs_cap_butt in stroke_fill()
972 || cap == gs_cap_square) in stroke_fill()
982 npoints = cap_points((first == 0 ? cap : gs_cap_butt), in stroke_fill()
985 code = cap_points(cap, &plp->e, points + npoints); in stroke_fill()
[all …]
H A Dgxline.h44 gs_line_cap cap; member
/plan9/sys/man/3/
H A DINDEX8 cap cap
/plan9/sys/src/cmd/cdfs/
H A Dmmc.c437 int cap; in mmcprobe() local
480 cap = 0; in mmcprobe()
483 cap |= Cwrite; in mmcprobe()
485 cap |= Ccdda; /* not used anywhere else */ in mmcprobe()
494 cap |= Cwrite; in mmcprobe()
500 cap &= ~Cwrite; in mmcprobe()
502 drive->cap = cap; in mmcprobe()
1218 vlong cap; in alltrackinfo() local
1234 cap = (vlong)track->end * track->bs; in alltrackinfo()
1236 if (cap >= 101*GB) in alltrackinfo()
[all …]
/plan9/sys/src/cmd/auth/factotum/
H A Dutil.c263 p = pstring(p, e, ai->cap); in convAI2M()
595 char *cap; in mkcap() local
607 cap = emalloc(ncap); in mkcap()
608 snprint(cap, ncap, "%s@%s", from, to); in mkcap()
610 key = cap+nfrom+1+nto+1; in mkcap()
614 hmac_sha1((uchar*)cap, strlen(cap), (uchar*)key, strlen(key), hash, nil); in mkcap()
619 free(cap); in mkcap()
623 return cap; in mkcap()
/plan9/sys/src/9/mtx/
H A Dmtx13 cap
H A Dmtxcpu13 cap
/plan9/sys/src/cmd/unix/drawterm/libauth/
H A Dauth_proxy.c60 free(ai->cap); in auth_freeAI()
77 p = gstring(p, e, &ai->cap); in convM2AI()
/plan9/sys/src/9/bcm/
H A Dpi13 cap
H A Dpicpu13 cap
/plan9/sys/src/9/rb/
H A Drb15 cap
/plan9/sys/src/9/ppc/
H A Dblast12 cap
H A Ducu11 cap
/plan9/sys/src/9/port/
H A Dportusbehci.h129 ulong cap; /* 00 controller capability register */ member

1234