/drivers/pci/hotplug/ |
H A D | rpadlpar_sysfs.c | 33 const char *buf, size_t nbytes) 39 if (nbytes >= MAX_DRC_NAME_LEN) 42 memcpy(drc_name, buf, nbytes); 46 end = &drc_name[nbytes]; 53 return nbytes; 64 const char *buf, size_t nbytes) 70 if (nbytes >= MAX_DRC_NAME_LEN) 73 memcpy(drc_name, buf, nbytes); 77 end = &drc_name[nbytes]; 84 return nbytes; 32 add_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) argument 62 remove_slot_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t nbytes) argument [all...] |
/drivers/staging/rtl8192u/ieee80211/ |
H A D | scatterwalk.c | 33 void *scatterwalk_whichbuf(struct scatter_walk *walk, unsigned int nbytes, void *scratch) argument 35 if (nbytes <= walk->len_this_page && 36 (((unsigned long)walk->data) & (PAGE_CACHE_SIZE - 1)) + nbytes <= 43 static void memcpy_dir(void *buf, void *sgdata, size_t nbytes, int out) argument 46 memcpy(sgdata, buf, nbytes); 48 memcpy(buf, sgdata, nbytes); 106 size_t nbytes, int out) 109 while (nbytes > walk->len_this_page) { 112 nbytes -= walk->len_this_page; 119 memcpy_dir(buf, walk->data, nbytes, ou 105 scatterwalk_copychunks(void *buf, struct scatter_walk *walk, size_t nbytes, int out) argument [all...] |
H A D | crypto_compat.h | 17 unsigned int nbytes) 20 return tfm->crt_cipher.cit_encrypt(tfm, dst, src, nbytes); 27 unsigned int nbytes) 30 return tfm->crt_cipher.cit_decrypt(tfm, dst, src, nbytes); 14 crypto_cipher_encrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 24 crypto_cipher_decrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument
|
H A D | cipher.c | 51 unsigned int nbytes, cryptfn_t crfn, 59 if (!nbytes) 62 if (nbytes % bsize) { 81 nbytes -= bsize; 87 scatterwalk_done(&walk_in, 0, nbytes); 90 scatterwalk_done(&walk_out, 1, nbytes); 92 if (!nbytes) 144 struct scatterlist *src, unsigned int nbytes) 146 return crypt(tfm, dst, src, nbytes, 154 unsigned int nbytes) 48 crypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, cryptfn_t crfn, procfn_t prfn, int enc, void *info) argument 142 ecb_encrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 151 ecb_decrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 161 cbc_encrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 171 cbc_encrypt_iv(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, u8 *iv) argument 181 cbc_decrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 191 cbc_decrypt_iv(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, u8 *iv) argument 201 nocrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 209 nocrypt_iv(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, u8 *iv) argument [all...] |
H A D | scatterwalk.h | 45 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);
|
H A D | rtl_crypto.h | 146 unsigned int nbytes); 150 unsigned int nbytes, u8 *iv); 154 unsigned int nbytes); 158 unsigned int nbytes, u8 *iv); 320 unsigned int nbytes) 323 return tfm->crt_cipher.cit_encrypt(tfm, dst, src, nbytes); 329 unsigned int nbytes, u8 *iv) 333 return tfm->crt_cipher.cit_encrypt_iv(tfm, dst, src, nbytes, iv); 339 unsigned int nbytes) 342 return tfm->crt_cipher.cit_decrypt(tfm, dst, src, nbytes); 317 crypto_cipher_encrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 326 crypto_cipher_encrypt_iv(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, u8 *iv) argument 336 crypto_cipher_decrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 345 crypto_cipher_decrypt_iv(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, u8 *iv) argument [all...] |
/drivers/net/wireless/brcm80211/brcmsmac/ |
H A D | srom.h | 27 uint byteoff, uint nbytes, u16 *buf, bool check_crc);
|
/drivers/staging/speakup/ |
H A D | devsynth.c | 17 size_t nbytes, loff_t *ppos) 19 size_t count = nbytes; 37 return (ssize_t) nbytes; 40 static ssize_t speakup_file_read(struct file *fp, char *buf, size_t nbytes, argument 16 speakup_file_write(struct file *fp, const char *buffer, size_t nbytes, loff_t *ppos) argument
|
/drivers/pnp/isapnp/ |
H A D | proc.c | 56 size_t nbytes, loff_t * ppos) 66 if (nbytes >= size) 67 nbytes = size; 68 if (pos + nbytes > size) 69 nbytes = size - pos; 70 cnt = nbytes; 84 return nbytes; 55 isapnp_proc_bus_read(struct file *file, char __user * buf, size_t nbytes, loff_t * ppos) argument
|
/drivers/crypto/ |
H A D | geode-aes.c | 184 unsigned int nbytes) 193 ret = crypto_blkcipher_decrypt_iv(desc, dst, src, nbytes); 200 unsigned int nbytes) 209 ret = crypto_blkcipher_encrypt_iv(desc, dst, src, nbytes); 307 unsigned int nbytes) 314 return fallback_blk_dec(desc, dst, src, nbytes); 316 blkcipher_walk_init(&walk, dst, src, nbytes); 320 while ((nbytes = walk.nbytes)) { 324 op->len = nbytes 182 fallback_blk_dec(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 198 fallback_blk_enc(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 305 geode_cbc_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 337 geode_cbc_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 418 geode_ecb_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 448 geode_ecb_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument [all...] |
H A D | padlock-aes.c | 344 unsigned int nbytes) 353 blkcipher_walk_init(&walk, dst, src, nbytes); 357 while ((nbytes = walk.nbytes)) { 360 nbytes / AES_BLOCK_SIZE); 361 nbytes &= AES_BLOCK_SIZE - 1; 362 err = blkcipher_walk_done(desc, &walk, nbytes); 373 unsigned int nbytes) 382 blkcipher_walk_init(&walk, dst, src, nbytes); 386 while ((nbytes 342 ecb_aes_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 371 ecb_aes_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 422 cbc_aes_encrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 453 cbc_aes_decrypt(struct blkcipher_desc *desc, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument [all...] |
/drivers/zorro/ |
H A D | proc.c | 48 proc_bus_zorro_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument 58 if (nbytes >= sizeof(struct ConfigDev)) 59 nbytes = sizeof(struct ConfigDev); 60 if (pos + nbytes > sizeof(struct ConfigDev)) 61 nbytes = sizeof(struct ConfigDev) - pos; 71 if (copy_to_user(buf, (void *)&cd + pos, nbytes)) 73 *ppos += nbytes; 75 return nbytes;
|
/drivers/media/video/uvc/ |
H A D | uvc_isight.c | 48 unsigned int maxlen, nbytes; local 88 nbytes = min(len, maxlen); 89 memcpy(mem, data, nbytes); 90 buf->bytesused += nbytes;
|
/drivers/staging/usbip/userspace/src/ |
H A D | usbip_network.c | 76 ssize_t nbytes; local 84 nbytes = send(sockfd, buff, bufflen, 0); 86 nbytes = recv(sockfd, buff, bufflen, MSG_WAITALL); 88 if (nbytes <= 0) 91 buff = (void *)((intptr_t) buff + nbytes); 92 bufflen -= nbytes; 93 total += nbytes;
|
/drivers/char/ |
H A D | random.c | 104 * void get_random_bytes(void *buf, int nbytes); 468 int nbytes, __u8 out[64]) 492 while (nbytes--) { 736 size_t nbytes, int min, int rsvd); 743 static void xfer_secondary_pool(struct entropy_store *r, size_t nbytes) argument 747 if (r->pull && r->entropy_count < nbytes * 8 && 751 int bytes = nbytes; 760 r->name, bytes * 8, nbytes * 8, r->entropy_count); 781 static size_t account(struct entropy_store *r, size_t nbytes, int min, argument 791 nbytes * 467 mix_pool_bytes_extract(struct entropy_store *r, const void *in, int nbytes, __u8 out[64]) argument 862 extract_entropy(struct entropy_store *r, void *buf, size_t nbytes, int min, int reserved) argument 895 extract_entropy_user(struct entropy_store *r, void __user *buf, size_t nbytes) argument 937 get_random_bytes(void *buf, int nbytes) argument 1029 random_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument 1085 urandom_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument [all...] |
/drivers/macintosh/ |
H A D | via-pmu68k.c | 287 for (i = 0; i < req->nbytes - 1; ++i) 289 --req->nbytes; 300 if (req->nbytes != 2) 303 req->nbytes = 1; 311 if (req->nbytes != 6) 314 req->nbytes = 5; 324 if (req->nbytes != 4) 329 req->nbytes = 3; 337 if (req->nbytes != 5) 343 req->nbytes 448 pmu_request(struct adb_request *req, void (*done)(struct adb_request *), int nbytes, ...) argument [all...] |
H A D | adb-iop.c | 177 printk("adb_iop_start %p: sending packet, %d bytes:", req, req->nbytes); 178 for (i = 0 ; i < req->nbytes ; i++) 187 amsg.count = req->nbytes - 2; 191 memcpy(&amsg.cmd, req->data + 1, req->nbytes - 1); 234 if ((req->nbytes < 2) || (req->data[0] != ADB_PACKET)) { 275 .nbytes = 2,
|
/drivers/staging/comedi/ |
H A D | drivers.c | 602 unsigned int nbytes; local 608 nbytes = free_end - async->buf_write_alloc_count; 609 nbytes -= nbytes % bytes_per_sample(async->subdevice); 615 return nbytes; 620 unsigned int nbytes) 624 if ((int)(async->buf_write_alloc_count + nbytes - free_end) > 0) 625 nbytes = free_end - async->buf_write_alloc_count; 627 async->buf_write_alloc_count += nbytes; 631 return nbytes; 619 comedi_buf_write_alloc(struct comedi_async *async, unsigned int nbytes) argument 636 comedi_buf_write_alloc_strict(struct comedi_async *async, unsigned int nbytes) argument 652 comedi_buf_write_free(struct comedi_async *async, unsigned int nbytes) argument 670 comedi_buf_read_alloc(struct comedi_async *async, unsigned nbytes) argument 685 comedi_buf_read_free(struct comedi_async *async, unsigned int nbytes) argument 729 comedi_buf_memcpy_from(struct comedi_async *async, unsigned int offset, void *dest, unsigned int nbytes) argument [all...] |
/drivers/staging/rtl8192e/rtl8192e/ |
H A D | rtl_crypto.h | 146 unsigned int nbytes); 150 unsigned int nbytes, u8 *iv); 154 unsigned int nbytes); 158 unsigned int nbytes, u8 *iv); 317 unsigned int nbytes) 320 return tfm->crt_cipher.cit_encrypt(tfm, dst, src, nbytes); 326 unsigned int nbytes, u8 *iv) 330 return tfm->crt_cipher.cit_encrypt_iv(tfm, dst, src, nbytes, iv); 336 unsigned int nbytes) 339 return tfm->crt_cipher.cit_decrypt(tfm, dst, src, nbytes); 314 crypto_cipher_encrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 323 crypto_cipher_encrypt_iv(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, u8 *iv) argument 333 crypto_cipher_decrypt(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes) argument 342 crypto_cipher_decrypt_iv(struct crypto_tfm *tfm, struct scatterlist *dst, struct scatterlist *src, unsigned int nbytes, u8 *iv) argument [all...] |
/drivers/usb/mon/ |
H A D | mon_stat.c | 45 size_t nbytes, loff_t *ppos) 49 return simple_read_from_buffer(buf, nbytes, ppos, sp->str, sp->slen); 44 mon_stat_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument
|
/drivers/pci/ |
H A D | proc.c | 47 proc_bus_pci_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument 70 if (nbytes >= size) 71 nbytes = size; 72 if (pos + nbytes > size) 73 nbytes = size - pos; 74 cnt = nbytes; 125 return nbytes; 129 proc_bus_pci_write(struct file *file, const char __user *buf, size_t nbytes, loff_t *ppos) argument 140 if (nbytes >= size) 141 nbytes [all...] |
/drivers/net/wireless/brcm80211/brcmfmac/ |
H A D | bcmsdh.c | 259 uint flags, u8 *buf, uint nbytes) 264 mypkt = brcmu_pkt_buf_get_skb(nbytes); 267 nbytes); 273 memcpy(buf, mypkt->data, nbytes); 326 uint flags, u8 *buf, uint nbytes) 331 mypkt = brcmu_pkt_buf_get_skb(nbytes); 334 nbytes); 338 memcpy(mypkt->data, buf, nbytes); 382 u8 *buf, uint nbytes) 391 mypkt = brcmu_pkt_buf_get_skb(nbytes); 258 brcmf_sdcard_recv_buf(struct brcmf_sdio_dev *sdiodev, u32 addr, uint fn, uint flags, u8 *buf, uint nbytes) argument 325 brcmf_sdcard_send_buf(struct brcmf_sdio_dev *sdiodev, u32 addr, uint fn, uint flags, u8 *buf, uint nbytes) argument 381 brcmf_sdcard_rwdata(struct brcmf_sdio_dev *sdiodev, uint rw, u32 addr, u8 *buf, uint nbytes) argument [all...] |
/drivers/scsi/bfa/ |
H A D | bfad_debugfs.c | 205 size_t nbytes, loff_t *pos) 212 return simple_read_from_buffer(buf, nbytes, pos, 248 size_t nbytes, loff_t *pos) 258 rc = simple_read_from_buffer(buf, nbytes, pos, 261 if ((*pos + nbytes) >= bfad->reglen) { 272 size_t nbytes, loff_t *ppos) 285 kern_buf = kzalloc(nbytes, GFP_KERNEL); 293 if (copy_from_user(kern_buf, (void __user *)buf, nbytes)) { 344 return nbytes; 349 size_t nbytes, loff_ 204 bfad_debugfs_read(struct file *file, char __user *buf, size_t nbytes, loff_t *pos) argument 247 bfad_debugfs_read_regrd(struct file *file, char __user *buf, size_t nbytes, loff_t *pos) argument 271 bfad_debugfs_write_regrd(struct file *file, const char __user *buf, size_t nbytes, loff_t *ppos) argument 348 bfad_debugfs_write_regwr(struct file *file, const char __user *buf, size_t nbytes, loff_t *ppos) argument [all...] |
/drivers/crypto/amcc/ |
H A D | crypto4xx_core.c | 482 u32 *idx, u32 *offset, u32 *nbytes) 493 *nbytes -= dev->scatter_buffer_size; 509 *nbytes -= *length; 512 *nbytes -= *length; 518 len = (*nbytes <= dev->scatter_buffer_size) ? 519 (*nbytes) : dev->scatter_buffer_size; 525 *nbytes -= len; 539 u32 nbytes, 554 while (nbytes) { 561 len = (nbytes < 480 crypto4xx_fill_one_page(struct crypto4xx_device *dev, dma_addr_t *addr, u32 *length, u32 *idx, u32 *offset, u32 *nbytes) argument 536 crypto4xx_copy_pkt_to_dst(struct crypto4xx_device *dev, struct ce_pd *pd, struct pd_uinfo *pd_uinfo, u32 nbytes, struct scatterlist *dst) argument 745 get_sg_count(struct scatterlist *sg_list, int nbytes) argument 796 unsigned int nbytes = datalen, idx; local [all...] |
/drivers/usb/core/ |
H A D | devices.c | 483 * nbytes - the maximum number of bytes to write 488 static ssize_t usb_device_dump(char __user **buffer, size_t *nbytes, argument 501 if (*nbytes <= 0) 575 if (length > *nbytes) 576 length = *nbytes; 581 *nbytes -= length; 597 ret = usb_device_dump(buffer, nbytes, skip_bytes, 610 size_t nbytes, loff_t *ppos) 618 if (nbytes <= 0) 620 if (!access_ok(VERIFY_WRITE, buf, nbytes)) 609 usb_device_read(struct file *file, char __user *buf, size_t nbytes, loff_t *ppos) argument [all...] |