Home
last modified time | relevance | path

Searched refs:BUF_SIZE (Results 1 – 21 of 21) 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/lib/tests/
H A Dprintf_kunit.c26 #define BUF_SIZE 256 macro
50 memset(alloced_buffer, FILL_CHAR, BUF_SIZE + 2*PAD_SIZE); in do_test()
70 if (memchr_inv(test_buffer, FILL_CHAR, BUF_SIZE + PAD_SIZE)) { in do_test()
93 if (memchr_inv(test_buffer + bufsize, FILL_CHAR, BUF_SIZE + PAD_SIZE - bufsize)) { in do_test()
116 if (elen >= BUF_SIZE) { in __test()
118 "%s:%d: error in test suite: expected length (%d) >= BUF_SIZE (%d). fmt=\"%s\"\n", in __test()
119 file, line, elen, BUF_SIZE, fmt); in __test()
131 do_test(kunittest, file, line, BUF_SIZE, expect, elen, fmt, ap); in __test()
133 /* Since elen < BUF_SIZE, we have 1 <= rand <= BUF_SIZE in __test()
[all...]
H A Dscanf_kunit.c15 #define BUF_SIZE 1024 macro
184 snprintf(test_buffer, BUF_SIZE, gen_fmt, expect_val); \
347 append_delim(test_buffer, &pos, BUF_SIZE, \
348 fmt_buffer, &fmt_pos, BUF_SIZE, \
351 append_fmt(test_buffer, &pos, BUF_SIZE, gen_fmt, expect[i]); \
352 append_fmt(fmt_buffer, &fmt_pos, BUF_SIZE, "%%%s", scan_fmt); \
375 append_delim(test_buffer, &pos, BUF_SIZE, \
376 fmt_buffer, &fmt_pos, BUF_SIZE, field_sep);\
378 val_len = append_fmt(test_buffer, &pos, BUF_SIZE, gen_fmt, \
380 append_fmt(fmt_buffer, &fmt_pos, BUF_SIZE, \
[all...]
/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.c264 .period_bytes_min = BUF_SIZE,
265 .period_bytes_max = BUF_SIZE,
285 .period_bytes_min = BUF_SIZE,
286 .period_bytes_max = BUF_SIZE,
615 BUF_SIZE*GRAVEYARD_BUFS, in snd_harmony_pcm_init()
625 BUF_SIZE*SILENCE_BUFS, in snd_harmony_pcm_init()
/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_array(BUF_SIZE, sizeof(struct joydump), GFP_KERNEL); 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 in mlx4_err_rule()
[all...]
/linux/samples/watch_queue/
H A Dwatch_test.c30 #define BUF_SIZE 256 macro
164 if (ioctl(fd, IOC_WATCH_QUEUE_SET_SIZE, BUF_SIZE) == -1) { in main()
/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/drivers/media/rc/
H A Diguanair.c17 #define BUF_SIZE 152 macro
60 #define MAX_OUT_PACKET (sizeof(struct send_packet) + BUF_SIZE)
243 if (ir->bufsize > BUF_SIZE) { in iguanair_get_features()
246 ir->bufsize = BUF_SIZE; in iguanair_get_features()
H A Dimon.c43 #define BUF_SIZE 128 macro
/linux/drivers/media/usb/airspy/
H A Dairspy.c125 #define BUF_SIZE 128 macro
977 s->buf = kzalloc(BUF_SIZE, GFP_KERNEL); in airspy_probe()
980 buf = kzalloc(BUF_SIZE, GFP_KERNEL); in airspy_probe()
999 buf, BUF_SIZE); in airspy_probe()
1005 buf[BUF_SIZE - 1] = '\0'; in airspy_probe()
/linux/drivers/atm/
H A Dsolos-pci.c57 #define BUF_SIZE 2048 macro
470 if (size > (BUF_SIZE - sizeof(*header))) { in send_command()
1091 data = card->dma_bounce + (BUF_SIZE * port); in fpga_tx()
1144 if (pktlen > (BUF_SIZE - sizeof(*header))) { in psend()
1252 card->buffer_size = BUF_SIZE; in fpga_probe()
1281 BUF_SIZE, GFP_KERNEL); in fpga_probe()
H A Diphase.h542 #define BUF_SIZE 0x42 macro
H A Diphase.c1481 writew(iadev->rx_buf_sz, iadev->reass_reg+BUF_SIZE);
/linux/scripts/kconfig/lxdialog/
H A Ddialog.h26 #define BUF_SIZE (10*1024) macro
/linux/drivers/media/usb/hackrf/
H A Dhackrf.c140 #define BUF_SIZE 24 macro
141 u8 buf[BUF_SIZE];
1349 u8 u8tmp, buf[BUF_SIZE]; in hackrf_probe()
1380 buf, BUF_SIZE); in hackrf_probe()
1386 buf[BUF_SIZE - 1] = '\0'; in hackrf_probe()
/linux/drivers/scsi/
H A Dscsi_transport_sas.c1263 #define BUF_SIZE 64 macro
1267 char *buffer = kzalloc(BUF_SIZE, GFP_KERNEL), *msdata; in sas_read_port_mode_page()
1275 error = scsi_mode_sense(sdev, 1, 0x19, 0, buffer, BUF_SIZE, 30*HZ, 3, in sas_read_port_mode_page()
1284 if (msdata - buffer > BUF_SIZE - 8) in sas_read_port_mode_page()