Home
last modified time | relevance | path

Searched refs:bufsize (Results 1 – 25 of 112) sorted by relevance

12345

/drivers/sbus/char/
A Dopenprom.c62 unsigned int bufsize; in copyin() local
70 if (bufsize == 0) in copyin()
77 bufsize = OPROMMAXPARAM; in copyin()
87 return bufsize; in copyin()
92 int n, bufsize; in getstrings() local
103 n = bufsize = 0; in getstrings()
117 return bufsize; in getstrings()
277 if (len > bufsize) in opromgetbootargs()
295 int bufsize, error = 0; in openprom_sunos_ioctl() local
304 if (bufsize < 0) in openprom_sunos_ioctl()
[all …]
/drivers/net/wireless/ath/carl9170/
A Ddebug.c213 size_t bufsize, ssize_t *len) in carl9170_debugfs_mem_usage_read() argument
217 ADD(buf, *len, bufsize, "jar: [%*pb]\n", in carl9170_debugfs_mem_usage_read()
236 size_t bufsize, ssize_t *len) in carl9170_debugfs_qos_stat_read() argument
281 ssize_t *off, ssize_t bufsize) in carl9170_debugfs_format_frame() argument
297 size_t bufsize, ssize_t *len) in carl9170_debugfs_ampdu_state_read() argument
339 len, bufsize); in carl9170_debugfs_ampdu_state_read()
363 len, bufsize); in carl9170_debugfs_queue_dump()
379 size_t bufsize, ssize_t *len) in carl9170_debugfs_sta_psm_read() argument
395 size_t bufsize, ssize_t *len) in carl9170_debugfs_tx_stuck_read() argument
413 size_t bufsize, ssize_t *len) in carl9170_debugfs_phy_noise_read() argument
[all …]
/drivers/s390/char/
A Dvmcp.c32 unsigned int bufsize; member
65 order = get_order(session->bufsize); in vmcp_response_alloc()
66 nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT; in vmcp_response_alloc()
89 order = get_order(session->bufsize); in vmcp_response_free()
90 nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT; in vmcp_response_free()
112 session->bufsize = PAGE_SIZE; in vmcp_open()
145 size = min_t(size_t, session->resp_size, session->bufsize); in vmcp_read()
219 ret = get_user(session->bufsize, argp); in vmcp_ioctl()
221 session->bufsize = PAGE_SIZE; in vmcp_ioctl()
222 if (!session->bufsize || get_order(session->bufsize) > 8) { in vmcp_ioctl()
[all …]
/drivers/mtd/tests/
A Dpagetest.c35 static int bufsize; variable
68 err = mtdtest_read(mtd, addr0, bufsize, twopages); in verify_eraseblock()
71 err = mtdtest_read(mtd, addrn - bufsize, bufsize, twopages); in verify_eraseblock()
74 memset(twopages, 0, bufsize); in verify_eraseblock()
75 err = mtdtest_read(mtd, addr, bufsize, twopages); in verify_eraseblock()
92 err = mtdtest_read(mtd, addrn - bufsize, bufsize, twopages); in verify_eraseblock()
95 memset(twopages, 0, bufsize); in verify_eraseblock()
101 if (memcmp(twopages, boundary, bufsize)) { in verify_eraseblock()
361 bufsize = pgsize * 2; in mtd_pagetest_init()
365 twopages = kmalloc(bufsize, GFP_KERNEL); in mtd_pagetest_init()
[all …]
A Dstresstest.c39 static int bufsize; variable
57 return get_random_u32_below(bufsize); in rand_offs()
62 return get_random_u32_below(bufsize - offs); in rand_len()
176 bufsize = mtd->erasesize * 2; in mtd_stresstest_init()
179 readbuf = vmalloc(bufsize); in mtd_stresstest_init()
180 writebuf = vmalloc(bufsize); in mtd_stresstest_init()
186 get_random_bytes(writebuf, bufsize); in mtd_stresstest_init()
A Dsubpagetest.c32 static int bufsize; variable
310 bufsize = subpgsize * 32; in mtd_subpagetest_init()
311 writebuf = kmalloc(bufsize, GFP_KERNEL); in mtd_subpagetest_init()
314 readbuf = kmalloc(bufsize, GFP_KERNEL); in mtd_subpagetest_init()
/drivers/net/wireless/broadcom/b43legacy/
A Ddebugfs.c32 ssize_t (*read)(struct b43legacy_wldev *dev, char *buf, size_t bufsize);
55 if (bufsize - count) \
57 bufsize - count, \
65 static ssize_t tsf_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) in tsf_read_file() argument
113 if (bufsize < sizeof(tmp)) in shm_read_file()
118 bufsize -= sizeof(tmp); in shm_read_file()
194 const size_t bufsize = 1024 * 16; /* 16 KiB buffer */ in b43legacy_debugfs_read() local
195 const size_t buforder = get_order(bufsize); in b43legacy_debugfs_read()
223 memset(buf, 0, bufsize); in b43legacy_debugfs_read()
226 ret = dfops->read(dev, buf, bufsize); in b43legacy_debugfs_read()
[all …]
/drivers/staging/greybus/
A Dhid.c29 unsigned int bufsize; member
175 ghid->bufsize = 0; in gb_hid_free_buffers()
180 ghid->inbuf = kzalloc(bufsize, GFP_KERNEL); in gb_hid_alloc_buffers()
184 ghid->bufsize = bufsize; in gb_hid_alloc_buffers()
315 unsigned int bufsize = HID_MIN_BUFFER_SIZE; in gb_hid_start() local
318 gb_hid_find_max_report(hid, HID_INPUT_REPORT, &bufsize); in gb_hid_start()
319 gb_hid_find_max_report(hid, HID_OUTPUT_REPORT, &bufsize); in gb_hid_start()
320 gb_hid_find_max_report(hid, HID_FEATURE_REPORT, &bufsize); in gb_hid_start()
322 if (bufsize > HID_MAX_BUFFER_SIZE) in gb_hid_start()
323 bufsize = HID_MAX_BUFFER_SIZE; in gb_hid_start()
[all …]
/drivers/nvme/host/
A Dzns.c123 size_t bufsize; in nvme_zns_alloc_report_buffer() local
132 bufsize = sizeof(struct nvme_zone_report) + in nvme_zns_alloc_report_buffer()
134 bufsize = min_t(size_t, bufsize, in nvme_zns_alloc_report_buffer()
136 bufsize = min_t(size_t, bufsize, queue_max_segments(q) << PAGE_SHIFT); in nvme_zns_alloc_report_buffer()
138 while (bufsize >= min_bufsize) { in nvme_zns_alloc_report_buffer()
139 buf = __vmalloc(bufsize, GFP_KERNEL | __GFP_NORETRY); in nvme_zns_alloc_report_buffer()
141 *buflen = bufsize; in nvme_zns_alloc_report_buffer()
144 bufsize >>= 1; in nvme_zns_alloc_report_buffer()
/drivers/net/netdevsim/
A Dipsec.c18 size_t bufsize; in nsim_dbg_netdev_ops_read() local
26 bufsize = (ipsec->count * 4 * 60) + 60; in nsim_dbg_netdev_ops_read()
27 buf = kzalloc(bufsize, GFP_KERNEL); in nsim_dbg_netdev_ops_read()
32 p += scnprintf(p, bufsize - (p - buf), in nsim_dbg_netdev_ops_read()
43 p += scnprintf(p, bufsize - (p - buf), in nsim_dbg_netdev_ops_read()
47 p += scnprintf(p, bufsize - (p - buf), in nsim_dbg_netdev_ops_read()
50 p += scnprintf(p, bufsize - (p - buf), in nsim_dbg_netdev_ops_read()
54 p += scnprintf(p, bufsize - (p - buf), in nsim_dbg_netdev_ops_read()
/drivers/scsi/
A Dsd_zbc.c173 size_t bufsize; in sd_zbc_alloc_report_buffer() local
188 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
189 bufsize = min_t(size_t, bufsize, in sd_zbc_alloc_report_buffer()
192 bufsize = min_t(size_t, bufsize, max_segments << PAGE_SHIFT); in sd_zbc_alloc_report_buffer()
194 while (bufsize >= SECTOR_SIZE) { in sd_zbc_alloc_report_buffer()
195 buf = kvzalloc(bufsize, GFP_KERNEL | __GFP_NORETRY); in sd_zbc_alloc_report_buffer()
197 *buflen = bufsize; in sd_zbc_alloc_report_buffer()
200 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
/drivers/net/wireless/broadcom/b43/
A Ddebugfs.c52 if (bufsize - count) \
54 bufsize - count, \
66 char *buf, size_t bufsize) in shm16read__read_file() argument
142 char *buf, size_t bufsize) in shm32read__read_file() argument
221 char *buf, size_t bufsize) in mmio16read__read_file() argument
285 char *buf, size_t bufsize) in mmio32read__read_file() argument
349 char *buf, size_t bufsize) in txstat_read_file() argument
425 char *buf, size_t bufsize) in loctls_read_file() argument
498 const size_t buforder = get_order(bufsize); in b43_debugfs_read()
526 memset(buf, 0, bufsize); in b43_debugfs_read()
[all …]
/drivers/hid/i2c-hid/
A Di2c-hid-core.c100 unsigned int bufsize; /* i2c buffer size */ member
353 if (data_len > ihid->bufsize) in i2c_hid_set_or_send_report()
529 if (size > ihid->bufsize) in i2c_hid_get_input()
530 size = ihid->bufsize; in i2c_hid_get_input()
625 ihid->bufsize = 0; in i2c_hid_free_buffers()
652 ihid->bufsize = report_size; in i2c_hid_alloc_buffers()
814 unsigned int bufsize = HID_MIN_BUFFER_SIZE; in i2c_hid_start() local
816 i2c_hid_find_max_report(hid, HID_INPUT_REPORT, &bufsize); in i2c_hid_start()
820 if (bufsize > ihid->bufsize) { in i2c_hid_start()
824 ret = i2c_hid_alloc_buffers(ihid, bufsize); in i2c_hid_start()
[all …]
/drivers/s390/crypto/
A Dzcrypt_msgtype6.c359 if (ap_msg->len > ap_msg->bufsize) in xcrb_msg_to_type6cprb_msgx()
489 if (ap_msg->len > ap_msg->bufsize) in xcrb_msg_to_type6_ep11cprb_msgx()
867 if (len > reply->bufsize || len > msg->bufsize || in zcrypt_msgtype6_receive()
881 if (len > reply->bufsize || len > msg->bufsize || in zcrypt_msgtype6_receive()
931 if (len > reply->bufsize || len > msg->bufsize || in zcrypt_msgtype6_receive_ep11()
971 ap_msg->bufsize = PAGE_SIZE; in zcrypt_msgtype6_modexpo()
1018 ap_msg->bufsize = PAGE_SIZE; in zcrypt_msgtype6_modexpo_crt()
1092 max_payload_size = zq->reply.bufsize - sizeof(struct type86_fmt2_msg); in zcrypt_msgtype6_send_cprb()
1226 msg->hdr.fromcardlen1 = zq->reply.bufsize - in zcrypt_msgtype6_send_ep11_cprb()
1266 if (ap_msg->bufsize < AP_DEFAULT_MAX_MSG_SIZE) in prep_rng_ap_msg()
/drivers/media/rc/
A Diguanair.c26 uint8_t bufsize; member
92 ir->bufsize = ir->buf_in[4]; in process_ir_data()
232 ir->bufsize = 150; in iguanair_get_features()
243 if (ir->bufsize > BUF_SIZE) { in iguanair_get_features()
245 ir->bufsize); in iguanair_get_features()
246 ir->bufsize = BUF_SIZE; in iguanair_get_features()
334 if (size >= ir->bufsize) { in iguanair_tx()
/drivers/bcma/
A Ddriver_pci_host.c277 u32 bufsize; in bcma_find_pci_capability() local
314 bufsize = *buflen; in bcma_find_pci_capability()
315 if (!bufsize) in bcma_find_pci_capability()
322 if ((bufsize + cap_data) > PCI_CONFIG_SPACE_SIZE) in bcma_find_pci_capability()
323 bufsize = PCI_CONFIG_SPACE_SIZE - cap_data; in bcma_find_pci_capability()
324 *buflen = bufsize; in bcma_find_pci_capability()
325 while (bufsize--) { in bcma_find_pci_capability()
/drivers/firmware/efi/
A Defi-pstore.c277 efi_pstore_info.bufsize = record_size; in efivars_pstore_init()
282 efi_pstore_info.bufsize = 0; in efivars_pstore_init()
290 if (!efi_pstore_info.bufsize) in efivars_pstore_exit()
296 efi_pstore_info.bufsize = 0; in efivars_pstore_exit()
/drivers/input/
A Devdev.c52 unsigned int bufsize; member
53 struct input_event buffer[] __counted_by(bufsize);
104 unsigned int mask = client->bufsize - 1; in __evdev_flush_queue()
156 client->head &= client->bufsize - 1; in __evdev_queue_syn_dropped()
160 client->tail = (client->head - 1) & (client->bufsize - 1); in __evdev_queue_syn_dropped()
218 client->head &= client->bufsize - 1; in __pass_event()
225 client->tail = (client->head - 2) & (client->bufsize - 1); in __pass_event()
464 unsigned int bufsize = evdev_compute_buffer_size(evdev->handle.dev); in evdev_open() local
468 client = kvzalloc(struct_size(client, buffer, bufsize), GFP_KERNEL); in evdev_open()
473 client->bufsize = bufsize; in evdev_open()
[all …]
/drivers/usb/class/
A Dusbtmc.c833 const u32 bufsize = USBTMC_BUFSIZE; in usbtmc_generic_read() local
857 if (max_transfer_size > bufsize) { in usbtmc_generic_read()
860 bufsize); in usbtmc_generic_read()
890 bufcount = roundup(max_transfer_size, bufsize) / bufsize; in usbtmc_generic_read()
920 dmabuf, bufsize, in usbtmc_generic_read()
1022 if (urb->actual_length < bufsize) { in usbtmc_generic_read()
1127 const u32 bufsize = USBTMC_BUFSIZE; in usbtmc_generic_write() local
1196 if (remaining > bufsize) in usbtmc_generic_write()
1197 this_part = bufsize; in usbtmc_generic_write()
1378 const u32 bufsize = USBTMC_BUFSIZE; in usbtmc_read() local
[all …]
/drivers/accessibility/speakup/
A Dkobjects.c36 size_t bufsize = PAGE_SIZE; in chars_chartab_show() local
42 if (bufsize <= 1) in chars_chartab_show()
45 len = scnprintf(buf_pointer, bufsize, "%d\t%s\n", in chars_chartab_show()
69 scnprintf(buf_pointer, bufsize, "%d\t%s\n", i, cp); in chars_chartab_show()
71 bufsize -= len; in chars_chartab_show()
708 size_t bufsize = PAGE_SIZE; in message_show_helper() local
716 if (bufsize <= 1) in message_show_helper()
718 printed = scnprintf(buf_pointer, bufsize, "%d\t%s\n", in message_show_helper()
721 bufsize -= printed; in message_show_helper()
/drivers/mtd/nand/spi/
A Dmicron.c179 size_t bufsize = spinand_otp_page_size(spinand); in mt29f2g01abagd_otp_is_locked() local
184 buf = kmalloc(bufsize, GFP_KERNEL); in mt29f2g01abagd_otp_is_locked()
194 ret = spinand_user_otp_read(spinand, 0, bufsize, &retlen, buf); in mt29f2g01abagd_otp_is_locked()
207 if (mem_is_zero(buf, bufsize)) in mt29f2g01abagd_otp_is_locked()
/drivers/media/usb/b2c2/
A Dflexcop-usb.c428 int bufsize, i, j, ret; in flexcop_usb_transfer_init() local
432 bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * frame_size; in flexcop_usb_transfer_init()
436 B2C2_USB_FRAMES_PER_ISO, frame_size, bufsize); in flexcop_usb_transfer_init()
439 bufsize, GFP_KERNEL, &fc_usb->dma_addr); in flexcop_usb_transfer_init()
443 memset(fc_usb->iso_buffer, 0, bufsize); in flexcop_usb_transfer_init()
444 fc_usb->buffer_size = bufsize; in flexcop_usb_transfer_init()
/drivers/hid/usbhid/
A Dhid-core.c395 if (len > usbhid->bufsize) in hid_submit_ctrl()
396 len = usbhid->bufsize; in hid_submit_ctrl()
857 usbhid->inbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers()
859 usbhid->outbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers()
862 usbhid->ctrlbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers()
1078 usbhid->bufsize = HID_MIN_BUFFER_SIZE; in usbhid_start()
1079 hid_find_max_report(hid, HID_INPUT_REPORT, &usbhid->bufsize); in usbhid_start()
1080 hid_find_max_report(hid, HID_OUTPUT_REPORT, &usbhid->bufsize); in usbhid_start()
1081 hid_find_max_report(hid, HID_FEATURE_REPORT, &usbhid->bufsize); in usbhid_start()
1083 if (usbhid->bufsize > HID_MAX_BUFFER_SIZE) in usbhid_start()
[all …]
/drivers/hwmon/
A Dshtc1.c73 char *buf, int bufsize) in shtc1_update_values() argument
91 ret = i2c_master_recv(client, buf, bufsize); in shtc1_update_values()
92 if (ret != bufsize) { in shtc1_update_values()
/drivers/input/touchscreen/
A Dzet6223.c60 u8 bufsize = 3 + 4 * ts->fingernum; in zet6223_irq() local
66 ret = i2c_master_recv(ts->client, buf, bufsize); in zet6223_irq()
67 if (ret != bufsize) { in zet6223_irq()

Completed in 67 milliseconds

12345