/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;
|
H A D | uvc_debugfs.c | 48 size_t nbytes, loff_t *ppos) 52 return simple_read_from_buffer(user_buf, nbytes, ppos, buf->data, 47 uvc_debugfs_stats_read(struct file *file, char __user *user_buf, size_t nbytes, loff_t *ppos) argument
|
/drivers/staging/rtl8192u/ieee80211/ |
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 | 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 | 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...] |
/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/atm/ |
H A D | nicstarmac.c | 239 u_int8_t prom_offset, u_int8_t * buffer, u_int32_t nbytes) 243 for (i = 0; i < nbytes; i++) { 238 nicstar_read_eprom(virt_addr_t base, u_int8_t prom_offset, u_int8_t * buffer, u_int32_t nbytes) argument
|
/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...] |
H A D | cpqphp_sysfs.c | 193 size_t nbytes, loff_t *ppos) 196 return simple_read_from_buffer(buf, nbytes, ppos, dbg->data, dbg->size); 192 read(struct file *file, char __user *buf, 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/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/usb/gadget/ |
H A D | uvc_video.c | 46 unsigned int nbytes; local 51 nbytes = min((unsigned int)len, buf->buf.bytesused - queue->buf_used); 53 memcpy(data, mem, nbytes); 54 queue->buf_used += nbytes; 56 return 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/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/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/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/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/rtc/ |
H A D | rtc-ds1374.c | 68 int reg, int nbytes) 74 if (nbytes > 4) { 79 ret = i2c_smbus_read_i2c_block_data(client, reg, nbytes, buf); 83 if (ret < nbytes) 86 for (i = nbytes - 1, *time = 0; i >= 0; i--) 93 int reg, int nbytes) 98 if (nbytes > 4) { 103 for (i = 0; i < nbytes; i++) { 108 return i2c_smbus_write_i2c_block_data(client, reg, nbytes, buf); 67 ds1374_read_rtc(struct i2c_client *client, u32 *time, int reg, int nbytes) argument 92 ds1374_write_rtc(struct i2c_client *client, u32 time, int reg, int nbytes) argument
|
/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/macintosh/ |
H A D | adb.c | 405 int flags, int nbytes, ...) 414 if (nbytes < 1) 417 req->nbytes = nbytes+1; 421 va_start(list, nbytes); 422 for (i = 0; i < nbytes; ++i) 630 if (req->nbytes < 3) 773 req->nbytes = count; 404 adb_request(struct adb_request *req, void (*done)(struct adb_request *), int flags, int nbytes, ...) argument
|
H A D | via-cuda.c | 105 void (*done)(struct adb_request *), int nbytes, ...); 364 int nbytes, ...) 374 req->nbytes = nbytes; 376 va_start(list, nbytes); 377 for (i = 0; i < nbytes; ++i) 389 if (req->nbytes < 2 || req->data[0] > CUDA_PACKET) { 520 if (data_index >= req->nbytes) { 363 cuda_request(struct adb_request *req, void (*done)(struct adb_request *), int nbytes, ...) argument
|
H A D | via-maciisi.c | 245 for (i = 0; i < req->nbytes; i++) { 297 int nbytes, ...) 302 req->nbytes = nbytes; 305 va_start(list, nbytes); 306 for (i = 0; i < nbytes; i++) 322 if (req->nbytes < 2 || req->data[0] > CUDA_PACKET) { 512 if (data_index >= req->nbytes) { 296 maciisi_request(struct adb_request *req, void (*done)(struct adb_request *), int nbytes, ...) argument
|
/drivers/net/ethernet/brocade/bna/ |
H A D | bnad_debugfs.c | 269 size_t nbytes, loff_t *pos) 276 return simple_read_from_buffer(buf, nbytes, pos, 315 size_t nbytes, loff_t *pos) 324 rc = simple_read_from_buffer(buf, nbytes, pos, 327 if ((*pos + nbytes) >= bnad->reglen) { 338 size_t nbytes, loff_t *ppos) 350 kern_buf = kzalloc(nbytes, GFP_KERNEL); 357 if (copy_from_user(kern_buf, (void __user *)buf, nbytes)) { 407 return nbytes; 412 size_t nbytes, loff_ 268 bnad_debugfs_read(struct file *file, char __user *buf, size_t nbytes, loff_t *pos) argument 314 bnad_debugfs_read_regrd(struct file *file, char __user *buf, size_t nbytes, loff_t *pos) argument 337 bnad_debugfs_write_regrd(struct file *file, const char __user *buf, size_t nbytes, loff_t *ppos) argument 411 bnad_debugfs_write_regwr(struct file *file, const char __user *buf, size_t nbytes, loff_t *ppos) argument [all...] |
/drivers/net/ppp/ |
H A D | ppp_mppe.c | 141 unsigned int nbytes; local 145 nbytes = setup_sg(&sg[0], state->master_key, state->keylen); 146 nbytes += setup_sg(&sg[1], sha_pad->sha_pad1, 148 nbytes += setup_sg(&sg[2], state->session_key, state->keylen); 149 nbytes += setup_sg(&sg[3], sha_pad->sha_pad2, 155 crypto_hash_digest(&desc, sg, nbytes, state->sha1_digest);
|