Home
last modified time | relevance | path

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

12345

/drivers/sbus/char/
Dopenprom.c62 unsigned int bufsize; in copyin() local
67 if (get_user(bufsize, &info->oprom_size)) in copyin()
70 if (bufsize == 0) in copyin()
76 if (bufsize > OPROMMAXPARAM) in copyin()
77 bufsize = OPROMMAXPARAM; in copyin()
79 if (!(*opp_p = kzalloc(sizeof(int) + bufsize + 1, GFP_KERNEL))) in copyin()
83 &info->oprom_array, bufsize)) { in copyin()
87 return bufsize; in copyin()
92 int n, bufsize; in getstrings() local
103 n = bufsize = 0; in getstrings()
[all …]
/drivers/net/wireless/ath/carl9170/
Ddebug.c54 char *(*read)(struct ar9170 *ar, char *buf, size_t bufsize,
217 size_t bufsize, ssize_t *len) in carl9170_debugfs_mem_usage_read() argument
221 ADD(buf, *len, bufsize, "jar: [%*pb]\n", in carl9170_debugfs_mem_usage_read()
224 ADD(buf, *len, bufsize, "cookies: used:%3d / total:%3d, allocs:%d\n", in carl9170_debugfs_mem_usage_read()
228 ADD(buf, *len, bufsize, "memory: free:%3d (%3d KiB) / total:%3d KiB)\n", in carl9170_debugfs_mem_usage_read()
240 size_t bufsize, ssize_t *len) in carl9170_debugfs_qos_stat_read() argument
242 ADD(buf, *len, bufsize, "%s QoS AC\n", modparam_noht ? "Hardware" : in carl9170_debugfs_qos_stat_read()
245 ADD(buf, *len, bufsize, "[ VO VI " in carl9170_debugfs_qos_stat_read()
249 ADD(buf, *len, bufsize, "[length/limit length/limit " in carl9170_debugfs_qos_stat_read()
258 ADD(buf, *len, bufsize, "[ total total " in carl9170_debugfs_qos_stat_read()
[all …]
/drivers/s390/char/
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()
179 session->resp_size = cpcmd(cmd, session->response, session->bufsize, in vmcp_write()
219 ret = get_user(session->bufsize, argp); in vmcp_ioctl()
221 session->bufsize = PAGE_SIZE; in vmcp_ioctl()
[all …]
/drivers/mtd/tests/
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()
78 if (memcmp(twopages, writebuf + (j * pgsize), bufsize)) { in verify_eraseblock()
89 err = mtdtest_read(mtd, addr0, 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()
96 err = mtdtest_read(mtd, addr, bufsize, twopages); in verify_eraseblock()
[all …]
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()
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/
Ddebugfs.c32 ssize_t (*read)(struct b43legacy_wldev *dev, char *buf, size_t bufsize);
56 if (bufsize - count) \
58 bufsize - count, \
66 static ssize_t tsf_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) in tsf_read_file() argument
92 static ssize_t ucode_regs_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) in ucode_regs_read_file() argument
106 static ssize_t shm_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) in shm_read_file() argument
114 if (bufsize < sizeof(tmp)) in shm_read_file()
119 bufsize -= sizeof(tmp); in shm_read_file()
125 static ssize_t txstat_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) in txstat_read_file() argument
195 const size_t bufsize = 1024 * 16; /* 16 KiB buffer */ in b43legacy_debugfs_read() local
[all …]
/drivers/staging/greybus/
Dhid.c29 unsigned int bufsize; member
175 ghid->bufsize = 0; in gb_hid_free_buffers()
178 static int gb_hid_alloc_buffers(struct gb_hid *ghid, size_t bufsize) in gb_hid_alloc_buffers() argument
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()
[all …]
/drivers/nvme/host/
Dzns.c117 size_t bufsize; in nvme_zns_alloc_report_buffer() local
126 bufsize = sizeof(struct nvme_zone_report) + in nvme_zns_alloc_report_buffer()
128 bufsize = min_t(size_t, bufsize, in nvme_zns_alloc_report_buffer()
130 bufsize = min_t(size_t, bufsize, queue_max_segments(q) << PAGE_SHIFT); in nvme_zns_alloc_report_buffer()
132 while (bufsize >= min_bufsize) { in nvme_zns_alloc_report_buffer()
133 buf = __vmalloc(bufsize, GFP_KERNEL | __GFP_NORETRY); in nvme_zns_alloc_report_buffer()
135 *buflen = bufsize; in nvme_zns_alloc_report_buffer()
138 bufsize >>= 1; in nvme_zns_alloc_report_buffer()
/drivers/net/wireless/broadcom/b43/
Ddebugfs.c31 ssize_t (*read)(struct b43_wldev *dev, char *buf, size_t bufsize);
53 if (bufsize - count) \
55 bufsize - count, \
67 char *buf, size_t bufsize) in shm16read__read_file() argument
143 char *buf, size_t bufsize) in shm32read__read_file() argument
222 char *buf, size_t bufsize) in mmio16read__read_file() argument
286 char *buf, size_t bufsize) in mmio32read__read_file() argument
350 char *buf, size_t bufsize) in txstat_read_file() argument
426 char *buf, size_t bufsize) in loctls_read_file() argument
498 const size_t bufsize = 1024 * 16; /* 16 kiB buffer */ in b43_debugfs_read() local
[all …]
/drivers/net/netdevsim/
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()
42 p += scnprintf(p, bufsize - (p - buf), in nsim_dbg_netdev_ops_read()
46 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()
/drivers/s390/crypto/
Dzcrypt_msgtype6.c364 if (ap_msg->len > ap_msg->bufsize) in xcrb_msg_to_type6cprb_msgx()
495 if (ap_msg->len > ap_msg->bufsize) in xcrb_msg_to_type6_ep11cprb_msgx()
876 if (len > reply->bufsize || len > msg->bufsize || in zcrypt_msgtype6_receive()
890 if (len > reply->bufsize || len > msg->bufsize || in zcrypt_msgtype6_receive()
940 if (len > reply->bufsize || len > msg->bufsize || in zcrypt_msgtype6_receive_ep11()
982 ap_msg->bufsize = PAGE_SIZE; in zcrypt_msgtype6_modexpo()
1032 ap_msg->bufsize = PAGE_SIZE; in zcrypt_msgtype6_modexpo_crt()
1080 ap_msg->bufsize = atomic_read(&ap_max_msg_size); in prep_cca_ap_msg()
1081 ap_msg->msg = kmalloc(ap_msg->bufsize, GFP_KERNEL); in prep_cca_ap_msg()
1114 max_payload_size = zq->reply.bufsize - sizeof(struct type86_fmt2_msg); in zcrypt_msgtype6_send_cprb()
[all …]
Dzcrypt_msgtype50.c428 if (len > reply->bufsize || len > msg->bufsize || in zcrypt_msgtype50_receive()
460 ap_msg->bufsize = MSGTYPE50_CRB3_MAX_MSG_SIZE; in zcrypt_msgtype50_modexpo()
461 ap_msg->msg = kmalloc(ap_msg->bufsize, GFP_KERNEL); in zcrypt_msgtype50_modexpo()
510 ap_msg->bufsize = MSGTYPE50_CRB3_MAX_MSG_SIZE; in zcrypt_msgtype50_modexpo_crt()
511 ap_msg->msg = kmalloc(ap_msg->bufsize, GFP_KERNEL); in zcrypt_msgtype50_modexpo_crt()
/drivers/scsi/
Dsd_zbc.c205 size_t bufsize; in sd_zbc_alloc_report_buffer() local
218 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
219 bufsize = min_t(size_t, bufsize, in sd_zbc_alloc_report_buffer()
221 bufsize = min_t(size_t, bufsize, queue_max_segments(q) << PAGE_SHIFT); in sd_zbc_alloc_report_buffer()
223 while (bufsize >= SECTOR_SIZE) { in sd_zbc_alloc_report_buffer()
224 buf = __vmalloc(bufsize, in sd_zbc_alloc_report_buffer()
227 *buflen = bufsize; in sd_zbc_alloc_report_buffer()
230 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
/drivers/hid/i2c-hid/
Di2c-hid-core.c98 unsigned int bufsize; /* i2c buffer size */ member
321 if (data_len > ihid->bufsize) in i2c_hid_set_or_send_report()
504 if (size > ihid->bufsize) in i2c_hid_get_input()
505 size = ihid->bufsize; in i2c_hid_get_input()
600 ihid->bufsize = 0; in i2c_hid_free_buffers()
627 ihid->bufsize = report_size; in i2c_hid_alloc_buffers()
791 unsigned int bufsize = HID_MIN_BUFFER_SIZE; in i2c_hid_start() local
793 i2c_hid_find_max_report(hid, HID_INPUT_REPORT, &bufsize); in i2c_hid_start()
794 i2c_hid_find_max_report(hid, HID_OUTPUT_REPORT, &bufsize); in i2c_hid_start()
795 i2c_hid_find_max_report(hid, HID_FEATURE_REPORT, &bufsize); in i2c_hid_start()
[all …]
/drivers/firmware/efi/
Defi-pstore.c242 efi_pstore_info.bufsize = record_size; in efivars_pstore_init()
247 efi_pstore_info.bufsize = 0; in efivars_pstore_init()
255 if (!efi_pstore_info.bufsize) in efivars_pstore_exit()
261 efi_pstore_info.bufsize = 0; in efivars_pstore_exit()
/drivers/media/rc/
Diguanair.c26 uint8_t bufsize; member
92 ir->bufsize = ir->buf_in[4]; in process_ir_data()
230 ir->bufsize = 150; in iguanair_get_features()
241 if (ir->bufsize > BUF_SIZE) { in iguanair_get_features()
243 ir->bufsize); in iguanair_get_features()
244 ir->bufsize = BUF_SIZE; in iguanair_get_features()
332 if (size >= ir->bufsize) { in iguanair_tx()
/drivers/bcma/
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/media/platform/nxp/imx-jpeg/
Dmxc-jpeg-hw.h129 int mxc_jpeg_set_input(void __iomem *reg, u32 in_buf, u32 bufsize);
133 int mxc_jpeg_set_params(struct mxc_jpeg_desc *desc, u32 bufsize, u16
135 void mxc_jpeg_set_bufsize(struct mxc_jpeg_desc *desc, u32 bufsize);
/drivers/usb/class/
Dusbtmc.c750 const size_t bufsize = USBTMC_BUFSIZE; in usbtmc_create_urb() local
757 dmabuf = kmalloc(bufsize, GFP_KERNEL); in usbtmc_create_urb()
764 urb->transfer_buffer_length = bufsize; in usbtmc_create_urb()
827 const u32 bufsize = USBTMC_BUFSIZE; in usbtmc_generic_read() local
850 if (max_transfer_size > bufsize) { in usbtmc_generic_read()
852 roundup(max_transfer_size + 1 - bufsize, in usbtmc_generic_read()
853 bufsize); in usbtmc_generic_read()
883 bufcount = roundup(max_transfer_size, bufsize) / bufsize; in usbtmc_generic_read()
913 dmabuf, bufsize, in usbtmc_generic_read()
1010 if (urb->actual_length < bufsize) { in usbtmc_generic_read()
[all …]
/drivers/accessibility/speakup/
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()
711 size_t bufsize = PAGE_SIZE; in message_show_helper() local
719 if (bufsize <= 1) in message_show_helper()
721 printed = scnprintf(buf_pointer, bufsize, "%d\t%s\n", in message_show_helper()
724 bufsize -= printed; in message_show_helper()
/drivers/media/usb/b2c2/
Dflexcop-usb.c430 int bufsize, i, j, ret; in flexcop_usb_transfer_init() local
434 bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * frame_size; in flexcop_usb_transfer_init()
438 B2C2_USB_FRAMES_PER_ISO, frame_size, bufsize); in flexcop_usb_transfer_init()
441 bufsize, GFP_KERNEL, &fc_usb->dma_addr); in flexcop_usb_transfer_init()
445 memset(fc_usb->iso_buffer, 0, bufsize); in flexcop_usb_transfer_init()
446 fc_usb->buffer_size = bufsize; in flexcop_usb_transfer_init()
/drivers/input/
Devdev.c52 unsigned int bufsize; member
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()
473 unsigned int bufsize = evdev_compute_buffer_size(evdev->handle.dev); in evdev_open() local
477 client = kvzalloc(struct_size(client, buffer, bufsize), GFP_KERNEL); in evdev_open()
482 client->bufsize = bufsize; in evdev_open()
550 client->tail &= client->bufsize - 1; in evdev_fetch_next_event()
/drivers/hid/usbhid/
Dhid-core.c393 if (len > usbhid->bufsize) in hid_submit_ctrl()
394 len = usbhid->bufsize; in hid_submit_ctrl()
855 usbhid->inbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers()
857 usbhid->outbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers()
860 usbhid->ctrlbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers()
973 usb_free_coherent(dev, usbhid->bufsize, usbhid->inbuf, usbhid->inbuf_dma); in hid_free_buffers()
974 usb_free_coherent(dev, usbhid->bufsize, usbhid->outbuf, usbhid->outbuf_dma); in hid_free_buffers()
976 usb_free_coherent(dev, usbhid->bufsize, usbhid->ctrlbuf, usbhid->ctrlbuf_dma); in hid_free_buffers()
1073 usbhid->bufsize = HID_MIN_BUFFER_SIZE; in usbhid_start()
1074 hid_find_max_report(hid, HID_INPUT_REPORT, &usbhid->bufsize); in usbhid_start()
[all …]
/drivers/hwmon/
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()

12345