Searched refs:nbytes (Results 1 - 25 of 454) sorted by relevance

1234567891011>>

/linux-master/include/linux/
H A Dbase64.h11 #define BASE64_CHARS(nbytes) DIV_ROUND_UP((nbytes) * 4, 3)
/linux-master/drivers/media/test-drivers/vidtv/
H A Dvidtv_ts.c53 u32 nbytes = 0; local
62 nbytes += vidtv_memcpy(args.dest_buf,
63 args.dest_offset + nbytes,
71 nbytes += vidtv_memset(args.dest_buf,
72 args.dest_offset + nbytes,
75 TS_PACKET_LEN - nbytes);
78 if (nbytes != TS_PACKET_LEN)
81 nbytes);
83 return nbytes;
88 u32 nbytes local
[all...]
H A Dvidtv_pes.c83 u32 nbytes = 0; /* the number of bytes written by this function */ local
123 nbytes += vidtv_memcpy(args->dest_buf,
124 args->dest_offset + nbytes,
129 return nbytes;
134 u32 nbytes = 0; /* the number of bytes written by this function */ local
159 nbytes += vidtv_memcpy(args->dest_buf,
160 args->dest_offset + nbytes,
166 nbytes += vidtv_memcpy(args->dest_buf,
167 args->dest_offset + nbytes,
174 pts_dts_args.dest_offset = args->dest_offset + nbytes;
213 u32 nbytes = 0; local
276 u32 nbytes = 0; local
333 u32 nbytes = 0; local
[all...]
/linux-master/include/crypto/
H A Dctr.h36 while (walk.nbytes > 0) {
39 int nbytes = walk.nbytes; local
42 if (nbytes < walk.total) {
43 tail = walk.nbytes & (blocksize - 1);
44 nbytes -= tail;
48 int bsize = min(nbytes, blocksize);
57 nbytes -= bsize;
58 } while (nbytes > 0);
H A Dpoly1305.h75 unsigned int nbytes);
77 unsigned int nbytes);
80 const u8 *src, unsigned int nbytes)
83 poly1305_update_arch(desc, src, nbytes);
85 poly1305_update_generic(desc, src, nbytes);
79 poly1305_update(struct poly1305_desc_ctx *desc, const u8 *src, unsigned int nbytes) argument
/linux-master/lib/crypto/
H A Dpoly1305.c31 unsigned int nbytes)
36 bytes = min(nbytes, POLY1305_BLOCK_SIZE - desc->buflen);
39 nbytes -= bytes;
49 if (likely(nbytes >= POLY1305_BLOCK_SIZE)) {
51 nbytes / POLY1305_BLOCK_SIZE, 1);
52 src += nbytes - (nbytes % POLY1305_BLOCK_SIZE);
53 nbytes %= POLY1305_BLOCK_SIZE;
56 if (unlikely(nbytes)) {
57 desc->buflen = nbytes;
30 poly1305_update_generic(struct poly1305_desc_ctx *desc, const u8 *src, unsigned int nbytes) argument
[all...]
/linux-master/crypto/
H A Dscatterwalk.c18 static inline void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) argument
23 memcpy(dst, src, nbytes);
27 size_t nbytes, int out)
33 if (len_this_page > nbytes)
34 len_this_page = nbytes;
44 if (nbytes == len_this_page)
48 nbytes -= len_this_page;
56 unsigned int start, unsigned int nbytes, int out)
61 if (!nbytes)
67 scatterwalk_copychunks(buf, &walk, nbytes, ou
26 scatterwalk_copychunks(void *buf, struct scatter_walk *walk, size_t nbytes, int out) argument
55 scatterwalk_map_and_copy(void *buf, struct scatterlist *sg, unsigned int start, unsigned int nbytes, int out) argument
[all...]
H A Dpcbc.c25 unsigned int nbytes = walk->nbytes; local
37 } while ((nbytes -= bsize) >= bsize);
39 return nbytes;
47 unsigned int nbytes = walk->nbytes; local
59 } while ((nbytes -= bsize) >= bsize);
61 return nbytes;
69 unsigned int nbytes; local
74 while (walk.nbytes) {
92 unsigned int nbytes = walk->nbytes; local
114 unsigned int nbytes = walk->nbytes; local
136 unsigned int nbytes; local
[all...]
H A Dxctr.c40 unsigned int nbytes = walk->nbytes; local
45 crypto_xor_cpy(dst, keystream, src, nbytes);
56 unsigned int nbytes = walk->nbytes; local
69 } while ((nbytes -= XCTR_BLOCKSIZE) >= XCTR_BLOCKSIZE);
71 return nbytes;
80 unsigned int nbytes = walk->nbytes; local
95 } while ((nbytes
105 unsigned int nbytes; local
[all...]
H A Dcbc.c16 const u8 *src, u8 *dst, unsigned nbytes,
21 for (; nbytes >= bsize; src += bsize, dst += bsize, nbytes -= bsize) {
27 return nbytes;
31 u8 *src, unsigned nbytes, u8 *oiv)
36 if (nbytes < bsize)
45 } while ((nbytes -= bsize) >= bsize);
50 return nbytes;
70 const u8 *src, u8 *dst, unsigned nbytes,
76 if (nbytes < bsiz
15 crypto_cbc_encrypt_segment(struct crypto_lskcipher *tfm, const u8 *src, u8 *dst, unsigned nbytes, u8 *iv) argument
30 crypto_cbc_encrypt_inplace(struct crypto_lskcipher *tfm, u8 *src, unsigned nbytes, u8 *oiv) argument
69 crypto_cbc_decrypt_segment(struct crypto_lskcipher *tfm, const u8 *src, u8 *dst, unsigned nbytes, u8 *oiv) argument
94 crypto_cbc_decrypt_inplace(struct crypto_lskcipher *tfm, u8 *src, unsigned nbytes, u8 *iv) argument
[all...]
/linux-master/arch/x86/crypto/
H A Dsm4_aesni_avx_glue.c42 unsigned int nbytes; local
47 while ((nbytes = walk.nbytes) > 0) {
52 while (nbytes >= SM4_CRYPT8_BLOCK_SIZE) {
56 nbytes -= SM4_CRYPT8_BLOCK_SIZE;
58 while (nbytes >= SM4_BLOCK_SIZE) {
59 unsigned int nblocks = min(nbytes >> 4, 4u);
63 nbytes -= nblocks * SM4_BLOCK_SIZE;
67 err = skcipher_walk_done(&walk, nbytes);
96 unsigned int nbytes; local
130 unsigned int nbytes; local
195 unsigned int nbytes; local
[all...]
H A Ddes3_ede_glue.c70 unsigned int nbytes; local
75 while ((nbytes = walk.nbytes)) {
80 if (nbytes >= bsize * 3) {
87 nbytes -= bsize * 3;
88 } while (nbytes >= bsize * 3);
90 if (nbytes < bsize)
100 nbytes -= bsize;
101 } while (nbytes >= bsize);
104 err = skcipher_walk_done(&walk, nbytes);
130 unsigned int nbytes = walk->nbytes; local
154 unsigned int nbytes; local
171 unsigned int nbytes = walk->nbytes; local
233 unsigned int nbytes; local
[all...]
H A Decb_cbc_helpers.h20 while (walk.nbytes > 0) { \
21 unsigned int nbytes = walk.nbytes; \
23 nbytes >= __fpu_blocks * __bsize; \
35 nbytes -= (blocks) * __bsize; \
44 while (nbytes >= __blocks * __bsize) { \
52 while (nbytes >= __bsize) { \
67 while (nbytes >= __blocks * __bsize) { \
80 err = skcipher_walk_done(&walk, nbytes); \
H A Daria_gfni_avx512_glue.c81 unsigned int nbytes; local
86 while ((nbytes = walk.nbytes) > 0) {
90 while (nbytes >= ARIA_GFNI_AVX512_PARALLEL_BLOCK_SIZE) {
98 nbytes -= ARIA_GFNI_AVX512_PARALLEL_BLOCK_SIZE;
101 while (nbytes >= ARIA_AESNI_AVX2_PARALLEL_BLOCK_SIZE) {
109 nbytes -= ARIA_AESNI_AVX2_PARALLEL_BLOCK_SIZE;
112 while (nbytes >= ARIA_AESNI_PARALLEL_BLOCK_SIZE) {
120 nbytes -= ARIA_AESNI_PARALLEL_BLOCK_SIZE;
123 while (nbytes >
[all...]
/linux-master/arch/arm64/crypto/
H A Dsm4-neon-glue.c39 unsigned int nbytes; local
44 while ((nbytes = walk.nbytes) > 0) {
49 nblocks = nbytes / SM4_BLOCK_SIZE;
58 err = skcipher_walk_done(&walk, nbytes % SM4_BLOCK_SIZE);
85 unsigned int nbytes; local
90 while ((nbytes = walk.nbytes) > 0) {
95 while (nbytes >= SM4_BLOCK_SIZE) {
101 nbytes
117 unsigned int nbytes; local
148 unsigned int nbytes; local
[all...]
/linux-master/tools/perf/util/
H A Djit.h8 struct machine *machine, char *filename, pid_t pid, pid_t tid, u64 *nbytes);
/linux-master/arch/riscv/crypto/
H A Dchacha-riscv64-glue.c26 unsigned int nbytes; local
36 while (walk.nbytes) {
37 nbytes = walk.nbytes & ~(CHACHA_BLOCK_SIZE - 1);
38 tail_bytes = walk.nbytes & (CHACHA_BLOCK_SIZE - 1);
40 if (nbytes) {
42 walk.dst.virt.addr, nbytes, iv);
43 iv[0] += nbytes / CHACHA_BLOCK_SIZE;
45 if (walk.nbytes == walk.total && tail_bytes > 0) {
46 memcpy(block_buffer, walk.src.virt.addr + nbytes,
[all...]
/linux-master/drivers/pci/hotplug/
H A Drpadlpar_sysfs.c28 const char *buf, size_t nbytes)
34 if (nbytes >= MAX_DRC_NAME_LEN)
37 strscpy(drc_name, buf, nbytes + 1);
47 return nbytes;
58 const char *buf, size_t nbytes)
64 if (nbytes >= MAX_DRC_NAME_LEN)
67 strscpy(drc_name, buf, nbytes + 1);
77 return nbytes;
27 add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) argument
56 remove_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) argument
/linux-master/arch/s390/crypto/
H A Dchacha-glue.c22 unsigned int nbytes, const u32 *key,
28 chacha20_vx(dst, src, nbytes, key, counter);
31 *counter += round_up(nbytes, CHACHA_BLOCK_SIZE) / CHACHA_BLOCK_SIZE;
40 unsigned int nbytes; local
46 while (walk.nbytes > 0) {
47 nbytes = walk.nbytes;
48 if (nbytes < walk.total)
49 nbytes = round_down(nbytes, wal
21 chacha20_crypt_s390(u32 *state, u8 *dst, const u8 *src, unsigned int nbytes, const u32 *key, u32 *counter) argument
[all...]
/linux-master/drivers/comedi/
H A Dcomedi_buf.c331 * @nbytes: Maximum space to reserve in bytes.
333 * Reserve up to @nbytes bytes of space to be written in the COMEDI acquisition
340 unsigned int nbytes)
345 if (nbytes > unalloc)
346 nbytes = unalloc;
348 async->buf_write_alloc_count += nbytes;
356 return nbytes;
417 * @nbytes: Maximum space to free in bytes.
419 * Free up to @nbytes bytes of space previously reserved for writing in the
430 unsigned int nbytes)
339 comedi_buf_write_alloc(struct comedi_subdevice *s, unsigned int nbytes) argument
429 comedi_buf_write_free(struct comedi_subdevice *s, unsigned int nbytes) argument
494 comedi_buf_read_alloc(struct comedi_subdevice *s, unsigned int nbytes) argument
534 comedi_buf_read_free(struct comedi_subdevice *s, unsigned int nbytes) argument
580 comedi_buf_memcpy_from(struct comedi_subdevice *s, void *dest, unsigned int nbytes) argument
625 unsigned int nbytes; local
671 unsigned int nbytes; local
[all...]
/linux-master/drivers/pnp/isapnp/
H A Dproc.c23 size_t nbytes, loff_t * ppos)
31 if (nbytes >= size)
32 nbytes = size;
33 if (pos + nbytes > size)
34 nbytes = size - pos;
35 cnt = nbytes;
49 return nbytes;
22 isapnp_proc_bus_read(struct file *file, char __user * buf, size_t nbytes, loff_t * ppos) argument
/linux-master/drivers/accessibility/speakup/
H A Ddevsynth.c15 size_t nbytes, loff_t *ppos)
17 size_t count = nbytes;
35 return (ssize_t)nbytes;
40 size_t nbytes, loff_t *ppos)
42 size_t count = nbytes, want;
63 int nbytes = 8 - fls(c ^ 0xff); local
66 switch (nbytes) {
81 if (bytes - in < nbytes) {
86 want = nbytes;
91 value = c & ((1u << (7 - nbytes))
14 speakup_file_write(struct file *fp, const char __user *buffer, size_t nbytes, loff_t *ppos) argument
39 speakup_file_writeu(struct file *fp, const char __user *buffer, size_t nbytes, loff_t *ppos) argument
130 speakup_file_read(struct file *fp, char __user *buf, size_t nbytes, loff_t *ppos) argument
[all...]
/linux-master/drivers/zorro/
H A Dproc.c31 proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument
39 if (nbytes >= sizeof(struct ConfigDev))
40 nbytes = sizeof(struct ConfigDev);
41 if (pos + nbytes > sizeof(struct ConfigDev))
42 nbytes = sizeof(struct ConfigDev) - pos;
52 if (copy_to_user(buf, (void *)&cd + pos, nbytes))
54 *ppos += nbytes;
56 return nbytes;
/linux-master/arch/powerpc/crypto/
H A Daes-spe-glue.c185 unsigned int nbytes; local
190 while ((nbytes = walk.nbytes) != 0) {
191 nbytes = min_t(unsigned int, nbytes, MAX_BYTES);
192 nbytes = round_down(nbytes, AES_BLOCK_SIZE);
197 ctx->key_enc, ctx->rounds, nbytes);
200 ctx->key_dec, ctx->rounds, nbytes);
203 err = skcipher_walk_done(&walk, walk.nbytes
224 unsigned int nbytes; local
265 unsigned int nbytes; local
291 unsigned int nbytes; local
[all...]
/linux-master/lib/crypto/mpi/
H A Dmpicoder.c34 * @nbytes: The amount of data to read
36 MPI mpi_read_raw_data(const void *xbuffer, size_t nbytes) argument
44 while (nbytes > 0 && buffer[0] == 0) {
46 nbytes--;
49 nbits = nbytes * 8;
54 if (nbytes > 0)
57 nlimbs = DIV_ROUND_UP(nbytes, BYTES_PER_MPI_LIMB);
65 if (nbytes > 0) {
66 i = BYTES_PER_MPI_LIMB - nbytes % BYTES_PER_MPI_LIMB;
85 unsigned int nbits, nbytes; local
121 unsigned int nbits, nbytes, nlimbs; local
250 mpi_read_buffer(MPI a, uint8_t *buf, unsigned buf_len, unsigned *nbytes, int *sign) argument
310 mpi_get_buffer(MPI a, unsigned *nbytes, int *sign) argument
354 mpi_write_to_sgl(MPI a, struct scatterlist *sgl, unsigned nbytes, int *sign) argument
437 mpi_read_raw_from_sgl(struct scatterlist *sgl, unsigned int nbytes) argument
[all...]

Completed in 271 milliseconds

1234567891011>>