Home
last modified time | relevance | path

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

123

/linux-2.4.37.9/crypto/
Dcipher.c50 unsigned int nbytes, cryptfn_t crfn, in crypt() argument
58 if (!nbytes) in crypt()
61 if (nbytes % bsize) { in crypt()
80 nbytes -= bsize; in crypt()
86 scatterwalk_done(&walk_in, 0, nbytes); in crypt()
89 scatterwalk_done(&walk_out, 1, nbytes); in crypt()
91 if (!nbytes) in crypt()
143 struct scatterlist *src, unsigned int nbytes) in ecb_encrypt() argument
145 return crypt(tfm, dst, src, nbytes, in ecb_encrypt()
153 unsigned int nbytes, u8 *iv) in ecb_encrypt_iv() argument
[all …]
Dscatterwalk.c31 void *scatterwalk_whichbuf(struct scatter_walk *walk, unsigned int nbytes, void *scratch) in scatterwalk_whichbuf() argument
33 if (nbytes <= walk->len_this_page && in scatterwalk_whichbuf()
34 (((unsigned long)walk->data) & (PAGE_CACHE_SIZE - 1)) + nbytes <= in scatterwalk_whichbuf()
41 static void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) in memcpy_dir() argument
44 memcpy(sgdata, buf, nbytes); in memcpy_dir()
46 memcpy(buf, sgdata, nbytes); in memcpy_dir()
104 size_t nbytes, int out) in scatterwalk_copychunks() argument
107 while (nbytes > walk->len_this_page) { in scatterwalk_copychunks()
110 nbytes -= walk->len_this_page; in scatterwalk_copychunks()
117 memcpy_dir(buf, walk->data, nbytes, out); in scatterwalk_copychunks()
[all …]
Dscatterwalk.h45 void *scatterwalk_whichbuf(struct scatter_walk *walk, unsigned int nbytes, void *scratch);
47 int scatterwalk_copychunks(void *buf, struct scatter_walk *walk, size_t nbytes, int out);
/linux-2.4.37.9/fs/coda/
Dpsdev.c103 size_t nbytes, loff_t *off) in coda_psdev_write() argument
118 current->pid, hdr.opcode, hdr.unique, (long)nbytes); in coda_psdev_write()
128 count = nbytes; in coda_psdev_write()
133 if ( nbytes < sizeof(struct coda_out_hdr) ) { in coda_psdev_write()
136 count = nbytes; in coda_psdev_write()
139 if ( nbytes > size ) { in coda_psdev_write()
142 nbytes = size; in coda_psdev_write()
144 CODA_ALLOC(dcbuf, union outputArgs *, nbytes); in coda_psdev_write()
145 if (copy_from_user(dcbuf, buf, nbytes)) { in coda_psdev_write()
146 CODA_FREE(dcbuf, nbytes); in coda_psdev_write()
[all …]
/linux-2.4.37.9/arch/alpha/kernel/
Dsrm_env.c115 int nbytes; in srm_env_read() local
130 nbytes = (int) ret; in srm_env_read()
132 nbytes = -EFAULT; in srm_env_read()
136 return nbytes; in srm_env_read()
145 int nbytes; in srm_env_write() local
154 nbytes = strlen(buffer) + 1; in srm_env_write()
155 if(nbytes > BUFLEN) { in srm_env_write()
173 nbytes = (int) ret1; in srm_env_write()
175 nbytes = -EFAULT; in srm_env_write()
179 return nbytes; in srm_env_write()
Dosf_sys.c562 long nbytes; member
567 long nbytes; member
574 long nbytes; member
581 long nbytes; member
610 error = verify_area(VERIFY_READ, &args->set.nbytes, in osf_proplist_syscall()
611 sizeof(args->set.nbytes)); in osf_proplist_syscall()
613 error = args->set.nbytes; in osf_proplist_syscall()
616 error = verify_area(VERIFY_READ, &args->fset.nbytes, in osf_proplist_syscall()
617 sizeof(args->fset.nbytes)); in osf_proplist_syscall()
619 error = args->fset.nbytes; in osf_proplist_syscall()
[all …]
/linux-2.4.37.9/drivers/macintosh/
Dvia-pmu68k.c292 for (i = 0; i < req->nbytes - 1; ++i) in pmu_send_request()
294 --req->nbytes; in pmu_send_request()
305 if (req->nbytes != 2) in pmu_send_request()
308 req->nbytes = 1; in pmu_send_request()
316 if (req->nbytes != 6) in pmu_send_request()
319 req->nbytes = 5; in pmu_send_request()
329 if (req->nbytes != 4) in pmu_send_request()
334 req->nbytes = 3; in pmu_send_request()
342 if (req->nbytes != 5) in pmu_send_request()
348 req->nbytes = 4; in pmu_send_request()
[all …]
Dadb-iop.c181 printk("adb_iop_start %p: sending packet, %d bytes:", req, req->nbytes); in adb_iop_start()
182 for (i = 0 ; i < req->nbytes ; i++) in adb_iop_start()
191 amsg.count = req->nbytes - 2; in adb_iop_start()
195 memcpy(&amsg.cmd, req->data + 1, req->nbytes - 1); in adb_iop_start()
238 if ((req->nbytes < 2) || (req->data[0] != ADB_PACKET)) { in adb_iop_write()
280 .nbytes = 2, in adb_iop_reset_bus()
Dvia-pmu.c860 for (i = 0; i < req->nbytes - 1; ++i) in pmu_send_request()
862 --req->nbytes; in pmu_send_request()
873 if (req->nbytes != 2) in pmu_send_request()
876 req->nbytes = 1; in pmu_send_request()
884 if (req->nbytes != 6) in pmu_send_request()
887 req->nbytes = 5; in pmu_send_request()
901 for (i = req->nbytes - 1; i > 1; --i) in pmu_send_request()
903 req->data[3] = req->nbytes - 2; in pmu_send_request()
907 req->nbytes += 2; in pmu_send_request()
961 req.nbytes = 5; in pmu_adb_reset_bus()
[all …]
Dvia-cuda.c114 void (*done)(struct adb_request *), int nbytes, ...);
357 int nbytes, ...) in cuda_request() argument
367 req->nbytes = nbytes; in cuda_request()
369 va_start(list, nbytes); in cuda_request()
370 for (i = 0; i < nbytes; ++i) in cuda_request()
382 if (req->nbytes < 2 || req->data[0] > CUDA_PACKET) { in cuda_write()
505 if (data_index >= req->nbytes) { in cuda_interrupt()
/linux-2.4.37.9/arch/alpha/boot/
Dbootp.c148 static long nbytes; in start_kernel() local
179 nbytes = callback_getenv(ENV_BOOTED_OSFLAGS, envval, sizeof(envval)); in start_kernel()
180 if (nbytes < 0 || nbytes >= sizeof(envval)) { in start_kernel()
181 nbytes = 0; in start_kernel()
183 envval[nbytes] = '\0'; in start_kernel()
Dmain.c156 int nbytes; in start_kernel() local
179 nbytes = callback_getenv(ENV_BOOTED_OSFLAGS, envval, sizeof(envval)); in start_kernel()
180 if (nbytes < 0) { in start_kernel()
181 nbytes = 0; in start_kernel()
183 envval[nbytes] = '\0'; in start_kernel()
Dbootpz.c279 static long nbytes; in start_kernel() local
303 nbytes = callback_getenv(ENV_BOOTED_OSFLAGS, envval, sizeof(envval)); in start_kernel()
304 if (nbytes < 0 || nbytes >= sizeof(envval)) { in start_kernel()
305 nbytes = 0; in start_kernel()
307 envval[nbytes] = '\0'; in start_kernel()
/linux-2.4.37.9/include/linux/
Dcrypto.h140 unsigned int nbytes);
144 unsigned int nbytes, u8 *iv);
148 unsigned int nbytes);
152 unsigned int nbytes, u8 *iv);
314 unsigned int nbytes) in crypto_cipher_encrypt() argument
317 return tfm->crt_cipher.cit_encrypt(tfm, dst, src, nbytes); in crypto_cipher_encrypt()
323 unsigned int nbytes, u8 *iv) in crypto_cipher_encrypt_iv() argument
327 return tfm->crt_cipher.cit_encrypt_iv(tfm, dst, src, nbytes, iv); in crypto_cipher_encrypt_iv()
333 unsigned int nbytes) in crypto_cipher_decrypt() argument
336 return tfm->crt_cipher.cit_decrypt(tfm, dst, src, nbytes); in crypto_cipher_decrypt()
[all …]
/linux-2.4.37.9/drivers/usb/
Ddrivers.c50 static ssize_t usb_driver_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos) in usb_driver_read() argument
60 if (nbytes <= 0) in usb_driver_read()
62 if (!access_ok(VERIFY_WRITE, buf, nbytes)) in usb_driver_read()
85 if (len > nbytes) in usb_driver_read()
86 len = nbytes; in usb_driver_read()
Ddevices.c457 static ssize_t usb_device_dump(char **buffer, size_t *nbytes, loff_t *skip_bytes, loff_t *file_offs… in usb_device_dump() argument
468 if (*nbytes <= 0) in usb_device_dump()
534 if (length > *nbytes) in usb_device_dump()
535 length = *nbytes; in usb_device_dump()
543 *nbytes -= length; in usb_device_dump()
558 ret = usb_device_dump(buffer, nbytes, skip_bytes, in usb_device_dump()
570 static ssize_t usb_device_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos) in usb_device_read() argument
579 if (nbytes <= 0) in usb_device_read()
581 if (!access_ok(VERIFY_WRITE, buf, nbytes)) in usb_device_read()
590 ret = usb_device_dump(&buf, &nbytes, &skip_bytes, ppos, bus->root_hub, bus, 0, 0, 0); in usb_device_read()
/linux-2.4.37.9/drivers/zorro/
Dproc.c45 proc_bus_zorro_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos) in proc_bus_zorro_read() argument
55 if (nbytes > sizeof(struct ConfigDev) - pos) in proc_bus_zorro_read()
56 nbytes = sizeof(struct ConfigDev) - pos; in proc_bus_zorro_read()
66 if (copy_to_user(buf, &cd, nbytes)) in proc_bus_zorro_read()
68 *ppos = pos + nbytes; in proc_bus_zorro_read()
70 return nbytes; in proc_bus_zorro_read()
/linux-2.4.37.9/drivers/pci/
Dproc.c45 proc_bus_pci_read(struct file *file, char *buf, size_t nbytes, loff_t *ppos) in proc_bus_pci_read() argument
69 if (nbytes >= size) in proc_bus_pci_read()
70 nbytes = size; in proc_bus_pci_read()
71 if (pos + nbytes > size) in proc_bus_pci_read()
72 nbytes = size - pos; in proc_bus_pci_read()
73 cnt = nbytes; in proc_bus_pci_read()
124 return nbytes; in proc_bus_pci_read()
128 proc_bus_pci_write(struct file *file, const char *buf, size_t nbytes, loff_t *ppos) in proc_bus_pci_write() argument
139 if (nbytes >= PCI_CFG_SPACE_SIZE) in proc_bus_pci_write()
140 nbytes = PCI_CFG_SPACE_SIZE; in proc_bus_pci_write()
[all …]
/linux-2.4.37.9/drivers/isdn/
Disdn_v110.c102 v->nbytes = 8 / v->nbits; in isdn_v110_open()
119 v->framelen = v->nbytes * 10; in isdn_v110_open()
154 for (i = 0; (i < v->decodelen) && (i < v->nbytes); i++) in ValidHeaderBytes()
287 if (v->decodelen < v->nbytes) { /* got a new header ? */ in isdn_v110_decode()
291 if (ValidHeaderBytes(v) != v->nbytes) { /* is that a valid header? */ in isdn_v110_decode()
295 len = (v->decodelen - (v->decodelen % (10 * v->nbytes))) / v->nbytes; in isdn_v110_decode()
303 for (j = 0; j < v->nbytes; j++) in isdn_v110_decode()
304 v110_buf[i] |= (v->decodebuf[(i * v->nbytes) + j] & v->key) << (8 - ((j + 1) * v->nbits)); in isdn_v110_decode()
307 v->decodelen = (v->decodelen % (10 * v->nbytes)); in isdn_v110_decode()
308 memcpy(v->decodebuf, &(v->decodebuf[len * v->nbytes]), v->decodelen); in isdn_v110_decode()
[all …]
/linux-2.4.37.9/net/atm/
Dmpoa_proc.c37 size_t nbytes, loff_t *ppos);
169 size_t nbytes, loff_t *ppos) in proc_mpc_write() argument
175 if (nbytes == 0) return 0; in proc_mpc_write()
176 if (nbytes >= PAGE_SIZE) nbytes = PAGE_SIZE-1; in proc_mpc_write()
178 error = verify_area(VERIFY_READ, buff, nbytes); in proc_mpc_write()
186 while(incoming < nbytes){ in proc_mpc_write()
208 return nbytes; in proc_mpc_write()
/linux-2.4.37.9/fs/
Dbinfmt_misc.c423 bm_entry_read(struct file * file, char * buf, size_t nbytes, loff_t *ppos) in bm_entry_read() argument
443 if (len < pos + nbytes) in bm_entry_read()
444 nbytes = len - pos; in bm_entry_read()
446 if (copy_to_user(buf, page + pos, nbytes)) in bm_entry_read()
448 *ppos = pos + nbytes; in bm_entry_read()
449 res = nbytes; in bm_entry_read()
548 bm_status_read(struct file * file, char * buf, size_t nbytes, loff_t *ppos) in bm_status_read() argument
558 if (len < pos + nbytes) in bm_status_read()
559 nbytes = len - pos; in bm_status_read()
560 if (copy_to_user(buf, s + pos, nbytes)) in bm_status_read()
[all …]
/linux-2.4.37.9/arch/ppc64/kernel/
DpSeries_pci.c55 static int rtas_fake_read(struct device_node *dn, int offset, int nbytes, unsigned long *returnval);
70 #define RTAS_PCI_READ_OP(size, type, nbytes) \ argument
86 … = rtas_call(ibm_read_pci_config, 4, 2, &returnval, addr, buid >> 32, buid & 0xffffffff, nbytes); \
88 ret = rtas_fake_read(dn, offset, nbytes, &returnval); \
90 ret = rtas_call(read_pci_config, 2, 2, &returnval, addr, nbytes); \
104 #define RTAS_PCI_WRITE_OP(size, type, nbytes) \ argument
119 …ret = rtas_call(ibm_write_pci_config, 5, 1, NULL, addr, buid >> 32, buid & 0xffffffff, nbytes, (ul…
121 ret = rtas_call(write_pci_config, 3, 1, NULL, addr, nbytes, (ulong)val); \
157 rtas_fake_read(struct device_node *dn, int offset, int nbytes, unsigned long *returnval) in rtas_fake_read() argument
169 if (nbytes == 1) { in rtas_fake_read()
[all …]
/linux-2.4.37.9/net/sched/
Destimator.c107 u64 nbytes; in est_timer() local
112 nbytes = st->bytes; in est_timer()
114 rate = (nbytes - e->last_bytes)<<(7 - idx); in est_timer()
115 e->last_bytes = nbytes; in est_timer()
/linux-2.4.37.9/drivers/scsi/
Dscsi_debug.c650 int nbytes, sgcount; in resp_read() local
668 nbytes = bufflen; in resp_read()
679 nbytes -= bufflen; in resp_read()
683 if (nbytes) { in resp_read()
687 } else if (nbytes > 0) in resp_read()
689 "nbytes=%d\n", nbytes); in resp_read()
690 } while (nbytes); in resp_read()
699 int nbytes, sgcount; in resp_write() local
711 nbytes = bufflen; in resp_write()
721 nbytes -= bufflen; in resp_write()
[all …]
/linux-2.4.37.9/include/asm-m68k/
Dadb.h56 int nbytes; member
69 void (*done)(struct adb_request *), int nbytes, ...);

123