Home
last modified time | relevance | path

Searched refs:BUF_SIZE (Results 1 – 15 of 15) sorted by relevance

/linux/tools/testing/selftests/bpf/
H A Durandom_read.c19 #define BUF_SIZE 256 macro
36 char buf[BUF_SIZE]; in urandom_read()
40 read(fd, buf, BUF_SIZE); in urandom_read()
43 urand_read_without_sema(i, count, BUF_SIZE); in urandom_read()
44 STAP_PROBE3(urand, read_with_sema, i, count, BUF_SIZE); in urandom_read()
47 urandlib_read_without_sema(i, count, BUF_SIZE); in urandom_read()
48 urandlib_read_with_sema(i, count, BUF_SIZE); in urandom_read()
/linux/tools/testing/selftests/net/
H A Dtcp_inq.c29 #define BUF_SIZE 8192 macro
68 buf = malloc(BUF_SIZE); in start_server()
77 r = send(fd, buf, BUF_SIZE, 0); in start_server()
81 if (r != BUF_SIZE) in start_server()
157 buf = malloc(BUF_SIZE); in main()
159 iov[0].iov_len = BUF_SIZE / 2; in main()
170 if (inq != BUF_SIZE - iov[0].iov_len) { in main()
/linux/sound/parisc/
H A Dharmony.h64 #define BUF_SIZE PAGE_SIZE macro
66 #define MAX_BUF_SIZE (MAX_BUFS * BUF_SIZE)
71 #define GRAVEYARD_BUFSZ (GRAVEYARD_BUFS*BUF_SIZE)
73 #define SILENCE_BUFSZ (SILENCE_BUFS*BUF_SIZE)
H A Dharmony.c255 .period_bytes_min = BUF_SIZE,
256 .period_bytes_max = BUF_SIZE,
276 .period_bytes_min = BUF_SIZE,
277 .period_bytes_max = BUF_SIZE,
602 BUF_SIZE*GRAVEYARD_BUFS, in snd_harmony_pcm_init()
612 BUF_SIZE*SILENCE_BUFS, in snd_harmony_pcm_init()
/linux/tools/perf/util/
H A Dperf_event_attr_fprintf.c267 #define BUF_SIZE 1024 macro
269 #define p_hex(val) snprintf(buf, BUF_SIZE, "%#"PRIx64, (uint64_t)(val))
270 #define p_unsigned(val) snprintf(buf, BUF_SIZE, "%"PRIu64, (uint64_t)(val))
271 #define p_signed(val) snprintf(buf, BUF_SIZE, "%"PRId64, (int64_t)(val))
272 #define p_sample_type(val) __p_sample_type(buf, BUF_SIZE, val)
273 #define p_branch_sample_type(val) __p_branch_sample_type(buf, BUF_SIZE, val)
274 #define p_read_format(val) __p_read_format(buf, BUF_SIZE, val)
275 #define p_type_id(val) __p_type_id(buf, BUF_SIZE, pmu, val)
276 #define p_config_id(val) __p_config_id(pmu, buf, BUF_SIZE, attr->type, val)
312 char buf[BUF_SIZE]; in perf_event_attr__fprintf()
[all...]
/linux/drivers/tty/
H A Dehv_bytechan.c41 #define BUF_SIZE 2048 macro
52 u8 buf[BUF_SIZE]; /* transmit circular buffer */
419 CIRC_CNT_TO_END(bc->head, bc->tail, BUF_SIZE), in ehv_bc_tx_dequeue()
426 bc->tail = (bc->tail + len) & (BUF_SIZE - 1); in ehv_bc_tx_dequeue()
428 count = CIRC_CNT(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tx_dequeue()
433 if (CIRC_CNT(bc->head, bc->tail, BUF_SIZE)) in ehv_bc_tx_dequeue()
481 len = CIRC_SPACE_TO_END(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write()
486 bc->head = (bc->head + len) & (BUF_SIZE - 1); in ehv_bc_tty_write()
548 count = CIRC_SPACE(bc->head, bc->tail, BUF_SIZE); in ehv_bc_tty_write_room()
/linux/drivers/input/joystick/
H A Djoydump.c23 #define BUF_SIZE 256 macro
64 buf = kmalloc_objs(struct joydump, BUF_SIZE); in joydump_connect()
83 while (i < BUF_SIZE && t < timeout) { in joydump_connect()
/linux/drivers/net/ethernet/mellanox/mlx4/
H A Dmcg.c903 #define BUF_SIZE 256 in mlx4_err_rule() macro
905 char buf[BUF_SIZE]; in mlx4_err_rule()
909 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
916 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
919 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
923 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
930 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
934 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
942 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
946 len += scnprintf(buf + len, BUF_SIZE - len, in mlx4_err_rule()
[all …]
/linux/samples/watch_queue/
H A Dwatch_test.c36 #define BUF_SIZE 256 macro
170 if (ioctl(fd, IOC_WATCH_QUEUE_SET_SIZE, BUF_SIZE) == -1) { in main()
/linux/tools/testing/selftests/cgroup/lib/include/
H A Dcgroup_util.h5 #ifndef BUF_SIZE
6 #define BUF_SIZE 4096 macro
/linux/Documentation/usb/
H A Dgadget_printer.rst167 #define BUF_SIZE 512
221 static char buf[BUF_SIZE];
231 bytes_read = read(fd[0].fd, buf, BUF_SIZE);
272 static char buf[BUF_SIZE];
274 int bytes_read = fread(buf, 1, BUF_SIZE, stdin);
318 static char buf[BUF_SIZE];
331 bytes_read = read(fd, buf, BUF_SIZE);
/linux/drivers/platform/chrome/
H A Dcros_usbpd_logger.c28 #define BUF_SIZE 80 macro
58 i = vsnprintf(buf + pos, BUF_SIZE - pos, fmt, args); in append_str()
89 char buf[BUF_SIZE + 1]; in cros_usbpd_print_log_entry()
/linux/tools/mm/
H A Dpage_owner_sort.c683 #define BUF_SIZE (128 * 1024) in main()
860 buf = malloc(BUF_SIZE); in main()
861 ext_buf = malloc(BUF_SIZE); in main()
868 int buf_len = read_block(buf, ext_buf, BUF_SIZE, fin); in main()
635 #define BUF_SIZE global() macro
/linux/scripts/kconfig/lxdialog/
H A Ddialog.h26 #define BUF_SIZE (10*1024) macro
/linux/tools/testing/selftests/cgroup/
H A Dtest_core.c90 char buf[BUF_SIZE]; in test_cgcore_destroy()