/drivers/sbus/char/ |
D | openprom.c | 62 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/ |
D | debug.c | 54 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/ |
D | vmcp.c | 32 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/ |
D | pagetest.c | 35 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 …]
|
D | stresstest.c | 39 static int bufsize; variable 61 offs %= bufsize; in rand_offs() 70 len %= (bufsize - offs); in rand_len() 185 bufsize = mtd->erasesize * 2; in mtd_stresstest_init() 188 readbuf = vmalloc(bufsize); in mtd_stresstest_init() 189 writebuf = vmalloc(bufsize); in mtd_stresstest_init() 195 prandom_bytes(writebuf, bufsize); in mtd_stresstest_init()
|
D | subpagetest.c | 32 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/ |
D | debugfs.c | 32 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/nvme/host/ |
D | zns.c | 125 size_t bufsize; in nvme_zns_alloc_report_buffer() local 134 bufsize = sizeof(struct nvme_zone_report) + in nvme_zns_alloc_report_buffer() 136 bufsize = min_t(size_t, bufsize, in nvme_zns_alloc_report_buffer() 138 bufsize = min_t(size_t, bufsize, queue_max_segments(q) << PAGE_SHIFT); in nvme_zns_alloc_report_buffer() 140 while (bufsize >= min_bufsize) { in nvme_zns_alloc_report_buffer() 141 buf = __vmalloc(bufsize, GFP_KERNEL | __GFP_NORETRY); in nvme_zns_alloc_report_buffer() 143 *buflen = bufsize; in nvme_zns_alloc_report_buffer() 146 bufsize >>= 1; in nvme_zns_alloc_report_buffer()
|
/drivers/staging/greybus/ |
D | hid.c | 29 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/net/wireless/broadcom/b43/ |
D | debugfs.c | 31 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/ |
D | ipsec.c | 18 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/scsi/ |
D | sd_zbc.c | 152 size_t bufsize; in sd_zbc_alloc_report_buffer() local 165 bufsize = roundup((nr_zones + 1) * 64, SECTOR_SIZE); in sd_zbc_alloc_report_buffer() 166 bufsize = min_t(size_t, bufsize, in sd_zbc_alloc_report_buffer() 168 bufsize = min_t(size_t, bufsize, queue_max_segments(q) << PAGE_SHIFT); in sd_zbc_alloc_report_buffer() 170 while (bufsize >= SECTOR_SIZE) { in sd_zbc_alloc_report_buffer() 171 buf = __vmalloc(bufsize, in sd_zbc_alloc_report_buffer() 174 *buflen = bufsize; in sd_zbc_alloc_report_buffer() 177 bufsize = rounddown(bufsize >> 1, SECTOR_SIZE); in sd_zbc_alloc_report_buffer()
|
/drivers/s390/crypto/ |
D | zcrypt_msgtype6.c | 418 if (ap_msg->len > ap_msg->bufsize) in XCRB_msg_to_type6CPRB_msgX() 528 if (ap_msg->len > ap_msg->bufsize) in xcrb_msg_to_type6_ep11cprb_msgx() 944 if (len > reply->bufsize || len > msg->bufsize) { in zcrypt_msgtype6_receive() 953 if (len > reply->bufsize || len > msg->bufsize) { in zcrypt_msgtype6_receive() 999 if (len > reply->bufsize || len > msg->bufsize) { in zcrypt_msgtype6_receive_ep11() 1037 ap_msg->bufsize = PAGE_SIZE; in zcrypt_msgtype6_modexpo() 1085 ap_msg->bufsize = PAGE_SIZE; in zcrypt_msgtype6_modexpo_crt() 1130 ap_msg->bufsize = atomic_read(&ap_max_msg_size); in get_cprb_fc() 1131 ap_msg->msg = kmalloc(ap_msg->bufsize, GFP_KERNEL); in get_cprb_fc() 1188 ap_msg->bufsize = atomic_read(&ap_max_msg_size); in get_ep11cprb_fc() [all …]
|
D | zcrypt_msgtype50.c | 446 if (len > reply->bufsize || len > msg->bufsize) { in zcrypt_cex2a_receive() 474 ap_msg->bufsize = (zq->zcard->user_space_type == ZCRYPT_CEX2A) ? in zcrypt_cex2a_modexpo() 476 ap_msg->msg = kmalloc(ap_msg->bufsize, GFP_KERNEL); in zcrypt_cex2a_modexpo() 519 ap_msg->bufsize = (zq->zcard->user_space_type == ZCRYPT_CEX2A) ? in zcrypt_cex2a_modexpo_crt() 521 ap_msg->msg = kmalloc(ap_msg->bufsize, GFP_KERNEL); in zcrypt_cex2a_modexpo_crt()
|
/drivers/hid/i2c-hid/ |
D | i2c-hid-core.c | 144 unsigned int bufsize; /* i2c buffer size */ member 347 if (data_len > ihid->bufsize) in i2c_hid_set_or_send_report() 483 if (size > ihid->bufsize) in i2c_hid_get_input() 484 size = ihid->bufsize; in i2c_hid_get_input() 578 ihid->bufsize = 0; in i2c_hid_free_buffers() 601 ihid->bufsize = report_size; in i2c_hid_alloc_buffers() 630 ask_count = min(count + 2, (size_t)ihid->bufsize); in i2c_hid_get_raw_report() 783 unsigned int bufsize = HID_MIN_BUFFER_SIZE; in i2c_hid_start() local 785 i2c_hid_find_max_report(hid, HID_INPUT_REPORT, &bufsize); in i2c_hid_start() 786 i2c_hid_find_max_report(hid, HID_OUTPUT_REPORT, &bufsize); in i2c_hid_start() [all …]
|
/drivers/usb/serial/ |
D | cp210x.c | 640 void *buf, int bufsize) in cp210x_read_reg_block() argument 647 dmabuf = kmalloc(bufsize, GFP_KERNEL); in cp210x_read_reg_block() 653 port_priv->bInterfaceNumber, dmabuf, bufsize, in cp210x_read_reg_block() 655 if (result == bufsize) { in cp210x_read_reg_block() 656 memcpy(buf, dmabuf, bufsize); in cp210x_read_reg_block() 660 req, bufsize, result); in cp210x_read_reg_block() 683 void *buf, int bufsize) in cp210x_read_vendor_block() argument 688 dmabuf = kmalloc(bufsize, GFP_KERNEL); in cp210x_read_vendor_block() 694 cp210x_interface_num(serial), dmabuf, bufsize, in cp210x_read_vendor_block() 696 if (result == bufsize) { in cp210x_read_vendor_block() [all …]
|
/drivers/media/rc/ |
D | iguanair.c | 26 uint8_t bufsize; member 92 ir->bufsize = ir->buf_in[4]; in process_ir_data() 233 ir->bufsize = 150; in iguanair_get_features() 244 if (ir->bufsize > BUF_SIZE) { in iguanair_get_features() 246 ir->bufsize); in iguanair_get_features() 247 ir->bufsize = BUF_SIZE; in iguanair_get_features() 338 if (size >= ir->bufsize) { in iguanair_tx()
|
/drivers/bcma/ |
D | driver_pci_host.c | 277 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/imx-jpeg/ |
D | mxc-jpeg-hw.h | 129 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/input/ |
D | evdev.c | 53 unsigned int bufsize; member 105 unsigned int mask = client->bufsize - 1; in __evdev_flush_queue() 157 client->head &= client->bufsize - 1; in __evdev_queue_syn_dropped() 161 client->tail = (client->head - 1) & (client->bufsize - 1); in __evdev_queue_syn_dropped() 218 trace_android_vh_pass_input_event(client->head, client->tail, client->bufsize, in __pass_event() 222 client->head &= client->bufsize - 1; in __pass_event() 229 client->tail = (client->head - 2) & (client->bufsize - 1); in __pass_event() 477 unsigned int bufsize = evdev_compute_buffer_size(evdev->handle.dev); in evdev_open() local 481 client = kvzalloc(struct_size(client, buffer, bufsize), GFP_KERNEL); in evdev_open() 486 client->bufsize = bufsize; in evdev_open() [all …]
|
/drivers/usb/class/ |
D | usbtmc.c | 750 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/ |
D | kobjects.c | 36 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/input/touchscreen/ |
D | zet6223.c | 62 u8 bufsize = 3 + 4 * ts->fingernum; in zet6223_irq() local 68 ret = i2c_master_recv(ts->client, buf, bufsize); in zet6223_irq() 69 if (ret != bufsize) { in zet6223_irq()
|
/drivers/hwmon/ |
D | shtc1.c | 73 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/hid/usbhid/ |
D | hid-core.c | 393 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 …]
|