Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 25 of 79) sorted by relevance

1234

/plan9/sys/src/cmd/scuzz/
H A Dcdr.c42 SRTOC(ScsiReq *rp, void *data, int nbytes, uchar format, uchar track) in SRTOC() argument
50 cmd[7] = nbytes>>8; in SRTOC()
51 cmd[8] = nbytes; in SRTOC()
55 rp->data.count = nbytes; in SRTOC()
61 SRrdiscinfo(ScsiReq *rp, void *data, int nbytes) in SRrdiscinfo() argument
67 cmd[7] = nbytes>>8; in SRrdiscinfo()
68 cmd[8] = nbytes; in SRrdiscinfo()
72 rp->data.count = nbytes; in SRrdiscinfo()
78 SRrtrackinfo(ScsiReq *rp, void *data, int nbytes, int track) in SRrtrackinfo() argument
89 cmd[7] = nbytes>>8; in SRrtrackinfo()
[all …]
H A Dscuzz.c61 long nbytes; in cmdreqsense() local
64 if((nbytes = SRreqsense(rp)) != -1) in cmdreqsense()
66 return nbytes; in cmdreqsense()
154 vlong nbytes, total; in cmdread() local
159 nbytes = ~0ULL >> 1; in cmdread()
167 nbytes = strtoll(argv[1], &p, 0); in cmdread()
168 if(nbytes == 0 && p == argv[1]){ in cmdread()
183 while(nbytes){ in cmdread()
184 n = vlmin(nbytes, iosize); in cmdread()
203 nbytes -= n; in cmdread()
[all …]
H A Dscsireq.c117 dirdevrw(ScsiReq *rp, uchar *cmd, long nbytes) in dirdevrw() argument
121 n = nbytes / rp->lbsize; in dirdevrw()
139 seqdevrw(ScsiReq *rp, uchar *cmd, long nbytes) in seqdevrw() argument
145 n = nbytes / rp->lbsize; in seqdevrw()
152 SRread(ScsiReq *rp, void *buf, long nbytes) in SRread() argument
157 if((nbytes % rp->lbsize) || nbytes > maxiosize){ in SRread()
159 if (nbytes % rp->lbsize) in SRread()
161 nbytes, rp->lbsize); in SRread()
164 nbytes, maxiosize); in SRread()
172 rp->cmd.count = seqdevrw(rp, cmd, nbytes); in SRread()
[all …]
H A Dcdaudio.c128 SRcdstatus(ScsiReq *rp, uchar *list, int nbytes) in SRcdstatus() argument
134 cmd[8] = nbytes>>8; in SRcdstatus()
135 cmd[9] = nbytes; in SRcdstatus()
139 rp->data.count = nbytes; in SRcdstatus()
145 SRgetconf(ScsiReq *rp, uchar *list, int nbytes) in SRgetconf() argument
151 cmd[7] = nbytes>>8; in SRgetconf()
152 cmd[8] = nbytes; in SRgetconf()
156 rp->data.count = nbytes; in SRgetconf()
H A Dchanger.c44 SRestatus(ScsiReq *rp, uchar type, uchar *list, int nbytes) in SRestatus() argument
53 cmd[7] = nbytes>>16; in SRestatus()
54 cmd[8] = nbytes>>8; in SRestatus()
55 cmd[9] = nbytes; in SRestatus()
59 rp->data.count = nbytes; in SRestatus()
/plan9/sys/src/cmd/gs/src/
H A Dgsflip.c45 flip3x1(byte * buffer, const byte ** planes, int offset, int nbytes) in flip3x1() argument
51 int n = nbytes; in flip3x1()
68 flip3x2(byte * buffer, const byte ** planes, int offset, int nbytes) in flip3x2() argument
74 int n = nbytes; in flip3x2()
91 flip3x4(byte * buffer, const byte ** planes, int offset, int nbytes) in flip3x4() argument
97 int n = nbytes; in flip3x4()
111 flip3x8(byte * buffer, const byte ** planes, int offset, int nbytes) in flip3x8() argument
117 int n = nbytes; in flip3x8()
129 flip3x12(byte * buffer, const byte ** planes, int offset, int nbytes) in flip3x12() argument
135 int n = nbytes; in flip3x12()
[all …]
H A Dialloc.h42 #define ialloc_bytes(nbytes, cname)\ argument
43 gs_alloc_bytes(imemory, nbytes, cname)
54 #define ialloc_string(nbytes, cname)\ argument
55 gs_alloc_string(imemory, nbytes, cname)
58 #define ifree_string(data, nbytes, cname)\ argument
59 gs_free_string(imemory, data, nbytes, cname)
60 #define ifree_const_string(data, nbytes, cname)\ argument
61 gs_free_const_string(imemory, data, nbytes, cname)
109 #define ialloc_string_ref(psref, attrs, nbytes, cname)\ argument
110 gs_alloc_string_ref(iimemory, psref, attrs, nbytes, cname)
H A Dgsmemory.h104 byte *proc(mem_t *mem, uint nbytes, client_name_t cname)
106 #define gs_alloc_bytes_immovable(mem, nbytes, cname)\ argument
107 ((mem)->procs.alloc_bytes_immovable(mem, nbytes, cname))
251 #define gs_alloc_bytes(mem, nbytes, cname)\ argument
252 (*(mem)->procs.alloc_bytes)(mem, nbytes, cname)
324 byte *proc(gs_memory_t *mem, uint nbytes, client_name_t cname)
325 #define gs_alloc_string(mem, nbytes, cname)\ argument
326 (*(mem)->procs.alloc_string)(mem, nbytes, cname)
328 #define gs_alloc_string_immovable(mem, nbytes, cname)\ argument
329 (*(mem)->procs.alloc_string_immovable)(mem, nbytes, cname)
[all …]
H A Dgdevcfax.c120 int lnum, nbytes, i; in cfax_stream_print_page_width() local
158 nbytes = w.ptr - out + 1; in cfax_stream_print_page_width()
160 if (nbytes > 0) { in cfax_stream_print_page_width()
161 if (nbytes < 217) { in cfax_stream_print_page_width()
162 cfax_byte(nbytes, prn_stream); in cfax_stream_print_page_width()
163 for (i = 0; i < nbytes; i++) in cfax_stream_print_page_width()
167 cfax_word(nbytes, prn_stream); in cfax_stream_print_page_width()
168 for (i = 0; i < nbytes; i++) in cfax_stream_print_page_width()
H A Dgsnogc.c55 sf_alloc_string(gs_memory_t * mem, uint nbytes, client_name_t cname) in sf_alloc_string() argument
59 if (nbytes >= 40 && nbytes < imem->large_size) { in sf_alloc_string()
69 if (get_uu32(ptr) != nbytes) in sf_alloc_string()
77 client_name_string(cname), nbytes, (ulong) ptr); in sf_alloc_string()
78 gs_alloc_fill(ptr, gs_alloc_fill_alloc, nbytes); in sf_alloc_string()
79 imem->lost.strings -= nbytes; in sf_alloc_string()
83 return (*gs_ref_memory_procs.alloc_string) (mem, nbytes, cname); in sf_alloc_string()
H A Dgsmemraw.h109 byte *proc(mem_t *mem, uint nbytes, client_name_t cname)
111 #define gs_alloc_bytes_immovable(mem, nbytes, cname)\
112 ((mem)->procs.alloc_bytes_immovable(mem, nbytes, cname))
H A Dgsmemret.c278 gs_retrying_alloc_string(gs_memory_t * mem, uint nbytes, client_name_t cname) in gs_retrying_alloc_string() argument
282 target->procs.alloc_string(target, nbytes, cname) in gs_retrying_alloc_string()
286 gs_retrying_alloc_string_immovable(gs_memory_t * mem, uint nbytes, in gs_retrying_alloc_string_immovable() argument
291 target->procs.alloc_string_immovable(target, nbytes, cname) in gs_retrying_alloc_string_immovable()
306 gs_forward_free_string(gs_memory_t * mem, byte * data, uint nbytes, in gs_forward_free_string() argument
309 DO_FORWARD(target->procs.free_string(target, data, nbytes, cname)); in gs_forward_free_string()
/plan9/sys/src/cmd/cwfs/
H A Dscsi.c192 scsiinquiry(Target* tp, char lun, int* nbytes) in scsiinquiry() argument
199 *nbytes = Ninquiry; in scsiinquiry()
200 cmd[4] = *nbytes; in scsiinquiry()
201 return scsiexec(tp, SCSIread, cmd, sizeof cmd, tp->inquiry, nbytes); in scsiinquiry()
225 scsireqsense(Target* tp, char lun, int* nbytes, int quiet) in scsireqsense() argument
239 *nbytes = Ninquiry; in scsireqsense()
240 status = scsiexec(tp, SCSIread, cmd, sizeof cmd, sense, nbytes); in scsireqsense()
243 *nbytes = sense[0x07]+8; in scsireqsense()
313 int nbytes, s; in scsiprobe() local
337 s = scsireqsense(tp, d->wren.lun, &nbytes, acount); in scsiprobe()
[all …]
/plan9/sys/src/cmd/usb/disk/
H A Dscsireq.c171 dirdevrw(ScsiReq *rp, uchar *cmd, long nbytes) in dirdevrw() argument
175 n = nbytes / rp->lbsize; in dirdevrw()
193 seqdevrw(ScsiReq *rp, uchar *cmd, long nbytes) in seqdevrw() argument
199 n = nbytes / rp->lbsize; in seqdevrw()
208 SRread(ScsiReq *rp, void *buf, long nbytes) in SRread() argument
213 if(rp->lbsize == 0 || (nbytes % rp->lbsize) || nbytes > Maxiosize){ in SRread()
215 if (nbytes % rp->lbsize) in SRread()
217 nbytes, rp->lbsize); in SRread()
220 nbytes, Maxiosize); in SRread()
228 rp->cmd.count = seqdevrw(rp, cmd, nbytes); in SRread()
[all …]
/plan9/sys/src/cmd/postscript/g3p9bit/
H A Dg3p9bit.c35 int nbytes; variable
187 nbytes = readn(f, buf, 1024*1024); in readfile()
188 if(nbytes==1024*1024 || nbytes<=100){ in readfile()
196 nbytes -= 0xf3; in readfile()
208 nbytes -= 64; in readfile()
211 while(nbytes > 2){ in readfile()
228 nbytes -= i+1; in readfile()
233 nbytes -= 2; in readfile()
238 nbytes--; in readfile()
240 if(nbytes < 2) in readfile()
[all …]
/plan9/sys/src/ape/lib/ap/plan9/
H A Dread.c10 read(int d, void *buf, size_t nbytes) in read() argument
19 if(nbytes <= 0) in read()
39 n = _readbuf(d, buf, nbytes, noblock); in read()
41 n = _READ(d, buf, nbytes); in read()
H A Dwrite.c7 write(int d, const void *buf, size_t nbytes) in write() argument
17 n = _WRITE(d, buf, nbytes); in write()
/plan9/sys/src/cmd/gs/jpeg/
H A Djdatasrc.c93 size_t nbytes; in fill_input_buffer() local
95 nbytes = JFREAD(src->infile, src->buffer, INPUT_BUF_SIZE); in fill_input_buffer()
97 if (nbytes <= 0) { in fill_input_buffer()
104 nbytes = 2; in fill_input_buffer()
108 src->pub.bytes_in_buffer = nbytes; in fill_input_buffer()
/plan9/sys/src/9/ppc/
H A Dmcc.c102 int nbytes; member
206 … if (copy_to_user( (((mcc_iorw_t *)param)->buf), (void *)vptr, (((mcc_iorw_t *)param)->nbytes))) { in mcc2_ioctl()
217 …if (copy_from_user( (void *)vptr, (((mcc_iorw_t *)param)->buf), (((mcc_iorw_t *)param)->nbytes))) { in mcc2_ioctl()
229 … if (copy_to_user( (((mcc_iorw_t *)param)->buf), (void *)vptr, (((mcc_iorw_t *)param)->nbytes))) { in mcc2_ioctl()
240 …if (copy_from_user( (void *)vptr, (((mcc_iorw_t *)param)->buf), (((mcc_iorw_t *)param)->nbytes))) { in mcc2_ioctl()
253 … if (copy_to_user( (((mcc_iorw_t *)param)->buf), (void *)cptr, (((mcc_iorw_t *)param)->nbytes))) { in mcc2_ioctl()
262 …if (copy_from_user( (void *)cptr, (((mcc_iorw_t *)param)->buf), (((mcc_iorw_t *)param)->nbytes))) { in mcc2_ioctl()
/plan9/sys/src/cmd/upas/smtp/
H A Dsmtpd.c828 logcall(int nbytes) in logcall() argument
846 s_to_c(from), nbytes, s_to_c(to)); in logcall()
1043 int nbytes; in forgedheaderwarnings() local
1046 nbytes = 0; in forgedheaderwarnings()
1052 nbytes += Bprint(pp->std[0]->fp, in forgedheaderwarnings()
1062 nbytes += Bprint(pp->std[0]->fp, in forgedheaderwarnings()
1065 return nbytes; in forgedheaderwarnings()
1070 nbytes += Bprint(pp->std[0]->fp, in forgedheaderwarnings()
1073 return nbytes; in forgedheaderwarnings()
1086 int n, nbytes, sawdot, status, nonhdr, bpr; in pipemsg() local
[all …]
H A Dsmtp.c606 int i, n, nbytes, bufsize, eof, r; in data() local
628 nbytes = Blinelen(b); in data()
629 buf = realloc(buf, n+nbytes+1); in data()
634 strncpy(buf+n, cp, nbytes); in data()
635 n += nbytes; in data()
636 if(nbytes == 1) /* end of header */ in data()
669 nbytes = 0; in data()
681 nbytes += Bprint(&bout, "Message-ID: <%s@%s>\r\n", id, hostdomain); in data()
687 nbytes += Bprint(&bout, "From: %s\r\n", s_to_c(fromline)); in data()
695 nbytes += Bprint(&bout, "To: <%s>\r\n", s_to_c(toline)); in data()
[all …]
/plan9/sys/src/cmd/aquarela/
H A Dalloc.c8 nbemalloc(ulong nbytes) in nbemalloc() argument
11 p = malloc(nbytes); in nbemalloc()
/plan9/sys/src/ape/cmd/pdksh/
H A Dshf.c697 shf_write(buf, nbytes, shf) in shf_write() argument
699 int nbytes;
702 int orig_nbytes = nbytes;
709 if (nbytes < 0)
710 internal_errorf(1, "shf_write: nbytes %d", nbytes);
714 && (shf->wp != shf->buf || nbytes < shf->wnleft))
716 if (ncopy > nbytes)
717 ncopy = nbytes;
719 nbytes -= ncopy;
724 if (nbytes > 0) {
[all …]
/plan9/sys/src/libcomplete/
H A Dcomplete.c44 long i, l, n, nfile, len, nbytes; in complete() local
120 nbytes = nfile * sizeof(char*); in complete()
122 nbytes += strlen(name[i]) + 1 + 1; in complete()
123 c->filename = malloc(nbytes); in complete()
/plan9/sys/src/cmd/aux/
H A Dmouse.c47 dumpbuf(char *buf, int nbytes, char *s) in dumpbuf() argument
50 while(nbytes-- > 0) in dumpbuf()
90 slowread(int fd, char *buf, int nbytes, char *msg) in slowread() argument
95 for(p = buf; nbytes > 1 && (c = readbyte(fd)) != -1; *p++ = c, nbytes--) in slowread()

1234