Home
last modified time | relevance | path

Searched refs:buflen (Results 1 – 25 of 139) sorted by relevance

123456

/drivers/usb/storage/
Dprotocol.c135 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() argument
159 while (cnt < buflen && sg) { in usb_stor_access_xfer_buf()
165 if (sglen > buflen - cnt) { in usb_stor_access_xfer_buf()
168 sglen = buflen - cnt; in usb_stor_access_xfer_buf()
209 unsigned int buflen, struct scsi_cmnd *srb) in usb_stor_set_xfer_buf() argument
214 buflen = min(buflen, scsi_bufflen(srb)); in usb_stor_set_xfer_buf()
215 buflen = usb_stor_access_xfer_buf(buffer, buflen, srb, &sg, &offset, in usb_stor_set_xfer_buf()
217 if (buflen < scsi_bufflen(srb)) in usb_stor_set_xfer_buf()
218 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in usb_stor_set_xfer_buf()
Dprotocol.h52 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **,
56 unsigned int buflen, struct scsi_cmnd *srb);
/drivers/net/wireless/brcm80211/brcmfmac/
Dfwil.c128 brcmf_create_iovar(char *name, char *data, u32 datalen, char *buf, u32 buflen) in brcmf_create_iovar() argument
134 if ((len + datalen) > buflen) in brcmf_create_iovar()
153 u32 buflen; in brcmf_fil_iovar_data_set() local
161 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_set()
163 if (buflen) { in brcmf_fil_iovar_data_set()
165 buflen, true); in brcmf_fil_iovar_data_set()
181 u32 buflen; in brcmf_fil_iovar_data_get() local
185 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_get()
187 if (buflen) { in brcmf_fil_iovar_data_get()
189 buflen, false); in brcmf_fil_iovar_data_get()
[all …]
/drivers/media/usb/uvc/
Duvc_driver.c307 __u32 **intervals, unsigned char *buffer, int buflen) in uvc_parse_format() argument
325 if (buflen < n) { in uvc_parse_format()
359 if (buflen < 11) { in uvc_parse_format()
375 if (buflen < 9) { in uvc_parse_format()
432 buflen -= buffer[0]; in uvc_parse_format()
438 while (buflen > 2 && buffer[1] == USB_DT_CS_INTERFACE && in uvc_parse_format()
442 n = buflen > 25 ? buffer[25] : 0; in uvc_parse_format()
444 n = buflen > 21 ? buffer[21] : 0; in uvc_parse_format()
448 if (buflen < 26 + 4*n) { in uvc_parse_format()
518 buflen -= buffer[0]; in uvc_parse_format()
[all …]
/drivers/staging/rts5139/
Drts51x_transport.c53 unsigned int buflen, void *sglist, in rts51x_access_sglist() argument
78 while (cnt < buflen && sg) { in rts51x_access_sglist()
84 if (sglen > buflen - cnt) { in rts51x_access_sglist()
87 sglen = buflen - cnt; in rts51x_access_sglist()
124 unsigned int buflen, struct scsi_cmnd *srb, in rts51x_access_xfer_buf() argument
128 return rts51x_access_sglist(buffer, buflen, (void *)scsi_sglist(srb), in rts51x_access_xfer_buf()
136 unsigned int buflen, struct scsi_cmnd *srb) in rts51x_set_xfer_buf() argument
141 buflen = min(buflen, scsi_bufflen(srb)); in rts51x_set_xfer_buf()
142 buflen = rts51x_access_xfer_buf(buffer, buflen, srb, &sg, &offset, in rts51x_set_xfer_buf()
144 if (buflen < scsi_bufflen(srb)) in rts51x_set_xfer_buf()
[all …]
Drts51x_transport.h40 unsigned int buflen, void *sglist,
43 void rts51x_set_xfer_buf(unsigned char *buffer, unsigned int buflen,
45 void rts51x_get_xfer_buf(unsigned char *buffer, unsigned int buflen,
/drivers/staging/keucr/
Dscsiglue.c397 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() argument
409 while (cnt < buflen && sg) { in usb_stor_access_xfer_buf()
415 if (sglen > buflen - cnt) { in usb_stor_access_xfer_buf()
417 sglen = buflen - cnt; in usb_stor_access_xfer_buf()
457 unsigned int buflen, struct scsi_cmnd *srb, unsigned int dir) in usb_stor_set_xfer_buf() argument
464 buflen = min(buflen, scsi_bufflen(srb)); in usb_stor_set_xfer_buf()
465 buflen = usb_stor_access_xfer_buf(us, buffer, buflen, srb, in usb_stor_set_xfer_buf()
467 if (buflen < scsi_bufflen(srb)) in usb_stor_set_xfer_buf()
468 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in usb_stor_set_xfer_buf()
/drivers/hv/
Dring_buffer.c350 void *buffer, u32 buflen) in hv_ringbuffer_init() argument
361 ring_info->ring_size = buflen; in hv_ringbuffer_init()
362 ring_info->ring_datasize = buflen - sizeof(struct hv_ring_buffer); in hv_ringbuffer_init()
466 void *Buffer, u32 buflen) in hv_ringbuffer_peek() argument
480 if (bytes_avail_toread < buflen) { in hv_ringbuffer_peek()
492 buflen, in hv_ringbuffer_peek()
509 u32 buflen, u32 offset, bool *signal) in hv_ringbuffer_read() argument
518 if (buflen <= 0) in hv_ringbuffer_read()
530 if (bytes_avail_toread < buflen) { in hv_ringbuffer_read()
541 buflen, in hv_ringbuffer_read()
/drivers/media/usb/b2c2/
Dflexcop-usb.c99 u8 *pbBuffer, u32 buflen) in flexcop_usb_v8_memory_req() argument
128 wAddress, wIndex, buflen); in flexcop_usb_v8_memory_req()
136 buflen, in flexcop_usb_v8_memory_req()
140 return len == buflen ? 0 : -EIO; in flexcop_usb_v8_memory_req()
143 #define bytes_left_to_read_on_page(paddr,buflen) \ argument
144 ((V8_MEMORY_PAGE_SIZE - (paddr & V8_MEMORY_PAGE_MASK)) > buflen \
145 ? buflen : (V8_MEMORY_PAGE_SIZE - (paddr & V8_MEMORY_PAGE_MASK)))
202 u16 buflen, u8 *pvBuffer)
216 buflen,
218 return len == buflen ? 0 : -EIO;
[all …]
/drivers/ata/
Dpata_legacy.c307 unsigned char *buf, unsigned int buflen, int rw) in pdc_data_xfer_vlb() argument
309 int slop = buflen & 3; in pdc_data_xfer_vlb()
326 ioread32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); in pdc_data_xfer_vlb()
328 iowrite32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); in pdc_data_xfer_vlb()
334 memcpy(buf + buflen - slop, &pad, slop); in pdc_data_xfer_vlb()
336 memcpy(&pad, buf + buflen - slop, slop); in pdc_data_xfer_vlb()
339 buflen += 4 - slop; in pdc_data_xfer_vlb()
343 buflen = ata_sff_data_xfer_noirq(dev, buf, buflen, rw); in pdc_data_xfer_vlb()
345 return buflen; in pdc_data_xfer_vlb()
706 unsigned int buflen, int rw) in vlb32_data_xfer() argument
[all …]
Dpata_ixp4xx_cf.c44 unsigned char *buf, unsigned int buflen, int rw) in ixp4xx_mmio_data_xfer() argument
47 unsigned int words = buflen >> 1; in ixp4xx_mmio_data_xfer()
68 if (unlikely(buflen & 0x01)) { in ixp4xx_mmio_data_xfer()
70 unsigned char *trailing_buf = buf + buflen - 1; in ixp4xx_mmio_data_xfer()
/drivers/crypto/caam/
Dcaamhash.c165 u8 *buf, int buflen) in buf_map_to_sec4_sg() argument
169 buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in buf_map_to_sec4_sg()
170 dma_to_sec4_sg_one(sec4_sg, buf_dma, buflen, 0); in buf_map_to_sec4_sg()
191 u8 *buf, dma_addr_t buf_dma, int buflen, in try_buf_map_to_sec4_sg() argument
196 if (buflen) in try_buf_map_to_sec4_sg()
197 buf_dma = buf_map_to_sec4_sg(jrdev, sec4_sg, buf, buflen); in try_buf_map_to_sec4_sg()
777 int *buflen = state->current_buf ? &state->buflen_1 : &state->buflen_0; in ahash_update_ctx() local
781 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx()
797 sec4_sg_src_index = 1 + (*buflen ? 1 : 0); in ahash_update_ctx()
828 *buflen, last_buflen); in ahash_update_ctx()
[all …]
/drivers/usb/gadget/
Dgmidi.c60 static unsigned int buflen = 256; variable
61 module_param(buflen, uint, S_IRUGO);
62 MODULE_PARM_DESC(buflen, "MIDI buffer length");
135 buflen, qlen); in midi_bind_config()
Dconfig.c37 usb_descriptor_fillbuf(void *buf, unsigned buflen, in usb_descriptor_fillbuf() argument
49 if (len > buflen) in usb_descriptor_fillbuf()
52 buflen -= len; in usb_descriptor_fillbuf()
/drivers/scsi/
Dsr_vendor.c139 cgc.buflen = sizeof(*modesel); in sr_set_blocklength()
185 cgc.buflen = 12; in sr_cd_check()
213 cgc.buflen = 0x16; in sr_cd_check()
242 cgc.buflen = 4; in sr_cd_check()
271 cgc.buflen = 0x04; in sr_cd_check()
289 cgc.buflen = 12; in sr_cd_check()
/drivers/atm/
Dsolos-pci.c198 int buflen; in solos_param_show() local
200 buflen = strlen(attr->attr.name) + 10; in solos_param_show()
202 skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL); in solos_param_show()
210 buflen = snprintf((void *)&header[1], buflen - 1, in solos_param_show()
212 skb_put(skb, buflen); in solos_param_show()
214 header->size = cpu_to_le16(buflen); in solos_param_show()
238 buflen = prm.response->len; in solos_param_show()
239 memcpy(buf, prm.response->data, buflen); in solos_param_show()
242 return buflen; in solos_param_show()
253 int buflen; in solos_param_store() local
[all …]
/drivers/crypto/
Domap-aes.c157 size_t buflen; member
335 dd->buflen = PAGE_SIZE << OMAP_AES_CACHE_SIZE; in omap_aes_dma_init()
336 dd->buflen &= ~(AES_BLOCK_SIZE - 1); in omap_aes_dma_init()
344 dd->dma_addr_in = dma_map_single(dd->dev, dd->buf_in, dd->buflen, in omap_aes_dma_init()
347 dev_err(dd->dev, "dma %d bytes error\n", dd->buflen); in omap_aes_dma_init()
352 dd->dma_addr_out = dma_map_single(dd->dev, dd->buf_out, dd->buflen, in omap_aes_dma_init()
355 dev_err(dd->dev, "dma %d bytes error\n", dd->buflen); in omap_aes_dma_init()
386 dma_unmap_single(dd->dev, dd->dma_addr_out, dd->buflen, in omap_aes_dma_init()
389 dma_unmap_single(dd->dev, dd->dma_addr_in, dd->buflen, DMA_TO_DEVICE); in omap_aes_dma_init()
403 dma_unmap_single(dd->dev, dd->dma_addr_out, dd->buflen, in omap_aes_dma_cleanup()
[all …]
Datmel-tdes.c121 size_t buflen; member
150 void *buf, size_t buflen, size_t total, int out) in atmel_tdes_sg_copy() argument
154 while (buflen && total) { in atmel_tdes_sg_copy()
156 count = min(count, buflen); in atmel_tdes_sg_copy()
164 buflen -= count; in atmel_tdes_sg_copy()
331 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_pdc_stop()
347 dd->buflen = PAGE_SIZE; in atmel_tdes_buff_init()
348 dd->buflen &= ~(DES_BLOCK_SIZE - 1); in atmel_tdes_buff_init()
357 dd->buflen, DMA_TO_DEVICE); in atmel_tdes_buff_init()
359 dev_err(dd->dev, "dma %d bytes error\n", dd->buflen); in atmel_tdes_buff_init()
[all …]
Datmel-aes.c128 size_t buflen; member
183 void *buf, size_t buflen, size_t total, int out) in atmel_aes_sg_copy() argument
187 while (buflen && total) { in atmel_aes_sg_copy()
189 count = min(count, buflen); in atmel_aes_sg_copy()
197 buflen -= count; in atmel_aes_sg_copy()
462 dd->buf_in, dd->buflen, dd->total, 0); in atmel_aes_crypt_dma_start()
625 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_aes_crypt_dma_stop()
643 dd->buflen = PAGE_SIZE; in atmel_aes_buff_init()
644 dd->buflen &= ~(AES_BLOCK_SIZE - 1); in atmel_aes_buff_init()
653 dd->buflen, DMA_TO_DEVICE); in atmel_aes_buff_init()
[all …]
/drivers/cdrom/
Dcdrom.c651 cgc.buflen = sizeof(buffer); in cdrom_mrw_set_lba_space()
661 cgc.buflen = size; in cdrom_mrw_set_lba_space()
818 cgc.buflen = 255; in mo_open_write()
1567 cgc->buflen = len; in init_cdrom_command()
1583 cgc->buflen = 8; in setup_report_key()
1587 cgc->buflen = 16; in setup_report_key()
1591 cgc->buflen = 12; in setup_report_key()
1595 cgc->cmd[9] = cgc->buflen; in setup_report_key()
1605 cgc->buflen = 16; in setup_send_key()
1609 cgc->buflen = 12; in setup_send_key()
[all …]
Dgdrom.c194 static void gdrom_spicommand(void *spi_string, int buflen) in gdrom_spicommand() argument
202 __raw_writeb(buflen & 0xFF, GDROM_BCL_REG); in gdrom_spicommand()
203 __raw_writeb((buflen >> 8) & 0xFF, GDROM_BCH_REG); in gdrom_spicommand()
255 spin_command->buflen = 0; in gdrom_preparedisk_cmd()
292 toc_command->buflen = tocsize; in gdrom_readtoc_cmd()
421 gdrom_spicommand(&command->cmd, command->buflen); in gdrom_packetcommand()
443 sense_command->buflen = 10; in gdrom_getsense()
456 insw(GDROM_DATA_REG, &sense, sense_command->buflen/2); in gdrom_getsense()
/drivers/of/
Ddevice.c182 sl = of_device_get_modalias(dev, &env->buf[env->buflen-1], in of_device_uevent_modalias()
183 sizeof(env->buf) - env->buflen); in of_device_uevent_modalias()
184 if (sl >= (sizeof(env->buf) - env->buflen)) in of_device_uevent_modalias()
186 env->buflen += sl; in of_device_uevent_modalias()
/drivers/media/usb/dvb-usb/
Dgp8psk.c141 u16 buflen = ptr[0] + 4; in gp8psk_load_bcm4500fw() local
142 if (ptr + buflen >= fw->data + fw->size) { in gp8psk_load_bcm4500fw()
146 memcpy(buf, ptr, buflen); in gp8psk_load_bcm4500fw()
147 if (dvb_usb_generic_write(d, buf, buflen)) { in gp8psk_load_bcm4500fw()
151 ptr += buflen; in gp8psk_load_bcm4500fw()
/drivers/firmware/
Ddmi-id.c154 len = get_modalias(&env->buf[env->buflen - 1], in dmi_dev_uevent()
155 sizeof(env->buf) - env->buflen); in dmi_dev_uevent()
156 if (len >= (sizeof(env->buf) - env->buflen)) in dmi_dev_uevent()
158 env->buflen += len; in dmi_dev_uevent()
/drivers/media/usb/pwc/
Dpwc-ctrl.c124 int index, const unsigned char *buf, int buflen) in send_video_command() argument
128 memcpy(pdev->ctrl_buf, buf, buflen); in send_video_command()
134 pdev->ctrl_buf, buflen, USB_CTRL_SET_TIMEOUT); in send_video_command()
136 memcpy(pdev->cmd_buf, buf, buflen); in send_video_command()
144 u8 request, u16 value, void *buf, int buflen) in send_control_msg() argument
150 buf, buflen, USB_CTRL_SET_TIMEOUT); in send_control_msg()

123456