/linux-2.6.39/crypto/ |
D | cbc.c | 49 unsigned int nbytes = walk->nbytes; in crypto_cbc_encrypt_segment() local 61 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_segment() 63 return nbytes; in crypto_cbc_encrypt_segment() 73 unsigned int nbytes = walk->nbytes; in crypto_cbc_encrypt_inplace() local 83 } while ((nbytes -= bsize) >= bsize); in crypto_cbc_encrypt_inplace() 87 return nbytes; in crypto_cbc_encrypt_inplace() 92 unsigned int nbytes) in crypto_cbc_encrypt() argument 100 blkcipher_walk_init(&walk, dst, src, nbytes); in crypto_cbc_encrypt() 103 while ((nbytes = walk.nbytes)) { in crypto_cbc_encrypt() 105 nbytes = crypto_cbc_encrypt_inplace(desc, &walk, child); in crypto_cbc_encrypt() [all …]
|
D | pcbc.c | 52 unsigned int nbytes = walk->nbytes; in crypto_pcbc_encrypt_segment() local 65 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_segment() 67 return nbytes; in crypto_pcbc_encrypt_segment() 77 unsigned int nbytes = walk->nbytes; in crypto_pcbc_encrypt_inplace() local 90 } while ((nbytes -= bsize) >= bsize); in crypto_pcbc_encrypt_inplace() 94 return nbytes; in crypto_pcbc_encrypt_inplace() 99 unsigned int nbytes) in crypto_pcbc_encrypt() argument 107 blkcipher_walk_init(&walk, dst, src, nbytes); in crypto_pcbc_encrypt() 110 while ((nbytes = walk.nbytes)) { in crypto_pcbc_encrypt() 112 nbytes = crypto_pcbc_encrypt_inplace(desc, &walk, in crypto_pcbc_encrypt() [all …]
|
D | scatterwalk.c | 25 static inline void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) in memcpy_dir() argument 30 memcpy(dst, src, nbytes); in memcpy_dir() 77 size_t nbytes, int out) in scatterwalk_copychunks() argument 83 if (len_this_page > nbytes) in scatterwalk_copychunks() 84 len_this_page = nbytes; in scatterwalk_copychunks() 92 if (nbytes == len_this_page) in scatterwalk_copychunks() 96 nbytes -= len_this_page; in scatterwalk_copychunks() 104 unsigned int start, unsigned int nbytes, int out) in scatterwalk_map_and_copy() argument 109 if (!nbytes) in scatterwalk_map_and_copy() 123 scatterwalk_copychunks(buf, &walk, nbytes, out); in scatterwalk_map_and_copy()
|
D | shash.c | 220 int nbytes; in shash_ahash_update() local 222 for (nbytes = crypto_hash_walk_first(req, &walk); nbytes > 0; in shash_ahash_update() 223 nbytes = crypto_hash_walk_done(&walk, nbytes)) in shash_ahash_update() 224 nbytes = crypto_shash_update(desc, walk.data, nbytes); in shash_ahash_update() 226 return nbytes; in shash_ahash_update() 243 int nbytes; in shash_ahash_finup() local 245 nbytes = crypto_hash_walk_first(req, &walk); in shash_ahash_finup() 246 if (!nbytes) in shash_ahash_finup() 250 nbytes = crypto_hash_walk_last(&walk) ? in shash_ahash_finup() 251 crypto_shash_finup(desc, walk.data, nbytes, in shash_ahash_finup() [all …]
|
D | ctr.c | 59 unsigned int nbytes = walk->nbytes; in crypto_ctr_crypt_final() local 62 crypto_xor(keystream, src, nbytes); in crypto_ctr_crypt_final() 63 memcpy(dst, keystream, nbytes); in crypto_ctr_crypt_final() 77 unsigned int nbytes = walk->nbytes; in crypto_ctr_crypt_segment() local 89 } while ((nbytes -= bsize) >= bsize); in crypto_ctr_crypt_segment() 91 return nbytes; in crypto_ctr_crypt_segment() 101 unsigned int nbytes = walk->nbytes; in crypto_ctr_crypt_inplace() local 116 } while ((nbytes -= bsize) >= bsize); in crypto_ctr_crypt_inplace() 118 return nbytes; in crypto_ctr_crypt_inplace() 123 unsigned int nbytes) in crypto_ctr_crypt() argument [all …]
|
D | cts.c | 78 unsigned int nbytes) in cts_cbc_encrypt() argument 84 int lastn = nbytes - bsize; in cts_cbc_encrypt() 96 scatterwalk_map_and_copy(s, src, offset, nbytes, 0); in cts_cbc_encrypt() 118 scatterwalk_map_and_copy(d, dst, offset, nbytes, 1); in cts_cbc_encrypt() 127 unsigned int nbytes) in crypto_cts_encrypt() argument 131 int tot_blocks = (nbytes + bsize - 1) / bsize; in crypto_cts_encrypt() 142 } else if (nbytes <= bsize * 2) { in crypto_cts_encrypt() 143 err = cts_cbc_encrypt(ctx, desc, dst, src, 0, nbytes); in crypto_cts_encrypt() 152 nbytes - (cbc_blocks * bsize)); in crypto_cts_encrypt() 164 unsigned int nbytes) in cts_cbc_decrypt() argument [all …]
|
/linux-2.6.39/arch/x86/lib/ |
D | insn.c | 95 prefixes->nbytes++; in insn_get_prefixes() 119 insn->rex_prefix.nbytes = 1; in insn_get_prefixes() 147 insn->vex_prefix.nbytes = 3; in insn_get_prefixes() 153 insn->vex_prefix.nbytes = 2; in insn_get_prefixes() 186 opcode->nbytes = 1; in insn_get_opcode() 203 opcode->bytes[opcode->nbytes++] = op; in insn_get_opcode() 233 modrm->nbytes = 1; in insn_get_modrm() 266 return (modrm->nbytes && (modrm->value & 0xc7) == 0x5); in insn_rip_relative() 284 if (insn->modrm.nbytes) { in insn_get_sib() 289 insn->sib.nbytes = 1; in insn_get_sib() [all …]
|
/linux-2.6.39/drivers/staging/rtl8192u/ieee80211/ |
D | scatterwalk.c | 33 void *scatterwalk_whichbuf(struct scatter_walk *walk, unsigned int nbytes, void *scratch) in scatterwalk_whichbuf() argument 35 if (nbytes <= walk->len_this_page && in scatterwalk_whichbuf() 36 (((unsigned long)walk->data) & (PAGE_CACHE_SIZE - 1)) + nbytes <= in scatterwalk_whichbuf() 43 static void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) in memcpy_dir() argument 46 memcpy(sgdata, buf, nbytes); in memcpy_dir() 48 memcpy(buf, sgdata, nbytes); in memcpy_dir() 106 size_t nbytes, int out) in scatterwalk_copychunks() argument 109 while (nbytes > walk->len_this_page) { in scatterwalk_copychunks() 112 nbytes -= walk->len_this_page; in scatterwalk_copychunks() 119 memcpy_dir(buf, walk->data, nbytes, out); in scatterwalk_copychunks() [all …]
|
D | cipher.c | 51 unsigned int nbytes, cryptfn_t crfn, in crypt() argument 59 if (!nbytes) in crypt() 62 if (nbytes % bsize) { in crypt() 81 nbytes -= bsize; in crypt() 87 scatterwalk_done(&walk_in, 0, nbytes); in crypt() 90 scatterwalk_done(&walk_out, 1, nbytes); in crypt() 92 if (!nbytes) in crypt() 144 struct scatterlist *src, unsigned int nbytes) in ecb_encrypt() argument 146 return crypt(tfm, dst, src, nbytes, in ecb_encrypt() 154 unsigned int nbytes) in ecb_decrypt() argument [all …]
|
/linux-2.6.39/drivers/crypto/ |
D | geode-aes.c | 184 unsigned int nbytes) in fallback_blk_dec() argument 193 ret = crypto_blkcipher_decrypt_iv(desc, dst, src, nbytes); in fallback_blk_dec() 200 unsigned int nbytes) in fallback_blk_enc() argument 209 ret = crypto_blkcipher_encrypt_iv(desc, dst, src, nbytes); in fallback_blk_enc() 307 unsigned int nbytes) in geode_cbc_decrypt() argument 314 return fallback_blk_dec(desc, dst, src, nbytes); in geode_cbc_decrypt() 316 blkcipher_walk_init(&walk, dst, src, nbytes); in geode_cbc_decrypt() 320 while ((nbytes = walk.nbytes)) { in geode_cbc_decrypt() 324 op->len = nbytes - (nbytes % AES_MIN_BLOCK_SIZE); in geode_cbc_decrypt() 329 nbytes -= ret; in geode_cbc_decrypt() [all …]
|
D | padlock-aes.c | 344 unsigned int nbytes) in ecb_aes_encrypt() argument 353 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_aes_encrypt() 357 while ((nbytes = walk.nbytes)) { in ecb_aes_encrypt() 360 nbytes / AES_BLOCK_SIZE); in ecb_aes_encrypt() 361 nbytes &= AES_BLOCK_SIZE - 1; in ecb_aes_encrypt() 362 err = blkcipher_walk_done(desc, &walk, nbytes); in ecb_aes_encrypt() 373 unsigned int nbytes) in ecb_aes_decrypt() argument 382 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_aes_decrypt() 386 while ((nbytes = walk.nbytes)) { in ecb_aes_decrypt() 389 nbytes / AES_BLOCK_SIZE); in ecb_aes_decrypt() [all …]
|
/linux-2.6.39/arch/s390/crypto/ |
D | des_s390.c | 92 unsigned int nbytes; in ecb_desall_crypt() local 94 while ((nbytes = walk->nbytes)) { in ecb_desall_crypt() 96 unsigned int n = nbytes & ~(DES_BLOCK_SIZE - 1); in ecb_desall_crypt() 103 nbytes &= DES_BLOCK_SIZE - 1; in ecb_desall_crypt() 104 ret = blkcipher_walk_done(desc, walk, nbytes); in ecb_desall_crypt() 114 unsigned int nbytes = walk->nbytes; in cbc_desall_crypt() local 116 if (!nbytes) in cbc_desall_crypt() 122 unsigned int n = nbytes & ~(DES_BLOCK_SIZE - 1); in cbc_desall_crypt() 129 nbytes &= DES_BLOCK_SIZE - 1; in cbc_desall_crypt() 130 ret = blkcipher_walk_done(desc, walk, nbytes); in cbc_desall_crypt() [all …]
|
D | aes_s390.c | 235 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 …]
|
D | prng.c | 69 static void prng_seed(int nbytes) in prng_seed() argument 74 BUG_ON(nbytes > 16); in prng_seed() 75 get_random_bytes(buf, nbytes); in prng_seed() 78 while (nbytes >= 8) { in prng_seed() 82 nbytes -= 8; in prng_seed() 87 static ssize_t prng_read(struct file *file, char __user *ubuf, size_t nbytes, in prng_read() argument 95 while (nbytes) { in prng_read() 110 chunk = min_t(int, nbytes, prng_chunk_size); in prng_read() 143 nbytes -= chunk; in prng_read()
|
/linux-2.6.39/drivers/pci/hotplug/ |
D | rpadlpar_sysfs.c | 33 const char *buf, size_t nbytes) in add_slot_store() argument 39 if (nbytes >= MAX_DRC_NAME_LEN) in add_slot_store() 42 memcpy(drc_name, buf, nbytes); in add_slot_store() 46 end = &drc_name[nbytes]; in add_slot_store() 53 return nbytes; in add_slot_store() 64 const char *buf, size_t nbytes) in remove_slot_store() argument 70 if (nbytes >= MAX_DRC_NAME_LEN) in remove_slot_store() 73 memcpy(drc_name, buf, nbytes); in remove_slot_store() 77 end = &drc_name[nbytes]; in remove_slot_store() 84 return nbytes; in remove_slot_store()
|
/linux-2.6.39/arch/x86/crypto/ |
D | salsa20_glue.c | 55 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()
|
D | aesni-intel_glue.c | 277 unsigned int nbytes) in ecb_encrypt() argument 283 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_encrypt() 288 while ((nbytes = walk.nbytes)) { in ecb_encrypt() 290 nbytes & AES_BLOCK_MASK); in ecb_encrypt() 291 nbytes &= AES_BLOCK_SIZE - 1; in ecb_encrypt() 292 err = blkcipher_walk_done(desc, &walk, nbytes); in ecb_encrypt() 301 unsigned int nbytes) in ecb_decrypt() argument 307 blkcipher_walk_init(&walk, dst, src, nbytes); in ecb_decrypt() 312 while ((nbytes = walk.nbytes)) { in ecb_decrypt() 314 nbytes & AES_BLOCK_MASK); in ecb_decrypt() [all …]
|
/linux-2.6.39/fs/coda/ |
D | psdev.c | 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() 143 count = nbytes; in coda_psdev_write() [all …]
|
/linux-2.6.39/drivers/staging/comedi/ |
D | drivers.c | 598 unsigned int nbytes; in comedi_buf_write_n_available() local 604 nbytes = free_end - async->buf_write_alloc_count; in comedi_buf_write_n_available() 605 nbytes -= nbytes % bytes_per_sample(async->subdevice); in comedi_buf_write_n_available() 611 return nbytes; in comedi_buf_write_n_available() 616 unsigned int nbytes) in comedi_buf_write_alloc() argument 620 if ((int)(async->buf_write_alloc_count + nbytes - free_end) > 0) in comedi_buf_write_alloc() 621 nbytes = free_end - async->buf_write_alloc_count; in comedi_buf_write_alloc() 623 async->buf_write_alloc_count += nbytes; in comedi_buf_write_alloc() 627 return nbytes; in comedi_buf_write_alloc() 633 unsigned int nbytes) in comedi_buf_write_alloc_strict() argument [all …]
|
/linux-2.6.39/tools/usb/ |
D | ffs-test.c | 227 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes); 228 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes); 229 static ssize_t ep0_consume(struct thread *t, const void *buf, size_t nbytes); 230 static ssize_t fill_in_buf(struct thread *t, void *buf, size_t nbytes); 231 static ssize_t empty_out_buf(struct thread *t, const void *buf, size_t nbytes); 374 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes) in read_wrap() argument 376 return read(t->fd, buf, nbytes); in read_wrap() 379 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes) in write_wrap() argument 381 return write(t->fd, buf, nbytes); in write_wrap() 392 fill_in_buf(struct thread *ignore, void *buf, size_t nbytes) in fill_in_buf() argument [all …]
|
/linux-2.6.39/arch/x86/include/asm/ |
D | insn.h | 33 unsigned char nbytes; member 142 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ in insn_vex_m_bits() 150 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ in insn_vex_p_bits() 159 return insn->prefixes.nbytes; in insn_offset_rex_prefix() 163 return insn_offset_rex_prefix(insn) + insn->rex_prefix.nbytes; in insn_offset_vex_prefix() 167 return insn_offset_vex_prefix(insn) + insn->vex_prefix.nbytes; in insn_offset_opcode() 171 return insn_offset_opcode(insn) + insn->opcode.nbytes; in insn_offset_modrm() 175 return insn_offset_modrm(insn) + insn->modrm.nbytes; in insn_offset_sib() 179 return insn_offset_sib(insn) + insn->sib.nbytes; in insn_offset_displacement() 183 return insn_offset_displacement(insn) + insn->displacement.nbytes; in insn_offset_immediate()
|
/linux-2.6.39/drivers/macintosh/ |
D | via-pmu68k.c | 287 for (i = 0; i < req->nbytes - 1; ++i) in pmu_send_request() 289 --req->nbytes; in pmu_send_request() 300 if (req->nbytes != 2) in pmu_send_request() 303 req->nbytes = 1; in pmu_send_request() 311 if (req->nbytes != 6) in pmu_send_request() 314 req->nbytes = 5; in pmu_send_request() 324 if (req->nbytes != 4) in pmu_send_request() 329 req->nbytes = 3; in pmu_send_request() 337 if (req->nbytes != 5) in pmu_send_request() 343 req->nbytes = 4; in pmu_send_request() [all …]
|
/linux-2.6.39/drivers/pnp/isapnp/ |
D | proc.c | 56 size_t nbytes, loff_t * ppos) in isapnp_proc_bus_read() argument 66 if (nbytes >= size) in isapnp_proc_bus_read() 67 nbytes = size; in isapnp_proc_bus_read() 68 if (pos + nbytes > size) in isapnp_proc_bus_read() 69 nbytes = size - pos; in isapnp_proc_bus_read() 70 cnt = nbytes; in isapnp_proc_bus_read() 84 return nbytes; in isapnp_proc_bus_read()
|
/linux-2.6.39/drivers/char/ |
D | random.c | 468 int nbytes, __u8 out[64]) in mix_pool_bytes_extract() argument 492 while (nbytes--) { in mix_pool_bytes_extract() 732 size_t nbytes, int min, int rsvd); 739 static void xfer_secondary_pool(struct entropy_store *r, size_t nbytes) in xfer_secondary_pool() argument 743 if (r->pull && r->entropy_count < nbytes * 8 && in xfer_secondary_pool() 747 int bytes = nbytes; in xfer_secondary_pool() 756 r->name, bytes * 8, nbytes * 8, r->entropy_count); in xfer_secondary_pool() 777 static size_t account(struct entropy_store *r, size_t nbytes, int min, in account() argument 787 nbytes * 8, r->name); in account() 791 nbytes = 0; in account() [all …]
|
/linux-2.6.39/drivers/zorro/ |
D | proc.c | 47 proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) in proc_bus_zorro_read() argument 57 if (nbytes >= sizeof(struct ConfigDev)) in proc_bus_zorro_read() 58 nbytes = sizeof(struct ConfigDev); in proc_bus_zorro_read() 59 if (pos + nbytes > sizeof(struct ConfigDev)) in proc_bus_zorro_read() 60 nbytes = sizeof(struct ConfigDev) - pos; in proc_bus_zorro_read() 70 if (copy_to_user(buf, (void *)&cd + pos, nbytes)) in proc_bus_zorro_read() 72 *ppos += nbytes; in proc_bus_zorro_read() 74 return nbytes; in proc_bus_zorro_read()
|