Home
last modified time | relevance | path

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

1234567

/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfwil.c199 char *buf, u32 buflen) in brcmf_create_iovar() argument
205 if ((len + datalen) > buflen) in brcmf_create_iovar()
224 u32 buflen; in brcmf_fil_iovar_data_set() local
232 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_set()
234 if (buflen) { in brcmf_fil_iovar_data_set()
236 buflen, true); in brcmf_fil_iovar_data_set()
252 u32 buflen; in brcmf_fil_iovar_data_get() local
256 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_get()
258 if (buflen) { in brcmf_fil_iovar_data_get()
260 buflen, false); in brcmf_fil_iovar_data_get()
[all …]
/drivers/usb/storage/
Dprotocol.c138 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() argument
157 while (sg_miter_next(&miter) && cnt < buflen) { in usb_stor_access_xfer_buf()
159 buflen - cnt); in usb_stor_access_xfer_buf()
186 unsigned int buflen, struct scsi_cmnd *srb) in usb_stor_set_xfer_buf() argument
191 buflen = min(buflen, scsi_bufflen(srb)); in usb_stor_set_xfer_buf()
192 buflen = usb_stor_access_xfer_buf(buffer, buflen, srb, &sg, &offset, in usb_stor_set_xfer_buf()
194 if (buflen < scsi_bufflen(srb)) in usb_stor_set_xfer_buf()
195 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in usb_stor_set_xfer_buf()
Dprotocol.h53 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **,
57 unsigned int buflen, struct scsi_cmnd *srb);
/drivers/net/wireless/intel/iwlwifi/mvm/
Ddebugfs.h73 #define MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ argument
79 char buf[buflen] = {}; \
88 #define _MVM_DEBUGFS_READ_WRITE_FILE_OPS(name, buflen, argtype) \ argument
89 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
97 #define _MVM_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ argument
98 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
/drivers/media/usb/uvc/
Duvc_driver.c353 __u32 **intervals, unsigned char *buffer, int buflen) in uvc_parse_format() argument
372 if (buflen < n) { in uvc_parse_format()
420 if (buflen < 11) { in uvc_parse_format()
436 if (buflen < 9) { in uvc_parse_format()
493 buflen -= buffer[0]; in uvc_parse_format()
499 while (buflen > 2 && buffer[1] == USB_DT_CS_INTERFACE && in uvc_parse_format()
503 n = buflen > 25 ? buffer[25] : 0; in uvc_parse_format()
505 n = buflen > 21 ? buffer[21] : 0; in uvc_parse_format()
509 if (buflen < 26 + 4*n) { in uvc_parse_format()
580 buflen -= buffer[0]; in uvc_parse_format()
[all …]
/drivers/scsi/esas2r/
Desas2r_log.c125 size_t buflen = EVENT_LOG_BUFF_SIZE; in esas2r_log_master() local
138 memset(buffer, 0, buflen); in esas2r_log_master()
147 snprintf(buffer, buflen, fmt_nodev, slevel, in esas2r_log_master()
150 snprintf(buffer, buflen, fmt_dev, slevel, in esas2r_log_master()
158 buflen -= strlen(event_buffer); in esas2r_log_master()
160 retval = vsnprintf(buffer, buflen, format, args); in esas2r_log_master()
/drivers/media/usb/b2c2/
Dflexcop-usb.c110 u8 *pbBuffer, u32 buflen) in flexcop_usb_v8_memory_req() argument
117 if (buflen > sizeof(fc_usb->data)) { in flexcop_usb_v8_memory_req()
144 wAddress, wIndex, buflen); in flexcop_usb_v8_memory_req()
149 memcpy(fc_usb->data, pbBuffer, buflen); in flexcop_usb_v8_memory_req()
157 buflen, in flexcop_usb_v8_memory_req()
159 if (ret != buflen) in flexcop_usb_v8_memory_req()
165 memcpy(pbBuffer, fc_usb->data, buflen); in flexcop_usb_v8_memory_req()
174 #define bytes_left_to_read_on_page(paddr,buflen) \ argument
175 ((V8_MEMORY_PAGE_SIZE - (paddr & V8_MEMORY_PAGE_MASK)) > buflen \
176 ? buflen : (V8_MEMORY_PAGE_SIZE - (paddr & V8_MEMORY_PAGE_MASK)))
[all …]
/drivers/crypto/qce/
Dsha.c207 rctx->buflen = (unsigned int)(in_count & (blocksize - 1)); in qce_import_common()
250 total = req->nbytes + rctx->buflen; in qce_ahash_update()
253 scatterwalk_map_and_copy(rctx->buf + rctx->buflen, req->src, in qce_ahash_update()
255 rctx->buflen += req->nbytes; in qce_ahash_update()
267 if (rctx->buflen) in qce_ahash_update()
268 memcpy(rctx->tmpbuf, rctx->buf, rctx->buflen); in qce_ahash_update()
281 len = rctx->buflen; in qce_ahash_update()
297 if (rctx->buflen) { in qce_ahash_update()
299 sg_set_buf(rctx->sg, rctx->tmpbuf, rctx->buflen); in qce_ahash_update()
305 rctx->buflen = hash_later; in qce_ahash_update()
[all …]
/drivers/usb/gadget/legacy/
Dgmidi.c50 static unsigned int buflen = 512; variable
51 module_param(buflen, uint, S_IRUGO);
52 MODULE_PARM_DESC(buflen, "MIDI buffer length");
157 midi_opts->buflen = buflen; in midi_bind()
/drivers/crypto/caam/
Dcaamhash.c140 int buflen; member
181 u8 *buf, int buflen) in buf_map_to_sec4_sg() argument
185 buf_dma = dma_map_single(jrdev, buf, buflen, DMA_TO_DEVICE); in buf_map_to_sec4_sg()
186 dma_to_sec4_sg_one(sec4_sg, buf_dma, buflen, 0); in buf_map_to_sec4_sg()
197 u8 *buf, dma_addr_t buf_dma, int buflen, in try_buf_map_to_sec4_sg() argument
202 if (buflen) in try_buf_map_to_sec4_sg()
203 buf_dma = buf_map_to_sec4_sg(jrdev, sec4_sg, buf, buflen); in try_buf_map_to_sec4_sg()
841 int *buflen = state->current_buf ? &state->buflen_1 : &state->buflen_0; in ahash_update_ctx() local
845 int in_len = *buflen + req->nbytes, to_hash; in ahash_update_ctx()
874 sec4_sg_src_index = 1 + (*buflen ? 1 : 0); in ahash_update_ctx()
[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/staging/rts5208/
Drtsx_transport.c45 unsigned int buflen, in rtsx_stor_access_xfer_buf() argument
59 cnt = min(buflen, scsi_bufflen(srb) - *offset); in rtsx_stor_access_xfer_buf()
86 while (cnt < buflen && *index < scsi_sg_count(srb)) { in rtsx_stor_access_xfer_buf()
93 if (sglen > buflen - cnt) { in rtsx_stor_access_xfer_buf()
95 sglen = buflen - cnt; in rtsx_stor_access_xfer_buf()
133 unsigned int buflen, struct scsi_cmnd *srb) in rtsx_stor_set_xfer_buf() argument
137 rtsx_stor_access_xfer_buf(buffer, buflen, srb, &index, &offset, in rtsx_stor_set_xfer_buf()
139 if (buflen < scsi_bufflen(srb)) in rtsx_stor_set_xfer_buf()
140 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in rtsx_stor_set_xfer_buf()
144 unsigned int buflen, struct scsi_cmnd *srb) in rtsx_stor_get_xfer_buf() argument
[all …]
Drtsx_transport.h33 unsigned int buflen, struct scsi_cmnd *srb, unsigned int *index,
36 unsigned int buflen, struct scsi_cmnd *srb);
38 unsigned int buflen, struct scsi_cmnd *srb);
/drivers/scsi/
Dsr_vendor.c139 cgc.buflen = sizeof(*modesel); in sr_set_blocklength()
186 cgc.buflen = 12; in sr_cd_check()
214 cgc.buflen = 0x16; in sr_cd_check()
243 cgc.buflen = 4; in sr_cd_check()
271 cgc.buflen = 0x04; in sr_cd_check()
289 cgc.buflen = 12; in sr_cd_check()
/drivers/staging/greybus/
Dtimesync.c577 char *buf, size_t buflen) in gb_timesync_log_frame_time() argument
587 off = snprintf(buf, buflen, "%s frametime: ap=%llu %s=%llu ", in gb_timesync_log_frame_time()
591 len = buflen - off; in gb_timesync_log_frame_time()
594 if (len < buflen) { in gb_timesync_log_frame_time()
598 len = buflen - off; in gb_timesync_log_frame_time()
603 if (len < buflen) { in gb_timesync_log_frame_time()
608 len = buflen - off; in gb_timesync_log_frame_time()
611 if (len < buflen) in gb_timesync_log_frame_time()
617 char *buf, size_t buflen) in gb_timesync_log_frame_ktime() argument
630 off = snprintf(buf, buflen, "%s frametime: ap=%lu.%lu ", in gb_timesync_log_frame_ktime()
[all …]
/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/cdrom/
Dcdrom.c376 int ret, buflen; in cdrom_get_disc_info() local
381 cgc.cmd[8] = cgc.buflen = 2; in cdrom_get_disc_info()
391 buflen = be16_to_cpu(di->disc_information_length) + in cdrom_get_disc_info()
394 if (buflen > sizeof(disc_information)) in cdrom_get_disc_info()
395 buflen = sizeof(disc_information); in cdrom_get_disc_info()
397 cgc.cmd[8] = cgc.buflen = buflen; in cdrom_get_disc_info()
403 return buflen; in cdrom_get_disc_info()
564 cgc.buflen = sizeof(buffer); in cdrom_mrw_set_lba_space()
575 cgc.buflen = size; in cdrom_mrw_set_lba_space()
833 cgc.buflen = 255; in mo_open_write()
[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/nfc/st21nfca/
Di2c.c268 static int get_frame_size(u8 *buf, int buflen) in get_frame_size() argument
275 for (len = 1; len < buflen && buf[len] != ST21NFCA_SOF_EOF; len++) in get_frame_size()
281 static int check_crc(u8 *buf, int buflen) in check_crc() argument
285 crc = crc_ccitt(0xffff, buf, buflen - 2); in check_crc()
288 if (buf[buflen - 2] != (crc & 0xff) || buf[buflen - 1] != (crc >> 8)) { in check_crc()
290 ": CRC error 0x%x != 0x%x 0x%x\n", crc, buf[buflen - 1], in check_crc()
291 buf[buflen - 2]); in check_crc()
295 16, 2, buf, buflen, false); in check_crc()
/drivers/media/usb/dvb-usb/
Dgp8psk.c159 u16 buflen = ptr[0] + 4; in gp8psk_load_bcm4500fw() local
160 if (ptr + buflen >= fw->data + fw->size) { in gp8psk_load_bcm4500fw()
164 if (buflen > 64) { in gp8psk_load_bcm4500fw()
169 memcpy(buf, ptr, buflen); in gp8psk_load_bcm4500fw()
170 if (dvb_usb_generic_write(d, buf, buflen)) { in gp8psk_load_bcm4500fw()
174 ptr += buflen; in gp8psk_load_bcm4500fw()
/drivers/crypto/
Datmel-tdes.c122 size_t buflen; member
151 void *buf, size_t buflen, size_t total, int out) in atmel_tdes_sg_copy() argument
155 while (buflen && total) { in atmel_tdes_sg_copy()
157 count = min(count, buflen); in atmel_tdes_sg_copy()
165 buflen -= count; in atmel_tdes_sg_copy()
336 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_pdc_stop()
352 dd->buflen = PAGE_SIZE; in atmel_tdes_buff_init()
353 dd->buflen &= ~(DES_BLOCK_SIZE - 1); in atmel_tdes_buff_init()
362 dd->buflen, DMA_TO_DEVICE); in atmel_tdes_buff_init()
364 dev_err(dd->dev, "dma %d bytes error\n", dd->buflen); in atmel_tdes_buff_init()
[all …]
/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/of/
Ddevice.c283 sl = of_device_get_modalias(dev, &env->buf[env->buflen-1], in of_device_uevent_modalias()
284 sizeof(env->buf) - env->buflen); in of_device_uevent_modalias()
285 if (sl >= (sizeof(env->buf) - env->buflen)) in of_device_uevent_modalias()
287 env->buflen += sl; in of_device_uevent_modalias()
/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()

1234567