Searched refs:bufsize (Results 1 - 25 of 88) sorted by relevance

1234

/drivers/sbus/char/
H A Dopenprom.c75 unsigned int bufsize; local
80 if (get_user(bufsize, &info->oprom_size))
83 if (bufsize == 0)
86 /* If the bufsize is too large, just limit it.
89 if (bufsize > OPROMMAXPARAM)
90 bufsize = OPROMMAXPARAM;
92 if (!(*opp_p = kzalloc(sizeof(int) + bufsize + 1, GFP_KERNEL)))
96 &info->oprom_array, bufsize)) {
100 return bufsize;
105 int n, bufsize; local
143 opromgetprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize) argument
160 opromnxtprop(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize) argument
190 opromsetopt(struct device_node *dp, struct openpromio *op, int bufsize) argument
198 opromnext(void __user *argp, unsigned int cmd, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data) argument
245 oprompci2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data) argument
270 oprompath2node(void __user *argp, struct device_node *dp, struct openpromio *op, int bufsize, DATA *data) argument
284 opromgetbootargs(void __user *argp, struct openpromio *op, int bufsize) argument
307 int bufsize, error = 0; local
[all...]
/drivers/s390/char/
H A Dvmcp.h23 unsigned int bufsize; member in struct:vmcp_session
H A Dvmcp.c40 session->bufsize = PAGE_SIZE;
54 free_pages((unsigned long)session->response, get_order(session->bufsize));
73 size = min_t(size_t, session->resp_size, session->bufsize);
107 get_order(session->bufsize));
114 session->resp_size = cpcmd(cmd, session->response, session->bufsize,
155 get_order(session->bufsize));
157 temp = get_user(session->bufsize, argp);
158 if (get_order(session->bufsize) > 8) {
159 session->bufsize = PAGE_SIZE;
/drivers/net/wireless/ath/carl9170/
H A Ddebug.c54 char *(*read)(struct ar9170 *ar, char *buf, size_t bufsize,
215 size_t bufsize, ssize_t *len)
217 ADD(buf, *len, bufsize, "jar: [");
221 *len += bitmap_scnprintf(&buf[*len], bufsize - *len,
224 ADD(buf, *len, bufsize, "]\n");
226 ADD(buf, *len, bufsize, "cookies: used:%3d / total:%3d, allocs:%d\n",
230 ADD(buf, *len, bufsize, "memory: free:%3d (%3d KiB) / total:%3d KiB)\n",
242 size_t bufsize, ssize_t *len)
244 ADD(buf, *len, bufsize, "%s QoS AC\n", modparam_noht ? "Hardware" :
247 ADD(buf, *len, bufsize, "[ V
214 carl9170_debugfs_mem_usage_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument
241 carl9170_debugfs_qos_stat_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument
285 carl9170_debugfs_format_frame(struct ar9170 *ar, struct sk_buff *skb, const char *prefix, char *buf, ssize_t *off, ssize_t bufsize) argument
302 carl9170_debugfs_ampdu_state_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument
362 carl9170_debugfs_queue_dump(struct ar9170 *ar, char *buf, ssize_t *len, size_t bufsize, struct sk_buff_head *queue) argument
388 carl9170_debugfs_sta_psm_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument
404 carl9170_debugfs_tx_stuck_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument
422 carl9170_debugfs_phy_noise_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument
442 carl9170_debugfs_vif_dump_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *len) argument
605 carl9170_debugfs_hw_ioread32_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *ret) argument
673 carl9170_debugfs_bug_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *ret) argument
701 carl9170_debugfs_erp_read(struct ar9170 *ar, char *buf, size_t bufsize, ssize_t *ret) argument
[all...]
/drivers/staging/lustre/lustre/ptlrpc/
H A Dsec_lproc.c58 static char *sec_flags2str(unsigned long flags, char *buf, int bufsize) argument
63 strlcat(buf, "reverse,", bufsize);
65 strlcat(buf, "rootonly,", bufsize);
67 strlcat(buf, "udesc,", bufsize);
69 strlcat(buf, "bulk,", bufsize);
71 strlcat(buf, "-,", bufsize);
H A Dsec.c196 char *buf, int bufsize)
199 snprintf(buf, bufsize, "hash:%s",
202 snprintf(buf, bufsize, "%s",
205 buf[bufsize - 1] = '\0';
210 char *sptlrpc_flavor2name(struct sptlrpc_flavor *sf, char *buf, int bufsize) argument
212 snprintf(buf, bufsize, "%s", sptlrpc_flavor2name_base(sf->sf_rpc));
223 strncat(buf, bspec, bufsize);
226 buf[bufsize - 1] = '\0';
231 char *sptlrpc_secflags2str(__u32 flags, char *buf, int bufsize) argument
236 strlcat(buf, "reverse,", bufsize);
195 sptlrpc_flavor2name_bulk(struct sptlrpc_flavor *sf, char *buf, int bufsize) argument
331 sptlrpc_cli_ctx_display(struct ptlrpc_cli_ctx *ctx, char *buf, int bufsize) argument
[all...]
/drivers/mtd/tests/
H A Dpagetest.c47 static int bufsize; variable
80 err = mtdtest_read(mtd, addr0, bufsize, twopages);
83 err = mtdtest_read(mtd, addrn - bufsize, bufsize, twopages);
86 memset(twopages, 0, bufsize);
87 err = mtdtest_read(mtd, addr, bufsize, twopages);
90 if (memcmp(twopages, writebuf + (j * pgsize), bufsize)) {
101 err = mtdtest_read(mtd, addr0, bufsize, twopages);
104 err = mtdtest_read(mtd, addrn - bufsize, bufsize, twopage
[all...]
H A Dstresstest.c51 static int bufsize; variable
73 offs %= bufsize;
82 len %= (bufsize - offs);
197 bufsize = mtd->erasesize * 2;
200 readbuf = vmalloc(bufsize);
201 writebuf = vmalloc(bufsize);
207 prandom_bytes(writebuf, bufsize);
H A Dsubpagetest.c45 static int bufsize; variable
320 bufsize = subpgsize * 32;
321 writebuf = kmalloc(bufsize, GFP_KERNEL);
324 readbuf = kmalloc(bufsize, GFP_KERNEL);
/drivers/net/wireless/b43legacy/
H A Ddebugfs.c45 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) argument
105 static ssize_t ucode_regs_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) argument
119 static ssize_t shm_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) argument
127 if (bufsize < sizeof(tmp))
132 bufsize -= sizeof(tmp);
138 static ssize_t txstat_read_file(struct b43legacy_wldev *dev, char *buf, size_t bufsize) argument
208 const size_t bufsize local
[all...]
/drivers/hid/usbhid/
H A Dusbhid.h67 unsigned int bufsize; /* URB buffer size */ member in struct:usbhid_device
H A Dhid-core.c392 if (padlen > usbhid->bufsize)
393 padlen = usbhid->bufsize;
828 usbhid->inbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL,
830 usbhid->outbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL,
833 usbhid->ctrlbuf = usb_alloc_coherent(dev, usbhid->bufsize, GFP_KERNEL,
954 usb_free_coherent(dev, usbhid->bufsize, usbhid->inbuf, usbhid->inbuf_dma);
955 usb_free_coherent(dev, usbhid->bufsize, usbhid->outbuf, usbhid->outbuf_dma);
957 usb_free_coherent(dev, usbhid->bufsize, usbhid->ctrlbuf, usbhid->ctrlbuf_dma);
1044 usbhid->bufsize = HID_MIN_BUFFER_SIZE;
1045 hid_find_max_report(hid, HID_INPUT_REPORT, &usbhid->bufsize);
[all...]
/drivers/hid/i2c-hid/
H A Di2c-hid.c138 unsigned int bufsize; /* i2c buffer size */ member in struct:i2c_hid
427 size_t bufsize)
464 u8 *inbuf = kzalloc(ihid->bufsize, GFP_KERNEL);
479 i2c_hid_init_report(report, inbuf, ihid->bufsize);
512 ihid->bufsize = 0;
533 ihid->bufsize = report_size;
551 ask_count = min(count + 2, (size_t)ihid->bufsize);
682 unsigned int bufsize = HID_MIN_BUFFER_SIZE; local
684 i2c_hid_find_max_report(hid, HID_INPUT_REPORT, &bufsize);
685 i2c_hid_find_max_report(hid, HID_OUTPUT_REPORT, &bufsize);
426 i2c_hid_init_report(struct hid_report *report, u8 *buffer, size_t bufsize) argument
[all...]
/drivers/net/wireless/b43/
H A Ddebugfs.c44 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)
156 char *buf, size_t bufsize)
235 char *buf, size_t bufsize)
299 char *buf, size_t bufsize)
363 char *buf, size_t bufsize)
439 char *buf, size_t bufsize)
511 const size_t bufsize local
79 shm16read__read_file(struct b43_wldev *dev, char *buf, size_t bufsize) argument
155 shm32read__read_file(struct b43_wldev *dev, char *buf, size_t bufsize) argument
234 mmio16read__read_file(struct b43_wldev *dev, char *buf, size_t bufsize) argument
298 mmio32read__read_file(struct b43_wldev *dev, char *buf, size_t bufsize) argument
362 txstat_read_file(struct b43_wldev *dev, char *buf, size_t bufsize) argument
438 loctls_read_file(struct b43_wldev *dev, char *buf, size_t bufsize) argument
[all...]
/drivers/ide/
H A Dide-ioctls.c120 int bufsize = 0, err = 0; local
158 bufsize = SECTOR_SIZE * args[3];
159 buf = kzalloc(bufsize, GFP_KERNEL);
185 if (copy_to_user((void __user *)(arg + 4), buf, bufsize))
/drivers/hwmon/
H A Dshtc1.c67 char *buf, int bufsize)
85 ret = i2c_master_recv(client, buf, bufsize);
86 if (ret != bufsize) {
65 shtc1_update_values(struct i2c_client *client, struct shtc1_data *data, char *buf, int bufsize) argument
/drivers/usb/host/
H A Dimx21-dbg.c174 static char *format_ep(struct usb_host_endpoint *ep, char *buf, int bufsize) argument
177 snprintf(buf, bufsize, "ep_%02x (type:%02X kaddr:%p)",
182 snprintf(buf, bufsize, "none");
186 static char *format_etd_dword0(u32 value, char *buf, int bufsize) argument
188 snprintf(buf, bufsize,
/drivers/bcma/
H A Ddriver_pci_host.c276 u32 bufsize; local
313 bufsize = *buflen;
314 if (!bufsize)
321 if ((bufsize + cap_data) > PCI_CONFIG_SPACE_SIZE)
322 bufsize = PCI_CONFIG_SPACE_SIZE - cap_data;
323 *buflen = bufsize;
324 while (bufsize--) {
/drivers/media/rc/
H A Diguanair.c40 uint8_t bufsize; member in struct:iguanair
108 ir->bufsize = ir->buf_in[4];
250 ir->bufsize = 150;
261 if (ir->bufsize > BUF_SIZE) {
263 ir->bufsize);
264 ir->bufsize = BUF_SIZE;
363 if (size + bytes > ir->bufsize) {
/drivers/media/pci/saa7164/
H A Dsaa7164-buffer.c247 saa7164_writel(port->bufsize, params->pitch * params->numberoflines);
257 dprintk(DBGLVL_BUF, " bufsize 0x%x = %d\n", port->bufsize,
258 saa7164_readl(port->bufsize));
/drivers/misc/carma/
H A Dcarma-fpga.c187 size_t bufsize; member in struct:fpga_device
299 priv->bufsize = 0;
328 buf = data_alloc_buffer(priv->bufsize);
485 priv->bufsize = (1 + NUM_FPGA) * REG_BLOCK_SIZE;
513 priv->bufsize += num_lag_ram * blk_size;
523 dev_dbg(priv->dev, "TOTAL BUFFER SIZE: %zu bytes\n", priv->bufsize);
740 BUG_ON(buf->size != priv->bufsize);
929 seq_printf(f, "bufsize: %d\n", priv->bufsize);
1194 if (!priv->enabled || dbuf->size != priv->bufsize) {
[all...]
/drivers/staging/speakup/
H A Dkobjects.c35 size_t bufsize = PAGE_SIZE; local
41 if (bufsize <= 1)
44 len = scnprintf(buf_pointer, bufsize, "%d\t%s\n",
68 scnprintf(buf_pointer, bufsize, "%d\t%s\n", i, cp);
70 bufsize -= len;
701 size_t bufsize = PAGE_SIZE; local
709 if (bufsize <= 1)
711 printed = scnprintf(buf_pointer, bufsize, "%d\t%s\n",
714 bufsize -= printed;
/drivers/input/
H A Devdev.c58 unsigned int bufsize; member in struct:evdev_client
66 unsigned int mask = client->bufsize - 1;
126 client->head &= client->bufsize - 1;
130 client->tail = (client->head - 1) & (client->bufsize - 1);
141 client->head &= client->bufsize - 1;
148 client->tail = (client->head - 2) & (client->bufsize - 1);
407 unsigned int bufsize = evdev_compute_buffer_size(evdev->handle.dev); local
409 bufsize * sizeof(struct input_event);
419 client->bufsize = bufsize;
[all...]
/drivers/media/pci/saa7134/
H A Dsaa7134-alsa.c174 dev->dmasound.bufsize, dev->dmasound.blocks);
369 BUG_ON(!dev->dmasound.bufsize);
372 (dev->dmasound.bufsize + PAGE_SIZE) >> PAGE_SHIFT);
393 dev->dmasound.bufsize = 0;
623 if (dev->dmasound.read_offset == dev->dmasound.bufsize)
717 dev->dmasound.bufsize = period_size * periods;
723 dev->dmasound.bufsize = 0;
752 substream->runtime->dma_bytes = dev->dmasound.bufsize;
/drivers/media/usb/b2c2/
H A Dflexcop-usb.c353 deb_ts("urb completed, bufsize: %d actlen; %d\n",
402 int bufsize = B2C2_USB_NUM_ISO_URB * B2C2_USB_FRAMES_PER_ISO * local
408 B2C2_USB_FRAMES_PER_ISO, frame_size, bufsize);
411 bufsize, GFP_KERNEL, &fc_usb->dma_addr);
415 memset(fc_usb->iso_buffer, 0, bufsize);
416 fc_usb->buffer_size = bufsize;

Completed in 6159 milliseconds

1234