/linux/drivers/sbus/char/ |
A D | openprom.c | 62 unsigned int bufsize; in copyin() local 70 if (bufsize == 0) in copyin() 77 bufsize = OPROMMAXPARAM; in copyin() 87 return bufsize; in copyin() 92 int n, bufsize; in getstrings() local 103 n = bufsize = 0; in getstrings() 117 return bufsize; in getstrings() 277 if (len > bufsize) in opromgetbootargs() 295 int bufsize, error = 0; in openprom_sunos_ioctl() local 304 if (bufsize < 0) in openprom_sunos_ioctl() [all …]
|
/linux/drivers/net/wireless/ath/carl9170/ |
A D | debug.c | 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() 240 size_t bufsize, ssize_t *len) in carl9170_debugfs_qos_stat_read() argument 285 ssize_t *off, ssize_t bufsize) in carl9170_debugfs_format_frame() argument 301 size_t bufsize, ssize_t *len) in carl9170_debugfs_ampdu_state_read() argument 343 len, bufsize); in carl9170_debugfs_ampdu_state_read() 367 len, bufsize); in carl9170_debugfs_queue_dump() 383 size_t bufsize, ssize_t *len) in carl9170_debugfs_sta_psm_read() argument 399 size_t bufsize, ssize_t *len) in carl9170_debugfs_tx_stuck_read() argument 417 size_t bufsize, ssize_t *len) in carl9170_debugfs_phy_noise_read() argument [all …]
|
/linux/samples/bpf/ |
A D | tcp_bufs_kern.c | 28 int bufsize = 1500000; in bpf_bufs() local 57 rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, in bpf_bufs() 58 sizeof(bufsize)); in bpf_bufs() 60 &bufsize, sizeof(bufsize)); in bpf_bufs() 67 rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, in bpf_bufs() 68 sizeof(bufsize)); in bpf_bufs() 70 &bufsize, sizeof(bufsize)); in bpf_bufs()
|
A D | tcp_iw_kern.c | 28 int bufsize = 1500000; in bpf_iw() local 58 rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, in bpf_iw() 59 sizeof(bufsize)); in bpf_iw() 61 &bufsize, sizeof(bufsize)); in bpf_iw() 69 rv = bpf_setsockopt(skops, SOL_SOCKET, SO_SNDBUF, &bufsize, in bpf_iw() 70 sizeof(bufsize)); in bpf_iw() 72 &bufsize, sizeof(bufsize)); in bpf_iw()
|
A D | tcp_clamp_kern.c | 28 int bufsize = 150000; in bpf_clamp() local 63 &bufsize, sizeof(bufsize)); in bpf_clamp() 65 SO_RCVBUF, &bufsize, in bpf_clamp() 66 sizeof(bufsize)); in bpf_clamp() 79 SO_SNDBUF, &bufsize, in bpf_clamp() 80 sizeof(bufsize)); in bpf_clamp() 82 SO_RCVBUF, &bufsize, in bpf_clamp() 83 sizeof(bufsize)); in bpf_clamp()
|
/linux/lib/ |
A D | oid_registry.c | 130 int sprint_oid(const void *data, size_t datasize, char *buffer, size_t bufsize) in sprint_oid() argument 142 ret = count = snprintf(buffer, bufsize, "%u.%u", n / 40, n % 40); in sprint_oid() 143 if (count >= bufsize) in sprint_oid() 146 bufsize -= count; in sprint_oid() 163 ret += count = snprintf(buffer, bufsize, ".%lu", num); in sprint_oid() 164 if (count >= bufsize) in sprint_oid() 167 bufsize -= count; in sprint_oid() 173 snprintf(buffer, bufsize, "(bad)"); in sprint_oid() 187 int sprint_OID(enum OID oid, char *buffer, size_t bufsize) in sprint_OID() argument 195 buffer, bufsize); in sprint_OID()
|
/linux/drivers/s390/char/ |
A 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() 219 ret = get_user(session->bufsize, argp); in vmcp_ioctl() 221 session->bufsize = PAGE_SIZE; in vmcp_ioctl() 222 if (!session->bufsize || get_order(session->bufsize) > 8) { in vmcp_ioctl() [all …]
|
/linux/sound/soc/intel/skylake/ |
A D | skl-sst-cldma.c | 86 (ctx->cl_dev.frags * ctx->cl_dev.bufsize)); in skl_cldma_setup_bdle() 91 bdl[2] = cpu_to_le32(ctx->cl_dev.bufsize); in skl_cldma_setup_bdle() 93 size -= ctx->cl_dev.bufsize; in skl_cldma_setup_bdle() 202 unsigned int size_b = ctx->cl_dev.bufsize - in skl_cldma_fill_buffer() 261 if (bytes_left > ctx->cl_dev.bufsize) { in skl_cldma_copy_to_buf() 270 size = ctx->cl_dev.bufsize; in skl_cldma_copy_to_buf() 285 <= ctx->cl_dev.bufsize) { in skl_cldma_copy_to_buf() 289 (ctx->cl_dev.bufsize - in skl_cldma_copy_to_buf() 328 ctx->cl_dev.bufsize = SKL_MAX_BUFFER_SIZE; in skl_cldma_prepare() 359 &bdl, ctx->cl_dev.bufsize, 1); in skl_cldma_prepare() [all …]
|
/linux/drivers/mtd/tests/ |
A 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() 92 err = mtdtest_read(mtd, addrn - bufsize, bufsize, twopages); in verify_eraseblock() 95 memset(twopages, 0, bufsize); in verify_eraseblock() 101 if (memcmp(twopages, boundary, bufsize)) { in verify_eraseblock() 361 bufsize = pgsize * 2; in mtd_pagetest_init() 365 twopages = kmalloc(bufsize, GFP_KERNEL); in mtd_pagetest_init() [all …]
|
A 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()
|
/linux/scripts/dtc/libfdt/ |
A D | fdt_sw.c | 115 if (bufsize < hdrsize) in fdt_create_with_flags() 121 memset(buf, 0, bufsize); in fdt_create_with_flags() 134 fdt_set_totalsize(fdt, bufsize); in fdt_create_with_flags() 143 int fdt_create(void *buf, int bufsize) in fdt_create() argument 145 return fdt_create_with_flags(buf, bufsize, 0); in fdt_create() 148 int fdt_resize(void *fdt, void *buf, int bufsize) in fdt_resize() argument 155 if (bufsize < 0) in fdt_resize() 165 if ((headsize + tailsize) > (unsigned)bufsize) in fdt_resize() 169 newtail = (char *)buf + bufsize - tailsize; in fdt_resize() 181 fdt_set_totalsize(buf, bufsize); in fdt_resize() [all …]
|
A D | fdt_empty_tree.c | 13 int fdt_create_empty_tree(void *buf, int bufsize) in fdt_create_empty_tree() argument 17 err = fdt_create(buf, bufsize); in fdt_create_empty_tree() 37 return fdt_open_into(buf, buf, bufsize); in fdt_create_empty_tree()
|
/linux/drivers/net/wireless/broadcom/b43legacy/ |
A 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 114 if (bufsize < sizeof(tmp)) in shm_read_file() 119 bufsize -= sizeof(tmp); in shm_read_file() 195 const size_t bufsize = 1024 * 16; /* 16 KiB buffer */ in b43legacy_debugfs_read() local 196 const size_t buforder = get_order(bufsize); in b43legacy_debugfs_read() 225 memset(buf, 0, bufsize); in b43legacy_debugfs_read() 228 ret = dfops->read(dev, buf, bufsize); in b43legacy_debugfs_read() [all …]
|
/linux/arch/powerpc/platforms/pseries/ |
A D | reconfig.c | 194 static int do_add_node(char *buf, size_t bufsize) in do_add_node() argument 202 end = buf + bufsize; in do_add_node() 252 static char *parse_node(char *buf, size_t bufsize, struct device_node **npp) in parse_node() argument 272 static int do_add_property(char *buf, size_t bufsize) in do_add_property() argument 279 end = buf + bufsize; in do_add_property() 280 buf = parse_node(buf, bufsize, &np); in do_add_property() 297 static int do_remove_property(char *buf, size_t bufsize) in do_remove_property() argument 301 buf = parse_node(buf, bufsize, &np); in do_remove_property() 316 static int do_update_property(char *buf, size_t bufsize) in do_update_property() argument 323 buf = parse_node(buf, bufsize, &np); in do_update_property() [all …]
|
/linux/drivers/staging/greybus/ |
A D | hid.c | 29 unsigned int bufsize; member 175 ghid->bufsize = 0; in gb_hid_free_buffers() 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() 323 bufsize = HID_MAX_BUFFER_SIZE; in gb_hid_start() [all …]
|
/linux/drivers/nvme/host/ |
A 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()
|
/linux/arch/x86/lib/ |
A D | cmdline.c | 122 const char *option, char *buffer, int bufsize) in __cmdline_find_option() argument 191 if (++len < bufsize) in __cmdline_find_option() 198 if (bufsize) in __cmdline_find_option() 210 int bufsize) in cmdline_find_option() argument 213 buffer, bufsize); in cmdline_find_option()
|
/linux/net/sunrpc/auth_gss/ |
A D | gss_generic_token.c | 118 der_read_length(unsigned char **buf, int *bufsize) in der_read_length() argument 123 if (*bufsize < 1) in der_read_length() 126 (*bufsize)--; in der_read_length() 128 if ((sf &= 0x7f) > ((*bufsize)-1)) in der_read_length() 135 (*bufsize)--; in der_read_length()
|
/linux/tools/testing/selftests/powerpc/alignment/ |
A D | alignment_handler.c | 52 int bufsize; variable 235 ci0 = mmap(NULL, bufsize, PROT_WRITE | PROT_READ, MAP_SHARED, in do_test() 237 ci1 = mmap(NULL, bufsize, PROT_WRITE | PROT_READ, MAP_SHARED, in do_test() 238 fd, cioffset + bufsize); in do_test() 246 rc = posix_memalign(&mem0, bufsize, bufsize); in do_test() 252 rc = posix_memalign(&mem1, bufsize, bufsize); in do_test() 272 memcpy(ci0, mem0, bufsize); in do_test() 273 memcpy(ci1, mem1, bufsize); /* initialise output to the same */ in do_test() 299 munmap(ci0, bufsize); in do_test() 300 munmap(ci1, bufsize); in do_test() [all …]
|
/linux/sound/hda/ |
A D | hdac_stream.c | 216 snd_hdac_stream_writel(azx_dev, SD_CBL, azx_dev->bufsize); in snd_hdac_stream_setup() 272 azx_dev->bufsize = 0; in snd_hdac_stream_cleanup() 428 periods = azx_dev->bufsize / period_bytes; in snd_hdac_stream_setup_periods() 475 azx_dev->bufsize, period_bytes); in snd_hdac_stream_setup_periods() 492 unsigned int bufsize, period_bytes; in snd_hdac_stream_set_params() local 500 bufsize = snd_pcm_lib_buffer_bytes(substream); in snd_hdac_stream_set_params() 503 if (bufsize != azx_dev->bufsize || in snd_hdac_stream_set_params() 507 azx_dev->bufsize = bufsize; in snd_hdac_stream_set_params() 703 azx_dev->bufsize = byte_size; in snd_hdac_dsp_prepare() 767 azx_dev->bufsize = 0; in snd_hdac_dsp_cleanup()
|
/linux/drivers/net/wireless/broadcom/b43/ |
A D | debugfs.c | 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 499 const size_t buforder = get_order(bufsize); in b43_debugfs_read() 528 memset(buf, 0, bufsize); in b43_debugfs_read() [all …]
|
/linux/fs/xfs/ |
A D | xfs_dir2_readdir.c | 242 size_t bufsize, in xfs_dir2_leaf_readbuf() argument 291 ra_want = howmany(bufsize + geo->blksize, (1 << geo->fsblog)); in xfs_dir2_leaf_readbuf() 347 size_t bufsize) in xfs_dir2_leaf_getdents() argument 394 error = xfs_dir2_leaf_readbuf(args, bufsize, &curoff, in xfs_dir2_leaf_getdents() 479 bufsize = bufsize > length ? bufsize - length : 0; in xfs_dir2_leaf_getdents() 507 size_t bufsize) in xfs_readdir() argument 532 rval = xfs_dir2_leaf_getdents(&args, ctx, bufsize); in xfs_readdir()
|
/linux/drivers/net/netdevsim/ |
A 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()
|
/linux/scripts/dtc/ |
A D | util.c | 239 size_t bufsize = 1024, offset = 0; in utilfdt_read_err() local 250 buf = xmalloc(bufsize); in utilfdt_read_err() 253 if (offset == bufsize) { in utilfdt_read_err() 254 bufsize *= 2; in utilfdt_read_err() 255 buf = xrealloc(buf, bufsize); in utilfdt_read_err() 258 ret = read(fd, &buf[offset], bufsize - offset); in utilfdt_read_err() 273 *len = bufsize; in utilfdt_read_err()
|
/linux/drivers/scsi/ |
A 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()
|