/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, 215 size_t bufsize, ssize_t *len) in carl9170_debugfs_mem_usage_read() argument 217 ADD(buf, *len, bufsize, "jar: ["); in carl9170_debugfs_mem_usage_read() 221 *len += bitmap_scnprintf(&buf[*len], bufsize - *len, in carl9170_debugfs_mem_usage_read() 224 ADD(buf, *len, bufsize, "]\n"); in carl9170_debugfs_mem_usage_read() 226 ADD(buf, *len, bufsize, "cookies: used:%3d / total:%3d, allocs:%d\n", in carl9170_debugfs_mem_usage_read() 230 ADD(buf, *len, bufsize, "memory: free:%3d (%3d KiB) / total:%3d KiB)\n", in carl9170_debugfs_mem_usage_read() 242 size_t bufsize, ssize_t *len) in carl9170_debugfs_qos_stat_read() argument 244 ADD(buf, *len, bufsize, "%s QoS AC\n", modparam_noht ? "Hardware" : in carl9170_debugfs_qos_stat_read() 247 ADD(buf, *len, bufsize, "[ VO VI " in carl9170_debugfs_qos_stat_read() [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 320 bufsize = subpgsize * 32; in mtd_subpagetest_init() 321 writebuf = kmalloc(bufsize, GFP_KERNEL); in mtd_subpagetest_init() 324 readbuf = kmalloc(bufsize, GFP_KERNEL); in mtd_subpagetest_init()
|
/drivers/s390/char/ |
D | vmcp.c | 40 session->bufsize = PAGE_SIZE; in vmcp_open() 54 free_pages((unsigned long)session->response, get_order(session->bufsize)); in vmcp_release() 73 size = min_t(size_t, session->resp_size, session->bufsize); in vmcp_read() 107 get_order(session->bufsize)); in vmcp_write() 114 session->resp_size = cpcmd(cmd, session->response, session->bufsize, in vmcp_write() 155 get_order(session->bufsize)); in vmcp_ioctl() 157 temp = get_user(session->bufsize, argp); in vmcp_ioctl() 158 if (get_order(session->bufsize) > 8) { in vmcp_ioctl() 159 session->bufsize = PAGE_SIZE; in vmcp_ioctl()
|
/drivers/net/wireless/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/lustre/lustre/ptlrpc/ |
D | sec_lproc.c | 58 static char *sec_flags2str(unsigned long flags, char *buf, int bufsize) in sec_flags2str() argument 63 strlcat(buf, "reverse,", bufsize); in sec_flags2str() 65 strlcat(buf, "rootonly,", bufsize); in sec_flags2str() 67 strlcat(buf, "udesc,", bufsize); in sec_flags2str() 69 strlcat(buf, "bulk,", bufsize); in sec_flags2str() 71 strlcat(buf, "-,", bufsize); in sec_flags2str()
|
D | sec.c | 196 char *buf, int bufsize) in sptlrpc_flavor2name_bulk() argument 199 snprintf(buf, bufsize, "hash:%s", in sptlrpc_flavor2name_bulk() 202 snprintf(buf, bufsize, "%s", in sptlrpc_flavor2name_bulk() 205 buf[bufsize - 1] = '\0'; in sptlrpc_flavor2name_bulk() 210 char *sptlrpc_flavor2name(struct sptlrpc_flavor *sf, char *buf, int bufsize) in sptlrpc_flavor2name() argument 212 snprintf(buf, bufsize, "%s", sptlrpc_flavor2name_base(sf->sf_rpc)); in sptlrpc_flavor2name() 223 strncat(buf, bspec, bufsize); in sptlrpc_flavor2name() 226 buf[bufsize - 1] = '\0'; in sptlrpc_flavor2name() 231 char *sptlrpc_secflags2str(__u32 flags, char *buf, int bufsize) in sptlrpc_secflags2str() argument 236 strlcat(buf, "reverse,", bufsize); in sptlrpc_secflags2str() [all …]
|
/drivers/hid/i2c-hid/ |
D | i2c-hid.c | 138 unsigned int bufsize; /* i2c buffer size */ member 286 if (data_len > ihid->bufsize) in i2c_hid_set_or_send_report() 379 if (size > ihid->bufsize) in i2c_hid_get_input() 380 size = ihid->bufsize; in i2c_hid_get_input() 435 size_t bufsize) in i2c_hid_init_report() argument 472 u8 *inbuf = kzalloc(ihid->bufsize, GFP_KERNEL); in i2c_hid_init_reports() 487 i2c_hid_init_report(report, inbuf, ihid->bufsize); in i2c_hid_init_reports() 522 ihid->bufsize = 0; in i2c_hid_free_buffers() 545 ihid->bufsize = report_size; in i2c_hid_alloc_buffers() 563 ask_count = min(count + 2, (size_t)ihid->bufsize); in i2c_hid_get_raw_report() [all …]
|
/drivers/net/wireless/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/bcma/ |
D | driver_pci_host.c | 276 u32 bufsize; in bcma_find_pci_capability() local 313 bufsize = *buflen; in bcma_find_pci_capability() 314 if (!bufsize) in bcma_find_pci_capability() 321 if ((bufsize + cap_data) > PCI_CONFIG_SPACE_SIZE) in bcma_find_pci_capability() 322 bufsize = PCI_CONFIG_SPACE_SIZE - cap_data; in bcma_find_pci_capability() 323 *buflen = bufsize; in bcma_find_pci_capability() 324 while (bufsize--) { in bcma_find_pci_capability()
|
/drivers/media/rc/ |
D | iguanair.c | 40 uint8_t bufsize; member 108 ir->bufsize = ir->buf_in[4]; in process_ir_data() 250 ir->bufsize = 150; in iguanair_get_features() 261 if (ir->bufsize > BUF_SIZE) { in iguanair_get_features() 263 ir->bufsize); in iguanair_get_features() 264 ir->bufsize = BUF_SIZE; in iguanair_get_features() 363 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 158 bufsize = SECTOR_SIZE * args[3]; in ide_cmd_ioctl() 159 buf = kzalloc(bufsize, GFP_KERNEL); in ide_cmd_ioctl() 185 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/input/ |
D | evdev.c | 58 unsigned int bufsize; member 66 unsigned int mask = client->bufsize - 1; in __evdev_flush_queue() 126 client->head &= client->bufsize - 1; in evdev_queue_syn_dropped() 130 client->tail = (client->head - 1) & (client->bufsize - 1); in evdev_queue_syn_dropped() 141 client->head &= client->bufsize - 1; in __pass_event() 148 client->tail = (client->head - 2) & (client->bufsize - 1); in __pass_event() 402 unsigned int bufsize = evdev_compute_buffer_size(evdev->handle.dev); in evdev_open() local 404 bufsize * sizeof(struct input_event); in evdev_open() 414 client->bufsize = bufsize; in evdev_open() 483 client->tail &= client->bufsize - 1; in evdev_fetch_next_event()
|
/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() 701 size_t bufsize = PAGE_SIZE; in message_show_helper() local 709 if (bufsize <= 1) in message_show_helper() 711 printed = scnprintf(buf_pointer, bufsize, "%d\t%s\n", in message_show_helper() 714 bufsize -= printed; in message_show_helper()
|
/drivers/misc/carma/ |
D | carma-fpga.c | 187 size_t bufsize; member 299 priv->bufsize = 0; in data_free_buffers() 328 buf = data_alloc_buffer(priv->bufsize); in data_alloc_buffers() 485 priv->bufsize = (1 + NUM_FPGA) * REG_BLOCK_SIZE; in data_calculate_bufsize() 513 priv->bufsize += num_lag_ram * blk_size; in data_calculate_bufsize() 523 dev_dbg(priv->dev, "TOTAL BUFFER SIZE: %zu bytes\n", priv->bufsize); in data_calculate_bufsize() 740 BUG_ON(buf->size != priv->bufsize); in data_irq() 929 seq_printf(f, "bufsize: %d\n", priv->bufsize); in data_debug_show() 1194 if (!priv->enabled || dbuf->size != priv->bufsize) { in data_read()
|
/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/hid/usbhid/ |
D | hid-core.c | 392 if (padlen > usbhid->bufsize) in hid_submit_ctrl() 393 padlen = usbhid->bufsize; in hid_submit_ctrl() 828 usbhid->inbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers() 830 usbhid->outbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers() 833 usbhid->ctrlbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL, in hid_alloc_buffers() 946 usb_free_coherent(dev, usbhid->bufsize, usbhid->inbuf, usbhid->inbuf_dma); in hid_free_buffers() 947 usb_free_coherent(dev, usbhid->bufsize, usbhid->outbuf, usbhid->outbuf_dma); in hid_free_buffers() 949 usb_free_coherent(dev, usbhid->bufsize, usbhid->ctrlbuf, usbhid->ctrlbuf_dma); in hid_free_buffers() 1046 usbhid->bufsize = HID_MIN_BUFFER_SIZE; in usbhid_start() 1047 hid_find_max_report(hid, HID_INPUT_REPORT, &usbhid->bufsize); in usbhid_start() [all …]
|
/drivers/media/usb/b2c2/ |
D | flexcop-usb.c | 402 int bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * in flexcop_usb_transfer_init() local 408 B2C2_USB_FRAMES_PER_ISO, frame_size, bufsize); in flexcop_usb_transfer_init() 411 bufsize, GFP_KERNEL, &fc_usb->dma_addr); in flexcop_usb_transfer_init() 415 memset(fc_usb->iso_buffer, 0, bufsize); in flexcop_usb_transfer_init() 416 fc_usb->buffer_size = bufsize; in flexcop_usb_transfer_init()
|
/drivers/media/pci/saa7134/ |
D | saa7134-alsa.c | 174 dev->dmasound.bufsize, dev->dmasound.blocks); in saa7134_irq_alsa_done() 369 BUG_ON(!dev->dmasound.bufsize); in dsp_buffer_init() 372 (dev->dmasound.bufsize + PAGE_SIZE) >> PAGE_SHIFT); in dsp_buffer_init() 393 dev->dmasound.bufsize = 0; in dsp_buffer_free() 623 if (dev->dmasound.read_offset == dev->dmasound.bufsize) in snd_card_saa7134_capture_pointer() 717 dev->dmasound.bufsize = period_size * periods; in snd_card_saa7134_hw_params() 723 dev->dmasound.bufsize = 0; in snd_card_saa7134_hw_params() 752 substream->runtime->dma_bytes = dev->dmasound.bufsize; in snd_card_saa7134_hw_params()
|
/drivers/net/wireless/orinoco/ |
D | hermes.c | 482 unsigned bufsize, u16 *length, void *buf) in hermes_read_ltv() argument 489 if (bufsize % 2) in hermes_read_ltv() 514 if (HERMES_RECLEN_TO_BYTES(rlength) > bufsize) in hermes_read_ltv() 518 HERMES_RECLEN_TO_BYTES(rlength), bufsize, rid, rlength); in hermes_read_ltv() 520 nwords = min((unsigned)rlength - 1, bufsize / 2); in hermes_read_ltv()
|
/drivers/staging/lustre/lustre/include/ |
D | lustre_sec.h | 390 char *buf, int bufsize); 933 char *buf, int bufsize); 934 char *sptlrpc_flavor2name(struct sptlrpc_flavor *sf, char *buf, int bufsize); 935 char *sptlrpc_secflags2str(__u32 flags, char *buf, int bufsize); 1014 int sptlrpc_cli_ctx_display(struct ptlrpc_cli_ctx *ctx, char *buf, int bufsize);
|
/drivers/block/ |
D | cciss_scsi.c | 917 unsigned char *buf, int bufsize, in cciss_scsi_do_simple_cmd() argument 943 bufsize, DMA_FROM_DEVICE); in cciss_scsi_do_simple_cmd() 950 cciss_unmap_one(h->pdev, c, bufsize, DMA_FROM_DEVICE); in cciss_scsi_do_simple_cmd() 1031 unsigned char bufsize) in cciss_scsi_do_inquiry() argument 1054 cdb[4] = bufsize; in cciss_scsi_do_inquiry() 1057 6, buf, bufsize, XFER_READ); in cciss_scsi_do_inquiry() 1093 ReportLunData_struct *buf, int bufsize) in cciss_scsi_do_report_phys_luns() argument 1117 cdb[6] = (bufsize >> 24) & 0xFF; //MSB in cciss_scsi_do_report_phys_luns() 1118 cdb[7] = (bufsize >> 16) & 0xFF; in cciss_scsi_do_report_phys_luns() 1119 cdb[8] = (bufsize >> 8) & 0xFF; in cciss_scsi_do_report_phys_luns() [all …]
|