/drivers/sbus/char/ |
D | openprom.c | 75 unsigned int bufsize; in copyin() local 80 if (get_user(bufsize, &info->oprom_size)) in copyin() 83 if (bufsize == 0) in copyin() 89 if (bufsize > OPROMMAXPARAM) in copyin() 90 bufsize = OPROMMAXPARAM; in copyin() 92 if (!(*opp_p = kzalloc(sizeof(int) + bufsize + 1, GFP_KERNEL))) in copyin() 96 &info->oprom_array, bufsize)) { in copyin() 100 return bufsize; in copyin() 105 int n, bufsize; in getstrings() local 116 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 | 33 unsigned int bufsize; member 64 order = get_order(session->bufsize); in vmcp_response_alloc() 65 nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT; in vmcp_response_alloc() 88 order = get_order(session->bufsize); in vmcp_response_free() 89 nr_pages = ALIGN(session->bufsize, PAGE_SIZE) >> PAGE_SHIFT; in vmcp_response_free() 111 session->bufsize = PAGE_SIZE; in vmcp_open() 144 size = min_t(size_t, session->resp_size, session->bufsize); in vmcp_read() 178 session->resp_size = cpcmd(cmd, session->response, session->bufsize, in vmcp_write() 218 ret = get_user(session->bufsize, argp); in vmcp_ioctl() 220 session->bufsize = PAGE_SIZE; in vmcp_ioctl() [all …]
|
/drivers/mtd/tests/ |
D | pagetest.c | 47 static int bufsize; variable 80 err = mtdtest_read(mtd, addr0, bufsize, twopages); in verify_eraseblock() 83 err = mtdtest_read(mtd, addrn - bufsize, bufsize, twopages); in verify_eraseblock() 86 memset(twopages, 0, bufsize); in verify_eraseblock() 87 err = mtdtest_read(mtd, addr, bufsize, twopages); in verify_eraseblock() 90 if (memcmp(twopages, writebuf + (j * pgsize), bufsize)) { in verify_eraseblock() 101 err = mtdtest_read(mtd, addr0, bufsize, twopages); in verify_eraseblock() 104 err = mtdtest_read(mtd, addrn - bufsize, bufsize, twopages); in verify_eraseblock() 107 memset(twopages, 0, bufsize); in verify_eraseblock() 108 err = mtdtest_read(mtd, addr, bufsize, twopages); in verify_eraseblock() [all …]
|
D | stresstest.c | 51 static int bufsize; variable 73 offs %= bufsize; in rand_offs() 82 len %= (bufsize - offs); in rand_len() 197 bufsize = mtd->erasesize * 2; in mtd_stresstest_init() 200 readbuf = vmalloc(bufsize); in mtd_stresstest_init() 201 writebuf = vmalloc(bufsize); in mtd_stresstest_init() 207 prandom_bytes(writebuf, bufsize); in mtd_stresstest_init()
|
D | subpagetest.c | 45 static int bufsize; variable 323 bufsize = subpgsize * 32; in mtd_subpagetest_init() 324 writebuf = kmalloc(bufsize, GFP_KERNEL); in mtd_subpagetest_init() 327 readbuf = kmalloc(bufsize, GFP_KERNEL); in mtd_subpagetest_init()
|
/drivers/net/wireless/broadcom/b43legacy/ |
D | debugfs.c | 45 ssize_t (*read)(struct b43legacy_wldev *dev, char *buf, size_t bufsize); 69 if (bufsize - count) \ 71 bufsize - count, \ 79 static ssize_t tsf_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) in tsf_read_file() argument 105 static ssize_t ucode_regs_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) in ucode_regs_read_file() argument 119 static ssize_t shm_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) in shm_read_file() argument 127 if (bufsize < sizeof(tmp)) in shm_read_file() 132 bufsize -= sizeof(tmp); in shm_read_file() 138 static ssize_t txstat_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) in txstat_read_file() argument 208 const size_t bufsize = 1024 * 16; /* 16 KiB buffer */ in b43legacy_debugfs_read() local [all …]
|
/drivers/staging/greybus/ |
D | hid.c | 31 unsigned int bufsize; member 177 ghid->bufsize = 0; in gb_hid_free_buffers() 180 static int gb_hid_alloc_buffers(struct gb_hid *ghid, size_t bufsize) in gb_hid_alloc_buffers() argument 182 ghid->inbuf = kzalloc(bufsize, GFP_KERNEL); in gb_hid_alloc_buffers() 186 ghid->bufsize = bufsize; in gb_hid_alloc_buffers() 317 unsigned int bufsize = HID_MIN_BUFFER_SIZE; in gb_hid_start() local 320 gb_hid_find_max_report(hid, HID_INPUT_REPORT, &bufsize); in gb_hid_start() 321 gb_hid_find_max_report(hid, HID_OUTPUT_REPORT, &bufsize); in gb_hid_start() 322 gb_hid_find_max_report(hid, HID_FEATURE_REPORT, &bufsize); in gb_hid_start() 324 if (bufsize > HID_MAX_BUFFER_SIZE) in gb_hid_start() [all …]
|
/drivers/staging/lustre/lustre/ptlrpc/ |
D | sec_lproc.c | 50 static char *sec_flags2str(unsigned long flags, char *buf, int bufsize) in sec_flags2str() argument 55 strlcat(buf, "reverse,", bufsize); in sec_flags2str() 57 strlcat(buf, "rootonly,", bufsize); in sec_flags2str() 59 strlcat(buf, "udesc,", bufsize); in sec_flags2str() 61 strlcat(buf, "bulk,", bufsize); in sec_flags2str() 63 strlcat(buf, "-,", bufsize); in sec_flags2str()
|
D | sec_bulk.c | 530 unsigned int bufsize; in sptlrpc_get_bulk_checksum() local 556 bufsize = sizeof(hashbuf); in sptlrpc_get_bulk_checksum() 557 LASSERTF(bufsize >= hashsize, "bufsize = %u < hashsize %u\n", in sptlrpc_get_bulk_checksum() 558 bufsize, hashsize); in sptlrpc_get_bulk_checksum() 559 err = cfs_crypto_hash_final(hdesc, hashbuf, &bufsize); in sptlrpc_get_bulk_checksum() 562 bufsize = buflen; in sptlrpc_get_bulk_checksum() 563 err = cfs_crypto_hash_final(hdesc, buf, &bufsize); in sptlrpc_get_bulk_checksum()
|
/drivers/usb/serial/ |
D | cp210x.c | 494 void *buf, int bufsize) in cp210x_read_reg_block() argument 501 dmabuf = kmalloc(bufsize, GFP_KERNEL); in cp210x_read_reg_block() 507 memset(buf, 0, bufsize); in cp210x_read_reg_block() 513 port_priv->bInterfaceNumber, dmabuf, bufsize, in cp210x_read_reg_block() 515 if (result == bufsize) { in cp210x_read_reg_block() 516 memcpy(buf, dmabuf, bufsize); in cp210x_read_reg_block() 520 req, bufsize, result); in cp210x_read_reg_block() 528 memset(buf, 0, bufsize); in cp210x_read_reg_block() 589 void *buf, int bufsize) in cp210x_read_vendor_block() argument 594 dmabuf = kmalloc(bufsize, GFP_KERNEL); in cp210x_read_vendor_block() [all …]
|
D | ch341.c | 124 char *buf, unsigned bufsize) in ch341_control_in() argument 129 request, value, index, bufsize); in ch341_control_in() 133 value, index, buf, bufsize, DEFAULT_TIMEOUT); in ch341_control_in() 134 if (r < (int)bufsize) { in ch341_control_in() 138 r, bufsize); in ch341_control_in()
|
/drivers/net/wireless/broadcom/b43/ |
D | debugfs.c | 44 ssize_t (*read)(struct b43_wldev *dev, char *buf, size_t bufsize); 66 if (bufsize - count) \ 68 bufsize - count, \ 80 char *buf, size_t bufsize) in shm16read__read_file() argument 156 char *buf, size_t bufsize) in shm32read__read_file() argument 235 char *buf, size_t bufsize) in mmio16read__read_file() argument 299 char *buf, size_t bufsize) in mmio32read__read_file() argument 363 char *buf, size_t bufsize) in txstat_read_file() argument 439 char *buf, size_t bufsize) in loctls_read_file() argument 511 const size_t bufsize = 1024 * 16; /* 16 kiB buffer */ in b43_debugfs_read() local [all …]
|
/drivers/hid/i2c-hid/ |
D | i2c-hid-core.c | 146 unsigned int bufsize; /* i2c buffer size */ member 331 if (data_len > ihid->bufsize) in i2c_hid_set_or_send_report() 458 if (size > ihid->bufsize) in i2c_hid_get_input() 459 size = ihid->bufsize; in i2c_hid_get_input() 541 ihid->bufsize = 0; in i2c_hid_free_buffers() 564 ihid->bufsize = report_size; in i2c_hid_alloc_buffers() 582 ask_count = min(count + 2, (size_t)ihid->bufsize); in i2c_hid_get_raw_report() 730 unsigned int bufsize = HID_MIN_BUFFER_SIZE; in i2c_hid_start() local 732 i2c_hid_find_max_report(hid, HID_INPUT_REPORT, &bufsize); in i2c_hid_start() 733 i2c_hid_find_max_report(hid, HID_OUTPUT_REPORT, &bufsize); in i2c_hid_start() [all …]
|
/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/rc/ |
D | iguanair.c | 36 uint8_t bufsize; member 104 ir->bufsize = ir->buf_in[4]; in process_ir_data() 247 ir->bufsize = 150; in iguanair_get_features() 258 if (ir->bufsize > BUF_SIZE) { in iguanair_get_features() 260 ir->bufsize); in iguanair_get_features() 261 ir->bufsize = BUF_SIZE; in iguanair_get_features() 360 if (size + bytes > ir->bufsize) { in iguanair_tx()
|
/drivers/ide/ |
D | ide-ioctls.c | 120 int bufsize = 0, err = 0; in ide_cmd_ioctl() local 159 bufsize = SECTOR_SIZE * args[3]; in ide_cmd_ioctl() 160 buf = kzalloc(bufsize, GFP_KERNEL); in ide_cmd_ioctl() 186 if (copy_to_user((void __user *)(arg + 4), buf, bufsize)) in ide_cmd_ioctl()
|
/drivers/hwmon/ |
D | shtc1.c | 67 char *buf, int bufsize) in shtc1_update_values() argument 85 ret = i2c_master_recv(client, buf, bufsize); in shtc1_update_values() 86 if (ret != bufsize) { in shtc1_update_values()
|
/drivers/staging/speakup/ |
D | kobjects.c | 35 size_t bufsize = PAGE_SIZE; in chars_chartab_show() local 41 if (bufsize <= 1) in chars_chartab_show() 44 len = scnprintf(buf_pointer, bufsize, "%d\t%s\n", in chars_chartab_show() 68 scnprintf(buf_pointer, bufsize, "%d\t%s\n", i, cp); in chars_chartab_show() 70 bufsize -= len; in chars_chartab_show() 706 size_t bufsize = PAGE_SIZE; in message_show_helper() local 714 if (bufsize <= 1) in message_show_helper() 716 printed = scnprintf(buf_pointer, bufsize, "%d\t%s\n", in message_show_helper() 719 bufsize -= printed; in message_show_helper()
|
/drivers/firmware/efi/ |
D | efi-pstore.c | 369 efi_pstore_info.bufsize = 1024; in efivars_pstore_init() 374 efi_pstore_info.bufsize = 0; in efivars_pstore_init() 382 if (!efi_pstore_info.bufsize) in efivars_pstore_exit() 388 efi_pstore_info.bufsize = 0; in efivars_pstore_exit()
|
/drivers/usb/host/ |
D | imx21-dbg.c | 174 static char *format_ep(struct usb_host_endpoint *ep, char *buf, int bufsize) in format_ep() argument 177 snprintf(buf, bufsize, "ep_%02x (type:%02X kaddr:%p)", in format_ep() 182 snprintf(buf, bufsize, "none"); in format_ep() 186 static char *format_etd_dword0(u32 value, char *buf, int bufsize) in format_etd_dword0() argument 188 snprintf(buf, bufsize, in format_etd_dword0()
|
/drivers/input/touchscreen/ |
D | zet6223.c | 71 u8 bufsize = 3 + 4 * ts->fingernum; in zet6223_irq() local 77 ret = i2c_master_recv(ts->client, buf, bufsize); in zet6223_irq() 78 if (ret != bufsize) { in zet6223_irq()
|
/drivers/hid/usbhid/ |
D | hid-core.c | 394 if (padlen > usbhid->bufsize) in hid_submit_ctrl() 395 padlen = usbhid->bufsize; in hid_submit_ctrl() 844 usbhid->inbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers() 846 usbhid->outbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers() 849 usbhid->ctrlbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers() 962 usb_free_coherent(dev, usbhid->bufsize, usbhid->inbuf, usbhid->inbuf_dma); in hid_free_buffers() 963 usb_free_coherent(dev, usbhid->bufsize, usbhid->outbuf, usbhid->outbuf_dma); in hid_free_buffers() 965 usb_free_coherent(dev, usbhid->bufsize, usbhid->ctrlbuf, usbhid->ctrlbuf_dma); in hid_free_buffers() 1061 usbhid->bufsize = HID_MIN_BUFFER_SIZE; in usbhid_start() 1062 hid_find_max_report(hid, HID_INPUT_REPORT, &usbhid->bufsize); in usbhid_start() [all …]
|
/drivers/input/ |
D | evdev.c | 62 unsigned int bufsize; member 114 unsigned int mask = client->bufsize - 1; in __evdev_flush_queue() 173 client->head &= client->bufsize - 1; in __evdev_queue_syn_dropped() 177 client->tail = (client->head - 1) & (client->bufsize - 1); in __evdev_queue_syn_dropped() 235 client->head &= client->bufsize - 1; in __pass_event() 242 client->tail = (client->head - 2) & (client->bufsize - 1); in __pass_event() 499 unsigned int bufsize = evdev_compute_buffer_size(evdev->handle.dev); in evdev_open() local 501 bufsize * sizeof(struct input_event); in evdev_open() 511 client->bufsize = bufsize; in evdev_open() 578 client->tail &= client->bufsize - 1; in evdev_fetch_next_event()
|
/drivers/media/pci/saa7134/ |
D | saa7134-alsa.c | 162 dev->dmasound.bufsize, dev->dmasound.blocks); in saa7134_irq_alsa_done() 355 BUG_ON(!dev->dmasound.bufsize); in dsp_buffer_init() 358 (dev->dmasound.bufsize + PAGE_SIZE) >> PAGE_SHIFT); in dsp_buffer_init() 379 dev->dmasound.bufsize = 0; in dsp_buffer_free() 609 if (dev->dmasound.read_offset == dev->dmasound.bufsize) in snd_card_saa7134_capture_pointer() 703 dev->dmasound.bufsize = period_size * periods; in snd_card_saa7134_hw_params() 709 dev->dmasound.bufsize = 0; in snd_card_saa7134_hw_params() 738 substream->runtime->dma_bytes = dev->dmasound.bufsize; in snd_card_saa7134_hw_params()
|