Lines Matching refs:nbytes
98 size_t nbytes, loff_t *off) in coda_psdev_write() argument
116 if ( nbytes < sizeof(struct coda_out_hdr) ) { in coda_psdev_write()
119 count = nbytes; in coda_psdev_write()
122 if ( nbytes > size ) { in coda_psdev_write()
125 nbytes = size; in coda_psdev_write()
127 CODA_ALLOC(dcbuf, union outputArgs *, nbytes); in coda_psdev_write()
128 if (copy_from_user(dcbuf, buf, nbytes)) { in coda_psdev_write()
129 CODA_FREE(dcbuf, nbytes); in coda_psdev_write()
137 CODA_FREE(dcbuf, nbytes); in coda_psdev_write()
144 count = nbytes; in coda_psdev_write()
168 if (req->uc_outSize < nbytes) { in coda_psdev_write()
170 __func__, req->uc_outSize, (long)nbytes, in coda_psdev_write()
172 nbytes = req->uc_outSize; /* don't have more space! */ in coda_psdev_write()
174 if (copy_from_user(req->uc_data, buf, nbytes)) { in coda_psdev_write()
182 req->uc_outSize = nbytes; in coda_psdev_write()
184 count = nbytes; in coda_psdev_write()
204 size_t nbytes, loff_t *off) in coda_psdev_read() argument
211 if (nbytes == 0) in coda_psdev_read()
244 if (nbytes < req->uc_inSize) { in coda_psdev_read()
246 __func__, (long)nbytes, req->uc_inSize); in coda_psdev_read()
247 count = nbytes; in coda_psdev_read()