Home
last modified time | relevance | path

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

12345678

/drivers/net/wireless/broadcom/brcm80211/brcmfmac/
Dfwil.c196 char *buf, u32 buflen) in brcmf_create_iovar() argument
202 if ((len + datalen) > buflen) in brcmf_create_iovar()
221 u32 buflen; in brcmf_fil_iovar_data_set() local
229 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_set()
231 if (buflen) { in brcmf_fil_iovar_data_set()
233 buflen, true); in brcmf_fil_iovar_data_set()
249 u32 buflen; in brcmf_fil_iovar_data_get() local
253 buflen = brcmf_create_iovar(name, data, len, drvr->proto_buf, in brcmf_fil_iovar_data_get()
255 if (buflen) { in brcmf_fil_iovar_data_get()
257 buflen, false); in brcmf_fil_iovar_data_get()
[all …]
/drivers/usb/storage/
Dprotocol.c122 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **sgptr, in usb_stor_access_xfer_buf() argument
141 while (sg_miter_next(&miter) && cnt < buflen) { in usb_stor_access_xfer_buf()
143 buflen - cnt); in usb_stor_access_xfer_buf()
170 unsigned int buflen, struct scsi_cmnd *srb) in usb_stor_set_xfer_buf() argument
175 buflen = min(buflen, scsi_bufflen(srb)); in usb_stor_set_xfer_buf()
176 buflen = usb_stor_access_xfer_buf(buffer, buflen, srb, &sg, &offset, in usb_stor_set_xfer_buf()
178 if (buflen < scsi_bufflen(srb)) in usb_stor_set_xfer_buf()
179 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in usb_stor_set_xfer_buf()
Dprotocol.h37 unsigned int buflen, struct scsi_cmnd *srb, struct scatterlist **,
41 unsigned int buflen, struct scsi_cmnd *srb);
/drivers/net/wireless/intel/iwlwifi/mvm/
Ddebugfs.h13 #define MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ argument
19 char buf[buflen] = {}; \
28 #define _MVM_DEBUGFS_READ_WRITE_FILE_OPS(name, buflen, argtype) \ argument
29 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
37 #define _MVM_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ argument
38 MVM_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
/drivers/scsi/esas2r/
Desas2r_log.c130 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/net/wireless/intel/iwlwifi/pcie/
Dtrans-gen2.c279 size_t buflen = sizeof(trans_pcie->rf_name); in iwl_pcie_get_rf_name() local
288 pos = scnprintf(buf, buflen, "JF"); in iwl_pcie_get_rf_name()
291 pos = scnprintf(buf, buflen, "GF"); in iwl_pcie_get_rf_name()
294 pos = scnprintf(buf, buflen, "GF4"); in iwl_pcie_get_rf_name()
297 pos = scnprintf(buf, buflen, "HR"); in iwl_pcie_get_rf_name()
300 pos = scnprintf(buf, buflen, "HR1"); in iwl_pcie_get_rf_name()
303 pos = scnprintf(buf, buflen, "HRCDB"); in iwl_pcie_get_rf_name()
316 pos += scnprintf(buf + pos, buflen - pos, " B3"); in iwl_pcie_get_rf_name()
319 pos += scnprintf(buf + pos, buflen - pos, " B5"); in iwl_pcie_get_rf_name()
322 pos += scnprintf(buf + pos, buflen - pos, in iwl_pcie_get_rf_name()
[all …]
/drivers/media/usb/uvc/
Duvc_driver.c224 u32 **intervals, unsigned char *buffer, int buflen) in uvc_parse_format() argument
243 if (buflen < n) { in uvc_parse_format()
304 if (buflen < 11) { in uvc_parse_format()
319 if (buflen < 9) { in uvc_parse_format()
363 buflen -= buffer[0]; in uvc_parse_format()
369 while (buflen > 2 && buffer[1] == USB_DT_CS_INTERFACE && in uvc_parse_format()
373 n = buflen > 25 ? buffer[25] : 0; in uvc_parse_format()
375 n = buflen > 21 ? buffer[21] : 0; in uvc_parse_format()
379 if (buflen < 26 + 4*n) { in uvc_parse_format()
451 buflen -= buffer[0]; in uvc_parse_format()
[all …]
/drivers/crypto/caam/
Dcaamhash.c113 int buflen; member
127 int buflen; member
164 int buflen = state->buflen; in buf_map_to_sec4_sg() local
166 if (!buflen) in buf_map_to_sec4_sg()
169 state->buf_dma = dma_map_single(jrdev, state->buf, buflen, in buf_map_to_sec4_sg()
177 dma_to_sec4_sg_one(sec4_sg, state->buf_dma, buflen, 0); in buf_map_to_sec4_sg()
556 dma_unmap_single(dev, state->buf_dma, state->buflen, in ahash_unmap()
652 state->buflen = state->next_buflen; in ahash_done_switch()
656 state->buflen, 1); in ahash_done_switch()
822 int *buflen = &state->buflen; in ahash_update_ctx() local
[all …]
/drivers/crypto/qce/
Dsha.c151 memcpy(export_state->pending_buf, rctx->buf, rctx->buflen); in qce_ahash_export()
155 export_state->pending_buflen = rctx->buflen; in qce_ahash_export()
170 rctx->buflen = import_state->pending_buflen; in qce_ahash_import()
175 memcpy(rctx->buf, import_state->pending_buf, rctx->buflen); in qce_ahash_import()
197 total = req->nbytes + rctx->buflen; in qce_ahash_update()
200 scatterwalk_map_and_copy(rctx->buf + rctx->buflen, req->src, in qce_ahash_update()
202 rctx->buflen += req->nbytes; in qce_ahash_update()
214 if (rctx->buflen) in qce_ahash_update()
215 memcpy(rctx->tmpbuf, rctx->buf, rctx->buflen); in qce_ahash_update()
247 len = rctx->buflen; in qce_ahash_update()
[all …]
/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/net/wireless/intel/iwlwifi/fw/
Ddebugfs.c12 #define FWRT_DEBUGFS_OPEN_WRAPPER(name, buflen, argtype) \ argument
17 char rbuf[buflen]; \
62 #define _FWRT_DEBUGFS_READ_FILE_OPS(name, buflen, argtype) \ argument
63 FWRT_DEBUGFS_OPEN_WRAPPER(name, buflen, argtype) \
72 #define FWRT_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \ argument
79 char buf[buflen] = {}; \
88 #define _FWRT_DEBUGFS_READ_WRITE_FILE_OPS(name, buflen, argtype) \ argument
89 FWRT_DEBUGFS_OPEN_WRAPPER(name, buflen, argtype) \
90 FWRT_DEBUGFS_WRITE_WRAPPER(name, buflen, argtype) \
100 #define _FWRT_DEBUGFS_WRITE_FILE_OPS(name, buflen, argtype) \ argument
[all …]
/drivers/crypto/cavium/nitrox/
Dnitrox_req.h574 void *buf, int buflen) in create_single_sg() argument
576 sg_set_buf(sg, buf, buflen); in create_single_sg()
592 int buflen) in create_multi_sg() argument
597 for (; buflen && from_sg; buflen -= sglen) { in create_multi_sg()
599 if (sglen > buflen) in create_multi_sg()
600 sglen = buflen; in create_multi_sg()
644 struct scatterlist *src, int buflen) in nitrox_creq_set_src_sg() argument
663 create_multi_sg(sg, src, buflen); in nitrox_creq_set_src_sg()
702 struct scatterlist *dst, int buflen) in nitrox_creq_set_dst_sg() argument
723 sg = create_multi_sg(sg, dst, buflen); in nitrox_creq_set_dst_sg()
/drivers/usb/gadget/legacy/
Dgmidi.c48 static unsigned int buflen = 512; variable
49 module_param(buflen, uint, S_IRUGO);
50 MODULE_PARM_DESC(buflen, "MIDI buffer length");
155 midi_opts->buflen = buflen; in midi_bind()
/drivers/nvme/host/
Dzns.c122 unsigned int nr_zones, size_t *buflen) in nvme_zns_alloc_report_buffer() argument
143 *buflen = bufsize; in nvme_zns_alloc_report_buffer()
181 size_t buflen; in nvme_ns_report_zones() local
186 report = nvme_zns_alloc_report_buffer(ns, nr_zones, &buflen); in nvme_ns_report_zones()
192 c.zmr.numd = cpu_to_le32(nvme_bytes_to_numd(buflen)); in nvme_ns_report_zones()
199 memset(report, 0, buflen); in nvme_ns_report_zones()
202 ret = nvme_submit_sync_cmd(ns->queue, &c, report, buflen); in nvme_ns_report_zones()
/drivers/ata/
Dpata_legacy.c331 unsigned char *buf, unsigned int buflen, int rw) in pdc_data_xfer_vlb() argument
335 int slop = buflen & 3; in pdc_data_xfer_vlb()
351 ioread32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); in pdc_data_xfer_vlb()
353 iowrite32_rep(ap->ioaddr.data_addr, buf, buflen >> 2); in pdc_data_xfer_vlb()
360 memcpy(buf + buflen - slop, &pad, slop); in pdc_data_xfer_vlb()
362 memcpy(&pad, buf + buflen - slop, slop); in pdc_data_xfer_vlb()
365 buflen += 4 - slop; in pdc_data_xfer_vlb()
369 buflen = ata_sff_data_xfer32(qc, buf, buflen, rw); in pdc_data_xfer_vlb()
371 return buflen; in pdc_data_xfer_vlb()
733 unsigned int buflen, int rw) in vlb32_data_xfer() argument
[all …]
Dpata_gayle.c45 unsigned int buflen, int rw) in pata_gayle_data_xfer() argument
50 unsigned int words = buflen >> 1; in pata_gayle_data_xfer()
59 if (unlikely(buflen & 0x01)) { in pata_gayle_data_xfer()
63 buf += buflen - 1; in pata_gayle_data_xfer()
Dpata_ixp4xx_cf.c124 unsigned char *buf, unsigned int buflen, int rw) in ixp4xx_mmio_data_xfer() argument
127 unsigned int words = buflen >> 1; in ixp4xx_mmio_data_xfer()
136 buflen); in ixp4xx_mmio_data_xfer()
154 if (unlikely(buflen & 0x01)) { in ixp4xx_mmio_data_xfer()
156 unsigned char *trailing_buf = buf + buflen - 1; in ixp4xx_mmio_data_xfer()
/drivers/staging/rts5208/
Drtsx_transport.c33 unsigned int buflen, in rtsx_stor_access_xfer_buf() argument
47 cnt = min(buflen, scsi_bufflen(srb) - *offset); in rtsx_stor_access_xfer_buf()
74 while (cnt < buflen && *index < scsi_sg_count(srb)) { in rtsx_stor_access_xfer_buf()
81 if (sglen > buflen - cnt) { in rtsx_stor_access_xfer_buf()
83 sglen = buflen - cnt; in rtsx_stor_access_xfer_buf()
121 unsigned int buflen, struct scsi_cmnd *srb) in rtsx_stor_set_xfer_buf() argument
125 rtsx_stor_access_xfer_buf(buffer, buflen, srb, &index, &offset, in rtsx_stor_set_xfer_buf()
127 if (buflen < scsi_bufflen(srb)) in rtsx_stor_set_xfer_buf()
128 scsi_set_resid(srb, scsi_bufflen(srb) - buflen); in rtsx_stor_set_xfer_buf()
132 unsigned int buflen, struct scsi_cmnd *srb) in rtsx_stor_get_xfer_buf() argument
[all …]
Drtsx_transport.h21 unsigned int buflen,
26 void rtsx_stor_set_xfer_buf(unsigned char *buffer, unsigned int buflen,
28 void rtsx_stor_get_xfer_buf(unsigned char *buffer, unsigned int buflen,
/drivers/nfc/st21nfca/
Di2c.c250 static int get_frame_size(u8 *buf, int buflen) in get_frame_size() argument
257 for (len = 1; len < buflen && buf[len] != ST21NFCA_SOF_EOF; len++) in get_frame_size()
263 static int check_crc(u8 *buf, int buflen) in check_crc() argument
267 crc = crc_ccitt(0xffff, buf, buflen - 2); in check_crc()
270 if (buf[buflen - 2] != (crc & 0xff) || buf[buflen - 1] != (crc >> 8)) { in check_crc()
272 ": CRC error 0x%x != 0x%x 0x%x\n", crc, buf[buflen - 1], in check_crc()
273 buf[buflen - 2]); in check_crc()
277 16, 2, buf, buflen, false); in check_crc()
/drivers/scsi/
Dsr_vendor.c152 cgc.buflen = sizeof(*modesel); in sr_set_blocklength()
199 cgc.buflen = 12; in sr_cd_check()
226 cgc.buflen = 0x16; in sr_cd_check()
255 cgc.buflen = 4; in sr_cd_check()
283 cgc.buflen = 0x04; in sr_cd_check()
301 cgc.buflen = 12; in sr_cd_check()
/drivers/atm/
Dsolos-pci.c189 int buflen; in solos_param_show() local
191 buflen = strlen(attr->attr.name) + 10; in solos_param_show()
193 skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL); in solos_param_show()
201 buflen = snprintf((void *)&header[1], buflen - 1, in solos_param_show()
203 skb_put(skb, buflen); in solos_param_show()
205 header->size = cpu_to_le16(buflen); in solos_param_show()
229 buflen = prm.response->len; in solos_param_show()
230 memcpy(buf, prm.response->data, buflen); in solos_param_show()
233 return buflen; in solos_param_show()
244 int buflen; in solos_param_store() local
[all …]
/drivers/cdrom/
Dcdrom.c379 int ret, buflen; in cdrom_get_disc_info() local
384 cgc.cmd[8] = cgc.buflen = 2; in cdrom_get_disc_info()
394 buflen = be16_to_cpu(di->disc_information_length) + in cdrom_get_disc_info()
397 if (buflen > sizeof(disc_information)) in cdrom_get_disc_info()
398 buflen = sizeof(disc_information); in cdrom_get_disc_info()
400 cgc.cmd[8] = cgc.buflen = buflen; in cdrom_get_disc_info()
406 return buflen; in cdrom_get_disc_info()
567 cgc.buflen = sizeof(buffer); in cdrom_mrw_set_lba_space()
578 cgc.buflen = size; in cdrom_mrw_set_lba_space()
835 cgc.buflen = 255; in mo_open_write()
[all …]
/drivers/media/usb/dvb-usb/
Dgp8psk.c155 u16 buflen = ptr[0] + 4; in gp8psk_load_bcm4500fw() local
156 if (ptr + buflen >= fw->data + fw->size) { in gp8psk_load_bcm4500fw()
160 if (buflen > 64) { in gp8psk_load_bcm4500fw()
165 memcpy(buf, ptr, buflen); in gp8psk_load_bcm4500fw()
166 if (dvb_usb_generic_write(d, buf, buflen)) { in gp8psk_load_bcm4500fw()
170 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()
312 dd->buf_out, dd->buflen, dd->dma_size, 1); in atmel_tdes_crypt_pdc_stop()
328 dd->buflen = PAGE_SIZE; in atmel_tdes_buff_init()
329 dd->buflen &= ~(DES_BLOCK_SIZE - 1); in atmel_tdes_buff_init()
338 dd->buflen, DMA_TO_DEVICE); in atmel_tdes_buff_init()
341 dev_dbg(dd->dev, "dma %zd bytes error\n", dd->buflen); in atmel_tdes_buff_init()
[all …]

12345678