Home
last modified time | relevance | path

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

12

/arch/arm/kernel/
Dprocess.c205 static void show_data(unsigned long addr, int nbytes, const char *name) in show_data() argument
225 nbytes += (addr & (sizeof(u32) - 1)); in show_data()
226 nlines = (nbytes + 31) / 32; in show_data()
248 static void show_extra_register_data(struct pt_regs *regs, int nbytes) in show_extra_register_data() argument
254 show_data(regs->ARM_pc - nbytes, nbytes * 2, "PC"); in show_extra_register_data()
255 show_data(regs->ARM_lr - nbytes, nbytes * 2, "LR"); in show_extra_register_data()
256 show_data(regs->ARM_sp - nbytes, nbytes * 2, "SP"); in show_extra_register_data()
257 show_data(regs->ARM_ip - nbytes, nbytes * 2, "IP"); in show_extra_register_data()
258 show_data(regs->ARM_fp - nbytes, nbytes * 2, "FP"); in show_extra_register_data()
259 show_data(regs->ARM_r0 - nbytes, nbytes * 2, "R0"); in show_extra_register_data()
[all …]
/arch/x86/crypto/
Dsalsa20_glue.c55 unsigned int nbytes) in encrypt() argument
62 blkcipher_walk_init(&walk, dst, src, nbytes); in encrypt()
67 if (likely(walk.nbytes == nbytes)) in encrypt()
70 walk.dst.virt.addr, nbytes); in encrypt()
74 while (walk.nbytes >= 64) { in encrypt()
77 walk.nbytes - (walk.nbytes % 64)); in encrypt()
78 err = blkcipher_walk_done(desc, &walk, walk.nbytes % 64); in encrypt()
81 if (walk.nbytes) { in encrypt()
83 walk.dst.virt.addr, walk.nbytes); in encrypt()
/arch/s390/crypto/
Ddes_s390.c100 unsigned int nbytes; in ecb_desall_crypt() local
102 while ((nbytes = walk->nbytes)) { in ecb_desall_crypt()
104 unsigned int n = nbytes & ~(DES_BLOCK_SIZE - 1); in ecb_desall_crypt()
111 nbytes &= DES_BLOCK_SIZE - 1; in ecb_desall_crypt()
112 ret = blkcipher_walk_done(desc, walk, nbytes); in ecb_desall_crypt()
122 unsigned int nbytes = walk->nbytes; in cbc_desall_crypt() local
124 if (!nbytes) in cbc_desall_crypt()
130 unsigned int n = nbytes & ~(DES_BLOCK_SIZE - 1); in cbc_desall_crypt()
137 nbytes &= DES_BLOCK_SIZE - 1; in cbc_desall_crypt()
138 ret = blkcipher_walk_done(desc, walk, nbytes); in cbc_desall_crypt()
[all …]
Daes_s390.c235 unsigned int nbytes) in fallback_blk_dec() argument
244 ret = crypto_blkcipher_decrypt_iv(desc, dst, src, nbytes); in fallback_blk_dec()
252 unsigned int nbytes) in fallback_blk_enc() argument
261 ret = crypto_blkcipher_encrypt_iv(desc, dst, src, nbytes); in fallback_blk_enc()
301 unsigned int nbytes; in ecb_aes_crypt() local
303 while ((nbytes = walk->nbytes)) { in ecb_aes_crypt()
305 unsigned int n = nbytes & ~(AES_BLOCK_SIZE - 1); in ecb_aes_crypt()
312 nbytes &= AES_BLOCK_SIZE - 1; in ecb_aes_crypt()
313 ret = blkcipher_walk_done(desc, walk, nbytes); in ecb_aes_crypt()
321 unsigned int nbytes) in ecb_aes_encrypt() argument
[all …]
Dprng.c70 static void prng_seed(int nbytes) in prng_seed() argument
75 BUG_ON(nbytes > 16); in prng_seed()
76 get_random_bytes(buf, nbytes); in prng_seed()
79 while (nbytes >= 8) { in prng_seed()
83 nbytes -= 8; in prng_seed()
88 static ssize_t prng_read(struct file *file, char __user *ubuf, size_t nbytes, in prng_read() argument
96 while (nbytes) { in prng_read()
111 chunk = min_t(int, nbytes, prng_chunk_size); in prng_read()
144 nbytes -= chunk; in prng_read()
/arch/mips/include/asm/mach-au1x00/
Dau1xxx_dbdma.h341 u32 _au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags);
342 u32 _au1xxx_dbdma_put_dest(u32 chanid, void *buf, int nbytes, u32 flags);
345 u32 au1xxx_dbdma_get_dest(u32 chanid, void **buf, int *nbytes);
370 #define au1xxx_dbdma_put_source(chanid, buf, nbytes) \ argument
371 _au1xxx_dbdma_put_source(chanid, buf, nbytes, DDMA_FLAGS_IE)
372 #define au1xxx_dbdma_put_source_flags(chanid, buf, nbytes, flags) \ argument
373 _au1xxx_dbdma_put_source(chanid, buf, nbytes, flags)
374 #define put_source_flags(chanid, buf, nbytes, flags) \ argument
375 au1xxx_dbdma_put_source_flags(chanid, buf, nbytes, flags)
377 #define au1xxx_dbdma_put_dest(chanid, buf, nbytes) \ argument
[all …]
/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.c288 static long nbytes; in start_kernel() local
312 nbytes = callback_getenv(ENV_BOOTED_OSFLAGS, envval, sizeof(envval)); in start_kernel()
313 if (nbytes < 0 || nbytes >= sizeof(envval)) { in start_kernel()
314 nbytes = 0; in start_kernel()
316 envval[nbytes] = '\0'; in start_kernel()
/arch/cris/arch-v32/drivers/
Di2c.h6 int i2c_write(unsigned char theSlave, void *data, size_t nbytes);
7 int i2c_read(unsigned char theSlave, void *data, size_t nbytes);
Di2c.c392 i2c_write(unsigned char theSlave, void *data, size_t nbytes) in i2c_write() argument
417 for (bytes_wrote = 0; bytes_wrote < nbytes; bytes_wrote++) { in i2c_write()
448 i2c_read(unsigned char theSlave, void *data, size_t nbytes) in i2c_read() argument
459 memset(data, 0, nbytes); in i2c_read()
476 for (bytes_read = 0; bytes_read < nbytes; bytes_read++) { in i2c_read()
480 if (bytes_read < (nbytes - 1)) in i2c_read()
/arch/powerpc/kernel/
Dproc_ppc64.c32 static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes,
104 static ssize_t page_map_read( struct file *file, char __user *buf, size_t nbytes, in page_map_read() argument
108 return simple_read_from_buffer(buf, nbytes, ppos, dp->data, dp->size); in page_map_read()
Dprocess.c938 unsigned long nbytes) in valid_irq_stack() argument
950 && sp <= stack_page + THREAD_SIZE - nbytes) in valid_irq_stack()
955 && sp <= stack_page + THREAD_SIZE - nbytes) in valid_irq_stack()
966 unsigned long nbytes) in validate_sp() argument
971 && sp <= stack_page + THREAD_SIZE - nbytes) in validate_sp()
974 return valid_irq_stack(sp, p, nbytes); in validate_sp()
Dsys_ppc32.c655 loff_t nbytes = ((loff_t)nbytes_hi << 32) | nbytes_lo; in compat_sys_sync_file_range2() local
657 return sys_sync_file_range(fd, offset, nbytes, flags); in compat_sys_sync_file_range2()
/arch/alpha/kernel/
Dsrm_env.c86 int nbytes; in srm_env_read() local
99 nbytes = (int) ret; in srm_env_read()
102 nbytes = -EFAULT; in srm_env_read()
104 return nbytes; in srm_env_read()
Dosf_sys.c485 long nbytes; member
490 long nbytes; member
497 long nbytes; member
504 long nbytes; member
534 if (get_user(error, &args->set.nbytes)) in SYSCALL_DEFINE2()
538 if (get_user(error, &args->fset.nbytes)) in SYSCALL_DEFINE2()
645 unsigned long, nbytes, int __user *, start, void __user *, arg) in SYSCALL_DEFINE5() argument
670 if (nbytes < sizeof(unsigned int)) in SYSCALL_DEFINE5()
678 if (nbytes < sizeof(unsigned long)) in SYSCALL_DEFINE5()
688 if (nbytes < sizeof(*hwrpb)) in SYSCALL_DEFINE5()
[all …]
Dsmc37c669.c2401 int nbytes;
2409 nbytes = 0;
2417 nbytes++;
2420 return nbytes;
2427 int nbytes;
2434 nbytes = 0;
2443 nbytes++;
2446 return nbytes;
/arch/mips/alchemy/common/
Ddbdma.c572 u32 _au1xxx_dbdma_put_source(u32 chanid, void *buf, int nbytes, u32 flags) in _au1xxx_dbdma_put_source() argument
599 dp->dscr_cmd1 = nbytes; in _au1xxx_dbdma_put_source()
613 dma_cache_wback_inv((unsigned long)buf, nbytes); in _au1xxx_dbdma_put_source()
623 return nbytes; in _au1xxx_dbdma_put_source()
632 _au1xxx_dbdma_put_dest(u32 chanid, void *buf, int nbytes, u32 flags) in _au1xxx_dbdma_put_dest() argument
663 dp->dscr_cmd1 = nbytes; in _au1xxx_dbdma_put_dest()
676 dma_cache_inv((unsigned long)buf, nbytes); in _au1xxx_dbdma_put_dest()
686 return nbytes; in _au1xxx_dbdma_put_dest()
696 u32 au1xxx_dbdma_get_dest(u32 chanid, void **buf, int *nbytes) in au1xxx_dbdma_get_dest() argument
724 *nbytes = dp->dscr_cmd1; in au1xxx_dbdma_get_dest()
[all …]
/arch/ia64/include/asm/sn/
Dtioce_provider.h51 u64 nbytes; /* # bytes mapped */ member
/arch/sparc/include/asm/
Dopenprom.h39 int (*v2_dev_read)(int d, char *buf, int nbytes);
40 int (*v2_dev_write)(int d, char *buf, int nbytes);
/arch/m68k/include/asm/
Dopenprom.h49 int (*v2_dev_read)(int d, char *buf, int nbytes);
50 int (*v2_dev_write)(int d, char *buf, int nbytes);
Ddvma.h121 int nbytes; /* Size of current transfer */ member
/arch/m32r/kernel/
Dsys_m32r.c202 asmlinkage int sys_cachectl(char *addr, int nbytes, int op) in sys_cachectl() argument
/arch/powerpc/include/asm/
Dprocessor.h285 unsigned long nbytes);
/arch/ia64/sn/pci/
Dtioce_provider.c364 map->nbytes = nates * pagesize; in tioce_alloc_map()
489 last = map->pci_start + map->nbytes - 1; in tioce_dma_unmap()
566 last = map->ct_start + map->nbytes - 1; in tioce_do_dma_map()

12